@vkontakte/videoplayer 1.1.79-dev.f4244a7e.0 → 1.1.80-dev.a444d83a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +39 -39
- package/es2015.esm.js +39 -39
- package/es2018.cjs.js +39 -39
- package/es2018.esm.js +39 -39
- package/es2024.cjs.js +36 -36
- package/es2024.esm.js +36 -36
- package/esnext.cjs.js +36 -36
- package/esnext.esm.js +36 -36
- package/evergreen.esm.js +36 -36
- package/package.json +5 -5
- package/types/components/Menus/constants/settingsMenuItemIds.d.ts +1 -1
- package/types/components/Menus/constants/subMenuIds.d.ts +1 -1
- package/types/components/Menus/subMenuTabs/types.d.ts +3 -2
- package/types/components/Root/types.d.ts +1 -0
- package/types/config.d.ts +9 -1
- package/types/store/index.d.ts +3 -2
- package/types/store/utils.d.ts +1 -0
- package/types/types/index.d.ts +2 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
* Thu,
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.80-dev.a444d83a.0
|
|
3
|
+
* Thu, 11 Dec 2025 14:52:00 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-80/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var T$=Object.create;var _d=Object.defineProperty;var I$=Object.getOwnPropertyDescriptor;var E$=Object.getOwnPropertyNames;var P$=Object.getPrototypeOf,k$=Object.prototype.hasOwnProperty;var gg=t=>{throw TypeError(t)};var A$=(t,e,i)=>e in t?_d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var L$=(t,e)=>{for(var i in e)_d(t,i,{get:e[i],enumerable:!0})},hg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of E$(e))!k$.call(t,r)&&r!==i&&_d(t,r,{get:()=>e[r],enumerable:!(o=I$(e,r))||o.enumerable});return t};var _g=(t,e,i)=>(i=t!=null?T$(P$(t)):{},hg(e||!t||!t.__esModule?_d(i,"default",{value:t,enumerable:!0}):i,t)),M$=t=>hg(_d({},"__esModule",{value:!0}),t);var ur=(t,e,i)=>A$(t,typeof e!="symbol"?e+"":e,i),Wp=(t,e,i)=>e.has(t)||gg("Cannot "+i);var Ri=(t,e,i)=>(Wp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ws=(t,e,i)=>e.has(t)?gg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),vl=(t,e,i,o)=>(Wp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),bg=(t,e,i)=>(Wp(t,e,"access private method"),i);var wT={};L$(wT,{ControlButtonType:()=>bc,GridTypes:()=>Zr,InterfaceLanguage:()=>ud.InterfaceLanguage,MenuItemType:()=>ql,PlayerPhase:()=>Jr,VERSION:()=>Ra,VKNumericLanguage:()=>ud.VKNumericLanguage,VideoFormat:()=>Dp.VideoFormat,VideoQuality:()=>Dp.VideoQuality,loadVKLangPack:()=>ud.loadVKLangPack,registerPlayerWebComponent:()=>xT});module.exports=M$(wT);var Ks="[",qs="[!",ba="]",ls={};var eo=Symbol(),Kn=Symbol("filename"),$g=Symbol("hmr"),yg="http://www.w3.org/1999/xhtml",ru="http://www.w3.org/2000/svg";var Kp="@attach";var su=!0;var wg,Sg,xg=(Sg=(wg=globalThis.process)==null?void 0:wg.env)==null?void 0:Sg.NODE_ENV,Ee=xg&&!xg.toLowerCase().startsWith("prod");var pr=Array.isArray,Cg=Array.prototype.indexOf,bd=Array.from,qp=Object.keys,fo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,au=Object.getOwnPropertyDescriptors,Qp=Object.prototype,Tg=Array.prototype,$a=Object.getPrototypeOf,Gp=Object.isExtensible;function Qs(t){return typeof t=="function"}var gt=()=>{};function Ig(t){return t()}function Gs(t){for(var e=0;e<t.length;e++)t[e]()}var Go=Symbol("$state"),gl=Symbol("legacy props"),Eg=Symbol(""),lu=Symbol("proxy path"),du=1,hl=3,fr=8;function cu(t){return t===this.v}function _l(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Pg(t,e){return t!==e}function bl(t){return!_l(t,this.v)}function kg(){if(Ee){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Ag(t){if(Ee){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lg(){if(Ee){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mg(t){if(Ee){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Vg(){if(Ee){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rg(){if(Ee){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Ng(){if(Ee){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Dg(t){if(Ee){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Og(t){if(Ee){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Bg(t){if(Ee){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Fg(){if(Ee){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hg(){if(Ee){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ug(){if(Ee){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ds=!1,cs=!1;function zg(){ds=!0}var $d=null;function ws(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),r=[`
|
|
24
|
-
`];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;fo(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),fo(e,"name",{value:`${t}Error`})}return e}function Wr(t,e){return t.label=e,uu(t.v,e),t}function uu(t,e){var i;return(i=t==null?void 0:t[lu])==null||i.call(t,e),t}function $l(t){if(Ee){let e=new Error(`lifecycle_outside_component
|
|
26
26
|
\`${t}(...)\` can only be used during component initialisation
|
|
27
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var
|
|
27
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Kt=null;function yd(t){Kt=t}var mr=null;function xd(t){mr=t}function yl(t){return Xp("getContext").get(t)}function xl(t,e){return Xp("setContext").set(t,e),e}function wd(){return Xp("getAllContexts")}function B(t,e=!1,i){var o=Kt={p:Kt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ds&&!e&&(Kt.l={s:null,u:null,r1:[],r2:kr(!1)}),ko(()=>{o.d=!0}),Ee&&(Kt.function=i,mr=i)}function F(t){var l,d;let e=Kt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=_t,o=Rt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];mo(a.effect),zi(a.reaction),Ao(a.fn)}}finally{mo(i),zi(o)}}Kt=e.p,Ee&&(mr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function us(){return!ds||Kt!==null&&Kt.l===null}function Xp(t){var e;return Kt===null&&$l(t),(e=Kt.c)!=null?e:Kt.c=new Map(R$(Kt)||void 0)}function R$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var N$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||Go in t)return t;let e=$a(t);if(e!==Qp&&e!==Tg)return t;var i=new Map,o=pr(t),r=K(0),a=Ee&&cs?ws("CreatedAt"):null,l=Rt,d=f=>{var p=Rt;zi(l);var v=f();return zi(p),v};o&&i.set("length",K(t.length,a));var s="";function u(f){s=f,Wr(r,`${s} version`);for(let[p,v]of i)Wr(v,ya(s,p))}return new Proxy(t,{defineProperty(f,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Fg();var $=i.get(p);return $===void 0?$=d(()=>{var y=K(v.value,a);return i.set(p,y),Ee&&typeof p=="string"&&Wr(y,ya(s,p)),y}):D($,v.value,!0),!0},deleteProperty(f,p){var v=i.get(p);if(v===void 0){if(p in f){let h=d(()=>K(eo,a));i.set(p,h),Zp(r),Ee&&Wr(h,ya(s,p))}}else{if(o&&typeof p=="string"){var $=i.get("length"),y=Number(p);Number.isInteger(y)&&y<$.v&&D($,y)}D(v,eo),Zp(r)}return!0},get(f,p,v){var x;if(p===Go)return t;if(Ee&&p===lu)return u;var $=i.get(p),y=p in f;if($===void 0&&(!y||(x=Qo(f,p))!=null&&x.writable)&&($=d(()=>{var I=ai(y?f[p]:eo),T=K(I,a);return Ee&&Wr(T,ya(s,p)),T}),i.set(p,$)),$!==void 0){var h=n($);return h===eo?void 0:h}return Reflect.get(f,p,v)},getOwnPropertyDescriptor(f,p){var v=Reflect.getOwnPropertyDescriptor(f,p);if(v&&"value"in v){var $=i.get(p);$&&(v.value=n($))}else if(v===void 0){var y=i.get(p),h=y==null?void 0:y.v;if(y!==void 0&&h!==eo)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return v},has(f,p){var h;if(p===Go)return!0;var v=i.get(p),$=v!==void 0&&v.v!==eo||Reflect.has(f,p);if(v!==void 0||_t!==null&&(!$||(h=Qo(f,p))!=null&&h.writable)){v===void 0&&(v=d(()=>{var x=$?ai(f[p]):eo,I=K(x,a);return Ee&&Wr(I,ya(s,p)),I}),i.set(p,v));var y=n(v);if(y===eo)return!1}return $},set(f,p,v,$){var P;var y=i.get(p),h=p in f;if(o&&p==="length")for(var x=v;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?D(I,eo):x in f&&(I=d(()=>K(eo,a)),i.set(x+"",I),Ee&&Wr(I,ya(s,x)))}if(y===void 0)(!h||(P=Qo(f,p))!=null&&P.writable)&&(y=d(()=>K(void 0,a)),D(y,ai(v)),i.set(p,y),Ee&&Wr(y,ya(s,p)));else{h=y.v!==eo;var T=d(()=>ai(v));D(y,T)}var N=Reflect.getOwnPropertyDescriptor(f,p);if(N!=null&&N.set&&N.set.call($,v),!h){if(o&&typeof p=="string"){var L=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=L.v&&D(L,E+1)}Zp(r)}return!0},ownKeys(f){n(r);var p=Reflect.ownKeys(f).filter(y=>{var h=i.get(y);return h===void 0||h.v!==eo});for(var[v,$]of i)$.v!==eo&&!(v in f)&&p.push(v);return p},setPrototypeOf(){Hg()}})}function ya(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:N$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zp(t,e=1){D(t,t.v+e)}function wl(t){try{if(t!==null&&typeof t=="object"&&Go in t)return t[Go]}catch(e){}return t}function Jp(t,e){return Object.is(wl(t),wl(e))}function Kr(t){var e=2050,i=Rt!==null&&(Rt.f&2)!==0?Rt:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:Kt,deps:null,effects:null,equals:cu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:_t};return Ee&&cs&&(o.created=ws("CreatedAt")),o}function m(t){let e=Kr(t);return mu(e),e}function Sn(t){let e=Kr(t);return e.equals=bl,e}function pu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Wi(e[i])}}var ef=[];function D$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function nf(t){var e,i=_t;if(mo(D$(t)),Ee){let o=xa;tf(new Set);try{ef.includes(t)&&kg(),ef.push(t),pu(t),e=fu(t)}finally{mo(i),tf(o),ef.pop()}}else try{pu(t),e=fu(t)}finally{mo(i)}return e}function rf(t){var e=nf(t);if(t.equals(e)||(t.v=e,t.wv=Sd()),!Ss){var i=(Cs||(t.f&256)!==0)&&t.deps!==null?4096:1024;Cn(t,i)}}var xa=new Set,Sl=new Map;function tf(t){xa=t}function kr(t,e){var i={f:0,v:t,reactions:null,equals:cu,rv:0,wv:0};return Ee&&cs&&(i.created=e!=null?e:ws("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=kr(t,e);return mu(i),i}function ps(t,e=!1,i=!0){var r,a;let o=kr(t);return e||(o.equals=bl),ds&&i&&Kt!==null&&Kt.l!==null&&((a=(r=Kt.l).s)!=null?a:r.s=[]).push(o),o}function D(t,e,i=!1){var r;Rt!==null&&(!hr||(Rt.f&262144)!==0)&&us()&&(Rt.f&262162)!==0&&!((r=jo)!=null&&r[1].includes(t)&&jo[0]===Rt)&&Ug();let o=i?ai(e):e;return Ee&&uu(o,t.label),Cl(t,o)}function Cl(t,e){if(!t.equals(e)){var i=t.v;if(Ss?Sl.set(t,e):Sl.set(t,i),t.v=e,Ee&&cs&&(t.updated=ws("UpdatedAt"),_t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&nf(t),Cn(t,(t.f&256)===0?1024:4096)),t.wv=Sd(),Kg(t,2048),us()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&(gr===null?qg([t]):gr.push(t)),Ee&&xa.size>0){let o=Array.from(xa);for(let r of o)(r.f&1024)!==0&&Cn(r,4096),Sa(r)&&Tl(r);xa.clear()}}return e}function Kg(t,e){var i=t.reactions;if(i!==null)for(var o=us(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===_t)){if(Ee&&(d&262144)!==0){xa.add(l);continue}Cn(l,e),(d&1280)!==0&&((d&2)!==0?Kg(l,4096):Td(l))}}}var Il="font-weight: bold",El="font-weight: normal";function Qg(t,e,i){Ee?console.warn(`%c[svelte] hydration_attribute_changed
|
|
28
28
|
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
29
|
-
https://svelte.dev/e/hydration_attribute_changed`,El
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Il,El):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Gg(t){Ee?console.warn(`%c[svelte] hydration_html_changed
|
|
30
30
|
%c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
31
|
-
https://svelte.dev/e/hydration_html_changed`,El
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Il,El):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ys(t){Ee?console.warn(`%c[svelte] hydration_mismatch
|
|
32
32
|
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
33
|
-
https://svelte.dev/e/hydration_mismatch`,El
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Il,El):console.warn("https://svelte.dev/e/hydration_mismatch")}function Yg(){Ee?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
34
34
|
%cTried to unmount a component that was not mounted
|
|
35
|
-
https://svelte.dev/e/lifecycle_double_unmount`,El
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Il,El):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function jg(){Ee?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Il,El):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function vu(t){Ee?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
36
36
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
37
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,El
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Il,El):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function vo(t){et=t}var bt;function Si(t){if(t===null)throw Ys(),ls;return bt=t}function Ki(){return Si(Xo(bt))}function S(t){if(et){if(Xo(bt)!==null)throw Ys(),ls;bt=t}}function li(t=1){if(et){for(var e=t,i=bt;e--;)i=Xo(i);bt=i}}function Ca(){for(var t=0,e=bt;;){if(e.nodeType===fr){var i=e.data;if(i===ba){if(t===0)return e;t-=1}else(i===Ks||i===qs)&&(t+=1)}var o=Xo(e);e.remove(),e=o}}function gu(t){if(!t||t.nodeType!==fr)throw Ys(),ls;return t.data}function Xg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(wl(this[s])===a){vu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(wl(this[s])===a){vu("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(wl(this[s])===a){vu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ta,Zg,Id,Jg,eh;function hu(){if(Ta===void 0){Ta=window,Zg=document,Id=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Jg=Qo(e,"firstChild").get,eh=Qo(e,"nextSibling").get,Gp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gp(i)&&(i.__t=void 0),Ee&&(t.__svelte_meta=null,Xg())}}function Tn(t=""){return document.createTextNode(t)}function Ei(t){return Jg.call(t)}function Xo(t){return eh.call(t)}function C(t,e){if(!et)return Ei(t);var i=Ei(bt);if(i===null)i=bt.appendChild(Tn());else if(e&&i.nodeType!==hl){var o=Tn();return i==null||i.before(o),Si(o),o}return Si(i),i}function ce(t,e){var r,a;if(!et){var i=Ei(t);return i.nodeType===8&&i.data===""?Xo(i):i}if(e&&((r=bt)==null?void 0:r.nodeType)!==hl){var o=Tn();return(a=bt)==null||a.before(o),Si(o),o}return bt}function A(t,e=1,i=!1){let o=et?bt:t;for(var r;e--;)r=o,o=Xo(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==hl){var a=Tn();return o===null?r==null||r.after(a):o.before(a),Si(a),a}return Si(o),o}function Ed(t){t.textContent=""}function lf(t){_t===null&&Rt===null&&Mg(t),Rt!==null&&(Rt.f&256)!==0&&_t===null&&Lg(),Ss&&Ag(t)}function O$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ia(t,e,i,o=!0){var s;var r=_t;if(Ee)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Kt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ee&&(a.component_function=mr),i)try{Tl(a),a.f|=32768}catch(u){throw Wi(a),u}else e!==null&&Td(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&O$(a,r),Rt!==null&&(Rt.f&2)!==0)){var d=Rt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function ko(t){let e=Ia(8,null,!1);return Cn(e,1024),e.teardown=t,e}function Ne(t){var r;lf("$effect");var e=_t!==null&&(_t.f&32)!==0&&Kt!==null&&!Kt.m;if(Ee&&fo(t,"name",{value:"$effect"}),e){var i=Kt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:_t,reaction:Rt})}else{var o=Ao(t);return o}}function Ad(t){return lf("$effect.pre"),Ee&&fo(t,"name",{value:"$effect.pre"}),Zo(t)}function $u(t){let e=Ia(64,t,!0);return()=>{Wi(e)}}function ih(t){let e=Ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{Wi(e),o(void 0)}):(Wi(e),o(void 0))})}function Ao(t){return Ia(4,t,!1)}function Zo(t){return Ia(8,t,!0)}function O(t,e=[],i=Kr){if(Ee)return Zo(()=>{var r=_t,a=()=>t(...l.map(n));fo(r.fn,"name",{value:"{expression}"}),fo(a,"name",{value:"{expression}"});let l=e.map(i);qi(a)});let o=e.map(i);return qi(()=>t(...o.map(n)))}function qi(t,e=0){return Ia(24|e,t,!0)}function Ni(t,e=!0){return Ia(40,t,!0,e)}function df(t){var e=t.teardown;if(e!==null){let i=Ss,o=Rt;sf(!0),zi(null);try{e.call(null)}finally{sf(i),zi(o)}}}function cf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Wi(i,e),i=o}}function oh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Wi(e),e=i}}function Wi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(uf(t.nodes_start,t.nodes_end),i=!0),cf(t,e&&!i),Ld(t,0),Cn(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();df(t);var r=t.parent;r!==null&&r.first!==null&&pf(t),Ee&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function uf(t,e){for(;t!==null;){var i=t===e?null:Xo(t);t.remove(),t=i}}function pf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Yn(t,e){var i=[];yu(t,i,!0),ff(i,()=>{Wi(t),e&&e()})}function ff(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function yu(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var r=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;yu(o,e,a?i:!1),o=r}}}function Is(t){nh(t,!0)}function nh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;nh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Md=[],mf=[];function rh(){var t=Md;Md=[],Gs(t)}function B$(){var t=mf;mf=[],Gs(t)}function In(t){Md.length===0&&queueMicrotask(rh),Md.push(t)}function sh(){Md.length>0&&rh(),mf.length>0&&B$()}function lh(t){var e=_t;if(Ee&&t instanceof Error&&F$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Vd(t,e)}function Vd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ah=new WeakSet;function F$(t,e){var l,d;if(ah.has(t))return;ah.add(t);let i=Qo(t,"message");if(!(i&&!i.configurable)){for(var o=Id?" ":" ",r=`
|
|
38
38
|
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
|
|
39
|
-
${o}in ${(d=a.function)==null?void 0:d[
|
|
39
|
+
${o}in ${(d=a.function)==null?void 0:d[Kn].split("/").pop()}`,a=a.p;fo(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
|
-
`}),t.stack&&
|
|
41
|
+
`}),t.stack&&fo(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(s=>!s.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var Ca=!1,Pl=null,Ta=!1,ys=!1;function of(t){ys=t}var Vd=[],Rd=[],Ot=null,gr=!1;function Wi(t){Ot=t}var _t=null;function ho(t){_t=t}var Xo=null;function pu(t){Ot!==null&&Ot.f&2097152&&(Xo===null?Xo=[Ot,[t]]:Xo[1].push(t))}var En=null,hr=0,vr=null;function zg(t){vr=t}var lh=1,yu=0,xs=!1,xu=null;function wd(){return++lh}function ya(t){var f,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&_t!==null&&!xs,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((f=a==null?void 0:a.reactions)!=null&&f.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],ya(a)&&tf(a),a.wv>t.wv)return!0}(!o||_t!==null&&!xs)&&Cn(t,1024)}return!1}function dh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Xo!=null&&Xo[1].includes(t)&&Xo[0]===Ot||((a.f&2)!==0?dh(a,e,!1):e===a&&(i?Cn(a,2048):(a.f&1024)!==0&&Cn(a,4096),Cd(a)))}}function uu(t){var $,y;var e=En,i=hr,o=vr,r=Ot,a=xs,l=Xo,d=Wt,s=gr,u=t.f;En=null,hr=0,vr=null,xs=(u&256)!==0&&(gr||!Ta||Ot===null),Ot=(u&96)===0?t:null,Xo=null,$d(t.ctx),gr=!1,yu++,t.f|=2097152;try{var m=(0,t.fn)(),f=t.deps;if(En!==null){var p;if(Ad(t,hr),f!==null&&hr>0)for(f.length=hr+En.length,p=0;p<En.length;p++)f[hr+p]=En[p];else t.deps=f=En;if(!xs||(u&2)!==0&&t.reactions!==null)for(p=hr;p<f.length;p++)((y=($=f[p]).reactions)!=null?y:$.reactions=[]).push(t)}else f!==null&&hr<f.length&&(Ad(t,hr),f.length=hr);if(us()&&vr!==null&&!gr&&f!==null&&(t.f&6146)===0)for(p=0;p<vr.length;p++)dh(vr[p],t);return r!==null&&r!==t&&(yu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(_){rh(_)}finally{En=e,hr=i,vr=o,Ot=r,xs=a,Xo=l,$d(d),gr=s,t.f^=2097152}}function F$(t,e){let i=e.reactions;if(i!==null){var o=xg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(En===null||!En.includes(e))&&(Cn(e,4096),(e.f&768)===0&&(e.f^=512),cu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)F$(t,i[o])}function Il(t){var e=t.f;if((e&16384)===0){Cn(t,1024);var i=_t,o=Ta;if(_t=t,Ta=!0,Ie){var r=fr;yd(t.component_function)}try{(e&16)!==0?eh(t):af(t),sf(t);var a=uu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=lh,Ie&&cs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=wd(),l.set_during_effect=!1);Ie&&Rd.push(t)}finally{Ta=o,_t=i,Ie&&yd(r)}}}function sh(){console.error("Last ten effects were: ",Rd.slice(-10).map(t=>t.fn)),Rd=[]}function H$(){try{Ag()}catch(t){if(Ie&&go(t,"stack",{value:""}),Pl!==null)if(Ie)try{Md(t,Pl)}catch(e){throw sh(),e}else Md(t,Pl);else throw Ie&&sh(),t}}function ff(){var t=Ta;try{var e=0;for(Ta=!0;Vd.length>0;){e++>1e3&&H$();var i=Vd,o=i.length;Vd=[];for(var r=0;r<o;r++){var a=z$(i[r]);U$(a)}Cl.clear()}}finally{Ca=!1,Ta=t,Pl=null,Ie&&(Rd=[])}}function U$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ya(o)&&(Il(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?df(o):o.fn=null))}}function Cd(t){Ca||(Ca=!0,queueMicrotask(ff));for(var e=Pl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Vd.push(e)}function z$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ya(i)&&Il(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Al(t){var e;for(t&&(Ca=!0,ff(),Ca=!0,e=t());;){if(oh(),Vd.length===0)return Ca=!1,Pl=null,Ie&&(Rd=[]),e;Ca=!0,ff()}}async function bo(){await Promise.resolve(),Al()}function n(t){var e=t.f,i=(e&2)!==0;if(xu!==null&&xu.add(t),Ot!==null&&!gr){if(!(Xo!=null&&Xo[1].includes(t))||Xo[0]!==Ot){var o=Ot.deps;t.rv<yu&&(t.rv=yu,En===null&&o!==null&&o[hr]===t?hr++:En===null?En=[t]:(!xs||!En.includes(t))&&En.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,ya(r)&&tf(r)),Ie&&cs&&!gr&&bd!==null&&Ot!==null&&bd.reaction===Ot)if(t.trace)t.trace();else{var l=$s("TracedAt");if(l){var d=bd.entries.get(t);d===void 0&&(d={traces:[]},bd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return ys&&Cl.has(t)?Cl.get(t):t.v}function It(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var W$=-7169;function Cn(t,e){t.f=t.f&W$|e}function Su(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yo in t)wu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Yo in i&&wu(i)}}}function wu(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{wu(t[o],e)}catch(r){}let i=ha(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ru(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function mf(t,e){if(e){let i=document.body;t.autofocus=!0,In(()=>{document.activeElement===i&&t.focus()})}}function Nd(t){var e=Ot,i=_t;Wi(null),ho(null);try{return t()}finally{Wi(e),ho(i)}}var vf=new Set,Cu=new Set;function Ia(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function gf(t,e,i,o={}){function r(a){if(o.capture||Ll.call(e,a),!a.cancelBubble)return Nd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?In(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function gt(t,e,i,o,r){var a={capture:o,passive:r},l=gf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,a)})}function tt(t){for(var e=0;e<t.length;e++)vf.add(t[e]);for(var i of Cu)i(t)}function Ll(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){go(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ot,f=_t;Wi(null),ho(null);try{for(var p,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(ur(_)){var[S,...I]=_;S.apply(a,[t,...I])}else _.call(a,t)}catch(N){p?$.push(N):p=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(p){for(let N of $)queueMicrotask(()=>{throw N});throw p}}finally{t.__root=e,delete t.currentTarget,Wi(m),ho(f)}}}var q$;function ch(){q$=void 0}function Ml(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function No(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(Je)return No(bt,null),bt;r===void 0&&(r=Ml(a?t:"<!>"+t),i||(r=Ti(r)));var l=o||Td?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ti(l),s=l.lastChild;No(d,s)}else No(l,l);return l}}function Y$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return No(bt,null),bt;if(!l){var d=Ml(a),s=Ti(d);if(r)for(l=document.createDocumentFragment();Ti(s);)l.appendChild(Ti(s));else l=Ti(s)}var u=l.cloneNode(!0);if(r){var m=Ti(u),f=u.lastChild;No(m,f)}else No(u,u);return u}}function Ce(t,e){return Y$(t,e,"svg")}function fs(t=""){if(!Je){var e=Tn(t+"");return No(e,e),e}var i=bt;return i.nodeType!==_l&&(i.before(i=Tn()),Si(i)),No(i,i),i}function Ae(){if(Je)return No(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Tn();return t.append(e,i),No(e,i),t}function b(t,e){if(Je){_t.nodes_end=bt,qi();return}t!==null&&t.before(e)}var j$=/\r/g;function ph(t){t=t.replace(j$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var X$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mh(t){return X$.includes(t)}var Z$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var J$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function vh(t){var e;return t=t.toLowerCase(),(e=J$[t])!=null?e:t}var s3=[...Z$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var e1=["touchstart","touchmove"];function gh(t){return e1.includes(t)}var t1=["$state","$state.raw","$derived","$derived.by"],a3=[...t1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var i1=["textarea","script","style","title"];function hh(t){return i1.includes(t)}function Tu(t){return t==null?void 0:t.replace(/\//g,"/")}var Od=!0;function Iu(t){Od=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Qr(t,e){return _h(t,e)}function _f(t,e){var l;vu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,r=bt;try{for(var a=Ti(i);a&&(a.nodeType!==pr||a.data!==zs);)a=Zo(a);if(!a)throw ls;_o(!0),Si(a),qi();let d=_h(t,{...e,anchor:a});if(bt===null||bt.nodeType!==pr||bt.data!==ga)throw Qs(),ls;return _o(!1),d}catch(d){if(d===ls)return e.recover===!1&&Lg(),vu(),Id(i),_o(!1),Qr(t,e);throw d}finally{_o(o),Si(r),ch()}}var Vl=new Map;function _h(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){vu();var d=new Set,s=f=>{for(var p=0;p<f.length;p++){var $=f[p];if(!d.has($)){d.add($);var y=gh($);e.addEventListener($,Ll,{passive:y});var _=Vl.get($);_===void 0?(document.addEventListener($,Ll,{passive:y}),Vl.set($,1)):Vl.set($,_+1)}}};s(_d(vf)),Cu.add(s);var u=void 0,m=Jg(()=>{var f=i!=null?i:e.appendChild(Tn());return Ri(()=>{if(a){B({});var p=Wt;p.c=a}r&&(o.$$events=r),Je&&No(f,null),Od=l,u=t(f,o)||{},Od=!0,Je&&(_t.nodes_end=bt),a&&F()}),()=>{var y;for(var p of d){e.removeEventListener(p,Ll);var $=Vl.get(p);--$===0?(document.removeEventListener(p,Ll),Vl.delete(p)):Vl.set(p,$)}Cu.delete(s),f!==i&&((y=f.parentNode)==null||y.removeChild(f))}});return hf.set(u,m),u}var hf=new WeakMap;function Ea(t,e){let i=hf.get(t);return i?(hf.delete(t),i(e)):(Ie&&qg(),Promise.resolve())}function ni(t,e,...i){var o=t,r=vt,a;Qi(()=>{r!==(r=e())&&(a&&(Ki(a),a=null),Ie&&r==null&&Mg(),a=Ri(()=>r(o,...i)))},65536),Je&&(o=bt)}if(Ie){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ng(e)},set:o=>{i=o}})}};s1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var s1;function Mt(t){Wt===null&&yl("onMount"),ds&&Wt.l!==null?r1(Wt).m.push(t):Ne(()=>{let e=It(t);if(typeof e=="function")return e})}function vn(t){Wt===null&&yl("onDestroy"),Mt(()=>()=>It(t))}function r1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var bh=new Map;function $h(t,e){var i=bh.get(t);i||(i=new Set,bh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){Je&&i===0&&qi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let m=(p,$=!0)=>{u=!0,f($,p)},f=(p,$)=>{if(d===(d=p))return;let y=!1;if(Je&&o!==-1){if(i===0){let S=mu(r);S===zs?o=0:S===Ws?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(r=xa(),Si(r),_o(!1),y=!0,o=-1)}d?(a?Ss(a):$&&(a=Ri(()=>$(r))),l&&jn(l,()=>{l=null})):(l?Ss(l):$&&(l=Ri(()=>$(r,[i+1,o]))),a&&jn(a,()=>{a=null})),y&&_o(!0)};Qi(()=>{u=!1,e(m),u||f(null,null)},s),Je&&(r=bt)}function Cs(t,e,i){Je&&qi();var o=t,r=eo,a,l=us()?Tg:bl;Qi(()=>{l(r,r=e())&&(a&&jn(a),a=Ri(()=>i(o)))}),Je&&(o=bt)}var Ys=null;function yf(t){Ys=t}function Dd(t,e){return e}function d1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)bu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Id(s),s.append(i),o.clear(),Gs(t,e[0].prev,e[a-1].next)}cf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),Gs(t,m.prev,m.next)),Ki(m.e,!d)}})}function yi(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=Je?Si(Ti(u)):u.appendChild(Tn())}Je&&qi();var m=null,f=!1,p=Sn(()=>{var $=i();return ur($)?$:$==null?[]:_d($)});Qi(()=>{var $=n(p),y=$.length;if(f&&y===0)return;f=y===0;let _=!1;if(Je){var S=mu(l)===Ws;S!==(y===0)&&(l=xa(),Si(l),_o(!1),_=!0)}if(Je){for(var I=null,T,N=0;N<y;N++){if(bt.nodeType===pr&&bt.data===ga){l=bt,_=!0,_o(!1);break}var k=$[N],E=o(k,N);T=wh(bt,d,I,null,k,E,N,r,e,i),d.items.set(E,T),I=T}y>0&&Si(xa())}Je||c1($,d,l,r,e,o,i),a!==null&&(y===0?m?Ss(m):m=Ri(()=>a(l)):m!==null&&jn(m,()=>{m=null})),_&&_o(!0),n(p)}),Je&&(l=bt)}function c1(t,e,i,o,r,a,l){var Z,we,ue,re;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,f=e.first,p=f,$,y=null,_,S=[],I=[],T,N,k,E;if(d)for(E=0;E<u;E+=1)T=t[E],N=a(T,E),k=m.get(N),k!==void 0&&((Z=k.a)==null||Z.measure(),(_!=null?_:_=new Set).add(k));for(E=0;E<u;E+=1){if(T=t[E],N=a(T,E),k=m.get(N),k===void 0){var A=p?p.e.nodes_start:i;y=wh(A,e,y,y===null?e.first:y.next,T,N,E,o,r,l),m.set(N,y),S=[],I=[],p=y.next;continue}if(s&&u1(k,T,E,r),(k.e.f&8192)!==0&&(Ss(k.e),d&&((we=k.a)==null||we.unfix(),(_!=null?_:_=new Set).delete(k))),k!==p){if($!==void 0&&$.has(k)){if(S.length<I.length){var W=I[0],H;y=W.prev;var z=S[0],Y=S[S.length-1];for(H=0;H<S.length;H+=1)yh(S[H],W,i);for(H=0;H<I.length;H+=1)$.delete(I[H]);Gs(e,z.prev,Y.next),Gs(e,y,z),Gs(e,Y,W),p=W,y=Y,E-=1,S=[],I=[]}else $.delete(k),yh(k,p,i),Gs(e,k.prev,k.next),Gs(e,k,y===null?e.first:y.next),Gs(e,y,k),y=k;continue}for(S=[],I=[];p!==null&&p.k!==N;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;k=p}S.push(k),y=k,p=k.next}if(p!==null||$!==void 0){for(var ae=$===void 0?[]:_d($);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var j=ae.length;if(j>0){var ne=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<j;E+=1)(ue=ae[E].a)==null||ue.measure();for(E=0;E<j;E+=1)(re=ae[E].a)==null||re.fix()}d1(e,ae,ne,m)}}d&&In(()=>{var _e;if(_!==void 0)for(k of _)(_e=k.a)==null||_e.apply()}),_t.first=e.first&&e.first.e,_t.last=y&&y.e}function u1(t,e,i,o){(o&1)!==0&&Tl(t.v,e),(o&2)!==0?Tl(t.i,i):t.i=i}function wh(t,e,i,o,r,a,l,d,s,u){var m=Ys,f=(s&1)!==0,p=(s&16)===0,$=f?p?ps(r,!1,!1):Ir(r):r,y=(s&2)===0?l:Ir(l);Ie&&f&&($.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var _={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};Ys=_;try{return _.e=Ri(()=>d(t,$,y,u),Je),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{Ys=m}}function yh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Zo(a);r.before(a),a=l}}function Gs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function p1(t,e,i){var a,l;if(!e||e===ph(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=fr)!=null&&l[qn]&&(o=`in ${fr[qn]}`),Kg(Tu(o))}function Bd(t,e,i=!1,o=!1,r=!1){var a=t,l="";D(()=>{var $;var d=_t;if(l===(l=($=e())!=null?$:"")){Je&&qi();return}if(d.nodes_start!==null&&(lf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var s=bt.data,u=qi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Zo(u);if(u===null)throw Qs(),ls;Ie&&!r&&p1(u.parentNode,s,l),No(bt,m),a=Si(u);return}var f=l+"";i?f=`<svg>${f}</svg>`:o&&(f=`<math>${f}</math>`);var p=Ml(f);if((i||o)&&(p=Ti(p)),No(Ti(p),p.lastChild),i||o)for(;Ti(p);)a.before(Ti(p));else a.before(p)}})}function Ni(t,e,i){Je&&qi();var o=t,r,a;Qi(()=>{r!==(r=e())&&(a&&(jn(a),a=null),r&&(a=Ri(()=>i(o,r))))},65536),Je&&(o=bt)}function ka(t,e,i,o,r,a){var y;let l=Je;Je&&qi();var d=Ie&&a&&((y=Wt)==null?void 0:y.function[qn]),s,u,m=null;Je&&bt.nodeType===au&&(m=bt,qi());var f=Je?bt:t,p,$=Ys;Qi(()=>{let _=e()||null;var S=r?r():i||_==="svg"?ou:null;if(_!==s){var I=Ys;yf($),p&&(_===null?jn(p,()=>{p=null,u=null}):_===u?Ss(p):(Ki(p),Iu(!1))),_&&_!==u&&(p=Ri(()=>{if(m=Je?m:S?document.createElementNS(S,_):document.createElement(_),Ie&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),No(m,m),o){Je&&hh(_)&&m.append(document.createComment(""));var T=Je?Ti(m):m.appendChild(Tn());Je&&(T===null?_o(!1):Si(T)),o(m,T)}_t.nodes_end=m,f.before(m)})),s=_,s&&(u=s),Iu(!0),yf(I)}},65536),l&&(_o(!0),Si(f))}var wf;function Sh(t){return wf=t.target,new xf(t)}var Ts,Er,xf=class{constructor(e){Us(this,Ts);Us(this,Er);var a,l;var i=new Map,o=(d,s)=>{var u=ps(s,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===hl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return O((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});gl(this,Er,(e.hydrate?_f:Qr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Al(),gl(this,Ts,r.$$events);for(let d of Object.keys(Vi(this,Er)))d==="$set"||d==="$destroy"||d==="$on"||go(this,d,{get(){return Vi(this,Er)[d]},set(s){Vi(this,Er)[d]=s},enumerable:!0});Vi(this,Er).$set=d=>{Object.assign(r,d)},Vi(this,Er).$destroy=()=>{Ea(Vi(this,Er))}}$set(e){Vi(this,Er).$set(e)}$on(e,i){Vi(this,Ts)[e]=Vi(this,Ts)[e]||[];let o=(...r)=>i.call(this,...r);return Vi(this,Ts)[e].push(o),()=>{Vi(this,Ts)[e]=Vi(this,Ts)[e].filter(r=>r!==o)}}$destroy(){Vi(this,Er).$destroy()}};Ts=new WeakMap,Er=new WeakMap;function Q(t,e){In(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=wf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ie&&$h(e.hash,d)}})}function Is(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Ri(()=>{Ro(()=>i(t))})))})}function Ch(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Ch(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Th(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Ch(t))&&(o&&(o+=" "),o+=e);return o}function Fd(t){return typeof t=="object"?Th(t):t!=null?t:""}var Ih=[...`
|
|
44
|
-
\r\f \v\uFEFF`];function kh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Ih.includes(o[l-1]))&&(d===o.length||Ih.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Eh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Sf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ph(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Sf)),r&&s.push(...Object.keys(r).map(Sf));var u=0,m=-1;let _=t.length;for(var f=0;f<_;f++){var p=t[f];if(d?p==="/"&&t[f-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[f+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?l++:p===")"&&l--,!d&&a===!1&&l===0){if(p===":"&&m===-1)m=f;else if(p===";"||f===_-1){if(m!==-1){var $=Sf(t.substring(u,m).trim());if(!s.includes($)){p!==";"&&f++;var y=t.substring(u,f).trim();i+=" "+y+";"}}u=f+1,m=-1}}}}return o&&(i+=Eh(o)),r&&(i+=Eh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,a){var l=t.__className;if(Je||l!==i||l===void 0){var d=kh(i,o,a);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Cf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function qe(t,e,i,o){var r=t.__style;if(Je||r!==e){var a=Ph(e,o);(!Je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Cf(t,i==null?void 0:i[0],o[0]),Cf(t,i==null?void 0:i[1],o[1],"important")):Cf(t,i,o));return o}function Hd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return Qg();for(var o of t.options)o.selected=e.includes(Ah(o));return}for(o of t.options){var r=Ah(o);if(jp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Tf(t){var e=new MutationObserver(()=>{Hd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Ah(t){return"__value"in t?t.__value:t.value}var Rl=Symbol("class"),Nl=Symbol("style"),Vh=Symbol("is custom element"),Rh=Symbol("is html");function Nh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var r=Dh(t);if(Je&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||$1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Cg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Bh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oh(t,e,i,o,r=!1){var k;var a=Dh(t),l=a[Vh],d=!a[Rh];let s=Je&&l;s&&_o(!1);var u=e||{},m=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class?i.class=Fd(i.class):(o||i[Rl])&&(i.class=null),i[Nl]&&((k=i.style)!=null||(i.style=null));var p=Bh(t);for(let E in i){let A=i[E];if(m&&E==="value"&&A==null){t.value=t.__value="",u[E]=A;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,$,A,o,e==null?void 0:e[Rl],i[Rl]),u[E]=A,u[Rl]=i[Rl];continue}if(E==="style"){qe(t,A,e==null?void 0:e[Nl],i[Nl]),u[E]=A,u[Nl]=i[Nl];continue}var y=u[E];if(!(A===y&&!(A===void 0&&t.hasAttribute(E)))){u[E]=A;var _=E[0]+E[1];if(_!=="$$")if(_==="on"){let W={},H="$$"+E,z=E.slice(2);var S=mh(z);if(fh(z)&&(z=z.slice(0,-7),W.capture=!0),!S&&y){if(A!=null)continue;t.removeEventListener(z,u[H],W),u[H]=null}if(A!=null)if(S)t[`__${z}`]=A,tt([z]);else{let Y=function(ae){u[E].call(this,ae)};var N=Y;u[H]=gf(z,t,Y,W)}else S&&(t[`__${z}`]=void 0)}else if(E==="style")Me(t,E,A);else if(E==="autofocus")mf(t,!!A);else if(!l&&(E==="__value"||E==="value"&&A!=null))t.value=t.__value=A;else if(E==="selected"&&m)Nh(t,A);else{var I=E;d||(I=vh(I));var T=I==="defaultValue"||I==="defaultChecked";if(A==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let W=t,H=e===void 0;if(I==="value"){let z=W.defaultValue;W.removeAttribute(I),W.defaultValue=z,W.value=W.__value=H?z:null}else{let z=W.defaultChecked;W.removeAttribute(I),W.defaultChecked=z,W.checked=H?z:!1}}else t.removeAttribute(E);else T||p.includes(I)&&(l||typeof A!="string")?t[I]=A:typeof A!="function"&&Me(t,I,A,r)}}}return s&&_o(!0),u}function to(t,e,i=[],o,r=!1,a=Wr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Qi(()=>{var p=e(...l.map(n)),$=Oh(t,d,p,o,r);m&&u&&"value"in p&&Hd(t,p.value,!1);for(let _ of Object.getOwnPropertySymbols(s))p[_]||Ki(s[_]);for(let _ of Object.getOwnPropertySymbols(p)){var y=p[_];_.description===Up&&(!d||y!==d[_])&&(s[_]&&Ki(s[_]),s[_]=Ri(()=>Is(t,()=>y))),$[_]=y}d=$}),u){var f=t;Ro(()=>{Hd(f,d.value),Tf(f)})}m=!0}function Dh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Vh]:t.nodeName.includes("-"),[Rh]:t.namespaceURI===_g}}var Lh=new Map;function Bh(t){var e=Lh.get(t.nodeName);if(e)return e;Lh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=ru(o);for(var a in i)i[a].set&&e.push(a);o=ha(o)}return e}function $1(t,e,i){var o;Ie&&(e==="srcset"&&y1(t,i)||If((o=t.getAttribute(e))!=null?o:"",i)||Wg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function If(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Mh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function y1(t,e){var i=Mh(t.srcset),o=Mh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(If(i[l][0],r)||If(r,i[l][0])))}var x1=nu?()=>performance.now():()=>Date.now(),Gr={tick:t=>(nu?requestAnimationFrame:vt)(t),now:()=>x1(),tasks:new Set};function Fh(){let t=Gr.now();Gr.tasks.forEach(e=>{e.c(t)||(Gr.tasks.delete(e),e.f())}),Gr.tasks.size!==0&&Gr.tick(Fh)}function Hh(t){let e;return Gr.tasks.size===0&&Gr.tick(Fh),{promise:new Promise(i=>{Gr.tasks.add(e={c:t,f:i})}),abort(){Gr.tasks.delete(e)}}}function Eu(t,e){Nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function T1(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Uh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=T1(r.trim());e[l]=a.trim()}return e}var I1=t=>t;function Yr(t,e,i,o){var N;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,f=e.style.overflow,p,$;function y(){var A;var k=Ot,E=_t;Wi(null),ho(null);try{return u!=null?u:u=i()(e,(A=o==null?void 0:o())!=null?A:{},{direction:s})}finally{Wi(k),ho(E)}}var _={is_global:d,in(){var k;if(e.inert=m,!r){$==null||$.abort(),(k=$==null?void 0:$.reset)==null||k.call($);return}a||p==null||p.abort(),Eu(e,"introstart"),p=Ef(e,y(),$,1,()=>{Eu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=f})},out(k){if(!a){k==null||k(),u=void 0;return}e.inert=!0,Eu(e,"outrostart"),$=Ef(e,y(),p,0,()=>{Eu(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=_t;if(((N=S.transitions)!=null?N:S.transitions=[]).push(_),r&&Od){var I=d;if(!I){for(var T=S.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Ro(()=>{It(()=>_.in())})}}function Ef(t,e,i,o,r){var a=o===1;if(Ks(e)){var l,d=!1;return In(()=>{if(!d){var S=e({direction:a?"in":"out"});l=Ef(t,S,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:vt,deactivate:vt,reset:vt,t:()=>o};let{delay:s=0,css:u,tick:m,easing:f=I1}=e;var p=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=Uh(u(0,1));p.push($,$)}var y=()=>1-o,_=t.animate(p,{duration:s,fill:"forwards"});return _.onfinish=()=>{var z;_.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-S,T=e.duration*Math.abs(I),N=[];if(T>0){var k=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),A=0;A<=E;A+=1){var W=S+I*f(A/E),H=Uh(u(W,1-W));N.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),y=()=>{var Y=_.currentTime;return S+I*f(Y/T)},m&&Hh(()=>{if(_.playState!=="running")return!1;var Y=y();return m(Y,1-Y),!0})}_=t.animate(N,{duration:T,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function kf(t,e,i){var o=Go(t,e);o&&o.set&&(t[e]=i,Vo(()=>{t[e]=null}))}var js,Ol,Ud,Pu,zh,Au=class Au{constructor(e){Us(this,Pu);Us(this,js,new WeakMap);Us(this,Ol);Us(this,Ud);gl(this,Ud,e)}observe(e,i){var o=Vi(this,js).get(e)||new Set;return o.add(i),Vi(this,js).set(e,o),gg(this,Pu,zh).call(this).observe(e,Vi(this,Ud)),()=>{var r=Vi(this,js).get(e);r.delete(i),r.size===0&&(Vi(this,js).delete(e),Vi(this,Ol).unobserve(e))}}};js=new WeakMap,Ol=new WeakMap,Ud=new WeakMap,Pu=new WeakSet,zh=function(){var e;return(e=Vi(this,Ol))!=null?e:gl(this,Ol,new ResizeObserver(i=>{for(var o of i){Au.entries.set(o.target,o);for(var r of Vi(this,js).get(o.target)||[])r(o)}}))},cr(Au,"entries",new WeakMap);var Pf=Au;var E1=new Pf({box:"border-box"});function kn(t,e,i){var o=E1.observe(t,()=>i(t[e]));Ro(()=>(It(()=>i(t[e])),o))}function Wh(t,e){return t===e||(t==null?void 0:t[Yo])===e}function je(t={},e,i,o){return Ro(()=>{var r,a;return Jo(()=>{r=a,a=(o==null?void 0:o())||[],It(()=>{t!==i(...a)&&(e(t,...a),r&&Wh(i(...r),t)&&e(null,...r))})}),()=>{In(()=>{a&&Wh(i(...a),t)&&e(null,...a)})}}),t}function xo(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>Su(e.s);if(t){let r=0,a={},l=Wr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Pd(()=>{Kh(e,o),qs(i.b)}),Ne(()=>{let r=It(()=>i.m.map(Sg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Ne(()=>{Kh(e,o),qs(i.a)})}function Kh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function zd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),vt;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Dl=[];function kr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=vt){let i=null,o=new Set;function r(d){if(bl(t,d)&&(t=d,i)){let s=!Dl.length;for(let u of o)u[1](),Dl.push(u,t);if(s){for(let u=0;u<Dl.length;u+=2)Dl[u][0](Dl[u+1]);Dl.length=0}}}function a(d){r(d(t))}function l(d,s=vt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||vt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function pi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return kr(i,(l,d)=>{let s=!1,u=[],m=0,f=vt,p=()=>{if(m)return;f();let y=e(o?u[0]:u,l,d);a?l(y):f=typeof y=="function"?y:vt},$=r.map((y,_)=>zd(y,S=>{u[_]=S,m&=~(1<<_),s&&p()},()=>{m|=1<<_}));return s=!0,p(),function(){qs($),f(),s=!1}})}function ge(t){let e;return zd(t,i=>e=i)(),e}var Lu=!1,Af=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ps(void 0),unsubscribe:vt};if(o.store!==t&&!(Af in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=vt;else{var r=!0;o.unsubscribe=zd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Af in i?ge(t):n(o.source)}function Ve(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();go(t,Af,{enumerable:!1,value:!0})})}return[t,e]}function Lf(t){var e=Lu;try{return Lu=!1,[t(),Lu]}finally{Lu=e}}var R1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ie&&Rg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Pn(t,e,i){return new Proxy(Ie?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},R1)}var N1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Ks(r)&&(r=r());let a=Go(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Go(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Yo||e===hl)return!1;for(let i of t.props)if(Ks(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ks(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function jr(...t){return new Proxy({props:t},N1)}function qh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var W,H;var r=(i&1)!==0,a=!ds||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Lf(()=>t[e]):u=t[e];var m=Yo in t||hl in t,f=l&&((H=(W=Go(t,e))==null?void 0:W.set)!=null?H:m&&e in t&&(z=>t[e]=z))||void 0,p=o,$=!0,y=!1,_=()=>(y=!0,$&&($=!1,d?p=It(o):p=o),p);u===void 0&&o!==void 0&&(f&&a&&Vg(e),u=_(),f&&f(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?_():($=!0,y=!1,z)};else{var I=(r?Wr:Sn)(()=>t[e]);I.f|=131072,S=()=>{var z=n(I);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&a)return S;if(f){var T=t.$$legacy;return function(z,Y){return arguments.length>0?((!a||!Y||T||s)&&f(Y?S():z),z):S()}}var N=!1,k=!1,E=ps(u),A=Wr(()=>{var z=S(),Y=n(E);return N?(N=!1,k=!0,Y):(k=!1,E.v=z)});return l&&n(A),r||(A.equals=$l),function(z,Y){if(xu!==null&&(N=k,S(),n(E)),arguments.length>0){let ae=Y?n(A):a&&l?ai(z):z;if(!A.equals(ae)){if(N=!0,O(E,ae),y&&p!==void 0&&(p=ae),qh(A))return z;It(()=>n(A))}return z}return qh(A)?A.v:n(A)}}var O1;typeof HTMLElement=="function"&&(O1=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=D1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Mf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Sh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=_u(()=>{Jo(()=>{var a;this.$$r=!0;for(let l of zp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Mf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Mf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return zp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function D1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Qh="5";var Gh,Yh,jh;typeof window!="undefined"&&((jh=(Yh=(Gh=window.__svelte)!=null?Gh:window.__svelte={}).v)!=null?jh:Yh.v=new Set).add(Qh);var rd=require("@vkontakte/videoplayer-core/es2018"),wZ=require("@vkontakte/videoplayer-core/es2018"),nl=require("@vkontakte/videoplayer-shared/es2018"),r$=require("@vkontakte/videoplayer-statistics/es2018");var Pa=require("@vkontakte/videoplayer-shared/es2018");var B1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Pa.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Pa.VideoQuality.Q_480P,highQualityLimit:Pa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},Xh=t=>(0,Pa.fillWithDefault)(t,B1),Zh=t=>wl("ui-config",t),Vt=()=>xl("ui-config");var Wd="vk_player_debug_panel_opened";var Jh="videoplayer",e_="videoplayer";var ms={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},t_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),i_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),o_=new Set(["ShiftRight","ShiftLeft"]);var n_=["TIMELINE"],Kd=[...n_,"GRAPH_BUTTON"],Vf=[...n_,"PLAY_BUTTON"],qd=[...Kd,"PLAY_BUTTON"];var Xr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Xr||{}),Qd={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),r_=require("@vkontakte/videoplayer-core/es2018"),s_=require("@vkontakte/videoplayer-statistics/es2018");var Mu="prod",La="1.1.79-dev.f4244a7e.0";var Ma=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var a_=Symbol("storeContext"),l_=Symbol("microStoresContext"),d_=(t,e)=>{wl(a_,t),wl(l_,e),Mu==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=xl(a_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},wo=()=>{let t=xl(l_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ri=(t,e)=>Ru(t,t.getValue(),e),Ru=(t,e,i)=>kr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),c_=(t,e,i,o)=>{var W,H,z,Y,ae,j,ne,Z,we;let r=t.info,{width:a,height:l}=ge(i.ui.playerSize),d=(H=(W=r.throughputEstimation$.getValue())==null?void 0:W.toFixed(0))!=null?H:0,s=(Y=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Y:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${La} (core: ${r_.VERSION}, stat: ${s_.VERSION}, shared: ${Gd.VERSION})`,f=ge(i.state.errorLog$),p=f.length?`
|
|
45
|
-
`+
|
|
46
|
-
|
|
47
|
-
`,
|
|
48
|
-
`;return _e+
|
|
49
|
-
`):void 0,$=i.state.isAudioDisabled?"disabled":ge(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),
|
|
50
|
-
`)},u_=(t,e,i)=>{var W,H,z,Y;let o=t.info,{width:r,height:a}=ge(i.ui.playerSize),l={version:La,viewport:`${r}x${a}`,volume:Math.round(ge(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),f=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();m&&(f&&p?l.buffer=m.end-p:l.buffer=Math.max(m.end-ge(i.state.positionExact$),0)),l.position=ge(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let _=o.liveLatency$.getValue();_&&(l.liveLatency=_);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(l.currentAudioSegmentLength=I);let T=ge(i.vsid);typeof T=="string"&&(l.vsid=T);let N=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;N&&(l.videoCodec=N);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let A=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return A&&(l.audioLanguage=A),l},p_=(t,e)=>Ma(t,e,"mp4"),f_=t=>!t.type,m_=t=>!!t.type,v_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Vu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var fi=require("@vkontakte/videoplayer-shared/es2018"),C9=require("@vkontakte/videoplayer-core/es2018"),F1="vk_player_",g_="vk_player_prefer_traffic_saving_enabled",h_="vk_player_preferred_volume",__="vk_player_prefer_volume_mute",Df="vk_player_preferred_quality",Rf="vk_player_preferred_default_quality_settings",Nf="vk_player_preferred_quality_settings_by_video",b_="vk_player_preferred_stream_language",$_="vk_player_preferred_rate",y_="vk_player_preferred_autoplay_next",Of="vk_player_preferred_subtitles_language",x_="vk_player_user_video_prefs",w_=`${F1}preview_track_close_tooltip`,S_=t=>t>1?1:t<0?0:t,Bf=t=>fi.safeStorage.set(h_,S_(t).toString(10)),Nu=()=>{let t=fi.safeStorage.get(h_);return(0,fi.isNullable)(t)?void 0:S_(parseFloat(t))},Ff=(t,e)=>fi.safeStorage.set(Df,JSON.stringify({videoId:t,value:e})),Ou=()=>fi.safeStorage.remove(Df),Hf=t=>{let e=fi.safeStorage.get(Df);if((0,fi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ou();return}return o},C_=(t,e)=>{e?fi.safeStorage.set(t,"true"):fi.safeStorage.remove(t)},Uf=t=>fi.safeStorage.get(t)==="true",zf=t=>C_(__,t),T_=()=>Uf(__),Yd=t=>C_(g_,t),Wf=()=>Uf(g_),I_=()=>fi.safeStorage.get(b_),Kf=t=>fi.safeStorage.set(b_,t),qf=()=>fi.safeStorage.get(Of),Qf=t=>{t?fi.safeStorage.set(Of,t):fi.safeStorage.remove(Of)},E_=t=>fi.safeStorage.set($_,JSON.stringify({rate:t})),k_=()=>{let t=fi.safeStorage.get($_);if((0,fi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},P_=t=>{fi.safeStorage.set(y_,String(t))},A_=()=>Uf(y_),H1=()=>{let t=m=>{fi.safeStorage.set(Rf,JSON.stringify(m))},e=()=>{try{let m=fi.safeStorage.get(Rf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=fi.safeStorage.get(Nf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{fi.safeStorage.set(Nf,JSON.stringify(m))},r=m=>{u(m);let f=m?i():null;if(f&&(f==null?void 0:f.videoId)===m)return{...f,appliesTo:"to-video"};f&&a();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{fi.safeStorage.remove(Nf)},l=()=>{fi.safeStorage.remove(Rf)},d=(m,f="as-default")=>{m.type==="exact_quality"||f==="to-video"?o(m):t(m)},s=m=>{let f=r(m);if(f){switch(f.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Ff(m,f.quality)}a(),l()}},u=m=>{let f=Hf(m);if(f){o({type:"exact_quality",videoId:m,quality:f});return}Wf()&&t({type:"traffic_saving",videoId:m}),Yd(!1),Ou()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:qf,savePreferredSubtitlesLanguage:Qf}},{getPreferredQualitySettings:L_,migrateSettingsToLegacyWay:M_,savePreferredQualitySettings:Du,savePreferredDefaultQualitySettings:T9,removePreferredQualitySettingsByVideo:I9,getPreferredDefaultQualitySettings:Bu}=H1(),U1=3,z1=3,V_=()=>{let t=fi.safeStorage.get(x_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Fu=(t,e)=>{var r,a;let i=V_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},Gf=(t,e,i)=>{var l,d,s;let o=(l=V_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=W1(o);fi.safeStorage.set(x_,JSON.stringify(a))};function W1(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(z1),e.reduce((o,[r])=>(o[r]=K1(t[r]),o),{})}function K1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(U1),Object.fromEntries(e)}function R_(){fi.safeStorage.set(w_,JSON.stringify(!0))}function N_(){let t=fi.safeStorage.get(w_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var Qv=require("@vkontakte/videoplayer-core/es2018");Fg();var Xs="var(--btn-color, #fff)";var q1=Ce('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),Q1=Ce('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Xe(t,e){var m;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,Xs),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=Q1(),d=C(l);{var s=f=>{var p=q1(),$=de(p),y=C($);ni(y,()=>e.children),w($),li(),b(f,p)},u=f=>{var p=Ae(),$=de(p);ni($,()=>e.children),b(f,p)};R(d,f=>{e.shadow?f(s):f(u,!1)})}w(l),D(()=>{Me(l,"aria-label",e.ariaLabel),Me(l,"aria-hidden",!e.ariaLabel),Me(l,"width",i()),Me(l,"height",o()),Me(l,"viewBox",a),Me(l,"fill",r()),qe(l,e.style),Me(l,"data-testid",e.testId)}),b(t,l),F()}var Bl=require("@vkontakte/videoplayer-shared/es2018");var G1={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
|
|
43
|
+
`)})}}var Ea=!1,Pl=null,Pa=!1,Ss=!1;function sf(t){Ss=t}var Rd=[],Nd=[],Rt=null,hr=!1;function zi(t){Rt=t}var _t=null;function mo(t){_t=t}var jo=null;function mu(t){Rt!==null&&Rt.f&2097152&&(jo===null?jo=[Rt,[t]]:jo[1].push(t))}var En=null,_r=0,gr=null;function qg(t){gr=t}var uh=1,wu=0,Cs=!1,Su=null;function Sd(){return++uh}function Sa(t){var p,v;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&_t!==null&&!Cs,s=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Sa(a)&&rf(a),a.wv>t.wv)return!0}(!o||_t!==null&&!Cs)&&Cn(t,1024)}return!1}function ph(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];jo!=null&&jo[1].includes(t)&&jo[0]===Rt||((a.f&2)!==0?ph(a,e,!1):e===a&&(i?Cn(a,2048):(a.f&1024)!==0&&Cn(a,4096),Td(a)))}}function fu(t){var $,y;var e=En,i=_r,o=gr,r=Rt,a=Cs,l=jo,d=Kt,s=hr,u=t.f;En=null,_r=0,gr=null,Cs=(u&256)!==0&&(hr||!Pa||Rt===null),Rt=(u&96)===0?t:null,jo=null,yd(t.ctx),hr=!1,wu++,t.f|=2097152;try{var f=(0,t.fn)(),p=t.deps;if(En!==null){var v;if(Ld(t,_r),p!==null&&_r>0)for(p.length=_r+En.length,v=0;v<En.length;v++)p[_r+v]=En[v];else t.deps=p=En;if(!Cs||(u&2)!==0&&t.reactions!==null)for(v=_r;v<p.length;v++)((y=($=p[v]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&_r<p.length&&(Ld(t,_r),p.length=_r);if(us()&&gr!==null&&!hr&&p!==null&&(t.f&6146)===0)for(v=0;v<gr.length;v++)ph(gr[v],t);return r!==null&&r!==t&&(wu++,gr!==null&&(o===null?o=gr:o.push(...gr))),f}catch(h){lh(h)}finally{En=e,_r=i,gr=o,Rt=r,Cs=a,jo=l,yd(d),hr=s,t.f^=2097152}}function H$(t,e){let i=e.reactions;if(i!==null){var o=Cg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(En===null||!En.includes(e))&&(Cn(e,4096),(e.f&768)===0&&(e.f^=512),pu(e),Ld(e,0))}function Ld(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)H$(t,i[o])}function Tl(t){var e=t.f;if((e&16384)===0){Cn(t,1024);var i=_t,o=Pa;if(_t=t,Pa=!0,Ee){var r=mr;xd(t.component_function)}try{(e&16)!==0?oh(t):cf(t),df(t);var a=fu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=uh,Ee&&cs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sd(),l.set_during_effect=!1);Ee&&Nd.push(t)}finally{Pa=o,_t=i,Ee&&xd(r)}}}function dh(){console.error("Last ten effects were: ",Nd.slice(-10).map(t=>t.fn)),Nd=[]}function U$(){try{Vg()}catch(t){if(Ee&&fo(t,"stack",{value:""}),Pl!==null)if(Ee)try{Vd(t,Pl)}catch(e){throw dh(),e}else Vd(t,Pl);else throw Ee&&dh(),t}}function gf(){var t=Pa;try{var e=0;for(Pa=!0;Rd.length>0;){e++>1e3&&U$();var i=Rd,o=i.length;Rd=[];for(var r=0;r<o;r++){var a=W$(i[r]);z$(a)}Sl.clear()}}finally{Ea=!1,Pa=t,Pl=null,Ee&&(Nd=[])}}function z$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Sa(o)&&(Tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?pf(o):o.fn=null))}}function Td(t){Ea||(Ea=!0,queueMicrotask(gf));for(var e=Pl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Rd.push(e)}function W$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Sa(i)&&Tl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function kl(t){var e;for(t&&(Ea=!0,gf(),Ea=!0,e=t());;){if(sh(),Rd.length===0)return Ea=!1,Pl=null,Ee&&(Nd=[]),e;Ea=!0,gf()}}async function go(){await Promise.resolve(),kl()}function n(t){var e=t.f,i=(e&2)!==0;if(Su!==null&&Su.add(t),Rt!==null&&!hr){if(!(jo!=null&&jo[1].includes(t))||jo[0]!==Rt){var o=Rt.deps;t.rv<wu&&(t.rv=wu,En===null&&o!==null&&o[_r]===t?_r++:En===null?En=[t]:(!Cs||!En.includes(t))&&En.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Sa(r)&&rf(r)),Ee&&cs&&!hr&&$d!==null&&Rt!==null&&$d.reaction===Rt)if(t.trace)t.trace();else{var l=ws("TracedAt");if(l){var d=$d.entries.get(t);d===void 0&&(d={traces:[]},$d.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ss&&Sl.has(t)?Sl.get(t):t.v}function Tt(t){var e=hr;try{return hr=!0,t()}finally{hr=e}}var K$=-7169;function Cn(t,e){t.f=t.f&K$|e}function Tu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Go in t)Cu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Go in i&&Cu(i)}}}function Cu(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Cu(t[o],e)}catch(r){}let i=$a(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=au(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function hf(t,e){if(e){let i=document.body;t.autofocus=!0,In(()=>{document.activeElement===i&&t.focus()})}}function Dd(t){var e=Rt,i=_t;zi(null),mo(null);try{return t()}finally{zi(e),mo(i)}}var _f=new Set,Iu=new Set;function ka(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function bf(t,e,i,o={}){function r(a){if(o.capture||Al.call(e,a),!a.cancelBubble)return Dd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?In(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function lt(t,e,i,o,r){var a={capture:o,passive:r},l=bf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ko(()=>{e.removeEventListener(t,l,a)})}function Ye(t){for(var e=0;e<t.length;e++)_f.add(t[e]);for(var i of Iu)i(t)}function Al(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){fo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Rt,p=_t;zi(null),mo(null);try{for(var v,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var h=a["__"+o];if(h!=null&&(!a.disabled||t.target===a))if(pr(h)){var[x,...I]=h;x.apply(a,[t,...I])}else h.call(a,t)}catch(N){v?$.push(N):v=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let N of $)queueMicrotask(()=>{throw N});throw v}}finally{t.__root=e,delete t.currentTarget,zi(f),mo(p)}}}var Q$;function fh(){Q$=void 0}function Ll(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lo(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(et)return Lo(bt,null),bt;r===void 0&&(r=Ll(a?t:"<!>"+t),i||(r=Ei(r)));var l=o||Id?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ei(l),s=l.lastChild;Lo(d,s)}else Lo(l,l);return l}}function j$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return Lo(bt,null),bt;if(!l){var d=Ll(a),s=Ei(d);if(r)for(l=document.createDocumentFragment();Ei(s);)l.appendChild(Ei(s));else l=Ei(s)}var u=l.cloneNode(!0);if(r){var f=Ei(u),p=u.lastChild;Lo(f,p)}else Lo(u,u);return u}}function Ce(t,e){return j$(t,e,"svg")}function fs(t=""){if(!et){var e=Tn(t+"");return Lo(e,e),e}var i=bt;return i.nodeType!==hl&&(i.before(i=Tn()),Si(i)),Lo(i,i),i}function Ae(){if(et)return Lo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Tn();return t.append(e,i),Lo(e,i),t}function b(t,e){if(et){_t.nodes_end=bt,Ki();return}t!==null&&t.before(e)}var X$=/\r/g;function vh(t){t=t.replace(X$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Z$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hh(t){return Z$.includes(t)}var J$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var e1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function _h(t){var e;return t=t.toLowerCase(),(e=e1[t])!=null?e:t}var u3=[...J$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var t1=["touchstart","touchmove"];function bh(t){return t1.includes(t)}var i1=["$state","$state.raw","$derived","$derived.by"],p3=[...i1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var o1=["textarea","script","style","title"];function $h(t){return o1.includes(t)}function Eu(t){return t==null?void 0:t.replace(/\//g,"/")}var Od=!0;function Pu(t){Od=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Gr(t,e){return yh(t,e)}function yf(t,e){var l;hu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,r=bt;try{for(var a=Ei(i);a&&(a.nodeType!==fr||a.data!==Ks);)a=Xo(a);if(!a)throw ls;vo(!0),Si(a),Ki();let d=yh(t,{...e,anchor:a});if(bt===null||bt.nodeType!==fr||bt.data!==ba)throw Ys(),ls;return vo(!1),d}catch(d){if(d===ls)return e.recover===!1&&Rg(),hu(),Ed(i),vo(!1),Gr(t,e);throw d}finally{vo(o),Si(r),fh()}}var Ml=new Map;function yh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){hu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var $=p[v];if(!d.has($)){d.add($);var y=bh($);e.addEventListener($,Al,{passive:y});var h=Ml.get($);h===void 0?(document.addEventListener($,Al,{passive:y}),Ml.set($,1)):Ml.set($,h+1)}}};s(bd(_f)),Iu.add(s);var u=void 0,f=ih(()=>{var p=i!=null?i:e.appendChild(Tn());return Ni(()=>{if(a){B({});var v=Kt;v.c=a}r&&(o.$$events=r),et&&Lo(p,null),Od=l,u=t(p,o)||{},Od=!0,et&&(_t.nodes_end=bt),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Al);var $=Ml.get(v);--$===0?(document.removeEventListener(v,Al),Ml.delete(v)):Ml.set(v,$)}Iu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return $f.set(u,f),u}var $f=new WeakMap;function Aa(t,e){let i=$f.get(t);return i?($f.delete(t),i(e)):(Ee&&Yg(),Promise.resolve())}function oi(t,e,...i){var o=t,r=gt,a;qi(()=>{r!==(r=e())&&(a&&(Wi(a),a=null),Ee&&r==null&&Ng(),a=Ni(()=>r(o,...i)))},65536),et&&(o=bt)}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Bg(e)},set:o=>{i=o}})}};a1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var a1;function Lt(t){Kt===null&&$l("onMount"),ds&&Kt.l!==null?s1(Kt).m.push(t):Ne(()=>{let e=Tt(t);if(typeof e=="function")return e})}function un(t){Kt===null&&$l("onDestroy"),Lt(()=>()=>Tt(t))}function s1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var xh=new Map;function wh(t,e){var i=xh.get(t);i||(i=new Set,xh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){et&&i===0&&Ki();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let f=(v,$=!0)=>{u=!0,p($,v)},p=(v,$)=>{if(d===(d=v))return;let y=!1;if(et&&o!==-1){if(i===0){let x=gu(r);x===Ks?o=0:x===qs?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let h=o>i;!!d===h&&(r=Ca(),Si(r),vo(!1),y=!0,o=-1)}d?(a?Is(a):$&&(a=Ni(()=>$(r))),l&&Yn(l,()=>{l=null})):(l?Is(l):$&&(l=Ni(()=>$(r,[i+1,o]))),a&&Yn(a,()=>{a=null})),y&&vo(!0)};qi(()=>{u=!1,e(f),u||p(null,null)},s),et&&(r=bt)}function Es(t,e,i){et&&Ki();var o=t,r=eo,a,l=us()?Pg:_l;qi(()=>{l(r,r=e())&&(a&&Yn(a),a=Ni(()=>i(o)))}),et&&(o=bt)}var Xs=null;function Sf(t){Xs=t}function Bd(t,e){return e}function c1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)yu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ed(s),s.append(i),o.clear(),js(t,e[0].prev,e[a-1].next)}ff(r,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),js(t,f.prev,f.next)),Wi(f.e,!d)}})}function bi(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=et?Si(Ei(u)):u.appendChild(Tn())}et&&Ki();var f=null,p=!1,v=Sn(()=>{var $=i();return pr($)?$:$==null?[]:bd($)});qi(()=>{var $=n(v),y=$.length;if(p&&y===0)return;p=y===0;let h=!1;if(et){var x=gu(l)===qs;x!==(y===0)&&(l=Ca(),Si(l),vo(!1),h=!0)}if(et){for(var I=null,T,N=0;N<y;N++){if(bt.nodeType===fr&&bt.data===ba){l=bt,h=!0,vo(!1);break}var L=$[N],E=o(L,N);T=Th(bt,d,I,null,L,E,N,r,e,i),d.items.set(E,T),I=T}y>0&&Si(Ca())}et||u1($,d,l,r,e,o,i),a!==null&&(y===0?f?Is(f):f=Ni(()=>a(l)):f!==null&&Yn(f,()=>{f=null})),h&&vo(!0),n(v)}),et&&(l=bt)}function u1(t,e,i,o,r,a,l){var J,we,pe,re;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,f=e.items,p=e.first,v=p,$,y=null,h,x=[],I=[],T,N,L,E;if(d)for(E=0;E<u;E+=1)T=t[E],N=a(T,E),L=f.get(N),L!==void 0&&((J=L.a)==null||J.measure(),(h!=null?h:h=new Set).add(L));for(E=0;E<u;E+=1){if(T=t[E],N=a(T,E),L=f.get(N),L===void 0){var P=v?v.e.nodes_start:i;y=Th(P,e,y,y===null?e.first:y.next,T,N,E,o,r,l),f.set(N,y),x=[],I=[],v=y.next;continue}if(s&&p1(L,T,E,r),(L.e.f&8192)!==0&&(Is(L.e),d&&((we=L.a)==null||we.unfix(),(h!=null?h:h=new Set).delete(L))),L!==v){if($!==void 0&&$.has(L)){if(x.length<I.length){var q=I[0],H;y=q.prev;var z=x[0],j=x[x.length-1];for(H=0;H<x.length;H+=1)Sh(x[H],q,i);for(H=0;H<I.length;H+=1)$.delete(I[H]);js(e,z.prev,j.next),js(e,y,z),js(e,j,q),v=q,y=j,E-=1,x=[],I=[]}else $.delete(L),Sh(L,v,i),js(e,L.prev,L.next),js(e,L,y===null?e.first:y.next),js(e,y,L),y=L;continue}for(x=[],I=[];v!==null&&v.k!==N;)(v.e.f&8192)===0&&($!=null?$:$=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;L=v}x.push(L),y=L,v=L.next}if(v!==null||$!==void 0){for(var ae=$===void 0?[]:bd($);v!==null;)(v.e.f&8192)===0&&ae.push(v),v=v.next;var X=ae.length;if(X>0){var ne=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<X;E+=1)(pe=ae[E].a)==null||pe.measure();for(E=0;E<X;E+=1)(re=ae[E].a)==null||re.fix()}c1(e,ae,ne,f)}}d&&In(()=>{var _e;if(h!==void 0)for(L of h)(_e=L.a)==null||_e.apply()}),_t.first=e.first&&e.first.e,_t.last=y&&y.e}function p1(t,e,i,o){(o&1)!==0&&Cl(t.v,e),(o&2)!==0?Cl(t.i,i):t.i=i}function Th(t,e,i,o,r,a,l,d,s,u){var f=Xs,p=(s&1)!==0,v=(s&16)===0,$=p?v?ps(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);Ee&&p&&($.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var h={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};Xs=h;try{return h.e=Ni(()=>d(t,$,y,u),et),h.e.prev=i&&i.e,h.e.next=o&&o.e,i===null?e.first=h:(i.next=h,i.e.next=h.e),o!==null&&(o.prev=h,o.e.prev=h.e),h}finally{Xs=f}}function Sh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Xo(a);r.before(a),a=l}}function js(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function f1(t,e,i){var a,l;if(!e||e===vh(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=mr)!=null&&l[Kn]&&(o=`in ${mr[Kn]}`),Gg(Eu(o))}function Fd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var $;var d=_t;if(l===(l=($=e())!=null?$:"")){et&&Ki();return}if(d.nodes_start!==null&&(uf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var s=bt.data,u=Ki(),f=u;u!==null&&(u.nodeType!==fr||u.data!=="");)f=u,u=Xo(u);if(u===null)throw Ys(),ls;Ee&&!r&&f1(u.parentNode,s,l),Lo(bt,f),a=Si(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Ll(p);if((i||o)&&(v=Ei(v)),Lo(Ei(v),v.lastChild),i||o)for(;Ei(v);)a.before(Ei(v));else a.before(v)}})}function Di(t,e,i){et&&Ki();var o=t,r,a;qi(()=>{r!==(r=e())&&(a&&(Yn(a),a=null),r&&(a=Ni(()=>i(o,r))))},65536),et&&(o=bt)}function La(t,e,i,o,r,a){var y;let l=et;et&&Ki();var d=Ee&&a&&((y=Kt)==null?void 0:y.function[Kn]),s,u,f=null;et&&bt.nodeType===du&&(f=bt,Ki());var p=et?bt:t,v,$=Xs;qi(()=>{let h=e()||null;var x=r?r():i||h==="svg"?ru:null;if(h!==s){var I=Xs;Sf($),v&&(h===null?Yn(v,()=>{v=null,u=null}):h===u?Is(v):(Wi(v),Pu(!1))),h&&h!==u&&(v=Ni(()=>{if(f=et?f:x?document.createElementNS(x,h):document.createElement(h),Ee&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Lo(f,f),o){et&&$h(h)&&f.append(document.createComment(""));var T=et?Ei(f):f.appendChild(Tn());et&&(T===null?vo(!1):Si(T)),o(f,T)}_t.nodes_end=f,p.before(f)})),s=h,s&&(u=s),Pu(!0),Sf(I)}},65536),l&&(vo(!0),Si(p))}var Tf;function Ih(t){return Tf=t.target,new Cf(t)}var Ps,Ar,Cf=class{constructor(e){Ws(this,Ps);Ws(this,Ar);var a,l;var i=new Map,o=(d,s)=>{var u=ps(s,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===gl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var f;return D((f=i.get(s))!=null?f:o(s,u),u),Reflect.set(d,s,u)}});vl(this,Ar,(e.hydrate?yf:Gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&kl(),vl(this,Ps,r.$$events);for(let d of Object.keys(Ri(this,Ar)))d==="$set"||d==="$destroy"||d==="$on"||fo(this,d,{get(){return Ri(this,Ar)[d]},set(s){Ri(this,Ar)[d]=s},enumerable:!0});Ri(this,Ar).$set=d=>{Object.assign(r,d)},Ri(this,Ar).$destroy=()=>{Aa(Ri(this,Ar))}}$set(e){Ri(this,Ar).$set(e)}$on(e,i){Ri(this,Ps)[e]=Ri(this,Ps)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Ps)[e].push(o),()=>{Ri(this,Ps)[e]=Ri(this,Ps)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Ar).$destroy()}};Ps=new WeakMap,Ar=new WeakMap;function Q(t,e){In(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Tf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&wh(e.hash,d)}})}function ks(t,e){var i=void 0,o;qi(()=>{i!==(i=e())&&(o&&(Wi(o),o=null),i&&(o=Ni(()=>{Ao(()=>i(t))})))})}function Eh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Eh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ph(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Eh(t))&&(o&&(o+=" "),o+=e);return o}function Hd(t){return typeof t=="object"?Ph(t):t!=null?t:""}var kh=[...`
|
|
44
|
+
\r\f \v\uFEFF`];function Lh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||kh.includes(o[l-1]))&&(d===o.length||kh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ah(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function If(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Mh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(If)),r&&s.push(...Object.keys(r).map(If));var u=0,f=-1;let h=t.length;for(var p=0;p<h;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&f===-1)f=p;else if(v===";"||p===h-1){if(f!==-1){var $=If(t.substring(u,f).trim());if(!s.includes($)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,f=-1}}}}return o&&(i+=Ah(o)),r&&(i+=Ah(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,a){var l=t.__className;if(et||l!==i||l===void 0){var d=Lh(i,o,a);(!et||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Ef(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function qe(t,e,i,o){var r=t.__style;if(et||r!==e){var a=Mh(e,o);(!et||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Ud(t,e,i){if(t.multiple){if(e==null)return;if(!pr(e))return jg();for(var o of t.options)o.selected=e.includes(Vh(o));return}for(o of t.options){var r=Vh(o);if(Jp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Pf(t){var e=new MutationObserver(()=>{Ud(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ko(()=>{e.disconnect()})}function Vh(t){return"__value"in t?t.__value:t.value}var Vl=Symbol("class"),Rl=Symbol("style"),Dh=Symbol("is custom element"),Oh=Symbol("is html");function Bh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Le(t,e,i,o){var r=Hh(t);if(et&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||y1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Eg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Uh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Fh(t,e,i,o,r=!1){var L;var a=Hh(t),l=a[Dh],d=!a[Oh];let s=et&&l;s&&vo(!1);var u=e||{},f=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Hd(i.class):(o||i[Vl])&&(i.class=null),i[Rl]&&((L=i.style)!=null||(i.style=null));var v=Uh(t);for(let E in i){let P=i[E];if(f&&E==="value"&&P==null){t.value=t.__value="",u[E]=P;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,$,P,o,e==null?void 0:e[Vl],i[Vl]),u[E]=P,u[Vl]=i[Vl];continue}if(E==="style"){qe(t,P,e==null?void 0:e[Rl],i[Rl]),u[E]=P,u[Rl]=i[Rl];continue}var y=u[E];if(!(P===y&&!(P===void 0&&t.hasAttribute(E)))){u[E]=P;var h=E[0]+E[1];if(h!=="$$")if(h==="on"){let q={},H="$$"+E,z=E.slice(2);var x=hh(z);if(gh(z)&&(z=z.slice(0,-7),q.capture=!0),!x&&y){if(P!=null)continue;t.removeEventListener(z,u[H],q),u[H]=null}if(P!=null)if(x)t[`__${z}`]=P,Ye([z]);else{let j=function(ae){u[E].call(this,ae)};var N=j;u[H]=bf(z,t,j,q)}else x&&(t[`__${z}`]=void 0)}else if(E==="style")Le(t,E,P);else if(E==="autofocus")hf(t,!!P);else if(!l&&(E==="__value"||E==="value"&&P!=null))t.value=t.__value=P;else if(E==="selected"&&f)Bh(t,P);else{var I=E;d||(I=_h(I));var T=I==="defaultValue"||I==="defaultChecked";if(P==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let q=t,H=e===void 0;if(I==="value"){let z=q.defaultValue;q.removeAttribute(I),q.defaultValue=z,q.value=q.__value=H?z:null}else{let z=q.defaultChecked;q.removeAttribute(I),q.defaultChecked=z,q.checked=H?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof P!="string")?t[I]=P:typeof P!="function"&&Le(t,I,P,r)}}}return s&&vo(!0),u}function to(t,e,i=[],o,r=!1,a=Kr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",f=!1;if(qi(()=>{var v=e(...l.map(n)),$=Fh(t,d,v,o,r);f&&u&&"value"in v&&Ud(t,v.value,!1);for(let h of Object.getOwnPropertySymbols(s))v[h]||Wi(s[h]);for(let h of Object.getOwnPropertySymbols(v)){var y=v[h];h.description===Kp&&(!d||y!==d[h])&&(s[h]&&Wi(s[h]),s[h]=Ni(()=>ks(t,()=>y))),$[h]=y}d=$}),u){var p=t;Ao(()=>{Ud(p,d.value),Pf(p)})}f=!0}function Hh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Dh]:t.nodeName.includes("-"),[Oh]:t.namespaceURI===yg}}var Rh=new Map;function Uh(t){var e=Rh.get(t.nodeName);if(e)return e;Rh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=au(o);for(var a in i)i[a].set&&e.push(a);o=$a(o)}return e}function y1(t,e,i){var o;Ee&&(e==="srcset"&&x1(t,i)||kf((o=t.getAttribute(e))!=null?o:"",i)||Qg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Nh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function x1(t,e){var i=Nh(t.srcset),o=Nh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(kf(i[l][0],r)||kf(r,i[l][0])))}var w1=su?()=>performance.now():()=>Date.now(),Yr={tick:t=>(su?requestAnimationFrame:gt)(t),now:()=>w1(),tasks:new Set};function zh(){let t=Yr.now();Yr.tasks.forEach(e=>{e.c(t)||(Yr.tasks.delete(e),e.f())}),Yr.tasks.size!==0&&Yr.tick(zh)}function Wh(t){let e;return Yr.tasks.size===0&&Yr.tick(zh),{promise:new Promise(i=>{Yr.tasks.add(e={c:t,f:i})}),abort(){Yr.tasks.delete(e)}}}function ku(t,e){Dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function I1(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Kh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=I1(r.trim());e[l]=a.trim()}return e}var E1=t=>t;function jr(t,e,i,o){var N;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,f=e.inert,p=e.style.overflow,v,$;function y(){var P;var L=Rt,E=_t;zi(null),mo(null);try{return u!=null?u:u=i()(e,(P=o==null?void 0:o())!=null?P:{},{direction:s})}finally{zi(L),mo(E)}}var h={is_global:d,in(){var L;if(e.inert=f,!r){$==null||$.abort(),(L=$==null?void 0:$.reset)==null||L.call($);return}a||v==null||v.abort(),ku(e,"introstart"),v=Af(e,y(),$,1,()=>{ku(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(L){if(!a){L==null||L(),u=void 0;return}e.inert=!0,ku(e,"outrostart"),$=Af(e,y(),v,0,()=>{ku(e,"outroend"),L==null||L()})},stop:()=>{v==null||v.abort(),$==null||$.abort()}},x=_t;if(((N=x.transitions)!=null?N:x.transitions=[]).push(h),r&&Od){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Ao(()=>{Tt(()=>h.in())})}}function Af(t,e,i,o,r){var a=o===1;if(Qs(e)){var l,d=!1;return In(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Af(t,x,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:gt,deactivate:gt,reset:gt,t:()=>o};let{delay:s=0,css:u,tick:f,easing:p=E1}=e;var v=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Kh(u(0,1));v.push($,$)}var y=()=>1-o,h=t.animate(v,{duration:s,fill:"forwards"});return h.onfinish=()=>{var z;h.cancel();var x=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),N=[];if(T>0){var L=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),P=0;P<=E;P+=1){var q=x+I*p(P/E),H=Kh(u(q,1-q));N.push(H),L||(L=H.overflow==="hidden")}L&&(t.style.overflow="hidden"),y=()=>{var j=h.currentTime;return x+I*p(j/T)},f&&Wh(()=>{if(h.playState!=="running")return!1;var j=y();return f(j,1-j),!0})}h=t.animate(N,{duration:T,fill:"forwards"}),h.onfinish=()=>{y=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=gt)},deactivate:()=>{r=gt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}function Lf(t,e,i){var o=Qo(t,e);o&&o.set&&(t[e]=i,ko(()=>{t[e]=null}))}var Zs,Nl,zd,Lu,qh,Mu=class Mu{constructor(e){Ws(this,Lu);Ws(this,Zs,new WeakMap);Ws(this,Nl);Ws(this,zd);vl(this,zd,e)}observe(e,i){var o=Ri(this,Zs).get(e)||new Set;return o.add(i),Ri(this,Zs).set(e,o),bg(this,Lu,qh).call(this).observe(e,Ri(this,zd)),()=>{var r=Ri(this,Zs).get(e);r.delete(i),r.size===0&&(Ri(this,Zs).delete(e),Ri(this,Nl).unobserve(e))}}};Zs=new WeakMap,Nl=new WeakMap,zd=new WeakMap,Lu=new WeakSet,qh=function(){var e;return(e=Ri(this,Nl))!=null?e:vl(this,Nl,new ResizeObserver(i=>{for(var o of i){Mu.entries.set(o.target,o);for(var r of Ri(this,Zs).get(o.target)||[])r(o)}}))},ur(Mu,"entries",new WeakMap);var Mf=Mu;var P1=new Mf({box:"border-box"});function Pn(t,e,i){var o=P1.observe(t,()=>i(t[e]));Ao(()=>(Tt(()=>i(t[e])),o))}function Qh(t,e){return t===e||(t==null?void 0:t[Go])===e}function Xe(t={},e,i,o){return Ao(()=>{var r,a;return Zo(()=>{r=a,a=(o==null?void 0:o())||[],Tt(()=>{t!==i(...a)&&(e(t,...a),r&&Qh(i(...r),t)&&e(null,...r))})}),()=>{In(()=>{a&&Qh(i(...a),t)&&e(null,...a)})}}),t}function xo(t=!1){let e=Kt,i=e.l.u;if(!i)return;let o=()=>Tu(e.s);if(t){let r=0,a={},l=Kr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Ad(()=>{Gh(e,o),Gs(i.b)}),Ne(()=>{let r=Tt(()=>i.m.map(Ig));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Ne(()=>{Gh(e,o),Gs(i.a)})}function Gh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Wd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),gt;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Dl=[];function Lr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=gt){let i=null,o=new Set;function r(d){if(_l(t,d)&&(t=d,i)){let s=!Dl.length;for(let u of o)u[1](),Dl.push(u,t);if(s){for(let u=0;u<Dl.length;u+=2)Dl[u][0](Dl[u+1]);Dl.length=0}}}function a(d){r(d(t))}function l(d,s=gt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||gt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function ui(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Lr(i,(l,d)=>{let s=!1,u=[],f=0,p=gt,v=()=>{if(f)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:gt},$=r.map((y,h)=>Wd(y,x=>{u[h]=x,f&=~(1<<h),s&&v()},()=>{f|=1<<h}));return s=!0,v(),function(){Gs($),p(),s=!1}})}function ge(t){let e;return Wd(t,i=>e=i)(),e}var Vu=!1,Vf=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ps(void 0),unsubscribe:gt};if(o.store!==t&&!(Vf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=gt;else{var r=!0;o.unsubscribe=Wd(t,l=>{r?o.source.v=l:D(o.source,l)}),r=!1}return t&&Vf in i?ge(t):n(o.source)}function Ve(){let t={};function e(){ko(()=>{for(var i in t)t[i].unsubscribe();fo(t,Vf,{enumerable:!1,value:!0})})}return[t,e]}function Rf(t){var e=Vu;try{return Vu=!1,[t(),Vu]}finally{Vu=e}}var N1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&Og(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function kn(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},N1)}var D1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Qs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Qs(r)&&(r=r());let a=Qo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Qs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Qo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Go||e===gl)return!1;for(let i of t.props)if(Qs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Qs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Xr(...t){return new Proxy({props:t},D1)}function Yh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var q,H;var r=(i&1)!==0,a=!ds||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Rf(()=>t[e]):u=t[e];var f=Go in t||gl in t,p=l&&((H=(q=Qo(t,e))==null?void 0:q.set)!=null?H:f&&e in t&&(z=>t[e]=z))||void 0,v=o,$=!0,y=!1,h=()=>(y=!0,$&&($=!1,d?v=Tt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Dg(e),u=h(),p&&p(u));var x;if(a)x=()=>{var z=t[e];return z===void 0?h():($=!0,y=!1,z)};else{var I=(r?Kr:Sn)(()=>t[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(z,j){return arguments.length>0?((!a||!j||T||s)&&p(j?x():z),z):x()}}var N=!1,L=!1,E=ps(u),P=Kr(()=>{var z=x(),j=n(E);return N?(N=!1,L=!0,j):(L=!1,E.v=z)});return l&&n(P),r||(P.equals=bl),function(z,j){if(Su!==null&&(N=L,x(),n(E)),arguments.length>0){let ae=j?n(P):a&&l?ai(z):z;if(!P.equals(ae)){if(N=!0,D(E,ae),y&&v!==void 0&&(v=ae),Yh(P))return z;Tt(()=>n(P))}return z}return Yh(P)?P.v:n(P)}}var O1;typeof HTMLElement=="function"&&(O1=class extends HTMLElement{constructor(e,i,o){super();ur(this,"$$ctor");ur(this,"$$s");ur(this,"$$c");ur(this,"$$cn",!1);ur(this,"$$d",{});ur(this,"$$r",!1);ur(this,"$$p_d",{});ur(this,"$$l",{});ur(this,"$$l_u",new Map);ur(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=B1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Nf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Ih({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=$u(()=>{Zo(()=>{var a;this.$$r=!0;for(let l of qp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Nf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Nf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Nf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function B1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var jh="5";var Xh,Zh,Jh;typeof window!="undefined"&&((Jh=(Zh=(Xh=window.__svelte)!=null?Xh:window.__svelte={}).v)!=null?Jh:Zh.v=new Set).add(jh);var nd=require("@vkontakte/videoplayer-core/es2018"),EZ=require("@vkontakte/videoplayer-core/es2018"),al=require("@vkontakte/videoplayer-shared/es2018"),l$=require("@vkontakte/videoplayer-statistics/es2018");var Ma=require("@vkontakte/videoplayer-shared/es2018");var F1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ma.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ma.VideoQuality.Q_480P,highQualityLimit:Ma.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen"},e_=t=>(0,Ma.fillWithDefault)(t,F1),t_=t=>xl("ui-config",t),Mt=()=>yl("ui-config");var Kd="vk_player_debug_panel_opened";var i_="videoplayer",o_="videoplayer";var ms={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},n_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),r_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),s_=new Set(["ShiftRight","ShiftLeft"]);var a_=["TIMELINE"],qd=[...a_,"GRAPH_BUTTON"],Df=[...a_,"PLAY_BUTTON"],Qd=[...qd,"PLAY_BUTTON"];var Zr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Zr||{}),Gd={xs:0,s:1,m:2,l:3,xl:4};var Yd=require("@vkontakte/videoplayer-shared/es2018"),l_=require("@vkontakte/videoplayer-core/es2018"),d_=require("@vkontakte/videoplayer-statistics/es2018");var Ru="prod",Ra="1.1.80-dev.a444d83a.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var c_=Symbol("storeContext"),u_=Symbol("microStoresContext"),p_=(t,e)=>{xl(c_,t),xl(u_,e),Ru==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=yl(c_);return(0,Yd.assertNonNullable)(t,"Store context is empty!"),t},wo=()=>{let t=yl(u_);return(0,Yd.assertNonNullable)(t,"MicroStores context is empty!"),t},ni=(t,e)=>Du(t,t.getValue(),e),Du=(t,e,i)=>Lr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),f_=(t,e,i,o)=>{var q,H,z,j,ae,X,ne,J,we;let r=t.info,{width:a,height:l}=ge(i.ui.playerSize),d=(H=(q=r.throughputEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?H:0,s=(j=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?j:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ra} (core: ${l_.VERSION}, stat: ${d_.VERSION}, shared: ${Yd.VERSION})`,p=ge(i.state.errorLog$),v=p.length?`
|
|
45
|
+
`+p.map((pe,re)=>{var Re;let _e=`${re}) Type: ${pe.id}
|
|
46
|
+
`,$e=`Message: ${pe.message} (${pe.thrown})
|
|
47
|
+
`,ee=`Trace: ${(Re=pe.thrown)==null?void 0:Re.stack}
|
|
48
|
+
`;return _e+$e+ee}).join(`
|
|
49
|
+
`):void 0,$=i.state.isAudioDisabled?"disabled":ge(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),h=t.info.currentAudioStream$.getValue(),x=[];y&&x.push(`Video: ${(ae=y==null?void 0:y.codec)!=null?ae:""}`+(y!=null&&y.hdr?" (HDR)":"")),h&&x.push(`Audio: ${(X=h==null?void 0:h.codec)!=null?X:""}`+(h!=null&&h.language?` (${h.language})`:""));let I=r.currentQuality$.getValue(),T="";if(I){let pe=r.availableQualitiesFps$.getValue()[I];T=pe?`${pe}fps`:""}let N=r.httpConnectionType$.getValue(),L=(J=(ne=r.currentBuffer$.getValue())==null?void 0:ne.end)!=null?J:0,E=Math.max(L-ge(i.state.positionExact$),0),P={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ge(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":N?N+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${s}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:x.join(", "),Quality:`${u} ${I!=null?I:""} ${T}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:$,Position:`${ge(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${ge(i.playerPhase)} ${(we=r.playbackState$.getValue())!=null?we:""}`,"Player size":`${a}x${l}`,URL:window.location.href,Errors:v};return Object.entries(P).filter(([pe,re])=>re!==void 0).map(([pe,re])=>`${pe}: ${re}`).join(`
|
|
50
|
+
`)},m_=(t,e,i)=>{var H,z,j,ae;let o=t.info,{width:r,height:a}=ge(i.ui.playerSize),l={version:Ra,viewport:`${r}x${a}`,volume:Math.round(ge(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),$=o.liveBufferTime$.getValue();f&&p&&(v&&$?(l.buffer=f.end-$,l.nativeBuffer=p.end-$):(l.buffer=Math.max(f.end-ge(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-ge(i.state.positionExact$),0))),l.position=ge(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let h=o.videoBitrate$.getValue();h&&(l.bitrate=h);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let N=ge(i.vsid);typeof N=="string"&&(l.vsid=N);let L=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;L&&(l.videoCodec=L);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((j=t.info.currentVideoStream$.getValue())==null?void 0:j.hdr)&&(l.hdr=!0);let q=(ae=t.info.currentAudioStream$.getValue())==null?void 0:ae.language;return q&&(l.audioLanguage=q),l},v_=(t,e)=>Na(t,e,"mp4"),g_=t=>!t.type,h_=t=>!!t.type,__=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Nu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var pi=require("@vkontakte/videoplayer-shared/es2018"),k9=require("@vkontakte/videoplayer-core/es2018"),H1="vk_player_",b_="vk_player_prefer_traffic_saving_enabled",$_="vk_player_preferred_volume",y_="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Of="vk_player_preferred_default_quality_settings",Bf="vk_player_preferred_quality_settings_by_video",x_="vk_player_preferred_stream_language",w_="vk_player_preferred_rate",S_="vk_player_preferred_autoplay_next",Ff="vk_player_preferred_subtitles_language",C_="vk_player_user_video_prefs",T_=`${H1}preview_track_close_tooltip`,I_=t=>t>1?1:t<0?0:t,Uf=t=>pi.safeStorage.set($_,I_(t).toString(10)),Ou=()=>{let t=pi.safeStorage.get($_);return(0,pi.isNullable)(t)?void 0:I_(parseFloat(t))},zf=(t,e)=>pi.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Bu=()=>pi.safeStorage.remove(Hf),Wf=t=>{let e=pi.safeStorage.get(Hf);if((0,pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bu();return}return o},E_=(t,e)=>{e?pi.safeStorage.set(t,"true"):pi.safeStorage.remove(t)},Kf=t=>pi.safeStorage.get(t)==="true",qf=t=>E_(y_,t),P_=()=>Kf(y_),jd=t=>E_(b_,t),Qf=()=>Kf(b_),k_=()=>pi.safeStorage.get(x_),Gf=t=>pi.safeStorage.set(x_,t),Yf=()=>pi.safeStorage.get(Ff),jf=t=>{t?pi.safeStorage.set(Ff,t):pi.safeStorage.remove(Ff)},A_=t=>pi.safeStorage.set(w_,JSON.stringify({rate:t})),L_=()=>{let t=pi.safeStorage.get(w_);if((0,pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},M_=t=>{pi.safeStorage.set(S_,String(t))},V_=()=>Kf(S_),U1=()=>{let t=f=>{pi.safeStorage.set(Of,JSON.stringify(f))},e=()=>{try{let f=pi.safeStorage.get(Of);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=pi.safeStorage.get(Bf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{pi.safeStorage.set(Bf,JSON.stringify(f))},r=f=>{u(f);let p=f?i():null;if(p&&(p==null?void 0:p.videoId)===f)return{...p,appliesTo:"to-video"};p&&a();let v=e();return v?{...v,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{pi.safeStorage.remove(Bf)},l=()=>{pi.safeStorage.remove(Of)},d=(f,p="as-default")=>{f.type==="exact_quality"||p==="to-video"?o(f):t(f)},s=f=>{let p=r(f);if(p){switch(p.type){case"traffic_saving":jd(!0);break;case"exact_quality":zf(f,p.quality)}a(),l()}},u=f=>{let p=Wf(f);if(p){o({type:"exact_quality",videoId:f,quality:p});return}Qf()&&t({type:"traffic_saving",videoId:f}),jd(!1),Bu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Yf,savePreferredSubtitlesLanguage:jf}},{getPreferredQualitySettings:R_,migrateSettingsToLegacyWay:N_,savePreferredQualitySettings:Fu,savePreferredDefaultQualitySettings:A9,removePreferredQualitySettingsByVideo:L9,getPreferredDefaultQualitySettings:Hu}=U1(),z1=3,W1=3,D_=()=>{let t=pi.safeStorage.get(C_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uu=(t,e)=>{var r,a;let i=D_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},Xf=(t,e,i)=>{var l,d,s;let o=(l=D_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=K1(o);pi.safeStorage.set(C_,JSON.stringify(a))};function K1(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(W1),e.reduce((o,[r])=>(o[r]=q1(t[r]),o),{})}function q1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(z1),Object.fromEntries(e)}function O_(){pi.safeStorage.set(T_,JSON.stringify(!0))}function B_(){let t=pi.safeStorage.get(T_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var jv=require("@vkontakte/videoplayer-core/es2018");zg();var Js="var(--btn-color, #fff)";var Q1=Ce('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),G1=Ce('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var f;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,Js),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${o()}`;var l=G1(),d=C(l);{var s=p=>{var v=Q1(),$=ce(v),y=C($);oi(y,()=>e.children),S($),li(),b(p,v)},u=p=>{var v=Ae(),$=ce(v);oi($,()=>e.children),b(p,v)};R(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{Le(l,"aria-label",e.ariaLabel),Le(l,"aria-hidden",!e.ariaLabel),Le(l,"width",i()),Le(l,"height",o()),Le(l,"viewBox",a),Le(l,"fill",r()),qe(l,e.style),Le(l,"data-testid",e.testId)}),b(t,l),F()}var Ol=require("@vkontakte/videoplayer-shared/es2018");var Y1={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
|
|
51
51
|
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
52
|
-
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},
|
|
52
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},F_=Y1;var j1={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
53
53
|
so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
-
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},
|
|
55
|
-
`),o,r;for(let a=0;a<i.length;++a){if(o=
|
|
56
|
-
`).filter(i=>!!i)[0]}function oy(t){try{let e=iy(t);if(e)return e}catch(e){}return{value:F_(t),type:t&&t.name,stacktrace:{frames:[]}}}function ny(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uu=class{constructor(e){if(e&&e.dsn){let i=ty.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[oy(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(ey,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ny(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function H_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ry(){return window}var zu=class t extends Uu{constructor(e,i=ry()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>H_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>H_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Va=require("@vkontakte/videoplayer-shared/es2018");var Wu=null,Ra=class{constructor(e,i,o={}){!Wu&&e.dsn&&(this.sentryClient=new zu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Va.Subscription,this.options=e,this.context=o,Wu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:f}=l,{errorType:p,category:$}=i;if((0,Va.isNonNullable)($)&&f.includes($)||(0,Va.isNonNullable)(p)&&m.includes(p))return;if(Math.random()<=d||(0,Va.isNonNullable)($)&&u.includes($)||(0,Va.isNonNullable)(p)&&s.includes(p)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras({...a,...o});try{p&&r.captureMessage(p,i.fatal?Fl.fatal:Fl.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return Wu}};var Zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Zr||{});var Ku=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},qu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),U_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,z_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Zs=()=>!!Xd(),Qu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},W_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var Zf=require("@vkontakte/videoplayer-core/es2018"),K_=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:Zf.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:Zf.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Hl=require("@vkontakte/videoplayer-shared/es2018"),Na=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Hl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Hl.ValueSubject(!1),isEnabled$:new Hl.ValueSubject(!1),type:0};this.info.isEnabled$=new Hl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Oa(t){return t instanceof Na}var Ul=require("@vkontakte/videoplayer-shared/es2018");function em(t,e){B(e,!1);let i=ve();Mt(()=>{i.getAdmanWrapper().startPostroll()}),xo(),F()}var q_=require("@vkontakte/videoplayer-shared/es2018");var sy=Ce('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),ay=Ce('<path d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"></path>');function Pr(t,e){B(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=v(()=>o()?Xs:"currentColor"),u=v(()=>n(r)?"7":"16");Xe(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,f)=>{var p=Ae(),$=de(p);{var y=S=>{var I=sy();b(S,I)},_=S=>{var I=ay();b(S,I)};R($,S=>{n(r)?S(y):S(_,!1)})}b(m,p)},$$slots:{default:!0}}),F()}var ly=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},dy=M('<div class="skip s-17"> <!></div>'),cy=M("<div><!></div>"),uy={hash:"s-17",code:".container.s-17{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-17{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-17{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-17{color:var(--white);cursor:pointer}.skippable.s-17:hover{color:hsla(0,0%,100%,.75)}"};function tm(t,e){B(e,!0),Q(t,uy);let[i,o]=Ve(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,q_.noop),u=ve().ui.isMobile,m=v(()=>a()>0&&a()>=l());var f=cy();let p;f.__click=[ly,m,d];var $=C(f);{var y=S=>{var I=dy(),T=C(I),N=L(T);Pr(N,{direction:"right"}),w(I),D(k=>me(T,`${k!=null?k:""} `),[()=>G("skip_ads_now")]),b(S,I)},_=S=>{var I=fs();D(T=>me(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(S,I)};R($,S=>{n(m)?S(y):S(_,!1)})}w(f),D(S=>p=se(f,1,"container s-17",null,p,S),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,f),F(),o()}tt(["click"]);var py=M('<button class="go-to-site s-16"> </button>'),fy={hash:"s-16",code:"button.go-to-site.s-16{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function im(t,e){B(e,!1),Q(t,fy),xo();var i=py(),o=C(i,!0);w(i),D(r=>me(o,r),[()=>G("visit_advertiser")],Sn),b(t,i),F()}var my=M('<div class="top-gradient-mobile s-j"></div>'),vy=M('<div class="container s-j"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),gy={hash:"s-j",code:".container.s-j{height:100%;width:100%}.top-gradient-mobile.s-j{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Jd(t,e){B(e,!0),Q(t,gy);let[i,o]=Ve(),r=()=>x(H,"$canSkipAd",i),a=()=>x(W,"$adPlaybackState",i),l=()=>x(T,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(Y,"$secondsToWatchBeforeSkipAd",i),u=()=>x(I,"$isVideoEnded",i),m=g(e,"adsSlotId",3,void 0),f=g(e,"adsParams",3,void 0),p=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=ve(),S=Vt(),I=_.state.isEnded$,T=_.ui.isMobile,N=S.ads.isMobileGoToSiteButton,k=q(void 0),E=q(void 0),A=!1,W=_.ads.playbackState,H=_.ads.canSkip,z=_.ads.position,Y=_.ads.secondsToWatchBeforeSkip,ae=v(()=>r()&&a()!=="inactive"),j=v(()=>l()&&a()!=="inactive"&&N);Mt(()=>{let P=_.getAdmanWrapper();if(Ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ul.now)(),m()]}),!m()){P.onAdmanLoadingError();return}let ze=()=>{var Ee;let{width:Oe,height:De}=ge(_.ui.playerSize),it=ge(_.ui.isFullscreen),U=(Ee=p())!=null?Ee:ge(_.ui.isAutoplay),Pe=S.ads.paramsOverride;return{width:Oe,height:De,isFullscreen:it,isAutoplay:U,adsContainer:n(k),adsVideoElement:n(E),slotId:m(),params:f(),paramsOverride:Pe,duration:$(),externalApi:y()}},Te=async Oe=>{Oe&&await bo();let De=ze();await P.initAdman(De),A=!0},X=new AbortController,ie=()=>{X.abort()};return window.AdmanHTML?Te(!0).catch(()=>{P.onAdmanLoadingError()}):P.loadAdman(X.signal).then(()=>Te(!1)).catch(()=>{P.onAdmanLoadingError()}),()=>{Ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ul.now)(),m()]}),!A&&ie()}});var ne=vy(),Z=C(ne);{var we=P=>{var ze=my();b(P,ze)};R(Z,P=>{l()&&P(we)})}var ue=L(Z,2);je(ue,P=>O(E,P),()=>n(E));var re=L(ue,2);{var _e=P=>{tm(P,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return _.actions.internal.skipAd}})};R(re,P=>{n(ae)&&P(_e)})}var xe=L(re,2);{var J=P=>{em(P,{})};R(xe,P=>{u()&&P(J)})}var Re=L(xe,2);{var pe=P=>{im(P,{})};R(Re,P=>{n(j)&&P(pe)})}w(ne),je(ne,P=>O(k,P),()=>n(k)),b(t,ne),F(),o()}var en=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var hy=Ce('<path fill="#fff"></path>'),_y=Ce("<path></path><!>",1);function ec(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Xe(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=_y(),u=de(s),m=L(u);{var f=p=>{var $=hy();Me($,"d",a),b(p,$)};R(m,p=>{i()&&p(f)})}D(()=>Me(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var by=M('<div class="equalizer s-d"><div class="col s-d"></div> <div class="col s-d"></div> <div class="col s-d"></div></div>'),$y=M('<div class="live-icon s-d"><!></div>'),yy=M('<span class="text s-d"> </span>'),xy=M("<div><!> <!></div>"),wy={hash:"s-d",code:".wrapper.s-d{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-d{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-d{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-d .equalizer:where(.s-d){margin-top:-2px}.equalizer.s-d .col:where(.s-d){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-d .equalizer:where(.s-d) .col:where(.s-d){animation-play-state:running}.equalizer.s-d .col:where(.s-d):first-child{animation-name:s-d-thumb-timer-equalizer-col1;left:0}.equalizer.s-d .col:where(.s-d):nth-child(2){animation-name:s-d-thumb-timer-equalizer-col2;left:3px}.equalizer.s-d .col:where(.s-d):nth-child(3){animation-name:s-d-thumb-timer-equalizer-col3;left:6px}.live-icon.s-d{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-d-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-d-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-d-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-d{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){Q(t,wy);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=xy();let l;var d=C(a);{var s=p=>{var $=by();b(p,$)};R(d,p=>{i()&&p(s)})}var u=L(d,2);{var m=p=>{var $=$y(),y=C($);ec(y,{isActive:!0}),w($),b(p,$)},f=p=>{var $=yy(),y=C($,!0);w($),D(()=>me(y,e.time)),b(p,$)};R(u,p=>{o()?p(m):p(f,!1)})}w(a),D(p=>l=se(a,1,"wrapper s-d",null,l,p),[()=>({live:o(),playing:r()})]),b(t,a)}var zl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Sy=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Cy={hash:"s-i",code:".thumb-timer.s-i{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ic(t,e){B(e,!0),Q(t,Cy);let[i,o]=Ve(),r=()=>x(m,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Vt(),u=v(()=>en(e.duration-e.position)),m=le(!1);var f=Sy();let p;var $=C(f);tc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(f),Is(f,()=>zl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),D(y=>p=se(f,1,"thumb-timer s-i",null,p,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,f),F(),o()}var Wl=t=>{if(!navigator.clipboard){Q_(t);return}navigator.clipboard.writeText(t).catch(()=>Q_(t))};function Q_(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var ib=require("@vkontakte/videoplayer-core/es2018");var nm=require("@vkontakte/videoplayer-core/es2018");var om="focus-hidden";var Ar=t=>{t.stopPropagation(),t.preventDefault()},rm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(om)},Iy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Ey=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ky=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Py=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},G_=t=>t.code==="Escape",Ay=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Y_=t=>{ky(t)?(Ar(t),Ey(t.target)):Py(t)&&(Ar(t),Iy(t.target))},ta=t=>!nm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||nm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Kl=async(t,e,i)=>{await bo(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(await bo(),i.set(!1),t.focus())},j_=async(t,e,i)=>{await bo(),t&&!e&&ge(i)&&(i.set(!1),t.focus())},nc=async(t,e,i,o=!1)=>{if(await bo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(om,!i),a==null||a.focus()}},X_=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yu=(t,e)=>{Y_(t),rm(t.target),G_(t)&&(Ar(t),e())},ju=async(t,e)=>{oc(t,["ArrowRight"])&&(Ar(t),e())},Z_=async(t,e,i)=>{if(Y_(t),Ay(t)){Ar(t),e();return}G_(t)&&(Ar(t),i())},ql=(t,e)=>{oc(t)&&(Ar(t),e())},J_=(t,e,i)=>{if(oc(t))Ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Ar(t);return}o==="ArrowRight"&&!e&&(i(!0),Ar(t))}},eb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},tb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Fa=require("@vkontakte/videoplayer-shared/es2018");var Jr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var sm=require("@vkontakte/videoplayer-shared/es2018");var My=(t,e)=>{ql(t,()=>e())},Vy=M('<li class="item s-1t" role="menuitem" tabindex="0"> </li>'),Ry={hash:"s-1t",code:".item.s-1t{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1t:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function am(t,e){B(e,!0),Q(t,Ry);let i=g(e,"onClick",3,sm.noop),o=g(e,"closeContextMenu",3,sm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Vy();a.__click=r,a.__keydown=[My,r];var l=C(a,!0);w(a),D(()=>{var d;Me(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Me(a,"data-testid",e.id),me(l,e.label)}),b(t,a),F()}tt(["click","keydown"]);var Ba=(t,e)=>t.weight-e.weight;var Ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Ql||{});var Ny=(t,e)=>{Yu(t,e)},Oy=t=>{t.preventDefault()},Dy=M('<ul role="menu" class="s-1a"></ul>'),By={hash:"s-1a",code:"ul.s-1a{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function lm(t,e){B(e,!0),Q(t,By);let[i,o]=Ve(),r=()=>x(we,"$playerPhase",i),a=()=>x(ae,"$isLive$",i),l=()=>x(ue,"$isPiPEnabled$",i),d=()=>x(Y,"$chromecastState$",i),s=()=>x(re,"$pictureInPictureApiIsActive$",i),u=()=>x(Z,"$isLooped$",i),m=()=>x(j,"$positionExact$",i),f=()=>x(W,"$additionalContextMenuItems$",i),p=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),S=q(0),I=q(0),T=ve(),{pictureInPicture$:N}=wo(),k=Vt(),E=T.ui.contextMenu.visible$,A=T.ui.debugPanelVisible,W=T.ui.additionalContextMenuItems$,H=T.ui.t,z=T.actions.internal.togglePictureInPicture,Y=T.state.chromecastState$,ae=T.state.isLive$,j=T.state.positionExact$,ne=T.state.isInteractive,Z=T.state.looped$,we=T.playerPhase,{isEnabled$:ue,isActive$:re}=N,_e=v(()=>r()==="video"),xe=v(()=>!!a()&&n(_e)),J=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Re=v(()=>{var ce;return k.features.copyVideoLink&&((ce=T.callbacks)==null?void 0:ce.onCopyVideoLink)}),pe=v(()=>n(Re)&&!n(J)&&!ne&&!n(xe)),P=v(()=>{var ce;return!!((ce=T.callbacks)!=null&&ce.onCopyEmbedCodeClicked)}),ze=v(()=>l()&&d()!==ib.ChromecastState.CONNECTED&&!ne&&n(_e)),Te=v(()=>!ne&&!n(J)&&!n(xe)),X=v(()=>k.features.videoRotate&&!ne&&!n(J)),ie=v(()=>k.showSupport&&!s()),Oe=v(()=>k.features.saveTraceInfoToFile),De=()=>{var ce;E.set(!1),(ce=e.returnFocus)==null||ce.call(e)},it=(ce,Ue)=>{if(!_()||!y())return;let Ge=_().getBoundingClientRect(),lt=y().getBoundingClientRect();O(S,ce-lt.left),O(I,Ue-lt.top),n(S)+Ge.width>lt.width&&O(S,lt.width-Ge.width),n(I)+Ge.height>lt.height&&O(I,lt.height-Ge.height),O(S,Math.max(n(S),0),!0),O(I,Math.max(n(I),0),!0)};Ne(()=>{(async()=>{if(_()&&y()){await bo();let{top:Ue,left:Ge,bottom:lt,right:Ft}=$(),Ht=Ge!=null?Ge:0,ii=Ue!=null?Ue:0,bi=_().getBoundingClientRect();(0,Fa.isNullable)(Ge)&&!(0,Fa.isNullable)(Ft)&&(Ht=Ft-bi.width),(0,Fa.isNullable)(Ue)&&!(0,Fa.isNullable)(lt)&&(ii=lt-bi.height),Ht=Math.max(Ht,0),ii=Math.max(ii,0),it(Ht,ii)}})()});let U=()=>{T.actions.internal.videoRotate()},Pe=()=>{(0,Fa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ee=()=>{let ce=T.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ue=new Blob([...ce],{type:"plain/text"}),Ge=window.URL.createObjectURL(Ue);Ma(Ge,"vk_player_debug_info","txt")}else Wl(T.actions.internal.getDebugTextData())},He=()=>{let ce=T.actions.internal.getTraceTextData(),Ue=new Blob([...ce],{type:"application/json"}),Ge=window.URL.createObjectURL(Ue);Ma(Ge,"vk_player_trace_info","json")},Ze=()=>{A.set(!0)},ye=async()=>{var ce;try{z()}finally{(ce=e.returnFocus)==null||ce.call(e)}},ke=()=>{T.actions.internal.setLooped(!u())},Be=()=>{var ce,Ue;if(n(P)){let Ge=(Ue=(ce=T.callbacks)==null?void 0:ce.onCopyEmbedCodeClicked)==null?void 0:Ue.call(ce);Ge&&Wl(Ge)}},Dt=(ce=!1)=>{var Ue,Ge;if((Ue=T.callbacks)!=null&&Ue.onCopyVideoLink){let lt=(Ge=T.callbacks)==null?void 0:Ge.onCopyVideoLink(ce,m());lt&&Wl(lt)}},ft=v(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Bt=v(()=>n(Re)?{id:"copy-link",weight:Jr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>Dt()}:void 0),at=v(()=>n(pe)?{id:"copy-link-timestamp",weight:Jr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>Dt(!0)}:void 0),Ct=v(()=>n(P)?{id:"copy-embed-code",weight:Jr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Be}:void 0),ei=v(()=>n(ze)?{id:"pip",weight:Jr.pip,label:s()?H("menu_pip_close"):H("menu_pip"),onClick:ye}:void 0),Rt=v(()=>n(Te)?{id:"video-loop",weight:Jr["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),$e=v(()=>n(X)?{id:"rotate",weight:Jr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:U}:void 0),be=v(()=>n(ie)?{id:"report",weight:Jr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Pe}:void 0),ee=v(()=>({id:"save-debug",weight:Jr["save-debug"],label:n(ft),onClick:Ee})),ot=v(()=>n(Oe)?{id:"save-trace",weight:Jr["save-trace"],label:H("menu_save_debug"),onClick:He}:void 0),fe=v(()=>({id:"debug-info",weight:Jr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Ze})),Le=v(()=>[n(Bt),n(at),n(Ct),n(ei),n(Rt),n($e),n(be),n(ee),n(ot),n(fe),...f()].filter(ce=>!!ce).sort(Ba));var $t=Ae(),Pt=de($t);{var ut=ce=>{var Ue=Dy();Ue.__contextmenu=[Oy],Ue.__keydown=[Ny,De],yi(Ue,21,()=>n(Le),Ge=>Ge.id,(Ge,lt)=>{am(Ge,{get id(){return n(lt).id},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},get onClick(){return n(lt).onClick},closeContextMenu:De})}),w(Ue),je(Ue,Ge=>_(Ge),()=>_()),D(()=>{var Ge,lt;return qe(Ue,`top: ${(Ge=n(I))!=null?Ge:""}px; left: ${(lt=n(S))!=null?lt:""}px;`)}),b(ce,Ue)};R(Pt,ce=>{p()&&ce(ut)})}b(t,$t),F(),o()}tt(["contextmenu","keydown"]);var Xu=class{constructor(e){this.value=e,this.next=null}};var Gl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Xu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Fy=M('<div class="container s-15"><canvas class="s-15"></canvas></div>'),Hy={hash:"s-15",code:".container.s-15{display:inline-block;height:16px;width:120px}canvas.s-15{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){B(e,!0),Q(t,Hy);let i=g(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Mt(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(p,$,y,_,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,y,_,S)}Ne(()=>{let p="";if(n(r)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let S=y*s,I=$>0?a*(i()[_]/$):0;u(n(r),S,0,s,I),p=I+" "+p,y--}}});var m=Fy(),f=C(m);je(f,p=>O(o,p),()=>n(o)),w(m),b(t,m),F()}var dm=require("@vkontakte/videoplayer-shared/es2018");var Uy=(t,e)=>{t.stopPropagation(),dm.safeStorage.remove(Wd),e.set(!1)},zy=M('<div class="s-r"><div class="s-r">Video id</div> <span> </span></div>'),Wy=M('<div class="s-r"><div class="s-r">VSID</div> <span> </span></div>'),Ky=M('<div class="s-r"><div class="s-r">Provider</div> <span> </span></div>'),qy=M('<div class="s-r"><div class="s-r">Streams</div> <span> </span></div>'),Qy=M('<div class="s-r"><div class="s-r">Viewport</div> <span> </span></div>'),Gy=M('<div class="s-r"><div class="s-r">Video size</div> <span> </span></div>'),Yy=M('<div class="s-r"><div class="s-r">CDN host</div> <span> </span></div>'),jy=M('<div class="s-r"><div class="s-r">Volume</div> <span> </span></div>'),Xy=M('<div class="s-r"><div class="s-r">Position</div> <span> </span></div>'),Zy=M('<div class="s-r"><div class="s-r">Buffer</div> <span> </span></div>'),Jy=M('<div class="s-r"><div class="s-r">Live latency</div> <span> </span></div>'),e0=M('<div class="s-r"><div class="s-r">Segment</div> <span> </span></div>'),t0=M('<div class="s-r"><div class="s-r">Network</div> <!> <span> </span></div>'),i0=M('<div class="s-r"><div class="s-r">V bitrate</div> <!> <span> </span></div>'),o0=M('<div role="region"><button class="close s-r" title="закрыть">[x]</button> <div class="content s-r"><div class="s-r"><div class="s-r">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-r"><div class="s-r">Dropped</div> <span> </span></div> <!> <!> <div class="s-r"><div class="s-r">FPS</div> <!> <span> </span></div></div></div>'),n0={hash:"s-r",code:".container.s-r{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-r{left:16px;top:16px}button.close.s-r{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-r{padding:5px}.content.s-r>div:where(.s-r)>div:where(.s-r){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){B(e,!0),Q(t,n0);let[i,o]=Ve(),r=()=>x(d,"$isMobile",i),a=ve(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(ai(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),f=q(0),p=q(0),$=new Gl(60),y=new Gl(60),_=new Gl(60),S=q(ai([])),I=q(ai([])),T=q(ai([])),N=G("aria_label_debug_panel");Mt(()=>{dm.safeStorage.set(Wd,"true"),a.actions.internal.startLogging(),u&&(O(f,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let $e=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){O(f,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;O(p,ee-n(m)),O(m,ee,!0),$.push(n(p)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),O(S,$.getValuesFromBottom(),!0),O(I,y.getValuesFromBottom(),!0),O(T,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval($e),be&&clearInterval(be)}});var k=o0();let E;var A=C(k);A.__click=[Uy,l];var W=L(A,2),H=C(W),z=L(C(H),2),Y=C(z,!0);w(z),w(H);var ae=L(H,2);{var j=$e=>{var be=zy(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).id)),b($e,be)};R(ae,$e=>{n(s).id&&$e(j)})}var ne=L(ae,2);{var Z=$e=>{var be=Wy(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).vsid)),b($e,be)};R(ne,$e=>{n(s).vsid&&$e(Z)})}var we=L(ne,2);{var ue=$e=>{var be=Ky(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).provider)),b($e,be)};R(we,$e=>{n(s).provider&&$e(ue)})}var re=L(we,2);{var _e=$e=>{var be=qy(),ee=L(C(be),2),ot=C(ee);w(ee),w(be),D(()=>{var fe,Le;return me(ot,`Video: ${(fe=n(s).videoCodec||"")!=null?fe:""} ${n(s).hdr?"(HDR)":""}
|
|
54
|
+
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},H_=j1;var As=new Map;As.set(Ol.InterfaceLanguage.EN,H_);As.set(Ol.InterfaceLanguage.RU,F_);var U_=new Map,Zf=({language:t,pack:e,fallback:i})=>{if(As.has(t)){let o=As.get(t);As.set(t,{...o,...e})}else As.set(t,e);U_.set(t,i)},Jf=t=>As.has(t),em=(t,e,i,o)=>{var l;let r=As.get(t),a=r==null?void 0:r[e];if((0,Ol.isNullable)(a)){let d=(l=U_.get(t))!=null?l:o,s=d?As.get(d):void 0;a=s==null?void 0:s[e]}return(0,Ol.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=ge(i),r=Mt();return em(o,t,e,r.defaultLanguage)};var X1=Ce('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function Xd(t,e){B(e,!1);let i=G("video360");xo(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=X1();b(o,a)},$$slots:{default:!0}}),F()}var rV=require("@vkontakte/videoplayer-core/es2018");var Bl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Bl||(Bl={}));var Z1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,J1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,ey=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zu="?",ty="X-Sentry-Auth",iy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oy(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let a=0;a<i.length;++a){if(o=Z1.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||zu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=ey.exec(i[a]))r={filename:o[2],function:o[1]||zu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=J1.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||zu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=zu),e.push(r)}return e.length?{value:z_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function z_(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function ny(t){try{let e=oy(t);if(e)return e}catch(e){}return{value:z_(t),type:t&&t.name,stacktrace:{frames:[]}}}function ry(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Wu=class{constructor(e){if(e&&e.dsn){let i=iy.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[ny(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(ty,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ry(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function W_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function sy(){return window}var Ku=class t extends Wu{constructor(e,i=sy()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>W_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>W_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Da=require("@vkontakte/videoplayer-shared/es2018");var qu=null,Oa=class{constructor(e,i,o={}){!qu&&e.dsn&&(this.sentryClient=new Ku({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Da.Subscription,this.options=e,this.context=o,qu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:v,category:$}=i;if((0,Da.isNonNullable)($)&&p.includes($)||(0,Da.isNonNullable)(v)&&f.includes(v))return;if(Math.random()<=d||(0,Da.isNonNullable)($)&&u.includes($)||(0,Da.isNonNullable)(v)&&s.includes(v)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras({...a,...o});try{v&&r.captureMessage(v,i.fatal?Bl.fatal:Bl.error),r.report(e)}catch(h){console.error(h)}}}static getInstance(){return qu}};var Jr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Jr||{});var Qu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),K_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,q_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Zd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ea=()=>!!Zd(),Yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Q_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tm=require("@vkontakte/videoplayer-core/es2018"),G_=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:tm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:tm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Fl=require("@vkontakte/videoplayer-shared/es2018"),Ba=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Fl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Fl.ValueSubject(!1),isEnabled$:new Fl.ValueSubject(!1),type:0};this.info.isEnabled$=new Fl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Fa(t){return t instanceof Ba}var Hl=require("@vkontakte/videoplayer-shared/es2018");function om(t,e){B(e,!1);let i=ve();Lt(()=>{i.getAdmanWrapper().startPostroll()}),xo(),F()}var Y_=require("@vkontakte/videoplayer-shared/es2018");var ay=Ce('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),ly=Ce('<path d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"></path>');function Mr(t,e){B(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),l=m(()=>`chevron-icon--${i()}`),d=m(()=>(()=>{let f="";return n(a)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),s=m(()=>o()?Js:"currentColor"),u=m(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(f,p)=>{var v=Ae(),$=ce(v);{var y=x=>{var I=ay();b(x,I)},h=x=>{var I=ly();b(x,I)};R($,x=>{n(r)?x(y):x(h,!1)})}b(f,v)},$$slots:{default:!0}}),F()}var dy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},cy=M('<div class="skip s-1i"> <!></div>'),uy=M("<div><!></div>"),py={hash:"s-1i",code:".container.s-1i{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-1i{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1i{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1i{color:var(--white);cursor:pointer}.skippable.s-1i:hover{color:hsla(0,0%,100%,.75)}"};function nm(t,e){B(e,!0),Q(t,py);let[i,o]=Ve(),r=()=>w(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,Y_.noop),u=ve().ui.isMobile,f=m(()=>a()>0&&a()>=l());var p=uy();let v;p.__click=[dy,f,d];var $=C(p);{var y=x=>{var I=cy(),T=C(I),N=A(T);Mr(N,{direction:"right"}),S(I),O(L=>me(T,`${L!=null?L:""} `),[()=>G("skip_ads_now")]),b(x,I)},h=x=>{var I=fs();O(T=>me(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};R($,x=>{n(f)?x(y):x(h,!1)})}S(p),O(x=>v=se(p,1,"container s-1i",null,v,x),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,p),F(),o()}Ye(["click"]);var fy=M('<button class="go-to-site s-1h"> </button>'),my={hash:"s-1h",code:"button.go-to-site.s-1h{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function rm(t,e){B(e,!1),Q(t,my),xo();var i=fy(),o=C(i,!0);S(i),O(r=>me(o,r),[()=>G("visit_advertiser")],Sn),b(t,i),F()}var vy=M('<div class="top-gradient-mobile s-k"></div>'),gy=M('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),hy={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function ec(t,e){B(e,!0),Q(t,hy);let[i,o]=Ve(),r=()=>w(H,"$canSkipAd",i),a=()=>w(q,"$adPlaybackState",i),l=()=>w(T,"$isMobile",i),d=()=>w(z,"$adPosition",i),s=()=>w(j,"$secondsToWatchBeforeSkipAd",i),u=()=>w(I,"$isVideoEnded",i),f=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),v=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),h=ve(),x=Mt(),I=h.state.isEnded$,T=h.ui.isMobile,N=x.ads.isMobileGoToSiteButton,L=K(void 0),E=K(void 0),P=!1,q=h.ads.playbackState,H=h.ads.canSkip,z=h.ads.position,j=h.ads.secondsToWatchBeforeSkip,ae=m(()=>r()&&a()!=="inactive"),X=m(()=>l()&&a()!=="inactive"&&N);Lt(()=>{let k=h.getAdmanWrapper();if(Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Hl.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let We=()=>{var Pe;let{width:De,height:Oe}=ge(h.ui.playerSize),it=ge(h.ui.isFullscreen),U=(Pe=v())!=null?Pe:ge(h.ui.isAutoplay),ke=x.ads.paramsOverride;return{width:De,height:Oe,isFullscreen:it,isAutoplay:U,adsContainer:n(L),adsVideoElement:n(E),slotId:f(),params:p(),paramsOverride:ke,duration:$(),externalApi:y()}},Te=async De=>{De&&await go();let Oe=We();await k.initAdman(Oe),P=!0},Z=new AbortController,ie=()=>{Z.abort()};return window.AdmanHTML?Te(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(Z.signal).then(()=>Te(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Hl.now)(),f()]}),!P&&ie()}});var ne=gy(),J=C(ne);{var we=k=>{var We=vy();b(k,We)};R(J,k=>{l()&&k(we)})}var pe=A(J,2);Xe(pe,k=>D(E,k),()=>n(E));var re=A(pe,2);{var _e=k=>{nm(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return h.actions.internal.skipAd}})};R(re,k=>{n(ae)&&k(_e)})}var $e=A(re,2);{var ee=k=>{om(k,{})};R($e,k=>{u()&&k(ee)})}var Re=A($e,2);{var fe=k=>{rm(k,{})};R(Re,k=>{n(X)&&k(fe)})}S(ne),Xe(ne,k=>D(L,k),()=>n(L)),b(t,ne),F(),o()}var Jo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var _y=Ce('<path fill="#fff"></path>'),by=Ce("<path></path><!>",1);function tc(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"live-active-icon":"live-icon"),r=m(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=by(),u=ce(s),f=A(u);{var p=v=>{var $=_y();Le($,"d",a),b(v,$)};R(f,v=>{i()&&v(p)})}O(()=>Le(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var $y=M('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),yy=M('<div class="live-icon s-e"><!></div>'),xy=M('<span class="text s-e"> </span>'),wy=M("<div><!> <!></div>"),Sy={hash:"s-e",code:".wrapper.s-e{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-e-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-e-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function ic(t,e){Q(t,Sy);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=wy();let l;var d=C(a);{var s=v=>{var $=$y();b(v,$)};R(d,v=>{i()&&v(s)})}var u=A(d,2);{var f=v=>{var $=yy(),y=C($);tc(y,{isActive:!0}),S($),b(v,$)},p=v=>{var $=xy(),y=C($,!0);S($),O(()=>me(y,e.time)),b(v,$)};R(u,v=>{o()?v(f):v(p,!1)})}S(a),O(v=>l=se(a,1,"wrapper s-e",null,l,v),[()=>({live:o(),playing:r()})]),b(t,a)}var Ul=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Cy=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Ty={hash:"s-i",code:".thumb-timer.s-i{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function oc(t,e){B(e,!0),Q(t,Ty);let[i,o]=Ve(),r=()=>w(f,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Mt(),u=m(()=>Jo(e.duration-e.position)),f=de(!1);var p=Cy();let v;var $=C(p);ic($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),ks(p,()=>Ul(a()&&s.features.usePerformanceFix,f,s.disableInvisibleComponentsTimeout)),O(y=>v=se(p,1,"thumb-timer s-i",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var zl=t=>{if(!navigator.clipboard){j_(t);return}navigator.clipboard.writeText(t).catch(()=>j_(t))};function j_(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var rb=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018");var sm="focus-hidden";var Vr=t=>{t.stopPropagation(),t.preventDefault()},lm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(sm)},Ey=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Py=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ky=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ay=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},X_=t=>t.code==="Escape",Ly=t=>t.code==="ArrowLeft",nc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Z_=t=>{ky(t)?(Vr(t),Py(t.target)):Ay(t)&&(Vr(t),Ey(t.target))},oa=t=>!am.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||am.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Wl=async(t,e,i)=>{await go(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(await go(),i.set(!1),t.focus())},J_=async(t,e,i)=>{await go(),t&&!e&&ge(i)&&(i.set(!1),t.focus())},rc=async(t,e,i,o=!1)=>{if(await go(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(sm,!i),a==null||a.focus()}},eb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Xu=(t,e)=>{Z_(t),lm(t.target),X_(t)&&(Vr(t),e())},Zu=async(t,e)=>{nc(t,["ArrowRight"])&&(Vr(t),e())},tb=async(t,e,i)=>{if(Z_(t),Ly(t)){Vr(t),e();return}X_(t)&&(Vr(t),i())},Kl=(t,e)=>{nc(t)&&(Vr(t),e())},ib=(t,e,i)=>{if(nc(t))Vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Vr(t);return}o==="ArrowRight"&&!e&&(i(!0),Vr(t))}},ob=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},nb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var za=require("@vkontakte/videoplayer-shared/es2018");var es={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var dm=require("@vkontakte/videoplayer-shared/es2018");var Vy=(t,e)=>{Kl(t,()=>e())},Ry=M('<li class="item s-1k" role="menuitem" tabindex="0"> </li>'),Ny={hash:"s-1k",code:".item.s-1k{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1k:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function cm(t,e){B(e,!0),Q(t,Ny);let i=g(e,"onClick",3,dm.noop),o=g(e,"closeContextMenu",3,dm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Ry();a.__click=r,a.__keydown=[Vy,r];var l=C(a,!0);S(a),O(()=>{var d;Le(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Le(a,"data-testid",e.id),me(l,e.label)}),b(t,a),F()}Ye(["click","keydown"]);var Ua=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var Dy=(t,e)=>{Xu(t,e)},Oy=t=>{t.preventDefault()},By=M('<ul role="menu" class="s-u"></ul>'),Fy={hash:"s-u",code:"ul.s-u{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function um(t,e){B(e,!0),Q(t,Fy);let[i,o]=Ve(),r=()=>w(we,"$playerPhase",i),a=()=>w(ae,"$isLive$",i),l=()=>w(pe,"$isPiPEnabled$",i),d=()=>w(j,"$chromecastState$",i),s=()=>w(re,"$pictureInPictureApiIsActive$",i),u=()=>w(J,"$isLooped$",i),f=()=>w(X,"$positionExact$",i),p=()=>w(q,"$additionalContextMenuItems$",i),v=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),h=g(e,"menuElementRef",15,void 0),x=K(0),I=K(0),T=ve(),{pictureInPicture$:N}=wo(),L=Mt(),E=T.ui.contextMenu.visible$,P=T.ui.debugPanelVisible,q=T.ui.additionalContextMenuItems$,H=T.ui.t,z=T.actions.internal.togglePictureInPicture,j=T.state.chromecastState$,ae=T.state.isLive$,X=T.state.positionExact$,ne=T.state.isInteractive,J=T.state.looped$,we=T.playerPhase,{isEnabled$:pe,isActive$:re}=N,_e=m(()=>r()==="video"),$e=m(()=>!!a()&&n(_e)),ee=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Re=m(()=>{var ue;return L.features.copyVideoLink&&((ue=T.callbacks)==null?void 0:ue.onCopyVideoLink)}),fe=m(()=>n(Re)&&!n(ee)&&!ne&&!n($e)),k=m(()=>{var ue;return!!((ue=T.callbacks)!=null&&ue.onCopyEmbedCodeClicked)}),We=m(()=>l()&&d()!==rb.ChromecastState.CONNECTED&&!ne&&n(_e)),Te=m(()=>!ne&&!n(ee)&&!n($e)),Z=m(()=>L.features.videoRotate&&!ne&&!n(ee)),ie=m(()=>L.showSupport&&!s()),De=m(()=>L.features.saveTraceInfoToFile),Oe=()=>{var ue;E.set(!1),(ue=e.returnFocus)==null||ue.call(e)},it=(ue,ze)=>{if(!h()||!y())return;let Ge=h().getBoundingClientRect(),ct=y().getBoundingClientRect();D(x,ue-ct.left),D(I,ze-ct.top),n(x)+Ge.width>ct.width&&D(x,ct.width-Ge.width),n(I)+Ge.height>ct.height&&D(I,ct.height-Ge.height),D(x,Math.max(n(x),0),!0),D(I,Math.max(n(I),0),!0)};Ne(()=>{(async()=>{if(h()&&y()){await go();let{top:ze,left:Ge,bottom:ct,right:Ht}=$(),Ut=Ge!=null?Ge:0,ii=ze!=null?ze:0,hi=h().getBoundingClientRect();(0,za.isNullable)(Ge)&&!(0,za.isNullable)(Ht)&&(Ut=Ht-hi.width),(0,za.isNullable)(ze)&&!(0,za.isNullable)(ct)&&(ii=ct-hi.height),Ut=Math.max(Ut,0),ii=Math.max(ii,0),it(Ut,ii)}})()});let U=()=>{T.actions.internal.videoRotate()},ke=()=>{(0,za.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Pe=()=>{let ue=T.actions.internal.getDebugTextData();if(L.features.saveDebugInfoToFile){let ze=new Blob([...ue],{type:"plain/text"}),Ge=window.URL.createObjectURL(ze);Na(Ge,"vk_player_debug_info","txt")}else zl(T.actions.internal.getDebugTextData())},Ue=()=>{let ue=T.actions.internal.getTraceTextData(),ze=new Blob([...ue],{type:"application/json"}),Ge=window.URL.createObjectURL(ze);Na(Ge,"vk_player_trace_info","json")},tt=()=>{P.set(!0)},ye=async()=>{var ue;try{z()}finally{(ue=e.returnFocus)==null||ue.call(e)}},Ie=()=>{T.actions.internal.setLooped(!u())},Be=()=>{var ue,ze;if(n(k)){let Ge=(ze=(ue=T.callbacks)==null?void 0:ue.onCopyEmbedCodeClicked)==null?void 0:ze.call(ue);Ge&&zl(Ge)}},Nt=(ue=!1)=>{var ze,Ge;if((ze=T.callbacks)!=null&&ze.onCopyVideoLink){let ct=(Ge=T.callbacks)==null?void 0:Ge.onCopyVideoLink(ue,f());ct&&zl(ct)}},mt=m(()=>L.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Bt=m(()=>n(Re)?{id:"copy-link",weight:es["copy-link"],label:H("menu_copy_video_link"),onClick:()=>Nt()}:void 0),dt=m(()=>n(fe)?{id:"copy-link-timestamp",weight:es["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>Nt(!0)}:void 0),wt=m(()=>n(k)?{id:"copy-embed-code",weight:es["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Be}:void 0),ti=m(()=>n(We)?{id:"pip",weight:es.pip,label:s()?H("menu_pip_close"):H("menu_pip"),onClick:ye}:void 0),Pt=m(()=>n(Te)?{id:"video-loop",weight:es["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ie}:void 0),Dt=m(()=>n(Z)?{id:"rotate",weight:es.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:U}:void 0),Ft=m(()=>n(ie)?{id:"report",weight:es.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ke}:void 0),Y=m(()=>({id:"save-debug",weight:es["save-debug"],label:n(mt),onClick:Pe})),Se=m(()=>n(De)?{id:"save-trace",weight:es["save-trace"],label:H("menu_save_debug"),onClick:Ue}:void 0),le=m(()=>({id:"debug-info",weight:es["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:tt})),he=m(()=>[n(Bt),n(dt),n(wt),n(ti),n(Pt),n(Dt),n(Ft),n(Y),n(Se),n(le),...p()].filter(ue=>!!ue).sort(Ua));var Me=Ae(),rt=ce(Me);{var ft=ue=>{var ze=By();ze.__contextmenu=[Oy],ze.__keydown=[Dy,Oe],bi(ze,21,()=>n(he),Ge=>Ge.id,(Ge,ct)=>{cm(Ge,{get id(){return n(ct).id},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get onClick(){return n(ct).onClick},closeContextMenu:Oe})}),S(ze),Xe(ze,Ge=>h(Ge),()=>h()),O(()=>{var Ge,ct;return qe(ze,`top: ${(Ge=n(I))!=null?Ge:""}px; left: ${(ct=n(x))!=null?ct:""}px;`)}),b(ue,ze)};R(rt,ue=>{v()&&ue(ft)})}b(t,Me),F(),o()}Ye(["contextmenu","keydown"]);var Ju=class{constructor(e){this.value=e,this.next=null}};var Ql=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ju(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Hy=M('<div class="container s-1e"><canvas class="s-1e"></canvas></div>'),Uy={hash:"s-1e",code:".container.s-1e{display:inline-block;height:16px;width:120px}canvas.s-1e{margin-top:2px;transform:scaleY(-1)}"};function sc(t,e){B(e,!0),Q(t,Uy);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Lt(()=>{n(o).width=l,n(o).height=a,D(r,n(o).getContext("2d"),!0)});function u(v,$,y,h,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect($,y,h,x)}Ne(()=>{let v="";if(n(r)){let $=i()[0];for(let h=1;h<i().length;h++)i()[h]>$&&($=i()[h]);n(r).clearRect(0,0,l,a);let y=d-1;for(let h=i().length-1;h>=0;h--){let x=y*s,I=$>0?a*(i()[h]/$):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var f=Hy(),p=C(f);Xe(p,v=>D(o,v),()=>n(o)),S(f),b(t,f),F()}var pm=require("@vkontakte/videoplayer-shared/es2018");var zy=(t,e)=>{t.stopPropagation(),pm.safeStorage.remove(Kd),e.set(!1)},Wy=M('<div class="s-j"><div class="s-j">Video id</div> <span> </span></div>'),Ky=M('<div class="s-j"><div class="s-j">VSID</div> <span> </span></div>'),qy=M('<div class="s-j"><div class="s-j">Provider</div> <span> </span></div>'),Qy=M('<div class="s-j"><div class="s-j">Streams</div> <span> </span></div>'),Gy=M('<div class="s-j"><div class="s-j">Viewport</div> <span> </span></div>'),Yy=M('<div class="s-j"><div class="s-j">Video size</div> <span> </span></div>'),jy=M('<div class="s-j"><div class="s-j">CDN host</div> <span> </span></div>'),Xy=M('<div class="s-j"><div class="s-j">Volume</div> <span> </span></div>'),Zy=M('<div class="s-j"><div class="s-j">Position</div> <span> </span></div>'),Jy=M('<div class="s-j"><div class="s-j">Buffer</div> <span> </span></div>'),e0=M('<div class="s-j"><div class="s-j">Nbuffer</div> <span> </span></div>'),t0=M('<div class="s-j"><div class="s-j">Live latency</div> <span> </span></div>'),i0=M('<div class="s-j"><div class="s-j">Segment</div> <span> </span></div>'),o0=M('<div class="s-j"><div class="s-j">Network</div> <!> <span> </span></div>'),n0=M('<div class="s-j"><div class="s-j">V bitrate</div> <!> <span> </span></div>'),r0=M('<div role="region"><button class="close s-j" title="закрыть">[x]</button> <div class="content s-j"><div class="s-j"><div class="s-j">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-j"><div class="s-j">Dropped</div> <span> </span></div> <!> <!> <div class="s-j"><div class="s-j">FPS</div> <!> <span> </span></div></div></div>'),s0={hash:"s-j",code:".container.s-j{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-j{left:16px;top:16px}button.close.s-j{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-j{padding:5px}.content.s-j>div:where(.s-j)>div:where(.s-j){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function ac(t,e){B(e,!0),Q(t,s0);let[i,o]=Ve(),r=()=>w(d,"$isMobile",i),a=ve(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ai(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=K(0),p=K(0),v=K(0),$=new Ql(60),y=new Ql(60),h=new Ql(60),x=K(ai([])),I=K(ai([])),T=K(ai([])),N=G("aria_label_debug_panel");Lt(()=>{pm.safeStorage.set(Kd,"true"),a.actions.internal.startLogging(),u&&(D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),D(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{D(s,a.actions.internal.getDebugPanelData(),!0)},500),Se;return u&&(Se=window.setInterval(()=>{if(u){D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;D(v,le-n(f)),D(f,le,!0),$.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&h.push(n(s).bitrate),D(x,$.getValuesFromBottom(),!0),D(I,y.getValuesFromBottom(),!0),D(T,h.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Y),Se&&clearInterval(Se)}});var L=r0();let E;var P=C(L);P.__click=[zy,l];var q=A(P,2),H=C(q),z=A(C(H),2),j=C(z,!0);S(z),S(H);var ae=A(H,2);{var X=Y=>{var Se=Wy(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).id)),b(Y,Se)};R(ae,Y=>{n(s).id&&Y(X)})}var ne=A(ae,2);{var J=Y=>{var Se=Ky(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).vsid)),b(Y,Se)};R(ne,Y=>{n(s).vsid&&Y(J)})}var we=A(ne,2);{var pe=Y=>{var Se=qy(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).provider)),b(Y,Se)};R(we,Y=>{n(s).provider&&Y(pe)})}var re=A(we,2);{var _e=Y=>{var Se=Qy(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(()=>{var Me,rt;return me(he,`Video: ${(Me=n(s).videoCodec||"")!=null?Me:""} ${n(s).hdr?"(HDR)":""}
|
|
57
57
|
&
|
|
58
|
-
Audio: ${(Le=n(s).audioCodec||"")!=null?Le:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b($e,be)};R(re,$e=>{(n(s).videoCodec||n(s).audioCodec)&&$e(_e)})}var xe=L(re,2);{var J=$e=>{var be=Qy(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).viewport)),b($e,be)};R(xe,$e=>{n(s).viewport&&$e(J)})}var Re=L(xe,2);{var pe=$e=>{var be=Gy(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).videoSize)),b($e,be)};R(Re,$e=>{n(s).videoSize&&$e(pe)})}var P=L(Re,2);{var ze=$e=>{var be=Yy(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(()=>me(ot,n(s).cdn)),b($e,be)};R(P,$e=>{n(s).cdn&&$e(ze)})}var Te=L(P,2);{var X=$e=>{var be=jy(),ee=L(C(be),2),ot=C(ee);w(ee),w(be),D(()=>{var fe;return me(ot,`${(fe=n(s).volume)!=null?fe:""} %`)}),b($e,be)};R(Te,$e=>{n(s).volume&&$e(X)})}var ie=L(Te,2);{var Oe=$e=>{var be=Xy(),ee=L(C(be),2),ot=C(ee);w(ee),w(be),D(fe=>me(ot,`${fe!=null?fe:""} s`),[()=>n(s).position.toFixed(2)]),b($e,be)};R(ie,$e=>{n(s).position&&$e(Oe)})}var De=L(ie,2);{var it=$e=>{var be=Zy(),ee=L(C(be),2),ot=C(ee);w(ee),w(be),D(fe=>me(ot,`${fe!=null?fe:""} s`),[()=>n(s).buffer.toFixed(2)]),b($e,be)};R(De,$e=>{n(s).buffer&&$e(it)})}var U=L(De,2);{var Pe=$e=>{var be=Jy(),ee=L(C(be),2),ot=C(ee);w(ee),w(be),D(fe=>me(ot,`${fe!=null?fe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b($e,be)};R(U,$e=>{n(s).liveLatency&&$e(Pe)})}var Ee=L(U,2);{var He=$e=>{var be=e0(),ee=L(C(be),2),ot=C(ee,!0);w(ee),w(be),D(fe=>me(ot,fe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Le})=>`${Le} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),b($e,be)};R(Ee,$e=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&$e(He)})}var Ze=L(Ee,2),ye=L(C(Ze),2),ke=C(ye);w(ye),w(Ze);var Be=L(Ze,2);{var Dt=$e=>{var be=t0(),ee=L(C(be),2);rc(ee,{get values(){return n(I)}});var ot=L(ee,2),fe=C(ot);w(ot),w(be),D(Le=>me(fe,`${Le!=null?Le:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b($e,be)};R(Be,$e=>{n(s).speed&&$e(Dt)})}var ft=L(Be,2);{var Bt=$e=>{var be=i0(),ee=L(C(be),2);rc(ee,{get values(){return n(T)}});var ot=L(ee,2),fe=C(ot);w(ot),w(be),D(Le=>me(fe,`${Le!=null?Le:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b($e,be)};R(ft,$e=>{n(s).bitrate&&$e(Bt)})}var at=L(ft,2),Ct=L(C(at),2);rc(Ct,{get values(){return n(S)}});var ei=L(Ct,2),Rt=C(ei,!0);w(ei),w(at),w(W),w(k),D($e=>{var be,ee;E=se(k,1,"container s-r",null,E,$e),Me(k,"aria-label",N),me(Y,n(s).version),me(ke,`${(be=n(f))!=null?be:""} / ${(ee=n(m))!=null?ee:""} frames`),me(Rt,n(p))},[()=>({"container-mobile":r()})]),b(t,k),F(),o()}tt(["click"]);var ob=require("@vkontakte/videoplayer-shared/es2018"),r0=(t,e)=>{t.stopPropagation(),e()()},s0=M('<div class="close s-z"></div>'),a0={hash:"s-z",code:'.close.s-z{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-z:hover{opacity:1}.close.s-z:after,.close.s-z:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-z:before{transform:rotate(45deg)}.close.s-z:after{transform:rotate(-45deg)}'};function ks(t,e){B(e,!0),Q(t,a0);let i=g(e,"onClick",3,ob.noop);var o=s0();o.__click=[r0,i],b(t,o),F()}tt(["click"]);var nb=require("@vkontakte/videoplayer-shared/es2018");var gn=t=>`width:${t}px;height:${t}px;`;var l0=Ce('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function An(t,e){B(e,!0);let i=v(()=>gn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=l0();b(o,a)},$$slots:{default:!0}}),F()}var d0=M('<div class="timer s-10"><canvas class="timer-canvas s-10" width="100" height="100"></canvas> <!></div>'),c0={hash:"s-10",code:".timer.s-10{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-10:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-10{height:50px;position:absolute;width:50px}"};function ac(t,e){B(e,!0),Q(t,c0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,nb.noop),r=5e3,a=q(void 0),l,d,s=0,u;Ne(()=>{i()&&It(()=>{d=Date.now(),s=requestAnimationFrame(f)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},f=()=>{m(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(f)):o()())};Mt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),vn(()=>{m()});var p=d0(),$=C(p);je($,_=>O(a,_),()=>n(a));var y=L($,2);An(y,{get size(){return"24"}}),w(p),b(t,p),F()}var u0=(t,e,i)=>{e(!1),i()},p0=M('<div class="overlay s-1c"></div> <div class="next-video s-1c"><div class="top s-1c"><div class="caption s-1c"> </div> <!></div> <div class="row s-1c"><div class="column s-1c"><div class="thumb s-1c"><div></div> <!></div></div> <div class="column s-1c"><div class="title s-1c"> </div></div></div></div>',1),f0={hash:"s-1c",code:".overlay.s-1c{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-1c{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-1c{display:flex;justify-content:space-between}.caption.s-1c{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-1c{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-1c{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-1c{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-1c,.thumb-overlay.s-1c{height:100%;width:100%}.thumb-overlay.s-1c{position:absolute}.thumb-overlay.withOpacity.s-1c{background:var(--black);opacity:.3}.title.s-1c{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function cm(t,e){B(e,!0),Q(t,f0);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,f=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),p())},_=()=>{e.clickCloseIcon(),$()};Mt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),p())});var S=Ae(),I=de(S);{var T=N=>{var k=p0(),E=L(de(k),2),A=C(E),W=C(A),H=C(W,!0);w(W);var z=L(W,2);ks(z,{onClick:_}),w(A);var Y=L(A,2);Y.__click=[u0,u,f];var ae=C(Y),j=C(ae),ne=C(j);let Z;var we=L(ne,2);{var ue=J=>{let Re=v(()=>a()&&r());ac(J,{get isRunning(){return n(Re)},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(j),w(ae);var re=L(ae,2),_e=C(re),xe=C(_e,!0);w(_e),w(re),w(Y),w(E),D((J,Re)=>{me(H,J),qe(j,`background-image: url('${e.thumb}')`),Z=se(ne,1,"thumb-overlay s-1c",null,Z,Re),me(xe,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(N,k)};R(I,N=>{e.isHide||N(T)})}b(t,S),F(),o()}tt(["click"]);var oa=require("@vkontakte/videoplayer-core/es2018"),rb=require("@vkontakte/videoplayer-shared/es2018"),Ln=require("@vkontakte/videoplayer-statistics/es2018");var um=(t,e)=>Math.min(+(t+e).toFixed(2),1),pm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zu=(t,e,i)=>{let o=um(e,i);e<1&&t.actions.internal.setVolume(o)},Ju=(t,e,i)=>{let o=pm(e,i);e>0&&t.actions.internal.setVolume(o)};var ia=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ep(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var v0=(t,e)=>{e(t)},g0=M('<div class="keyboard-controls s-1e" tabindex="-1" role="region"><!></div>'),h0={hash:"s-1e",code:".keyboard-controls.s-1e{bottom:0;left:0;position:absolute;right:0;top:0}"};function fm(t,e){var ee,ot;B(e,!0),Q(t,h0);let[i,o]=Ve(),r=()=>x(we,"$disabledControls$",i),a=()=>x(it,"$isInteractiveTime$",i),l=()=>x(U,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(ze,"$isEnded$",i),u=()=>x(pe,"$doubleForwardAvailable$",i),m=()=>x(Re,"$doubleForwardOn$",i),f=()=>x(Te,"$overlayContainer$",i),p=()=>x(ae,"$adPlaybackState",i),$=()=>x(j,"$positionExact$",i),y=()=>x(ne,"$duration$",i),_=()=>x(Oe,"$isAudioAvailable$",i),S=()=>x(Z,"$volume$",i),I=()=>x(Y,"$canChangePlaybackSpeed$",i),T=()=>x(ue,"$muted$",i),N=()=>x(re,"$currentSubtitle$",i),k=g(e,"nextButtonActive",3,!1),E=g(e,"prevButtonActive",3,!1),A=ve(),W=Vt(),H=A.getLogger().createComponentLog("KeyboardControls component"),z=A.state.playbackState$,Y=A.state.canChangePlaybackSpeed$,ae=A.ads.playbackState,j=A.state.positionExact$,ne=A.state.duration$,Z=A.state.volume$,we=A.ui.controls.disabledControls$,ue=A.state.muted$,re=A.state.currentSubtitle$,_e=A.ui.contextMenu.openedByHotKey$,xe=A.ui.contextMenu.lastActiveElem$,J=A.ui.contextMenu.visible$,Re=A.ui.doubleForwardOn$,pe=A.ui.doubleForwardAvailable$,P=A.ui.contextMenu.position$,ze=A.state.isEnded$,Te=A.ui.overlayContainer$,X=(ee=A.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,ie=(ot=A.callbacks)==null?void 0:ot.onAudioDisabledHint,Oe=A.state.isAudioAvailable$,De=A.state.isAudioDisabled,it=A.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:U}=wo(),Pe=0,Ee=!0,He=q(void 0),Ze=fe=>(fe!==Ee&&(Ee=fe,Pe=0),Pe+=1,(W.controls.seekStepKeyboard+W.controls.seekStepKeyboard*Pe)/1e3),ye=!0,ke=({type:fe,repeat:Le,disableDoubleForward:$t})=>{let Pt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&U.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{A.actions.internal.togglePlay();let ce="PLAY";d()===oa.PlaybackState.PAUSED?ce="PAUSE":s()&&(ce="REPLAY"),e.showHotKeyHelpers({type:ce})}},ut=fe==="down";if(!u()||$t){ut&&Pt(),ye=!0;return}if(ut)ye=!1;else if(ye)return;if(ut){!Le&&e.startDoubleForwardActivationTimer();return}m()||Pt(),e.stopDoubleForward(),ye=!0},Be=fe=>{let Le=tb(f());P.set(Le),xe.set(fe.target),_e.set(!0),J.set(!0)},Dt=(fe,Le=!1)=>{var ui,vi;let $t=fe.target,Pt=(ui=$t==null?void 0:$t.getAttribute("role"))==null?void 0:ui.includes("menuitem"),ut=$t.classList.contains("btn"),ce=fe.code;if(ut&&ce==="Space")return!1;let Ue=i_.has(ce);if(Pt&&Ue)return!1;let Ge=!t_.has(ce);if(fe.ctrlKey&&Ge||fe.altKey&&Ge||fe.metaKey)return!1;let lt=Pt&&ce==="Escape";o_.has(ce)||lt||e.hideContextMenu();let Ft=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,Ht=e.isAds&&(p()==="paused"||p()==="playing"),ii=!Ht&&!r().has("TIMELINE"),bi=fe.shiftKey&&["Digit1","Numpad1"].includes(ce);if(!bi&&!(Ft||Ht))return!1;H({message:`key down, code: ${ce}, isExternal = ${Le}`});let Yi=!1,Nt=()=>{Yi=!0,Le||fe.preventDefault()};if(bi)return Be(fe),Nt(),!0;switch(ce){case"KeyJ":case"ArrowLeft":{if(!ii)break;if(fe.ctrlKey||fe.altKey){let ht=A.actions.internal.getPrevEpisode();A.actions.internal.seekToPrevEpisode(ht),ht&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ht.text}),Nt()}else{let ht=fe.shiftKey?Ze(!1):W.controls.seekStepKeyboard/1e3,jt=Math.max($()-ht,0);$()>0&&(A.actions.internal.seekTime(jt,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ht.toString()}),Nt())}break}case"KeyL":case"ArrowRight":{if(!ii)break;if(fe.ctrlKey||fe.altKey){let ht=A.actions.internal.getNextEpisode();A.actions.internal.seekToNextEpisode(ht),ht&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ht.text}),Nt()}else{let ht=fe.shiftKey?Ze(!0):W.controls.seekStepKeyboard/1e3,jt=Math.min($()+ht,y());Math.round($())<Math.round(y())&&(A.actions.internal.seekTime(jt,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ht.toString()}),Nt())}break}case"ArrowUp":{if(ia({isAudioDisabled:De,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:X,isAds:e.isAds})){let ht=S(),jt=W.controls.volumeStepKeyboard,xi=ht<=1;if(Zu(A,ht,jt),xi){let ji=Math.round(um(ht,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ji}})}}Nt();break}case"ArrowDown":{if(ia({isAudioDisabled:De,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:X,isAds:e.isAds})){let ht=S(),jt=W.controls.volumeStepKeyboard,xi=ht>=0;if(Ju(A,ht,jt),xi){let ji=Math.round(pm(ht,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ji}})}}Nt();break}case"Comma":{if(fe.shiftKey){if(!m()&&I()){let ht=A.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:ht==null?void 0:ht.displayValue}),Nt()}}else{if(Ht||d()!==oa.PlaybackState.PAUSED)break;let ht=Math.max($()-W.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),A.actions.internal.clearDelayedBufferingCheckTimeout(),A.actions.internal.seekTime(ht,Ln.SeekAction.DOUBLE_TAP),Nt())}break}case"Period":{if(fe.shiftKey){if(!m()&&I()){let ht=A.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:ht==null?void 0:ht.displayValue}),Nt()}}else{if(Ht||d()!==oa.PlaybackState.PAUSED)break;let ht=Math.min($()+W.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),A.actions.internal.clearDelayedBufferingCheckTimeout(),A.actions.internal.seekTime(ht,Ln.SeekAction.DOUBLE_TAP),Nt())}break}case"KeyK":case"Space":ke({type:"down",repeat:fe.repeat,disableDoubleForward:"KeyK"===ce}),Nt();break;case"KeyM":{ia({isAudioDisabled:De,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:X,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),A.actions.internal.toggleMuted()),Nt();break}case"KeyF":e.toggleFullscreen(),Nt();break;case"KeyC":A.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(vi=N())==null?void 0:vi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Nt();break;case"KeyI":A.actions.internal.togglePictureInPicture(),Nt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),Nt();break;case"Slash":{fe.shiftKey&&W.features.hotKeyMapModal&&(e.showKeyMap(),Nt());break}case"KeyN":fe.shiftKey&&k()&&(A.actions.internal.nextVideoClick(),Nt());break;case"KeyP":fe.shiftKey&&E()&&(A.actions.internal.prevVideoClick(),Nt());break;case"ShiftLeft":case"ShiftRight":Nt();break;case"Tab":case"Escape":case"Enter":break;default:(0,rb.checkNever)(ce);break}return Yi},ft=fe=>{let Le=fe.code;if(fe.ctrlKey||fe.altKey||fe.metaKey)return;let $t=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,Pt=e.isAds&&(p()==="paused"||p()==="playing");if($t||Pt)switch(Le){case"ShiftLeft":case"ShiftRight":Pe=0;break;case"Space":ke({type:"up"});break}},Bt=G("aria_label_video_player"),at=()=>{var fe;return(fe=n(He))==null?void 0:fe.focus()},Ct=()=>n(He)===ep(),ei=fe=>fe.type==="keydown"?Dt(fe,!0):(fe.type==="keyup"&&ft(fe),!1);var Rt=g0();Rt.__keyup=ft,Rt.__keydown=[v0,Dt];var $e=C(Rt);ni($e,()=>{var fe;return(fe=e.children)!=null?fe:vt}),w(Rt),je(Rt,fe=>O(He,fe),()=>n(He)),D(()=>Me(Rt,"aria-label",Bt)),b(t,Rt);var be=F({focus:at,isFocused:Ct,handleExternalKeyboardEvent:ei});return o(),be}tt(["keyup","keydown"]);var _0=M('<div class="container s-p"><div class="dot s-p"></div> <div class="dot s-p"></div> <div class="dot s-p"></div></div>'),b0={hash:"s-p",code:".container.s-p{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-p:first-child{animation-delay:0s}.dot.s-p:nth-child(2){animation-delay:.18s}.dot.s-p:nth-child(3){animation-delay:.36s}@keyframes s-p-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-p{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-p-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-p+.dot:where(.s-p){margin-left:4px}"};function Ha(t,e){Q(t,b0);let i=g(e,"style",3,"");var o=_0();D(()=>qe(o,i())),b(t,o)}var $0=Ce('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function mm(t,e){Xe(t,{get fill(){return e.fill},children:(i,o)=>{var r=$0();b(i,r)},$$slots:{default:!0}})}var Ua=require("@vkontakte/videoplayer-shared/es2018"),y0=t=>{t.stopPropagation()},x0=M("<button><!></button>"),w0={hash:"s-1x",code:"button.btn.s-1x{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1x{width:100%}button.btn--live.s-1x{padding:10px 4px}button.btn-jc-l.s-1x{justify-content:left}button.btn-m.s-1x{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1x,button.btn-m--play.s-1x{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1x{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1x,button.btn-m--prev.s-1x{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1x{right:calc(100% + 35px)}button.btn-m--next.s-1x{left:calc(100% + 35px)}button.btn.s-1x:disabled{cursor:default;pointer-events:none}button.btn.s-1x:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1x:not(:disabled):hover{opacity:.8}button.pr-0.s-1x{padding-right:0}button.pl-0.s-1x{padding-left:0}"};function Kt(t,e){B(e,!0),Q(t,w0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),m=g(e,"ariaExpanded",3,void 0),f=g(e,"tabIndex",3,0),p=g(e,"click",3,Ua.noop),$=g(e,"focus",3,Ua.noop),y=g(e,"blur",3,Ua.noop),_=v(()=>p()===Ua.noop?null:k=>{k.stopPropagation(),p()(k)}),S=v(()=>$()===Ua.noop?null:k=>{k.preventDefault(),$()()}),I=v(()=>y()===Ua.noop?null:k=>{k.preventDefault(),y()()});var T=x0();T.__pointerdown=[y0],T.__click=function(...k){var E;(E=n(_))==null||E.apply(this,k)};var N=C(T);ni(N,()=>{var k;return(k=e.children)!=null?k:vt}),w(T),je(T,k=>s(k),()=>s()),D(()=>{var k,E,A,W,H,z,Y,ae;se(T,1,`btn ${(k=i())!=null?k:""}`,"s-1x"),qe(T,o()||null),T.disabled=(E=r())!=null?E:null,Me(T,"aria-hidden",(A=l())!=null?A:null),Me(T,"aria-label",(W=d())!=null?W:null),Me(T,"aria-keyshortcuts",(H=u())!=null?H:null),Me(T,"aria-expanded",(z=m())!=null?z:null),Me(T,"data-testid",(Y=a())!=null?Y:null),Me(T,"tabindex",f()),Me(T,"role",e.role),Me(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),gt("focus",T,function(...k){var E;(E=n(S))==null||E.apply(this,k)}),gt("blur",T,function(...k){var E;(E=n(I))==null||E.apply(this,k)}),b(t,T),F()}tt(["pointerdown","click"]);var S0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},C0=M('<div class="modal-header s-1m"><h3 class="modal-title s-1m"> </h3> <!></div>'),T0=M('<div class="modal-overlay s-1m"><div class="modal-container s-1m" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1m" tabindex="0" role="scrollbar"><div class="modal-main s-1m"><!></div></div></div></div>'),I0={hash:"s-1m",code:'.modal-overlay.s-1m{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1m{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1m{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1m{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1m{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1m::-webkit-scrollbar{width:8px}.modal-scroll.s-1m::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1m::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1m::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1m{margin:-8px -4px 0 0}'};function vm(t,e){B(e,!0),Q(t,I0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=q(void 0),a=q(void 0),{webApi:{focusManager:l}}=ve(),d=G("hotkey_map_modal_close_btn_text");Mt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=T0();s.__keydown=[S0,e];var u=C(s),m=C(u);{var f=_=>{var S=C0(),I=C(S),T=C(I,!0);w(I);var N=L(I,2);{var k=E=>{Kt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(A,W)=>{mm(A,{fill:"currentColor"})},$$slots:{default:!0}})};R(N,E=>{o()&&E(k)})}w(S),D(()=>me(T,e.title)),b(_,S)};R(m,_=>{i()&&_(f)})}var p=L(m,2),$=C(p),y=C($);ni(y,()=>{var _;return(_=e.children)!=null?_:vt}),w($),w(p),je(p,_=>O(r,_),()=>n(r)),w(u),je(u,_=>O(a,_),()=>n(a)),w(s),b(t,s),F()}tt(["keydown"]);var E0=new Set(["BR"]),sb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;E0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var k0=M('<li class="hot-key-map-item s-1f"><span class="hot-key-map-item-description s-1f"><!></span> <span class="hot-key-map-item-value s-1f"> </span></li>'),P0=M('<div class="hot-key-map-group s-1f"><h5 class="hot-key-map-group-title s-1f"> </h5> <ul class="hot-key-map-group-items s-1f"></ul></div>'),A0=M('<div class="hot-key-map s-1f"></div>'),L0={hash:"s-1f",code:'.hot-key-map.s-1f{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-1f{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-1f:last-child{border-bottom:none}.hot-key-map-group-title.s-1f{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.s-1f,.hot-key-map-item.s-1f{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-1f{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-1f{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-1f{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-1f{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-1f,.hot-key-map-item-value.s-1f{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function gm(t,e){B(e,!1),Q(t,L0);let[i,o]=Ve(),r=()=>x(l,"$data",i),a=ve(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};xo(),vm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var f=A0();yi(f,5,()=>r().groups,({title:p,items:$})=>p,(p,$)=>{let y=()=>n($).title,_=()=>n($).items;var S=P0(),I=C(S),T=C(I,!0);w(I);var N=L(I,2);yi(N,5,_,({description:k,value:E})=>E,(k,E)=>{let A=()=>n(E).description,W=()=>n(E).value;var H=k0(),z=C(H),Y=C(z);Bd(Y,()=>sb(A())),w(z);var ae=L(z,2),j=C(ae,!0);w(ae),w(H),D(()=>me(j,W())),b(k,H)}),w(N),w(S),D(()=>me(T,y())),b(p,S)}),w(f),b(u,f)},$$slots:{default:!0}}),F(),o()}var pv=require("@vkontakte/videoplayer-shared/es2018");var Ya=require("@vkontakte/videoplayer-core/es2018");var ab=require("@vkontakte/videoplayer-shared/es2018");var M0=M('<div class="pillow s-1y"><!></div>'),V0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function hm(t,e){Q(t,V0);var i=M0(),o=C(i);ni(o,()=>{var r;return(r=e.children)!=null?r:vt}),w(i),D(()=>Me(i,"data-testid",e.testId)),b(t,i)}var Yl=require("@vkontakte/videoplayer-shared/es2018");var R0=Ce('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function _m(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=R0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var N0=Ce('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function bm(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=N0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var O0=Ce('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function $m(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=O0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var D0=Ce('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function ym(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=D0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var B0=Ce('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function xm(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=B0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var tp=t=>{switch(t){case Yl.VideoQuality.Q_720P:return $m;case Yl.VideoQuality.Q_1080P:return ym;case Yl.VideoQuality.Q_1440P:return xm;case Yl.VideoQuality.Q_2160P:return _m;case Yl.VideoQuality.Q_4320P:return bm}};var F0=Ce('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function wm(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=F0();b(i,r)},$$slots:{default:!0}})}var H0=Ce('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Sm(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=H0();b(i,r)},$$slots:{default:!0}})}var U0=M('<div aria-hidden="true"><!> <!></div>'),z0={hash:"s-1q",code:".icon.s-1q{display:flex;height:24px;position:relative;width:24px}.icon.s-1q .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1q .pillow{right:-13px}.icon.s-1q svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function lc(t,e){B(e,!0),Q(t,z0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>o()?(0,ab.getVideoQualityLabel)(o()):""),a=v(()=>tp(o())),l=v(()=>n(r).length>2);var d=Ae(),s=de(d);{var u=f=>{wm(f,{testId:"settings-mobile-icon"})},m=f=>{var p=U0();let $;var y=C(p);{var _=T=>{let N=v(()=>`${n(r)}-pill-icon`);hm(T,{get testId(){return n(N)},children:(k,E)=>{var A=Ae(),W=de(A);Ni(W,()=>n(a),(H,z)=>{z(H,{})}),b(k,A)},$$slots:{default:!0}})};R(y,T=>{n(a)&&T(_)})}var S=L(y,2);let I=v(()=>n(a)?"settings-icon--labeled":"settings-icon");Sm(S,{get testId(){return n(I)}}),w(p),D(T=>$=se(p,1,"icon s-1q",null,$,T),[()=>({triple:n(l)})]),b(f,p)};R(s,f=>{i()?f(u):f(m,!1)})}b(t,d),F()}var W0=M('<span class="settings-icon-wrapper s-1z"><!></span>'),K0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function jl(t,e){B(e,!0),Q(t,K0);let[i,o]=Ve(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(p,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=ve(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,f=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,$=d.ui.t,y=q(void 0);Ne(()=>{n(y)&&It(()=>{e.ref$.set(n(y))})});let _=$("aria_label_settings");async function S(T){let N=ta(T);r()?f():m(N,bo)}let I=v(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"settings-btn",click:S,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){O(y,T,!0)},children:(T,N)=>{var k=W0(),E=C(k);lc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),w(k),b(T,k)},$$slots:{default:!0}}),F(),o()}var q0=Ce('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),Q0=Ce("<path></path>");function na(t,e){B(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>gn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Ae(),d=de(l);{var s=m=>{var f=q0();li(),b(m,f)},u=m=>{var f=Q0();D(()=>Me(f,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
58
|
+
Audio: ${(rt=n(s).audioCodec||"")!=null?rt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(Y,Se)};R(re,Y=>{(n(s).videoCodec||n(s).audioCodec)&&Y(_e)})}var $e=A(re,2);{var ee=Y=>{var Se=Gy(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).viewport)),b(Y,Se)};R($e,Y=>{n(s).viewport&&Y(ee)})}var Re=A($e,2);{var fe=Y=>{var Se=Yy(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).videoSize)),b(Y,Se)};R(Re,Y=>{n(s).videoSize&&Y(fe)})}var k=A(Re,2);{var We=Y=>{var Se=jy(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(()=>me(he,n(s).cdn)),b(Y,Se)};R(k,Y=>{n(s).cdn&&Y(We)})}var Te=A(k,2);{var Z=Y=>{var Se=Xy(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(()=>{var Me;return me(he,`${(Me=n(s).volume)!=null?Me:""} %`)}),b(Y,Se)};R(Te,Y=>{n(s).volume&&Y(Z)})}var ie=A(Te,2);{var De=Y=>{var Se=Zy(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(Me=>me(he,`${Me!=null?Me:""} s`),[()=>n(s).position.toFixed(2)]),b(Y,Se)};R(ie,Y=>{n(s).position&&Y(De)})}var Oe=A(ie,2);{var it=Y=>{var Se=Jy(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(Me=>me(he,`${Me!=null?Me:""} s`),[()=>n(s).buffer.toFixed(2)]),b(Y,Se)};R(Oe,Y=>{n(s).buffer&&Y(it)})}var U=A(Oe,2);{var ke=Y=>{var Se=e0(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(Me=>me(he,`${Me!=null?Me:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(Y,Se)};R(U,Y=>{n(s).nativeBuffer&&Y(ke)})}var Pe=A(U,2);{var Ue=Y=>{var Se=t0(),le=A(C(Se),2),he=C(le);S(le),S(Se),O(Me=>me(he,`${Me!=null?Me:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(Y,Se)};R(Pe,Y=>{n(s).liveLatency&&Y(Ue)})}var tt=A(Pe,2);{var ye=Y=>{var Se=i0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),O(Me=>me(he,Me),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Me})=>Me).map(({value:Me,title:rt})=>`${rt} ${((Me!=null?Me:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Y,Se)};R(tt,Y=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Y(ye)})}var Ie=A(tt,2),Be=A(C(Ie),2),Nt=C(Be);S(Be),S(Ie);var mt=A(Ie,2);{var Bt=Y=>{var Se=o0(),le=A(C(Se),2);sc(le,{get values(){return n(I)}});var he=A(le,2),Me=C(he);S(he),S(Se),O(rt=>me(Me,`${rt!=null?rt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(Y,Se)};R(mt,Y=>{n(s).speed&&Y(Bt)})}var dt=A(mt,2);{var wt=Y=>{var Se=n0(),le=A(C(Se),2);sc(le,{get values(){return n(T)}});var he=A(le,2),Me=C(he);S(he),S(Se),O(rt=>me(Me,`${rt!=null?rt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(Y,Se)};R(dt,Y=>{n(s).bitrate&&Y(wt)})}var ti=A(dt,2),Pt=A(C(ti),2);sc(Pt,{get values(){return n(x)}});var Dt=A(Pt,2),Ft=C(Dt,!0);S(Dt),S(ti),S(q),S(L),O(Y=>{var Se,le;E=se(L,1,"container s-j",null,E,Y),Le(L,"aria-label",N),me(j,n(s).version),me(Nt,`${(Se=n(p))!=null?Se:""} / ${(le=n(f))!=null?le:""} frames`),me(Ft,n(v))},[()=>({"container-mobile":r()})]),b(t,L),F(),o()}Ye(["click"]);var sb=require("@vkontakte/videoplayer-shared/es2018"),a0=(t,e)=>{t.stopPropagation(),e()()},l0=M('<div class="close s-1b"></div>'),d0={hash:"s-1b",code:'.close.s-1b{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1b:hover{opacity:1}.close.s-1b:after,.close.s-1b:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1b:before{transform:rotate(45deg)}.close.s-1b:after{transform:rotate(-45deg)}'};function Ls(t,e){B(e,!0),Q(t,d0);let i=g(e,"onClick",3,sb.noop);var o=l0();o.__click=[a0,i],b(t,o),F()}Ye(["click"]);var ab=require("@vkontakte/videoplayer-shared/es2018");var pn=t=>`width:${t}px;height:${t}px;`;var c0=Ce('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function An(t,e){B(e,!0);let i=m(()=>pn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=c0();b(o,a)},$$slots:{default:!0}}),F()}var u0=M('<div class="timer s-1a"><canvas class="timer-canvas s-1a" width="100" height="100"></canvas> <!></div>'),p0={hash:"s-1a",code:".timer.s-1a{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-1a:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1a{height:50px;position:absolute;width:50px}"};function lc(t,e){B(e,!0),Q(t,p0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,ab.noop),r=5e3,a=K(void 0),l,d,s=0,u;Ne(()=>{i()&&Tt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let f=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Lt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),un(()=>{f()});var v=u0(),$=C(v);Xe($,h=>D(a,h),()=>n(a));var y=A($,2);An(y,{get size(){return"24"}}),S(v),b(t,v),F()}var f0=(t,e,i)=>{e(!1),i()},m0=M('<div class="overlay s-z"></div> <div class="next-video s-z"><div class="top s-z"><div class="caption s-z"> </div> <!></div> <div class="row s-z"><div class="column s-z"><div class="thumb s-z"><div></div> <!></div></div> <div class="column s-z"><div class="title s-z"> </div></div></div></div>',1),v0={hash:"s-z",code:".overlay.s-z{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-z{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-z{display:flex;justify-content:space-between}.caption.s-z{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-z{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-z{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-z{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-z,.thumb-overlay.s-z{height:100%;width:100%}.thumb-overlay.s-z{position:absolute}.thumb-overlay.withOpacity.s-z{background:var(--black);opacity:.3}.title.s-z{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function fm(t,e){B(e,!0),Q(t,v0);let[i,o]=Ve(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},h=()=>{e.clickCloseIcon(),$()};Lt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var x=Ae(),I=ce(x);{var T=N=>{var L=m0(),E=A(ce(L),2),P=C(E),q=C(P),H=C(q,!0);S(q);var z=A(q,2);Ls(z,{onClick:h}),S(P);var j=A(P,2);j.__click=[f0,u,p];var ae=C(j),X=C(ae),ne=C(X);let J;var we=A(ne,2);{var pe=ee=>{let Re=m(()=>a()&&r());lc(ee,{get isRunning(){return n(Re)},onTimerEnded:y})};R(we,ee=>{r()&&ee(pe)})}S(X),S(ae);var re=A(ae,2),_e=C(re),$e=C(_e,!0);S(_e),S(re),S(j),S(E),O((ee,Re)=>{me(H,ee),qe(X,`background-image: url('${e.thumb}')`),J=se(ne,1,"thumb-overlay s-z",null,J,Re),me($e,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(N,L)};R(I,N=>{e.isHide||N(T)})}b(t,x),F(),o()}Ye(["click"]);var ra=require("@vkontakte/videoplayer-core/es2018"),lb=require("@vkontakte/videoplayer-shared/es2018"),Ln=require("@vkontakte/videoplayer-statistics/es2018");var mm=(t,e)=>Math.min(+(t+e).toFixed(2),1),vm=(t,e)=>Math.max(+(t-e).toFixed(2),0),ep=(t,e,i)=>{let o=mm(e,i);e<1&&t.actions.internal.setVolume(o)},tp=(t,e,i)=>{let o=vm(e,i);e>0&&t.actions.internal.setVolume(o)};var na=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ip(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var h0=(t,e)=>{e(t)},_0=M('<div class="keyboard-controls s-v" tabindex="-1" role="region"><!></div>'),b0={hash:"s-v",code:".keyboard-controls.s-v{bottom:0;left:0;position:absolute;right:0;top:0}"};function gm(t,e){var Y,Se;B(e,!0),Q(t,b0);let[i,o]=Ve(),r=()=>w(we,"$disabledControls$",i),a=()=>w(it,"$isInteractiveTime$",i),l=()=>w(U,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(z,"$playbackState$",i),s=()=>w(We,"$isEnded$",i),u=()=>w(fe,"$doubleForwardAvailable$",i),f=()=>w(Re,"$doubleForwardOn$",i),p=()=>w(Te,"$overlayContainer$",i),v=()=>w(ae,"$adPlaybackState",i),$=()=>w(X,"$positionExact$",i),y=()=>w(ne,"$duration$",i),h=()=>w(De,"$isAudioAvailable$",i),x=()=>w(J,"$volume$",i),I=()=>w(j,"$canChangePlaybackSpeed$",i),T=()=>w(pe,"$muted$",i),N=()=>w(re,"$currentSubtitle$",i),L=g(e,"nextButtonActive",3,!1),E=g(e,"prevButtonActive",3,!1),P=ve(),q=Mt(),H=P.getLogger().createComponentLog("KeyboardControls component"),z=P.state.playbackState$,j=P.state.canChangePlaybackSpeed$,ae=P.ads.playbackState,X=P.state.positionExact$,ne=P.state.duration$,J=P.state.volume$,we=P.ui.controls.disabledControls$,pe=P.state.muted$,re=P.state.currentSubtitle$,_e=P.ui.contextMenu.openedByHotKey$,$e=P.ui.contextMenu.lastActiveElem$,ee=P.ui.contextMenu.visible$,Re=P.ui.doubleForwardOn$,fe=P.ui.doubleForwardAvailable$,k=P.ui.contextMenu.position$,We=P.state.isEnded$,Te=P.ui.overlayContainer$,Z=(Y=P.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,ie=(Se=P.callbacks)==null?void 0:Se.onAudioDisabledHint,De=P.state.isAudioAvailable$,Oe=P.state.isAudioDisabled,it=P.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:U}=wo(),ke=0,Pe=!0,Ue=K(void 0),tt=le=>(le!==Pe&&(Pe=le,ke=0),ke+=1,(q.controls.seekStepKeyboard+q.controls.seekStepKeyboard*ke)/1e3),ye=!0,Ie=({type:le,repeat:he,disableDoubleForward:Me})=>{let rt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&U.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{P.actions.internal.togglePlay();let ue="PLAY";d()===ra.PlaybackState.PAUSED?ue="PAUSE":s()&&(ue="REPLAY"),e.showHotKeyHelpers({type:ue})}},ft=le==="down";if(!u()||Me){ft&&rt(),ye=!0;return}if(ft)ye=!1;else if(ye)return;if(ft){!he&&e.startDoubleForwardActivationTimer();return}f()||rt(),e.stopDoubleForward(),ye=!0},Be=le=>{let he=nb(p());k.set(he),$e.set(le.target),_e.set(!0),ee.set(!0)},Nt=(le,he=!1)=>{var ci,mi;let Me=le.target,rt=(ci=Me==null?void 0:Me.getAttribute("role"))==null?void 0:ci.includes("menuitem"),ft=Me.classList.contains("btn"),ue=le.code;if(ft&&ue==="Space")return!1;let ze=r_.has(ue);if(rt&&ze)return!1;let Ge=!n_.has(ue);if(le.ctrlKey&&Ge||le.altKey&&Ge||le.metaKey)return!1;let ct=rt&&ue==="Escape";s_.has(ue)||ct||e.hideContextMenu();let Ht=d()===ra.PlaybackState.PLAYING||d()===ra.PlaybackState.PAUSED,Ut=e.isAds&&(v()==="paused"||v()==="playing"),ii=!Ut&&!r().has("TIMELINE"),hi=le.shiftKey&&["Digit1","Numpad1"].includes(ue);if(!hi&&!(Ht||Ut))return!1;H({message:`key down, code: ${ue}, isExternal = ${he}`});let Gi=!1,Vt=()=>{Gi=!0,he||le.preventDefault()};if(hi)return Be(le),Vt(),!0;switch(ue){case"KeyJ":case"ArrowLeft":{if(!ii)break;if(le.ctrlKey||le.altKey){let ht=P.actions.internal.getPrevEpisode();P.actions.internal.seekToPrevEpisode(ht),ht&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ht.text}),Vt()}else{let ht=le.shiftKey?tt(!1):q.controls.seekStepKeyboard/1e3,Xt=Math.max($()-ht,0);$()>0&&(P.actions.internal.seekTime(Xt,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ht.toString()}),Vt())}break}case"KeyL":case"ArrowRight":{if(!ii)break;if(le.ctrlKey||le.altKey){let ht=P.actions.internal.getNextEpisode();P.actions.internal.seekToNextEpisode(ht),ht&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ht.text}),Vt()}else{let ht=le.shiftKey?tt(!0):q.controls.seekStepKeyboard/1e3,Xt=Math.min($()+ht,y());Math.round($())<Math.round(y())&&(P.actions.internal.seekTime(Xt,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ht.toString()}),Vt())}break}case"ArrowUp":{if(na({isAudioDisabled:Oe,audioDisabledHintCallback:ie,isAudioAvailable:h(),audioIsNotExistHintCallback:Z,isAds:e.isAds})){let ht=x(),Xt=q.controls.volumeStepKeyboard,$i=ht<=1;if(ep(P,ht,Xt),$i){let Yi=Math.round(mm(ht,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yi}})}}Vt();break}case"ArrowDown":{if(na({isAudioDisabled:Oe,audioDisabledHintCallback:ie,isAudioAvailable:h(),audioIsNotExistHintCallback:Z,isAds:e.isAds})){let ht=x(),Xt=q.controls.volumeStepKeyboard,$i=ht>=0;if(tp(P,ht,Xt),$i){let Yi=Math.round(vm(ht,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yi}})}}Vt();break}case"Comma":{if(le.shiftKey){if(!f()&&I()){let ht=P.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:ht==null?void 0:ht.displayValue}),Vt()}}else{if(Ut||d()!==ra.PlaybackState.PAUSED)break;let ht=Math.max($()-q.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(ht,Ln.SeekAction.DOUBLE_TAP),Vt())}break}case"Period":{if(le.shiftKey){if(!f()&&I()){let ht=P.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:ht==null?void 0:ht.displayValue}),Vt()}}else{if(Ut||d()!==ra.PlaybackState.PAUSED)break;let ht=Math.min($()+q.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(ht,Ln.SeekAction.DOUBLE_TAP),Vt())}break}case"KeyK":case"Space":Ie({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===ue}),Vt();break;case"KeyM":{na({isAudioDisabled:Oe,audioDisabledHintCallback:ie,isAudioAvailable:h(),audioIsNotExistHintCallback:Z,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),P.actions.internal.toggleMuted()),Vt();break}case"KeyF":e.toggleFullscreen(),Vt();break;case"KeyC":P.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(mi=N())==null?void 0:mi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Vt();break;case"KeyI":P.actions.internal.togglePictureInPicture(),Vt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),Vt();break;case"Slash":{le.shiftKey&&q.features.hotKeyMapModal&&(e.showKeyMap(),Vt());break}case"KeyN":le.shiftKey&&L()&&(P.actions.internal.nextVideoClick(),Vt());break;case"KeyP":le.shiftKey&&E()&&(P.actions.internal.prevVideoClick(),Vt());break;case"ShiftLeft":case"ShiftRight":Vt();break;case"Tab":case"Escape":case"Enter":break;default:(0,lb.checkNever)(ue);break}return Gi},mt=le=>{let he=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Me=d()===ra.PlaybackState.PLAYING||d()===ra.PlaybackState.PAUSED,rt=e.isAds&&(v()==="paused"||v()==="playing");if(Me||rt)switch(he){case"ShiftLeft":case"ShiftRight":ke=0;break;case"Space":Ie({type:"up"});break}},Bt=G("aria_label_video_player"),dt=()=>{var le;return(le=n(Ue))==null?void 0:le.focus()},wt=()=>n(Ue)===ip(),ti=le=>le.type==="keydown"?Nt(le,!0):(le.type==="keyup"&&mt(le),!1);var Pt=_0();Pt.__keyup=mt,Pt.__keydown=[h0,Nt];var Dt=C(Pt);oi(Dt,()=>{var le;return(le=e.children)!=null?le:gt}),S(Pt),Xe(Pt,le=>D(Ue,le),()=>n(Ue)),O(()=>Le(Pt,"aria-label",Bt)),b(t,Pt);var Ft=F({focus:dt,isFocused:wt,handleExternalKeyboardEvent:ti});return o(),Ft}Ye(["keyup","keydown"]);var $0=M('<div class="container s-m"><div class="dot s-m"></div> <div class="dot s-m"></div> <div class="dot s-m"></div></div>'),y0={hash:"s-m",code:".container.s-m{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-m:first-child{animation-delay:0s}.dot.s-m:nth-child(2){animation-delay:.18s}.dot.s-m:nth-child(3){animation-delay:.36s}@keyframes s-m-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-m{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-m-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-m+.dot:where(.s-m){margin-left:4px}"};function Wa(t,e){Q(t,y0);let i=g(e,"style",3,"");var o=$0();O(()=>qe(o,i())),b(t,o)}var x0=Ce('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function hm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=x0();b(i,r)},$$slots:{default:!0}})}var Ka=require("@vkontakte/videoplayer-shared/es2018"),w0=t=>{t.stopPropagation()},S0=M("<button><!></button>"),C0={hash:"s-1o",code:"button.btn.s-1o{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1o{width:100%}button.btn--live.s-1o{padding:10px 4px}button.btn-jc-l.s-1o{justify-content:left}button.btn-m.s-1o{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1o,button.btn-m--play.s-1o{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1o{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1o,button.btn-m--prev.s-1o{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1o{right:calc(100% + 35px)}button.btn-m--next.s-1o{left:calc(100% + 35px)}button.btn.s-1o:disabled{cursor:default;pointer-events:none}button.btn.s-1o:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1o:not(:disabled):hover{opacity:.8}button.pr-0.s-1o{padding-right:0}button.pl-0.s-1o{padding-left:0}"};function qt(t,e){B(e,!0),Q(t,C0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),f=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),v=g(e,"click",3,Ka.noop),$=g(e,"focus",3,Ka.noop),y=g(e,"blur",3,Ka.noop),h=m(()=>v()===Ka.noop?null:L=>{L.stopPropagation(),v()(L)}),x=m(()=>$()===Ka.noop?null:L=>{L.preventDefault(),$()()}),I=m(()=>y()===Ka.noop?null:L=>{L.preventDefault(),y()()});var T=S0();T.__pointerdown=[w0],T.__click=function(...L){var E;(E=n(h))==null||E.apply(this,L)};var N=C(T);oi(N,()=>{var L;return(L=e.children)!=null?L:gt}),S(T),Xe(T,L=>s(L),()=>s()),O(()=>{var L,E,P,q,H,z,j,ae;se(T,1,`btn ${(L=i())!=null?L:""}`,"s-1o"),qe(T,o()||null),T.disabled=(E=r())!=null?E:null,Le(T,"aria-hidden",(P=l())!=null?P:null),Le(T,"aria-label",(q=d())!=null?q:null),Le(T,"aria-keyshortcuts",(H=u())!=null?H:null),Le(T,"aria-expanded",(z=f())!=null?z:null),Le(T,"data-testid",(j=a())!=null?j:null),Le(T,"tabindex",p()),Le(T,"role",e.role),Le(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),lt("focus",T,function(...L){var E;(E=n(x))==null||E.apply(this,L)}),lt("blur",T,function(...L){var E;(E=n(I))==null||E.apply(this,L)}),b(t,T),F()}Ye(["pointerdown","click"]);var T0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},I0=M('<div class="modal-header s-1f"><h3 class="modal-title s-1f"> </h3> <!></div>'),E0=M('<div class="modal-overlay s-1f"><div class="modal-container s-1f" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1f" tabindex="0" role="scrollbar"><div class="modal-main s-1f"><!></div></div></div></div>'),P0={hash:"s-1f",code:'.modal-overlay.s-1f{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1f{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1f{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1f{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1f{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1f::-webkit-scrollbar{width:8px}.modal-scroll.s-1f::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1f::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1f::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1f{margin:-8px -4px 0 0}'};function _m(t,e){B(e,!0),Q(t,P0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ve(),d=G("hotkey_map_modal_close_btn_text");Lt(()=>{var h;return(h=n(r))==null||h.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=E0();s.__keydown=[T0,e];var u=C(s),f=C(u);{var p=h=>{var x=I0(),I=C(x),T=C(I,!0);S(I);var N=A(I,2);{var L=E=>{qt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(P,q)=>{hm(P,{fill:"currentColor"})},$$slots:{default:!0}})};R(N,E=>{o()&&E(L)})}S(x),O(()=>me(T,e.title)),b(h,x)};R(f,h=>{i()&&h(p)})}var v=A(f,2),$=C(v),y=C($);oi(y,()=>{var h;return(h=e.children)!=null?h:gt}),S($),S(v),Xe(v,h=>D(r,h),()=>n(r)),S(u),Xe(u,h=>D(a,h),()=>n(a)),S(s),b(t,s),F()}Ye(["keydown"]);var k0=new Set(["BR"]),db=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;k0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var A0=M('<li class="hot-key-map-item s-w"><span class="hot-key-map-item-description s-w"><!></span> <span class="hot-key-map-item-value s-w"> </span></li>'),L0=M('<div class="hot-key-map-group s-w"><h5 class="hot-key-map-group-title s-w"> </h5> <ul class="hot-key-map-group-items s-w"></ul></div>'),M0=M('<div class="hot-key-map s-w"></div>'),V0={hash:"s-w",code:'.hot-key-map.s-w{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-w{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-w:last-child{border-bottom:none}.hot-key-map-group-title.s-w{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.s-w,.hot-key-map-item.s-w{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-w{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-w{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-w{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-w{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-w,.hot-key-map-item-value.s-w{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function bm(t,e){B(e,!1),Q(t,V0);let[i,o]=Ve(),r=()=>w(l,"$data",i),a=ve(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};xo(),_m(t,{get title(){return r().title},onClose:s,children:(u,f)=>{var p=M0();bi(p,5,()=>r().groups,({title:v,items:$})=>v,(v,$)=>{let y=()=>n($).title,h=()=>n($).items;var x=L0(),I=C(x),T=C(I,!0);S(I);var N=A(I,2);bi(N,5,h,({description:L,value:E})=>E,(L,E)=>{let P=()=>n(E).description,q=()=>n(E).value;var H=A0(),z=C(H),j=C(z);Fd(j,()=>db(P())),S(z);var ae=A(z,2),X=C(ae,!0);S(ae),S(H),O(()=>me(X,q())),b(L,H)}),S(N),S(x),O(()=>me(T,y())),b(v,x)}),S(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var vv=require("@vkontakte/videoplayer-shared/es2018");var Za=require("@vkontakte/videoplayer-core/es2018");var cb=require("@vkontakte/videoplayer-shared/es2018");var R0=M('<div class="pillow s-1y"><!></div>'),N0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function $m(t,e){Q(t,N0);var i=R0(),o=C(i);oi(o,()=>{var r;return(r=e.children)!=null?r:gt}),S(i),O(()=>Le(i,"data-testid",e.testId)),b(t,i)}var Gl=require("@vkontakte/videoplayer-shared/es2018");var D0=Ce('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function ym(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=D0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var O0=Ce('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function xm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=O0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var B0=Ce('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function wm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=B0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var F0=Ce('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Sm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=F0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var H0=Ce('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Cm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=H0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var op=t=>{switch(t){case Gl.VideoQuality.Q_720P:return wm;case Gl.VideoQuality.Q_1080P:return Sm;case Gl.VideoQuality.Q_1440P:return Cm;case Gl.VideoQuality.Q_2160P:return ym;case Gl.VideoQuality.Q_4320P:return xm}};var U0=Ce('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function Tm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=U0();b(i,r)},$$slots:{default:!0}})}var z0=Ce('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Im(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=z0();b(i,r)},$$slots:{default:!0}})}var W0=M('<div aria-hidden="true"><!> <!></div>'),K0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function dc(t,e){B(e,!0),Q(t,K0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=m(()=>o()?(0,cb.getVideoQualityLabel)(o()):""),a=m(()=>op(o())),l=m(()=>n(r).length>2);var d=Ae(),s=ce(d);{var u=p=>{Tm(p,{testId:"settings-mobile-icon"})},f=p=>{var v=W0();let $;var y=C(v);{var h=T=>{let N=m(()=>`${n(r)}-pill-icon`);$m(T,{get testId(){return n(N)},children:(L,E)=>{var P=Ae(),q=ce(P);Di(q,()=>n(a),(H,z)=>{z(H,{})}),b(L,P)},$$slots:{default:!0}})};R(y,T=>{n(a)&&T(h)})}var x=A(y,2);let I=m(()=>n(a)?"settings-icon--labeled":"settings-icon");Im(x,{get testId(){return n(I)}}),S(v),O(T=>$=se(v,1,"icon s-1v",null,$,T),[()=>({triple:n(l)})]),b(p,v)};R(s,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var q0=M('<span class="settings-icon-wrapper s-1z"><!></span>'),Q0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function Yl(t,e){B(e,!0),Q(t,Q0);let[i,o]=Ve(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=ve(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,$=d.ui.t,y=K(void 0);Ne(()=>{n(y)&&Tt(()=>{e.ref$.set(n(y))})});let h=$("aria_label_settings");async function x(T){let N=oa(T);r()?p():f(N,go)}let I=m(()=>r()?"opened":"");qt(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return h},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){D(y,T,!0)},children:(T,N)=>{var L=q0(),E=C(L);dc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(L),b(T,L)},$$slots:{default:!0}}),F(),o()}var G0=Ce('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),Y0=Ce("<path></path>");function sa(t,e){B(e,!0);let i=m(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=m(()=>pn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Ae(),d=ce(l);{var s=f=>{var p=G0();li(),b(f,p)},u=f=>{var p=Y0();O(()=>Le(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
59
59
|
${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
|
|
60
|
-
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,f)};R(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Cm(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ms.KeyC},role:"button",children:(l,d)=>{let s=v(()=>i()?void 0:"outline");na(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var G0=M('<span class="duration s-21" data-testid="video_duration"> </span>'),Y0=M('<div><span class="current s-21" data-testid="current_time"> </span> <!></div>'),j0={hash:"s-21",code:'.time.s-21{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-21{padding:0 0 0 8px}.current.s-21{position:relative}.duration.s-21{opacity:.7}.duration.s-21:before{content:" / ";white-space:pre}'};function dc(t,e){B(e,!0),Q(t,j0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Vt(),d=le(!1),s=v(()=>en(e.duration)),u=v(()=>en(e.position));var m=Y0();let f;var p=C(m),$=C(p,!0);w(p);var y=L(p,2);{var _=S=>{var I=G0(),T=C(I,!0);w(I),D(()=>me(T,n(s))),b(S,I)};R(y,S=>{r()&&S(_)})}w(m),Is(m,()=>zl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),je(m,S=>a(S),()=>a()),D(S=>{f=se(m,1,"time s-21",null,f,S),me($,n(u))},[()=>({mobile:i()})]),b(t,m),F()}var uc=require("@vkontakte/videoplayer-shared/es2018");var X0=Ce('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),Z0=Ce("<path></path>"),J0=Ce('<path d="M14 3.96997C14.5523 3.96997 15 4.41769 15 4.96997V20.97C15 21.5223 14.5523 21.97 14 21.97C13.3585 21.97 12.7422 21.7208 12.2808 21.2751L6.79013 15.97H4C2.89543 15.97 2 15.0745 2 13.97V11.97C2 10.8654 2.89543 9.96997 4 9.96997H6.765L12.2794 4.66337C12.7417 4.21849 13.3584 3.96997 14 3.96997Z"></path><!>',1);function ra(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>gn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Xe(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var f=J0(),p=L(de(f));{var $=_=>{var S=X0();li(),b(_,S)},y=_=>{var S=Z0();D(()=>Me(S,"d",`${d}${n(a)==="max"?s:""}`)),b(_,S)};R(p,_=>{n(a)==="off"?_($):_(y,!1)})}b(u,f)},$$slots:{default:!0}}),F()}var Do=require("@vkontakte/videoplayer-shared/es2018");var ip=require("@vkontakte/videoplayer-shared/es2018");var lb=require("@vkontakte/videoplayer-shared/es2018");var ex=M('<div class="overlay"><!></div>');function Tm(t,e){B(e,!0);let[i,o]=Ve(),r=()=>x(l,"$overlayContainer$",i),l=ve().ui.overlayContainer$,d=q(void 0),s=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};Ne(()=>{u(r())}),Mt(()=>(u(r()),()=>s(r())));var m=ex(),f=C(m);ni(f,()=>{var p;return(p=e.children)!=null?p:vt}),w(m),je(m,p=>O(d,p),()=>n(d)),b(t,m),F(),o()}var tx=M('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),ix=M("<div><!></div> <!>",1),ox={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function za(t,e){B(e,!0),Q(t,ox);let[i,o]=Ve(),r=()=>x(Y,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),m=g(e,"translateY",3,0),f=g(e,"isFullWidthWrapper",3,!1),p=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,lb.noop),_=5,S=q(void 0),I=q(void 0),T,N=q(0),k=q(0),E=q(0),A=q(0),W=Vt(),H=ve(),z=H.ui.playerSize,Y=H.ui.overlayContainer$;Ne(()=>{It(()=>{y()(s())})});let ae=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!r()||!n(I)||!n(S))return;O(k,_);let U=r().getBoundingClientRect(),Pe=n(S).getBoundingClientRect(),Ee=Pe.width,He=n(I).clientWidth,Ze=a().width,ye=(Ee-He)/2,ke=Pe.left+u()-U.left,Be=ke+ye,Dt=Pe.top+m()-U.top,ft=He/2-_,Bt=Be<8,at=Be+He>Ze-8;Bt&&(Be=8,ft=ke+Pe.width/2-2.5*_),at&&(Be=Ze-8-He,ft=Pe.left-U.left+Pe.width/2-Be-_),O(E,Be,!0),O(A,Dt),O(N,ft,!0)},ne=()=>{!r()||!n(I)||!n(S)||O(k,-_)},Z=()=>{if(!r()||!n(I)||!n(S))return;O(N,_);let U=r().getBoundingClientRect(),Pe=n(S).getBoundingClientRect(),Ee=Pe.height,He=n(I).clientHeight,Ze=(Ee-He)/2+He,ye=Pe.left+u()-U.left-n(I).clientWidth,ke=2,Be=ye-_;Be<8&&(Be=8);let ft=Pe.top+m()-U.top+Ze,Bt=ke-Ze/2,at=ke-_;O(E,Be,!0),O(A,ft),O(k,Bt),O(N,at)},we=()=>{!r()||!n(I)||!n(S)||O(N,-_)},ue=()=>{switch($()){case"top":j();break;case"bottom":ne();break;case"left":Z();break;default:we()}},re=()=>{try{if(!r()||!n(S))return;ue(),s(!0)}catch(U){ae({message:String(U)})}},_e=()=>{s(!1)},xe=()=>{n(I)&&(T||(T=window.setTimeout(re,W.controls.hideTimeoutTooltips)),s()&&re())},J=()=>{_e(),window.clearTimeout(T),T=void 0},Re=(U,Pe,Ee)=>{let He="";switch($()){case"top":He=`transform: translate(${U}px, ${Pe}px);`;break;case"bottom":He=`transform: translate(${U}px, ${Pe}px); top: auto; bottom: 100%;`;break;case"left":He=`transform: translate(${U}px, ${Pe}px); left: 0; right: auto;`;break;default:He=`transform: translate(${U}px, ${Pe}px);`}return He+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,He+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,He},pe=(U,Pe)=>{let Ee="";switch($()){case"top":Ee=`transform: translate(${U}px, ${Pe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${U}px, ${Pe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${U}px, ${Pe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${U}px, ${Pe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},P=v(()=>Re(n(E),n(A),s())),ze=v(()=>pe(n(N),n(k)));Mt(ue),vn(()=>window.clearTimeout(T));var Te=ix(),X=de(Te);let ie;X.__pointermove=xe,X.__pointerdown=J,X.__pointerup=function(...U){var Pe;(Pe=e.disableMouseupTooltipShow?void 0:xe)==null||Pe.apply(this,U)};var Oe=C(X);ni(Oe,()=>{var U;return(U=e.children)!=null?U:vt}),w(X),je(X,U=>O(S,U),()=>n(S));var De=L(X,2);{var it=U=>{Tm(U,{children:(Pe,Ee)=>{var He=tx(),Ze=C(He),ye=C(Ze,!0);w(Ze);var ke=L(Ze,2);w(He),je(He,Be=>O(I,Be),()=>n(I)),D(()=>{qe(He,n(P)),me(ye,d()),qe(ke,n(ze))}),b(Pe,He)},$$slots:{default:!0}})};R(De,U=>{d()&&!l()&&U(it)})}D(U=>ie=se(X,1,"tooltip-wrapper s-1o",null,ie,U),[()=>({"full-width":f()})]),gt("pointerenter",X,xe),gt("pointerleave",X,J),b(t,Te),F(),o()}tt(["pointermove","pointerdown","pointerup"]);var db=t=>{t.stopPropagation()},nx=M("<div><!></div>"),rx={hash:"s-18",code:".btn-container.s-18{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-18{min-width:0;width:100%}"};function Oo(t,e){B(e,!0),Q(t,rx);let[i,o]=Ve(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=ve(),d=wo(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,f=g(e,"className",3,""),p=g(e,"disabled",3,!1),$=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),_=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),T=g(e,"tooltipVisible",3,!1),N=g(e,"tooltipPlacement",3,"top"),k=g(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),A=g(e,"onTooltipVisibilityChange",3,ip.noop),W=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,ip.noop),Y=g(e,"mouseLeave",3,ip.noop),ae=v(()=>p()?r()?m("tooltip_disabled_when_graph_on"):k():I()),j=q(!1);Ne(()=>{T()||O(j,!1)});var ne=nx();ne.__pointerdown=[db],ne.__click=[db];var Z=C(ne);{var we=re=>{za(re,{get content(){return n(ae)},get translateX(){return W()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get placement(){return N()},get onVisibilityChange(){return A()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(j)},set active(_e){O(j,_e,!0)},children:(_e,xe)=>{var J=Ae(),Re=de(J);ni(Re,()=>{var pe;return(pe=e.children)!=null?pe:vt}),b(_e,J)},$$slots:{default:!0}})},ue=re=>{var _e=Ae(),xe=de(_e);ni(xe,()=>{var J;return(J=e.children)!=null?J:vt}),b(re,_e)};R(Z,re=>{$()&&n(ae)&&!a()?re(we):re(ue,!1)})}w(ne),je(ne,re=>y(re),()=>y()),D(()=>{var re;se(ne,1,`btn-container ${(re=f())!=null?re:""}`,"s-18"),Me(ne,"aria-hidden",E()||null)}),gt("mouseenter",ne,function(...re){var _e;(_e=z())==null||_e.apply(this,re)}),gt("mouseleave",ne,function(...re){var _e;(_e=Y())==null||_e.apply(this,re)}),kn(ne,"clientWidth",_),b(t,ne),F(),o()}tt(["pointerdown","click"]);var sx=Ce('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function cc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Xe(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=sx(),l=de(a),d=L(l);D(()=>{Me(l,"fill",Xs),Me(l,"fill-opacity",e.completed?1:.24),Me(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var ax=M("<div><!></div>"),lx={hash:"s-x",code:".interactive-episode-icon.s-x{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-x{opacity:.4;pointer-events:none}"};function Im(t,e){B(e,!0),Q(t,lx);let o=ve().ui.t,r=q(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Oo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=ax();let u;var m=C(s);let f=v(()=>!!e.videoEpisode.completed);cc(m,{get completed(){return n(f)}}),w(s),D(p=>{u=se(s,1,"interactive-episode-icon s-x",null,u,p),qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),kn(s,"clientWidth",p=>O(r,p)),b(l,s)},$$slots:{default:!0}}),F()}var dx=M('<div><div class="video-episode-inner s-y"><div class="video-episode-loaded s-y"></div> <div></div></div></div>'),cx=M('<div class="video-episodes-wrap s-y"></div>'),ux={hash:"s-y",code:".video-episodes-wrap.s-y{height:100%;position:absolute;width:100%}.video-episode.s-y{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-y:first-child{padding-left:0}.video-episode.s-y:last-child{padding-right:0}.video-episode.s-y:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-y,.video-episode-inner.s-y,.video-episode-loaded.s-y{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-y{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-y:first-child .video-episode-inner:where(.s-y),.video-episode.s-y:last-child .video-episode-inner:where(.s-y){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-y{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-y,.video-episode-loaded.s-y{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-y{background-color:var(--slider-filled-bg)}"};function Em(t,e){Q(t,ux);let i=g(e,"videoEpisodes",19,()=>[]);var o=cx();yi(o,21,i,r=>r.from,(r,a)=>{var l=dx();let d;var s=C(l),u=C(s),m=L(u,2);let f;w(s),w(l),D((p,$)=>{d=se(l,1,"video-episode s-y",null,d,p),qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),f=se(m,1,"video-episode-filled s-y",null,f,$),qe(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),w(o),b(t,o)}function px(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function fx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function mx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function vx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function gx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),a()(l)}var hx=M("<div></div>"),_x=M('<div class="bars s-n"><div class="loaded s-n"></div> <div></div></div>'),bx=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),$x={hash:"s-n",code:'.interactive-icons.s-n{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-n{top:-10px}.slider.s-n{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-n{cursor:default}.slider.s-n:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-n{background:var(--slider-bg);overflow:hidden}.bars.s-n,.loaded.s-n{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-n{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-n{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-n,.slider.square.s-n .filled:where(.s-n),.slider.square.s-n .loaded:where(.s-n),.slider.square.s-n>.bars:where(.s-n){border-radius:unset}.filled.active-live.s-n{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-n{background-color:var(--slider-filled-ads)}.handleWrap.s-n{left:-100%;position:absolute;width:100%}.handle.s-n{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-n{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-n .handle:where(.s-n),.slider-dragging.s-n .handle:where(.s-n),.slider.s-n:hover .handle:where(.s-n){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-n .handle:where(.s-n){transform:scale(1.3)}.slider-vertical.s-n{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-n{cursor:default;opacity:.4}'};function Wa(t,e){B(e,!0),Q(t,$x);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),m=g(e,"videoEpisodes",19,()=>[]),f=g(e,"withWheelHandler",3,!1),p=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Do.noop),S=g(e,"onHandleMove",3,Do.noop),I=g(e,"onPointerUp",3,Do.noop),T=g(e,"onPointerEnter",3,Do.noop),N=g(e,"onPointerMove",3,Do.noop),k=g(e,"onPointerLeave",3,Do.noop),E=g(e,"onMouseEnter",3,Do.noop),A=g(e,"onMouseLeave",3,Do.noop),W=g(e,"onWheelUp",3,Do.noop),H=g(e,"onWheelDown",3,Do.noop),z=g(e,"onWheelLeft",3,Do.noop),Y=g(e,"onWheelRight",3,Do.noop),ae=g(e,"onDisabledClick",3,Do.noop),j=g(e,"loadedProgress",3,0),ne=g(e,"filledProgress",3,0),Z=g(e,"handleProgress",3,0),we=g(e,"ariaLabel",3,""),ue=g(e,"ariaValueMin",3,void 0),re=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),xe=g(e,"ariaValueText",3,""),J=g(e,"onContextMenu",3,Do.noop),Re=g(e,"handleAlwaysVisible",3,!1),pe=Vt(),P=q(void 0),ze=q(!1),Te=v(()=>{var Le;return(Le=re())!=null?Le:0}),X=v(()=>{var Le;return(0,Do.isNonNullable)(m())&&((Le=m()[m().length-1])==null?void 0:Le.time)<n(Te)}),ie=v(()=>(0,Do.isNonNullable)(m())&&m().length&&n(X)&&n(Te)?Ze(j()*100,ne()*100):[]);function Oe(Le){if(Le.preventDefault(),i()&&O(P,i().getBoundingClientRect(),!0),$())return;let $t=Ee(Le.clientX,Le.clientY),Pt=He(Le.clientX);T()($t,Pt,n(P).width)}function De(Le){Le.preventDefault(),!$()&&k()()}function it(){E()()}function U(){A()()}function Pe(Le){$()||f()&&(Le.preventDefault(),Le.deltaY<0?W()():Le.deltaY>0?H()():Le.deltaX>0?Y()():z()())}function Ee(Le,$t){return l()?Math.max(0,Math.min(1,(n(P).height-($t-n(P).top))/n(P).height)):Math.min(Math.max(Le-n(P).x,0),n(P).width)/n(P).width}function He(Le){return Math.min(Math.max(Le-n(P).x,0),n(P).width)}function Ze(Le,$t){let Pt=pe.features.episodesClustering&&!p()?pe.episodeMinWidthPc:0,ut=[],ce=m()[0].time/n(Te)*100,Ue=0,Ge=0;for(let Ht=1;Ht<m().length;Ht++)Ue=m()[Ht].time/n(Te)*100,Ue-ce>Pt&&(ut.push({from:ce,width:Math.max(0,Ue-ce),loadedWidth:Math.max(0,Math.min(Ue,Le)-ce),filledWidth:Math.max(0,Math.min(Ue,$t)-ce),interactive:m()[Ht-1].interactive,completed:m()[Ht-1].completed}),ce=m()[Ht].time/n(Te)*100,Ge++);let lt={from:ce,width:Math.max(0,100-ce),loadedWidth:Math.max(0,Math.min(Le,100)-ce),filledWidth:Math.max(0,Math.min($t,100)-ce),interactive:m()[Ge].interactive,completed:m()[Ge].completed};100-ce<Pt?(Ge-=1,ut[Ge].width+=100-ce,ut[Ge].loadedWidth+=Math.max(0,Math.min(Le,100)-ce),ut[Ge].filledWidth+=Math.max(0,Math.min($t,100)-ce)):ut[Ge]=lt;let Ft=m()[0].time;if(Ft!==0){let Ht=Ft/n(Te)*100;ut.unshift({from:0,width:Ht,loadedWidth:Math.min(Ht,Le),filledWidth:Math.min(Ht,$t)})}return ut}function ye(Le){return Math.max(0,Math.min(100,Le*100))}let ke=v(()=>ye(j())),Be=v(()=>ye(ne()));var Dt=bx(),ft=de(Dt);{var Bt=Le=>{var $t=hx();let Pt;yi($t,21,()=>n(ie),ut=>ut.from,(ut,ce)=>{var Ue=Ae(),Ge=de(Ue);{var lt=Ft=>{Im(Ft,{get videoEpisode(){return n(ce)},get disabled(){return $()}})};R(Ge,Ft=>{n(ce).interactive&&Ft(lt)})}b(ut,Ue)}),w($t),D(ut=>Pt=se($t,1,"interactive-icons s-n",null,Pt,ut),[()=>({mobile:s(),hidden:s()&&!n(ze)})]),b(Le,$t)};R(ft,Le=>{p()&&Le(Bt)})}var at=L(ft,2);let Ct;at.__pointerdown=[px,i,P,$,ze,Ee,_],at.__pointermove=[fx,$,Ee,He,N,P,ze,S],at.__pointerup=[mx,$,ze,Ee,I],at.__click=[vx,$,ae,Ee],at.__contextmenu=[gx,Ee,$,ae,ze,J];var ei=C(at);{var Rt=Le=>{Em(Le,{get videoEpisodes(){return n(ie)},get disabled(){return $()},get isMobile(){return s()}})},$e=Le=>{var $t=_x(),Pt=C($t),ut=L(Pt,2);let ce;w($t),D(Ue=>{Me(Pt,"data-value",n(ke)),qe(Pt,`transform: translateX(${n(ke)}%);`),ce=se(ut,1,"filled s-n",null,ce,Ue),Me(ut,"data-value",n(Be)),qe(ut,`transform: translateX(${n(Be)}%);`)},[()=>({"active-live":d()})]),b(Le,$t)};R(ei,Le=>{n(ie).length?Le(Rt):Le($e,!1)})}var be=L(ei,2);let ee;var ot=C(be);let fe;w(be),w(at),je(at,Le=>i(Le),()=>i()),D((Le,$t,Pt,ut)=>{var ce,Ue;Ct=se(at,1,`slider ${(ce=o())!=null?ce:""}`,"s-n",Ct,Le),Me(at,"aria-label",we()),Me(at,"aria-valuemin",ue()),Me(at,"aria-valuemax",re()),Me(at,"aria-valuenow",_e()),Me(at,"aria-valuetext",xe()),Me(at,"data-testid",(Ue=r())!=null?Ue:null),ee=se(be,1,"handleWrap s-n",null,ee,$t),qe(be,Pt),fe=se(ot,1,"handle s-n",null,fe,ut)},[()=>({disabled:$(),"slider-dragging":n(ze),hidden:a(),"handle-always-visible":Re(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ye(Z())}%);`,()=>({"active-live":d()})]),gt("pointerenter",at,Oe),gt("pointerleave",at,De),gt("mouseenter",at,it),gt("mouseleave",at,U),gt("wheel",at,Pe),b(t,Dt),F()}tt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Qd[t]>=Qd[e];var Ps=(t,e)=>Qd[t]<=Qd[e],cb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var xx=M("<div><!></div>"),wx=M("<div><!> <!></div>"),Sx={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-28{padding:0 8px 0 0;width:0}"};function km(t,e){var He,Ze;B(e,!0),Q(t,Sx);let[i,o]=Ve(),r=()=>x(N,"$isAudioAvailable$",i),a=()=>x(p,"$muted$",i),l=()=>x(f,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(Oe,"$controlsVisible",i),u=ve(),m=Vt(),f=u.state.volume$,p=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,S=u.ui.currentGridType$,I=(He=u.callbacks)==null?void 0:He.onAudioDoesNotExistHint,T=(Ze=u.callbacks)==null?void 0:Ze.onAudioDisabledHint,N=u.state.isAudioAvailable$,k=u.state.isAudioDisabled,E=u.ui.t,A=q(!1),W,H=v(()=>e.isAds||r()),z=v(()=>!n(H)||a()||l()===0),Y=v(()=>Ps(d(),"l")),ae=v(()=>n(Y)?"":n(z)?!r()||k?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),j=v(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),ne=v(()=>n(z)?0:l()),Z=!1,we=v(()=>e.isAds?!1:k?!T:r()?!1:!I);function ue(ye){y(),$(ye)}function re(){Zu(u,l(),m.controls.volumeStepWheel)}function _e(){Ju(u,l(),m.controls.volumeStepWheel)}function xe(ye){$(ye)}function J(ye){$(ye),_()}function Re(){Z=!0}function pe(){Z=!1,Te()}function P(){clearTimeout(W),O(A,!0)}function ze(){Te()}function Te(){W=window.setTimeout(()=>{Z||O(A,!1)},m.controls.volumeBarTimeout)}function X(ye){ye.preventDefault(),ye.deltaY<0?re():ye.deltaY>0&&_e()}let ie=q(!1),Oe=u.ui.controlsVisible;Ne(()=>{s()||O(ie,!1)});var De=wx();let it;var U=C(De);za(U,{get content(){return n(ae)},translateY:-18,get active(){return n(ie)},set active(ye){O(ie,ye,!0)},children:(ye,ke)=>{let Be=v(()=>n(Y)?"btn-volume-vertical":"btn-volume-horizontal");Kt(ye,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(Be)},get ariaLabel(){return n(j)},get click(){return e.click},get ariaKeyShortCut(){return ms.KeyM},role:"button",children:(Dt,ft)=>{ra(Dt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Pe=L(U,2);{var Ee=ye=>{var ke=xx();let Be;var Dt=C(ke);let ft=v(()=>n(Y)?"volumeBar-slider-vertical":""),Bt=v(()=>n(Y)&&!n(A)),at=v(()=>n(Y)?Re:uc.noop),Ct=v(()=>n(Y)?pe:uc.noop),ei=v(()=>Math.round(n(ne)*100)),Rt=v(()=>`${Math.round(n(ne)*100)}%`),$e=v(()=>n(Y)?"volume-slider-vertical":"volume-slider");Wa(Dt,{get className(){return n(ft)},get isHidden(){return n(Bt)},get isVertical(){return n(Y)},withWheelHandler:!0,onWheelUp:re,onWheelDown:_e,onPointerDown:ue,onHandleMove:xe,onPointerUp:J,get onPointerEnter(){return n(at)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ei)},get ariaValueText(){return n(Rt)},get filledProgress(){return n(ne)},get handleProgress(){return n(ne)},get testId(){return n($e)}}),w(ke),D(be=>Be=se(ke,1,"volumeBar s-28",null,Be,be),[()=>({"volumeBar-vertical":n(Y)})]),b(ye,ke)};R(Pe,ye=>{n(H)&&ye(Ee)})}w(De),D(ye=>it=se(De,1,"volumeBar-container s-28",null,it,ye),[()=>({vertical:n(Y)})]),gt("mouseenter",De,function(...ye){var ke;(ke=n(Y)?P:uc.noop)==null||ke.apply(this,ye)}),gt("mouseleave",De,function(...ye){var ke;(ke=n(Y)?ze:uc.noop)==null||ke.apply(this,ye)}),gt("wheel",De,X),b(t,De),F(),o()}var ub=require("@vkontakte/videoplayer-shared/es2018");var Cx=Ce('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Tx=Ce('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Pm(t,e){let i=g(e,"isFullscreen",8,!1),o=Sn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ae(),d=de(l);{var s=m=>{var f=Cx();b(m,f)},u=m=>{var f=Tx();b(m,f)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function pc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,ub.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Kt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ta(u);a.set(m),o()()},get ariaKeyShortCut(){return ms.KeyF},role:"button",children:(u,m)=>{Pm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Ix=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Am(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(),w(o),b(t,o)}var Ex=Ce('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Lm(t,e){let i=Pn(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=C(o);ni(r,()=>{var a;return(a=e.children)!=null?a:vt}),li(6),w(o),b(t,o)}var kx={hash:"s-2a",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Mm(t,e){B(e,!0),Q(t,kx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),s=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Lm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function fc(t,e){B(e,!0);let[i,o]=Ve(),r=()=>x($,"$isMobile",i),a=()=>x(p,"$currentGridType$",i),l=()=>x(_,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),m=Vt(),f=ve(),p=f.ui.currentGridType$,$=f.ui.isMobile,y=f.ui.t,_=f.isCyrillicRelatedInterface$,S=v(()=>m.logoType!=="vk"),I=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=v(()=>(r()&&Ps(a(),"m")||Ps(a(),"l"))&&n(S)),N=()=>{var A,W;e.click(),(A=f.callbacks)!=null&&A.onLogoClicked?(W=f.callbacks)==null||W.onLogoClicked():u()&&window.open(u(),"_blank")},k=v(()=>!s()),E=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(k)},click:N,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(A){d(A)},children:(A,W)=>{var H=Ae(),z=de(H);{var Y=j=>{Mm(j,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=j=>{Am(j,{})};R(z,j=>{n(S)?j(Y):j(ae,!1)})}b(A,H)},$$slots:{default:!0}}),F(),o()}var fb=require("@vkontakte/videoplayer-core/es2018");var Vm=require("@vkontakte/videoplayer-core/es2018");var Px=Ce('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-w"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-w"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-w"></path>',1),Ax=Ce('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Lx={hash:"s-w",code:".animated.s-w{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-w{animation-name:s-w-wave1}.wave2.animated.s-w{animation-name:s-w-wave2}.wave3.animated.s-w{animation-name:s-w-wave3}@keyframes s-w-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-w-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-w-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){B(e,!0),Q(t,Lx);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Vm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Vm.ChromecastState.CONNECTING),a=v(()=>n(o)?"#2688EB":Xs),l=v(()=>e.size?gn(e.size):void 0);var d=Ae(),s=de(d);{var u=f=>{Xe(f,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(p,$)=>{var y=Px();li(2),b(p,y)},$$slots:{default:!0}})},m=f=>{Xe(f,{get style(){return n(l)},testId:"chromecast-icon",children:(p,$)=>{var y=Ax(),_=de(y);let S;var I=L(_);let T;var N=L(I);let k;var E=L(N);let A;var W=L(E);let H;D((z,Y,ae,j,ne)=>{S=se(_,0,"wave2 s-w",null,S,z),T=se(I,0,"wave3 s-w",null,T,Y),k=se(N,0,"wave1 s-w",null,k,ae),A=se(E,0,"s-w",null,A,j),H=se(W,0,"s-w",null,H,ne)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(p,y)},$$slots:{default:!0}})};R(s,f=>{i()?f(u):f(m,!1)})}b(t,d),F()}var mb=require("@vkontakte/videoplayer-shared/es2018");function vc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,mb.noop),l=ve().ui.t,d=v(()=>e.state===fb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Kt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{mc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var vb=require("@vkontakte/videoplayer-shared/es2018");var Mx=Ce('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Rm(t){Xe(t,{testId:"episodes-icon",children:(e,i)=>{var o=Mx();li(2),b(e,o)},$$slots:{default:!0}})}var op=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Vx=M('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Rx=M('<span class="text s-24"> </span>'),Nx=M('<span class="text count s-24"> </span>'),Ox=M('<span class="icon s-24"><!></span> <!>',1),Dx={hash:"s-24",code:".icon.s-24{flex-shrink:0}.text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var Z,we,ue;B(e,!0),Q(t,Dx);let[i,o]=Ve(),r=()=>x(y,"$currentGridType$",i),a=()=>x(_,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),m=g(e,"timeCodes",19,()=>[]),f=ve(),p=(we=(Z=f.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?we:vb.noop,$=!!((ue=f.callbacks)!=null&&ue.onEpisodeClicked),y=f.ui.currentGridType$,_=f.ui.episodes.openedByKeyboard$,S=f.ui.episodes.panelOpened$,I=f.ui.isMobile,T=f.ui.t,N=q(void 0),k=re=>{var xe,J,Re;if(!!((xe=f.callbacks)!=null&&xe.onEpisodeClicked)){let pe=ta(re);_.set(pe),S.set(!0),(Re=(J=f.callbacks)==null?void 0:J.onEpisodeClicked)==null||Re.call(J,pe)}},E=q(null),A=v(()=>s()/u());Ne(()=>{var _e;let re=op(n(A),u(),m());re?((_e=n(E))==null?void 0:_e.time)!==re.time&&(p(re),O(E,re,!0)):O(E,null)});let W=v(()=>{var re;return((re=n(E))==null?void 0:re.text)||""}),H=v(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),z=v(()=>`${T("tooltip_episodes")}: ${n(W)}`),Y=async(re,_e,xe)=>{await bo(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&_e&&!xe&&It(()=>{_.set(!1),re.focus()})};Ne(()=>{Y(n(N),a(),l())});var ae=Ae(),j=de(ae);{var ne=re=>{let _e=v(()=>d()?"px-0":""),xe=v(()=>!$);Kt(re,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=n(_e))!=null?J:""}`},testId:"btn-episodes",click:k,get disabled(){return n(xe)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(J){O(N,J,!0)},children:(J,Re)=>{var pe=Ae(),P=de(pe);{var ze=X=>{var ie=Vx(),Oe=de(ie),De=C(Oe,!0);w(Oe);var it=L(Oe,2),U=C(it);Pr(U,{direction:"right"}),w(it),D(()=>me(De,n(W))),b(X,ie)},Te=X=>{var ie=Ox(),Oe=de(ie),De=C(Oe);Rm(De,{}),w(Oe);var it=L(Oe,2);{var U=Ee=>{var He=Rx(),Ze=C(He,!0);w(He),D(()=>me(Ze,n(W))),b(Ee,He)},Pe=(Ee,He)=>{{var Ze=ye=>{var ke=Nx(),Be=C(ke,!0);w(ke),D(()=>me(Be,m().length)),b(ye,ke)};R(Ee,ye=>{n(H)==="COUNT"&&ye(Ze)},He)}};R(it,Ee=>{n(H)==="FULL"?Ee(U):Ee(Pe,!1)})}b(X,ie)};R(P,X=>{d()?X(ze):X(Te,!1)})}b(J,pe)},$$slots:{default:!0}})};R(j,re=>{n(E)&&re(ne)})}b(t,ae),F(),o()}var ov=require("@vkontakte/videoplayer-shared/es2018");var mi=require("@vkontakte/videoplayer-core/es2018"),rt=require("@vkontakte/videoplayer-shared/es2018"),gs=require("@vkontakte/videoplayer-statistics/es2018");var Qe=require("@vkontakte/videoplayer-shared/es2018"),oo=require("@vkontakte/videoplayer-shared/es2018"),Bx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",np=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Qe.now)()]}),o())};(0,oo.addScript)(Bx,e,this.loadTimeout).then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Qe.now)()]}),window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Qe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Qe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Qe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Qe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Qe.now)()]}),!d&&(window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?ge(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var N,k;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:f}=e;this.externalApi=f;let p,$=this.playerState&&ge(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:y,immediateOrigin:_}=(0,Qe.detectEmbed)(),S=(N=y?_:window.location.href)!=null?N:window.location.href,I={...s,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:m,...u};I=Object.fromEntries(Object.entries(I).filter(([E,A])=>(0,Qe.isNonNullable)(A)));let T={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(k=this.externalApi)!=null&&k.videoGetAds){let A=await this.safeExternalCall(this.externalApi.videoGetAds,I);A&&(delete T.slot,delete T.params,Object.assign(T,{json:A}))}E.init(T),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(E){Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ge(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,m,f,p;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(f=this.adman)==null||f.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var gb=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Nm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new rp,{startTime:m,endTime:f}=u.parse(s);l.startTime=m,l.endTime=f}else if(s.trim()!==""){let u=new Om,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},rp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Om=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,f)=>{let p=l.indexOf(f,d);return m===-1||m>p?p:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new rp;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},hb=Nm;var ap=require("@vkontakte/videoplayer-shared/es2018"),Ka,Pi,Dm=0,Bm=!1,_b="",bb=(t,e=0,i=0)=>t<e&&t<i,sp=(t,e=0,i=0)=>t>=e&&t<=i,Fx=(t,e=0,i=0)=>t>e&&t>i,$b=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>sp(t,u,m));let a=t>=Dm,l=t<Dm;if(Dm=t,l&&(Bm=!1),(0,ap.isNonNullable)(Ka)&&sp(t,Ka.startTime,Ka.endTime)&&_b===e.value)return Ka;if(!(0,ap.isNonNullable)(Pi)&&(r!=null&&r.length)&&!Bm){Pi=r.find(({startTime:u,endTime:m})=>sp(t,u,m)||a&&bb(t,u,m)),Ka=void 0,!(0,ap.isNonNullable)(Pi)&&r[r.length-1].endTime<t&&(Bm=!0);return}else{if(sp(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Ka=Pi,Pi=void 0,_b=e.value,Ka;(a&&Fx(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&bb(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var lp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Hx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},hc=t=>{var e,i;return(i=(e=lp[t])!=null?e:lp[Hx[t]])!=null?i:void 0};var yb=require("@vkontakte/videoplayer-shared/es2018"),nB=require("@vkontakte/videoplayer-statistics/es2018"),dp=class{constructor(e,i,o,r=new yb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var vs=t=>t!=null?t:0,As=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(vs(i==null?void 0:i.top)-vs(o==null?void 0:o.top)),left:Math.round(vs(i==null?void 0:i.left)-vs(o==null?void 0:o.left)),bottom:Math.round(vs(i==null?void 0:i.bottom)-vs(o==null?void 0:o.top)),right:Math.round(vs(i==null?void 0:i.right)-vs(o==null?void 0:o.left))}},Xl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:vs(e==null?void 0:e.width),height:vs(e==null?void 0:e.height)}};var Mn="off";var Zl=t=>!!(Math.round(Math.abs(t)/90)%2);var xb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:f,uiConfig:p,coreConfig:$,player:y,disabledControls:_,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:N,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:A,additionalButtons:W,additionalSettingsMenuItems:H,additionalContextMenuItems:z,playPrevVideo:Y,playNextVideo:ae,onVideoChanged:j,looped:ne=!1,statistics:Z,saveRate:we,internalsExposure:ue,playerView:re,playerId:_e})=>{var cg,ug,pg;let xe={...$,configName:[...(cg=$.configName)!=null?cg:[],"ui"],isAudioDisabled:l,live:{...(ug=$.live)!=null?ug:{},isLiveCatchUpMode:!!r}},J=p,Re=rt.TracerFactory.createRootTracer(J.features.tracer),pe=Re.createComponentTracer("Store"),P=y||new mi.Player(xe,Re,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});ue==null||ue.expose({corePlayer:P});let ze=new rt.Logger,Te=new np(ze,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),X=Ra.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,De=u==null?void 0:u.slotsApi,it=u==null?void 0:u.focusManager,U=ze.createComponentLog("Store"),Pe,Ee,He={},Ze=new Vu,ye=new rt.Subscription,ke="",Be=le(!1),Dt=Z&&Z.oneStat?ri(Z.oneStat.vsid$):kr(void 0),ft=le(Zs()),Bt=le(!1),at=()=>U_(document,mi.clientChecker.device.isIOS),Ct=(pg=ie==null?void 0:ie.info.isActive$)!=null?pg:new rt.ValueSubject(!1),ei=le(0),Rt=le(!1),$e=le(!1),be=le([]),ee=(0,rt.merge)(P.events.fatalError$,P.events.managedError$).subscribe(c=>be.update(h=>[...h,c])),ot=kr(!1,c=>{let h=P.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),fe=async c=>{var oe;let h=Object.values(rt.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(h&&J.updateBuiltinLanguages||!jf(c))){let Se;try{Se=await(0,rt.loadVKLangPack)(c,Jh,e_)}catch(et){(oe=Z==null?void 0:Z.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),X==null||X.report(et,{errorType:"VKLangPack",fatal:!1})}Se&&(Yf({language:c,pack:Se,fallback:J.defaultLanguage}),Le.set(c),$t.update(et=>et+1))}jf(c)&&Le.set(c)},Le=le(t),$t=le(0),Pt=le(e);fe(t);let ut=(c,h)=>{let V=ge(Le);return Xf(V,c,h,J.defaultLanguage)},ce=le("thumb");ce.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&<()});let Ue=(()=>{let c=pi([ot,ce],([h,V])=>h?"crashed":V);return{...c,is:h=>ge(c)===h}})(),Ge=le(),lt=()=>{Ge.set({muted:P.info.muted$.getValue()})},Ft=(()=>{let c=le(new Set(_));return{...c,add:h=>{c.update(V=>new Set([...V].concat(h)))},remove:h=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(h)?oe.filter(Se=>!h.includes(Se)):oe.filter(Se=>Se!==h))})},includes:h=>{let V=ge(c);return Array.isArray(h)?h.every(oe=>V.has(oe)):V.has(h)}}})(),Ht=le({width:0,height:0}),ii=null,bi=P.info.isBuffering$,Yi=kr(bi.getValue(),c=>{let h=bi.subscribe(V=>{V&&ii===null?ii=window.setTimeout(()=>{c(bi.getValue()),ii=null},J.loaderDelay):c(V)});return()=>{h.unsubscribe(),ii&&clearTimeout(ii)}});pe.log("create store"),U({message:"create store"});let Nt=c=>{let h=c.container,V=()=>{Zt=new MutationObserver(Se=>{let{removedNodes:et}=Se[0];et.length&&h.append(P.experimental.element$.getValue())}),Zt.observe(h,{childList:!0})},oe=P.experimental.element$.getValue();if(oe)h.append(oe),V();else{let Se=P.experimental.element$.pipe((0,rt.filter)(et=>!!et),(0,rt.once)()).subscribe(et=>{h.append(et),V()});ye.add(Se)}},ui=c=>{U({message:`init video, config: ${JSON.stringify(c)}`}),S?Nt(c):(rt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,rt.now)()]}),P.initVideo(c)),pe.log("init video",{isInteractive:S}),c.subtitles&&P.setExternalTextTracks(c.subtitles),Pe=c,ke=c.subtitlesForcedLanguage||""},vi=new rt.Subject,ht=c=>vi.next(c),jt=new rt.Subject,xi=new rt.Subject,ji=new rt.Subject,Zt=null,Et={actionRewind$:jt,actionSeek$:xi,inPiP$:Ct,inFullscreen$:new rt.Observable(c=>ft.subscribe(h=>c.next(h))),actionSetSubtitle$:ji,nextMovie$:vi},We=new rt.Subject,wi={actionSeek$:xi,actionSubtitlesSwitched$:We,playerSize$:new rt.Observable(c=>Ht.subscribe(h=>c.next(h))),inPiP$:Ct,inFullscreen$:new rt.Observable(c=>ft.subscribe(h=>c.next(h))),isLoaderVisible$:new rt.Observable(c=>Yi.subscribe(h=>c.next(h)))};if(Z){let{oneStat:c,thinOneStat:h,mediascopePixel:V,statSubscription:oe}=Z;c&&(S||oe.add(c.attachTo(P)),oe.add(c.attachToUi(Et)),oe.add(c.attachToAds(Te.events)),c.authorize(a).catch(Se=>{U({message:`onestat auth error ${String(Se)}`})}),V&&V.attachTo(P)),h&&(oe.add(h.attachTo(P,Te.events)),oe.add(h.attachToUi(wi)),oe.add(h.attachToAds(Te.events)),h.updateContext({isMobile:ge(Be)}),h.authorize(a))}if(X){let c=new rt.Subscription,h=(V,oe)=>c.add(V.subscribe(oe));if(h(P.events.managedError$,V=>{X.logIError(V)}),h(P.events.fatalError$,V=>{X.logIError(V,!0)}),Z){let{oneStat:V}=Z;V&&h(V.experimental.error$,oe=>{X.logIError(oe)})}X.sentrySubscription.add(c)}let $o=()=>{if(mi.clientChecker.device.isIOS&&Ee)try{z_(Ee)}catch(c){U({message:`exitIosSafariFullscreen failed: ${c}`})}};ye.add(P.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),Oa(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{var c;$o(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(P.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(P.events.started$.subscribe(async()=>{var h,V;Oa(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=P.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(V=He.onStarted)==null||V.call(He,c)})).add(P.events.willSeek$.subscribe(({from:c,to:h})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,h)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(P.info.position$.subscribe(c=>{var V;let h=P.info.duration$.getValue();isFinite(h)&&h>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,h,c),Te.setPosition(c,h))})).add(P.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.loadedMetadata$.subscribe(()=>{Rt.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{$e.set(c)})).add(P.info.isEnded$.subscribe(c=>{S&&(c?(T!=null&&T.getValue()&&Ft.add(qd),Ft.add("PLAY_BUTTON")):Ft.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(P.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(P.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Te.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(Te.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(Te.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(Te.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(Te.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(Te.events.started$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:V.call(h,c)})).add(Te.events.timeRemained$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:V.call(h,c)})).add(Te.events.ended$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:V.call(h,c)})).add(Te.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(Te.events.clicked$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:V.call(h,c)})).add(Te.events.closed$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:V.call(h,c)})).add(Te.events.error$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:V.call(h,c)})).add(Te.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(Te.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let So=new rt.Subscription,_n=()=>{var et,kt,zt;let{debugLog:c}=J,h,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Yt}=c;h=c.tag,V=(et=Yt==null?void 0:Yt[0])!=null?et:V,oe=(zt=(kt=Yt==null?void 0:Yt[1])!=null?kt:Yt==null?void 0:Yt[0])!=null?zt:oe}let Se=h?`: ${h}`:"";So.add(P.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Se} `,`background:${V};`,`sdk component: ${Yt.component}`,Yt.message)})).add(ze.log$.subscribe(Yt=>{console.debug(`%c ui${Se} `,`background:${oe};`,`ui component: ${Yt.component}.`,Yt.message)}))},Tt=()=>{So.unsubscribe()},Ut=(c,h)=>{pe.log("start camera manual rotation",{mx:c,my:h}),P.startCameraManualRotation(c,h)},K=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},At=(c,h,V)=>{pe.log("move camera focus px",{xpx:c,ypx:h,dt:V}),P.moveCameraFocusPX(c,h,V)},si=()=>{P.holdCamera()},dt=()=>{P.releaseCamera()},St=kr(P.info.position$.getValue(),c=>{let h,V,oe=()=>{let Se=P.info.playbackState$.getValue(),et=P.info.isLive$.getValue(),kt=P.info.duration$.getValue(),zt=P.info.position$.getValue();if(Se&&[mi.PlaybackState.PLAYING,mi.PlaybackState.PAUSED].includes(Se)){let Yt=et?zt-kt:P.getExactTime();Yt!==V&&c(Yt),V=Yt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),Gt=ri(P.info.playbackState$),nt=ri(P.info.isBuffering$),Di=pi([Gt,nt],([c,h])=>h?"buffering":c),Bi=ri(P.info.currentBuffer$),tn=ri(P.info.isEnded$),Co=ri(P.info.isLive$),Fi=J.features.playbackRate?ri(P.info.canChangePlaybackSpeed$):kr(!1),Xi=ri(P.info.liveBufferTime$),Lr=ri(P.info.volume$),yo=ri(P.info.muted$),ro=Ru(P.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===mi.PredefinedQualityLimits.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.TRAFFIC_SAVING),Ii=Ru(P.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===mi.PredefinedQualityLimits.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.HIGH_QUALITY),on=ri(P.info.autoQualityLimitingAvailable$),nn=ri(P.info.availableQualities$),Vn=ri(P.info.availableQualitiesFps$),Jn=ri(P.info.chromecastState$),Mr=ri(P.info.chromecastDeviceName$),ts=ri(P.info.currentFormat$),_s=ri(P.info.throughputEstimation$),is=ri(P.info.videoBitrate$),er=ri(P.info.intrinsicVideoSize$),_r=ri(P.info.duration$),bn=ri(P.info.isAudioAvailable$),Rn=()=>{ii&&clearTimeout(ii),ii=null},Bo=pi([_r,Co],([c,h])=>h?-c:c),Nn=pi([Gt],([c])=>c===mi.PlaybackState.PLAYING),tr=ri(P.info.atLiveEdge$),br=ri(P.info.atLiveDurationEdge$),$r=ri(P.info.position$),Vr=pi([$r,_r],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),so=pi([Jn],([c])=>c===mi.ChromecastState.CONNECTED),Rr=ri(P.info.availableVideoStreams$),On=J.features.audioLanguages?ri(P.info.availableAudioStreams$):kr([]),Dn=ri(P.info.currentVideoStream$),ao=ri(P.info.currentAudioStream$),Nr=c=>{c.language&&Kf(c.language),P.setVideoStream(c)},Bn=(c,h)=>{P.setAudioStream(c),ko(h)&&(c.language&&Kf(c.language),J.features.userVideoPrefs&&i&&Gf(J.userSalt,String(i),{audioTrackId:c.id}))},mt=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),J.features.userVideoPrefs&&i){let oe=Fu(J.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Se=c.find(et=>et.id===oe.audioTrackId);h=Se!=null?Se:h}}let V=I_();return V&&(h!=null||(h=c.find(({language:oe})=>V===oe))),h!=null||(h=c.at(0)),h},di=c=>{pe.log("change audio stream",{id:c});let h=P.info.availableAudioStreams$.getValue().find(V=>V.id===c);h&&Bn(h,!0)},yr=!1;ye.add(P.info.availableAudioStreams$.subscribe(c=>{if(!yr&&c.length){let h=mt(c);h&&(P.setAudioStream(h),yr=!0)}})),On.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:V="",id:oe="",language:Se=""})=>({label:V,language:Se,id:oe})))}),ao.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let ir=!1;ye.add(P.info.availableVideoStreams$.subscribe(c=>{if(!ir&&c.length){let h=mt(c);h&&(P.setVideoStream(h),ir=!0)}}));let or=le(void 0),rn=ri(P.info.isAutoQualityEnabled$,c=>c&&or.set(void 0)),xr=ri(P.info.currentQuality$,()=>or.set(void 0)),sn=pi([or,xr],([c,h])=>c!=null?c:h),$n=pi(ts,c=>c!==mi.VideoFormat.MPEG),Fn=pi([nn,Vn,rn,sn,$n],([c,h,V,oe,Se])=>{let et=[];Se&&et.push({value:"auto",displayValue:ut("auto_quality_option"),selected:V});let kt=c.filter(zt=>!(0,rt.isInvariantQuality)(zt));for(let zt of kt){let Yt=h[zt];et.push({value:zt,displayValue:`${zt}${Yt?gb(Yt):""}`,selected:V?!1:zt===oe})}return et}),Hn=ri(P.info.currentPlaybackRate$),Fo=pi([Hn,tr,br],([c,h,V])=>{let oe=V||S?1:J.controls.playbackRateMin,Se=h?1:J.controls.playbackRateMax,et=J.controls.playbackRateStep,kt=[];for(let zt=oe;zt<=Se;zt+=et)kt.push({value:zt,displayValue:zt===1?ut("playback_rate_1"):ut("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return kt}),To=()=>({displayValue:ut("subtitles_off"),value:Mn,language:""}),nr=le(To()),Io=pi([nr,$t],([c],h)=>{c.value===Mn?h(To()):h(c)}),Hi=J.features.subtitles?ri(P.info.availableTextTracks$):kr([]),Un=v_(),rr=pi([Hi,Io],([c,h],V)=>{var et;let oe=[],Se=c.find(({id:kt})=>kt===h.value);if(Se!=null&&Se.url){let[,kt]=(et=Un.find(Se.url))!=null?et:[];if(kt){V(kt);return}Ze.download(Se.url).then(zt=>{if(!zt||Ze.isDestroyed())return;let Yt=new hb,Hs=Se.language;if(Hs){let w$=!!Se.isAuto,S$=Yt.parse(zt,Hs);oe.push({lang:Hs,subtitles:S$,isAuto:w$,id:Se.id})}Un.add(Se.url,oe),ge(Io).value===h.value&&V(oe)}).catch(zt=>{var Yt;(Yt=Z==null?void 0:Z.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),X==null||X.report(zt,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Or=pi([Hn,Nn,Io],([c,h,V],oe)=>{let kt;if(P.info.isLive$.getValue()&&h&&V.value!==Mn){let Yt=()=>{let Hs=1e3/(3*c);kt=setTimeout(Yt,Hs),oe(Date.now())};return Yt(),()=>clearTimeout(kt)}}),zn=pi([Hi,Io],([c,h])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:Se,id:et}of c){let kt=oe&&hc(oe);oe&&kt&&V.push({displayValue:Se?ut("subtitles_auto",{language:kt}):kt,value:et,selected:(h==null?void 0:h.value)===et,isAuto:Se,language:oe})}return V.length?(V.unshift({...To(),selected:(h==null?void 0:h.value)===Mn}),V):[]}),Eo={available:[],prev:[]},Dr=()=>{var h,V;let c=P.experimental.getCurrentTime$.getValue();return(V=(h=c==null?void 0:c())!=null?h:Ee==null?void 0:Ee.currentTime)!=null?V:0},yt=pi([St,Io,rr,Or],([c,h,V,oe])=>{var et;let Se=P.info.isLive$.getValue();if(Se&&Eo.prev!==V){let kt=V.find(({id:Yt})=>Yt===h.value),zt=Eo.prev.find(({id:Yt})=>Yt===h.value);if(kt){let Yt={...kt,subtitles:[...(et=zt==null?void 0:zt.subtitles)!=null?et:[],...kt.subtitles]};Eo.available=[Yt],Eo.prev=V}}if(h&&h.value!==Mn){let kt=Se?Dr():c,zt=Se?Eo.available:V;return $b(kt,h,zt,Se)}}),xt=pi([yt],([c])=>c!=null&&c.texts?c.texts:[]);ye.add(Io.subscribe(c=>{var h,V;if(c.value===Mn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(lp).find(([Se,et])=>et===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,oe?oe[0]:"",c.value)}}));let lo=le(!0),Ai=pi([Bi,Bo,$r,Xi],([c,h,V,oe])=>{var zt;let Se=(zt=c==null?void 0:c.end)!=null?zt:0;if(!oe)return Se/h;let kt=-V+oe-h;return(Se-kt)/h}),Zi=ri(P.info.availableSources$),Ho=pi([Zi],([c])=>Object.keys((c==null?void 0:c[mi.VideoFormat.MPEG])||{}).length>0),Uo=()=>{var V,oe,Se;let c=Object.keys(((oe=(V=P.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[mi.VideoFormat.MPEG])||{}),h=(0,rt.getHighestQuality)(c)||rt.VideoQuality.Q_144P;return(Se=Pe.sources[mi.VideoFormat.MPEG])==null?void 0:Se[h]},co=()=>{var h;let c=Uo();if(c)pe.log("download video",{url:c}),p_(c,((h=Pe==null?void 0:Pe.meta)==null?void 0:h.title)||"video");else{let V="There is no URL for download video";pe.log("download video",{message:V}),U({message:V})}},Ei=()=>{U({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?an(Hr(),!1):uo(!c,!1)},Br=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!ge(Qt.ui.settingsSubMenu.visible$)){let h=ge(Qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=Xl(h),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Se,name:"settings"})}}pe.log("close settings menu")},Fr=async(c,h=()=>Promise.resolve())=>{var Se;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),await h();let V=ge(Qt.ui.settingsMenu.ref$),oe=vl();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&V&&oe){let kt=Xl(V),zt=As(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:kt,position:zt,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})},os=(c,h=!1)=>{var et;Qt.ui.settingsSubMenu.visible$.set(!1);let V=ge(Qt.ui.settingsMenu.ref$),oe=vl(),Se=ge(Qt.ui.settingsMenu.visible$);if((et=s==null?void 0:s.uiInfo)!=null&&et.onSettingsMenu&&V&&oe)if(Se&&!h){let zt=Xl(V),Yt=As(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Yt,name:"settings"})}else{let zt=Xl(c),Yt={top:0,left:0,bottom:0,right:0},Hs=ge(Qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Yt,name:Hs})}pe.log("close settings sub menu")},ns=(c,h)=>{var oe;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(h),Qt.ui.settingsSubMenu.name$.set(c);let V=vl();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&V){let et=Xl(h),kt=As(h,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:et,position:kt})}pe.log("open settings sub menu",{name:c})},Hr=()=>{var h;let c=Math.max(J.volumeMinRestore,(h=Nu())!=null?h:0);return c===0?J.volumeDefault:c},ko=c=>{let h=J.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},an=(c,h)=>{let V=c===0?Hr():c,oe=P.info.muted$.getValue();U({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Se=!l||Ue.is("ads");oe&&c>0&&Se&&(oe=!1,ko(h)&&zf(!1)),P.setVolume(c,oe),Te.setVolume(c),ko(h)&&Bf(V)},uo=(c,h)=>{let V=P.info.volume$.getValue();U({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=Ue.is("ads");if(P.setMuted(c,oe),Te.setVolume(c?0:V),ko(h)&&(!oe||!c)&&zf(c),!c&&V===0){let Se=Hr();P.setVolume(Se),ko(h)&&Bf(Se),Te.setVolume(Se)}},wr=le(!1),zo=c=>{var h,V;pe.log("set looped",{isLooped:c}),wr.set(c),P.setLooped(c),(V=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||V.call(h,c)};zo(ne);let rs=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},Ke=(c,h=!1)=>{var V;U({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),P_(c),h&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},Lt=c=>{U({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},hi=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onPrevVideoClick callback failed to execute"})}j(!0),h&&Y()},Po=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onNextVideoClick callback failed to execute"})}j(!1),h&&ae()},Ao=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Wo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},po=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Ji=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},yn=()=>{P.prepare()},xn=()=>{(0,rt.assertNonNullable)(Qt);let c=ge(Qt.ui.controls.disabledControls$),h=ge(Qt.playerPhase),V={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(U({message:"toggle play"}),h==="ads"){V.action="play",pe.log("toggle adman play",V),Te.togglePlay();return}let oe=()=>{var et;U({message:"toggle play, call player.play"}),V.action="play",P.play(),(et=s==null?void 0:s.onPlay)==null||et.call(s)},Se=()=>{var et;U({message:"toggle play, call player.pause"}),V.action="pause",P.pause(),(et=s==null?void 0:s.onPause)==null||et.call(s)};if(P.info.isEnded$.getValue()){if(U({message:"toggle play, video ended, seek to 0"}),jt.next(),xi.next(gs.SeekAction.REWIND),S){N==null||N();return}P.seekTime(0),oe()}else P.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING?oe():Se();pe.log("toggle play",V)},fo=(c,{changeReason:h="default",appliesTo:V="to-video"}={},oe)=>{U({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Se}=J.features;Ou(),c!=="auto"?(Se?(Du({type:"exact_quality",quality:c,videoId:i},V),P.setPredefinedQualityLimits(mi.PredefinedQualityLimits.UNKNOWN)):Ff(i,c),or.set(c),P.setQuality(c)):Se&&h==="default"&&(ar("auto_quality",V,oe),ge(ro)&&Lo(!1,void 0,oe),ge(Ii)&&Wn(!1,void 0,oe))},Lo=(c,h="as-default",V)=>{U({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?mi.PredefinedQualityLimits.TRAFFIC_SAVING:mi.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(sr(oe,h,V),Yd(!1)):(P.setPredefinedQualityLimits(oe),ko(V)&&Yd(c))},Wn=(c,h="as-default",V)=>{U({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),sr(c?mi.PredefinedQualityLimits.HIGH_QUALITY:mi.PredefinedQualityLimits.UNKNOWN,h,V)},sr=(c,h,V)=>{c!==mi.PredefinedQualityLimits.UNKNOWN&&(ge(on)&&!ge(rn)&&fo("auto",{appliesTo:h,changeReason:"limit-changed"},V),ar(c,h,V)),P.setPredefinedQualityLimits(c)},ar=(c,h,V)=>{ko(V)&&(Du({type:c,videoId:i},h),h==="as-default"&&Du({type:c,videoId:i},"to-video"))},Kn=(c,h=!0)=>{pe.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),J.features.saveRate&&we&&!P.info.isLive$.getValue()&&h&&E_(c)},bs=()=>{let c=ge(Fi),h=ge(Fo),V=h.findIndex(({selected:Se})=>Se);if(V===h.length-1||!c)return h[V];let oe=h[V+1];return Kn(oe.value),oe},ss=()=>{let c=ge(Fi),h=ge(Fo),V=h.findIndex(({selected:Se})=>Se);if(V===0||!c)return h[V];let oe=h[V-1];return Kn(oe.value),oe},Ye=(c={...To(),selected:!1},h)=>{pe.log("set subtitles",{...c}),c.value!==Mn&&ji.next(c.isAuto?c.value+"_auto":c.value),We.next({enabled:c.value!==Mn,lang:c.language,auto:!!c.isAuto}),nr.set(c),ko(h)&&(Qf(c.value===Mn?void 0:c.language),J.features.userVideoPrefs&&i&&Gf(J.userSalt,String(i),{subtitleTrackId:c.value===Mn?void 0:c.value}))},qt=c=>{pe.log("toggle subtitles");let h=ge(Io);(h==null?void 0:h.value)===Mn?Ko(c):ln(c)},Ci=(c,h)=>{pe.log("change subtitle",{enabled:c}),c?Ko(!0,h):ln(!0)},Ko=(c,h)=>{pe.log("subtitle on");let V=ge(zn),oe=ge(Le),Se=ke!=null?ke:oe,et;h&&(et=V.find(kt=>kt.value===h)),et!=null||(et=V.filter(kt=>kt.value!==Mn).find(kt=>kt.language===Se)),Ye(et!=null?et:V[1],c)},ln=c=>{pe.log("subtitle off"),Ye(void 0,c)};ye.add(P.info.availableTextTracks$.subscribe(c=>{var V;function h(){let oe=[];for(let{language:Se,isAuto:et,id:kt}of c){let zt=Se&&hc(Se);Se&&zt&&oe.push({id:kt,language:Se,title:et?ut("subtitles_auto",{language:zt}):zt})}return oe}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,h())}));let lr=le(!0),dn=c=>{lr.set(c)},qo=(c,h,V=!0)=>{var oe;if(U({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:h,forcePrecise:V}),xi.next(h),P.info.isLive$.getValue()){let Se=P.info.duration$.getValue(),et=Math.min(0,Se+c);P.seekTime(et,V)}else{if(T!=null&&T.getValue())return;P.info.isEnded$.getValue()&&(U({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),P.seekTime(ag(c),V)}},Ns=c=>{U({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),qo(c,gs.SeekAction.EPISODE,!0)},cn=(c,h,V=!1)=>{U({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:h});let oe=ge(Bo)*c;qo(oe,h,V)},Os=c=>{U({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),xi.next(gs.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},la=c=>{var oe,Se;let h=(oe=c.max)!=null?oe:"none",V=(Se=c.min)!=null?Se:"none";U({message:`set auto quality limitation. Max: ${h}. Min: ${V}`}),pe.log("set auto quality limits",{max:h,min:V}),P.setAutoQualityLimits(c)},da=c=>{U({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),qo(c,gs.SeekAction.EPISODE,!0)},ct=c=>{U({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},Jt=le(!1),mo=le(!1),he=pi([Bo],([c])=>!!f&&c>=J.suitableDurationForUsingRichSeek&&J.features.useRichSeek&&!S),wt=((f==null?void 0:f.frameWidth)||0)>=((f==null?void 0:f.frameHeight)||0),ti=pi([ei],([c])=>{let h=Zl(c);return wt?!h:h});ye.add(Ue.subscribe(c=>{c!=="video"&&Jt.set(!1)}));let $i=le(void 0),Li=le(!1),ci=c=>{U({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),Li.set(!0),oi(c)},oi=c=>{$i.set(c)},vo,un,pn=()=>{$i.set(void 0),Li.set(!1)},ki=()=>{clearTimeout(un),clearTimeout(vo),vo=window.setTimeout(()=>{pn()},500),Ee==null||Ee.removeEventListener("seeked",ki)},fd=(c,h=!1)=>{U({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),cn(c,gs.SeekAction.SLIDER,h),ge(Qt.ui.isMobile)&&ge(Qt.state.currentFormat$)===mi.VideoFormat.HLS?(Ee==null||Ee.addEventListener("seeked",ki),un=window.setTimeout(()=>{ki()},300)):pn()},sl=pi([St,Bo,$i],([c,h,V],oe)=>{oe((0,rt.isNonNullable)(V)?V*h:c)}),Ds=le(!1),al=()=>{Ds.set(!0)},ll=()=>{Ds.set(!1)},Sr=pi([Ht],([{width:c}],h)=>{let V=cb(c);h(V)}),ca=W.filter(c=>f_(c)),Bs=pi([Sr,Be],([c,h])=>h?ca.filter(V=>!V.hideOnMobile):ca.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),Ur=le(W.filter(c=>m_(c))),as=pi([Ur,Sr],([c,h])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),Fs=pi([as,Bs],([c,h])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?h.map((V,oe)=>{var Se;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Se=V.ariaLabel)!=null?Se:V.tooltip,tooltipText:V.tooltip}}):[]]),dr=le(H),dl=pi([dr],([c])=>J.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),cl=(c,h)=>{let V=ge(Ur).map(oe=>oe.id!==c?oe:{...oe,...h});Ur.set(V)},md=c=>{let h=ge(Ur);if(h.some(V=>V.id===c.id)){U({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Ur.set(h)},ul=c=>{let h=ge(Ur);if(!h.some(V=>V.id===c)){U({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Ur.set(h)},pl=c=>{xi.next(gs.SeekAction.LIVE),U({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),P.setLiveLowLatency(c)},fl=(c,h)=>{let V=ge(dr).map(oe=>oe.id!==c?oe:{...oe,...h});dr.set(V)},vd=c=>{let h=ge(dr);if(h.some(V=>V.id===c.id)){U({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),dr.set(h)},ua=c=>{let h=ge(dr);if(!h.some(V=>V.id===c)){U({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),dr.set(h)},Cr=le(z),st=pi([Cr],([c])=>J.features.additionalContextMenuItems?c:[]),pt=(c,h)=>{let V=ge(Cr).map(oe=>oe.id!==c?oe:{...oe,...h});Cr.set(V)},Ui=c=>{let h=ge(Cr);if(h.some(V=>V.id===c.id)){U({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Cr.set(h)},Qo=c=>{let h=ge(Cr);if(!h.some(V=>V.id===c)){U({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Cr.set(h)},zi=pi([Be,ot],([c,h],V)=>{V(c&&h)}),_i=()=>{xi.next(gs.SeekAction.LIVE),U({message:"switch to active live"}),pe.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},Mi=()=>{pe.log("skip adman"),Te.skip()},pa=(c=!0)=>{var oe;(0,rt.assertNonNullable)(Qt),U({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),ce.set("video"),c&&P.play(),l&&uo(!0,!0);let h=(oe=ge(Ge))==null?void 0:oe.muted,V=!P.info.muted$.getValue();h!==void 0&&!V&&uo(h,!0),Ge.set(void 0)},ml=()=>{(0,rt.assertNonNullable)(Qt),U({message:"switch from video to ads"}),pe.log("switch from video to ads"),Qt.actions.internal.pause(),$o(),ce.set("ads")},Np=c=>{(0,rt.assertNonNullable)(Qt);let h=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:h}),ce.set(h)},Yc=c=>{(0,rt.assertNonNullable)(Qt);let h=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:h}),ce.set(h)},jc=c=>{(0,rt.assertNonNullable)(Qt);let h=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:h}),ce.set(h)},Xc=()=>((0,rt.assertNonNullable)(Qt),pe.log("get debug text data"),c_(P,Pe,Qt,Re.getTraceId())),Op=()=>((0,rt.assertNonNullable)(Qt),JSON.stringify(Re.getFinishedSpans())),Zc=()=>((0,rt.assertNonNullable)(Qt),u_(P,Pe,Qt)),vl=()=>Ee,Jc=()=>{U({message:"toggle chromecast"}),pe.log("toggle chromecast"),P.toggleChromecast()},fa=c=>{var V;if((0,rt.assertNonNullable)(Qt),P.info.isEnded$.getValue())return;let h=!c;if(ge(Qt.playerPhase)==="ads"){U({message:`pause ads, internalCall: ${h}`}),pe.log("pause ads",{internalCall:h}),Te.pause();return}U({message:`pause video, internalCall: ${h}`}),pe.log("pause video",{internalCall:h}),h&&((V=s==null?void 0:s.onPause)==null||V.call(s)),P.pause()},ma=c=>{var V;(0,rt.assertNonNullable)(Qt);let h=!c;if(ge(Qt.playerPhase)==="ads"){U({message:`play ads, internalCall: ${h}`}),pe.log("play ads",{internalCall:h}),Te.play();return}U({message:`play video, internalCall: ${h}`}),pe.log("play video",{internalCall:h}),h&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),P.play()},Dp=c=>{(0,rt.assertNonNullable)(Qt);let h=!c;if(ge(Qt.playerPhase)==="ads"){U({message:"player cannot be stopped during ads via external method"});return}U({message:`player will be stopped, internalCall: ${h}`}),k==null||k()},eu=(c,h)=>{(0,rt.assertNonNullable)(Qt),U({message:`first start, show ads: ${c}, internalCall: ${!h}`}),pe.log("first start",{showAds:c,external:h}),c?ce.set("ads"):(ce.set("video"),h?P.play():Qt.actions.internal.togglePlay())},gd=()=>(U({message:"getting time codes"}),m),Fe=()=>{let c=gd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue();return c.find(V=>V.time>h)},gi=c=>{let h=c;h||(h=Fe());let V=P.info.position$.getValue();pe.log("seek to next episode",{currentTime:V,...h}),h&&(U({message:"seek to next episode"}),qo(h.time,gs.SeekAction.EPISODE,!0))},Mo=()=>{let c=gd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue(),V=c.findIndex(Se=>Se.time>h),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},va=c=>{let h=c;h||(h=Mo());let V=P.info.position$.getValue();pe.log("seek to prev episode",{currentTime:V,...h}),h&&(U({message:"seek to prev episode"}),qo(h.time,gs.SeekAction.EPISODE,!0))},wn=()=>(U({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",{...f}),f),f$=async()=>{let c=ie==null?void 0:ie.isActive(),h="none";ie!=null&&ie.isActive()?(h="exit",await(ie==null?void 0:ie.exit())):(h="request",await(ie==null?void 0:ie.request())),pe.log("toggle picture in picture",{isActive:c,action:h})},m$=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),ei.update(h=>h+c)},tu=le([]);I==null||I.subscribe(c=>{let h=[];for(let V=0;V<c.length;V++){let{range:[oe,Se],subjects:et}=c[V];V===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!et.length||et.every(kt=>kt.isRemoved):!et.length}),Se!==1/0&&h.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}tu.set(h)});let v$=le(!1);T==null||T.subscribe(c=>{c&&ge(Li)&&pn()});let ag=c=>{if(!S)return c;let h=ge(tu),V=ge(Bo),Se=ge($r)/V,et=h.find(kt=>kt.interactive&&!kt.completed&&kt.time>Se);return typeof(et==null?void 0:et.time)=="number"?Math.min(c,et.time-.05):c},g$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},h$=()=>{pe.log("destroy store"),clearTimeout(un),clearTimeout(vo),ye.unsubscribe(),So.unsubscribe(),P.destroy(),Te.destroy(),Z==null||Z.destroy(),X==null||X.destroy(),ee.unsubscribe(),Zt==null||Zt.disconnect(),Zt=null,Ze.destroy()},_$=pi([tr,Ue,Fi],([c,h,V])=>p.features.doubleForwardAvailable&&!c&&h==="video"&&V),Bp=le(!1),lg=2,iu=null,dg=c=>{if(!ge(Nn)&&c)return;let h=P.info.currentPlaybackRate$.getValue();c?h!==lg&&(iu=h,Kn(lg,!1),Bp.set(!0)):(iu&&Kn(iu,!1),Bp.set(!1),iu=null)};Ue.subscribe(c=>{c!=="video"&&dg(!1)});let b$=()=>{fa(!1),Jt.set(!0)},$$=()=>{ma(!1),Jt.set(!1)},Fp=!1,y$=()=>{mo.set(!0),Fp=P.info.playbackState$.getValue()===mi.PlaybackState.PLAYING,fa(!1)},x$=()=>{mo.set(!1),!ge(Jt)&&Fp&&ma(!1),Fp=!1};P.events.playing$.subscribe(()=>{ge(Jt)&&fa(!1)});let Qt={interfaceLanguage$:Le,isCyrillicRelatedInterface$:Pt,initVideo:ui,videoId:i,isClip:o,playerPhase:Ue,vsid:Dt,state:{positionExact$:St,positionWithScrubbing$:sl,duration$:Bo,playbackState$:Gt,playbackStateRealistic$:Di,isPlaying$:Nn,isLoaderVisible:Yi,bufferedProgress$:Ai,isLive$:Co,canChangePlaybackSpeed$:Fi,isActiveLive$:tr,isOldestAvailableLive$:br,isRewindableLive$:Vr,isEnded$:tn,muted$:yo,volume$:Lr,trafficSavingEnabled$:ro,highQualityEnabled$:Ii,autoQualityLimitingAvailable$:on,availableVideoStreams$:Rr,availableAudioStreams$:On,videoStream$:Dn,audioStream$:ao,currentQuality$:sn,isAutoQualityEnabled$:rn,availableQualities$:Fn,currentPlaybackRate$:Hn,availablePlaybackRates$:Fo,currentSubtitle$:Io,availableTextTracks$:Hi,availableSubtitlesList$:zn,currentSubtitleCaptions$:xt,isAutoSubtitleCaptionVisible$:lo,chromecastState$:Jn,chromecastDeviceName$:Mr,chromecastConnected$:so,currentFormat$:ts,throughputEstimation$:_s,videoBitrate$:is,videoSize$:er,errorLog$:be,crashed$:ot,isAudioAvailable$:bn,isAudioDisabled:!!l,canDownload:J.features.download&&!!d,availableSources$:Zi,hasMpegSources$:Ho,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ge(tu).length,interactiveEpisodes$:tu,isInteractiveTime$:T?ri(T):le(!1),isInteractiveExpectation$:v$,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:A,looped$:wr,loadedMetadata$:Rt,isAutoQualityAvailable$:$n,previewTrackActive:Jt,previewTrackDragInProgress:mo},ui:{t:ut,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:W.length?W.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Ft},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ft,isFullscreenOpenedByKeyboard:Bt,rotateAlpha:ei,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:Ht,isMobile:Be,mobileNotReportControlHidden$:zi,icon3DVideoVisible:le(!1),scrubbingInProgress:Li,volumeChangingInProgress:Ds,is3DVideo:$e,currentGridType$:Sr,additionalButtonsDeprecated$:Bs,additionalDesktopControlPanelRightButtons$:Fs,additionalSettingsMenuItems$:dl,additionalContextMenuItems$:st,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:lr,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:Bp,doubleForwardAvailable$:_$,previewTrackNotificationVisible:le(!1),previewTrackActive:Jt,previewTrackDragInProgress:mo,previewTrackAvailable:he,isPreviewTrackHorizontallyAligned:ti},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Oe,slotsApi:De,focusManager:it},actions:{internal:{preload:yn,firstStart:c=>eu(c,!1),play:()=>ma(!1),pause:()=>fa(!1),togglePlay:xn,toggleMuted:Ei,openSettingsMenu:Fr,closeSettingsMenu:Br,openSettingsSubMenu:ns,closeSettingsSubMenu:os,setVolume:c=>an(c,!1),setMuted:c=>uo(c,!1),startVolumeChanging:al,stopVolumeChanging:ll,setVideoStream:Nr,setAudioStream:c=>Bn(c,!1),setQuality:(c,h)=>fo(c,h,!1),setTrafficSavingEnabled:(c,h)=>Lo(c,h,!1),setHighQualityEnabled:(c,h)=>Wn(c,h,!1),setPlaybackRate:Kn,incrementPlaybackRate:bs,decrementPlaybackRate:ss,setSubtitle:c=>Ye(c,!1),toggleSubtitle:()=>qt(!1),togglePictureInPicture:f$,startScrubbing:ci,progressScrubbing:oi,completeScrubbing:fd,toggleChromecast:Jc,switchToActiveLive:_i,switchFromAdsToVideo:pa,switchFromVideoToAds:ml,skipAd:Mi,setLiveWaitingStart:Np,setLiveWaitingRecover:Yc,setLiveWaitingRecord:jc,getDebugTextData:Xc,getTraceTextData:Op,getDebugPanelData:Zc,getVideoElement:vl,seekTime:(c,h,V)=>qo(c,h,V),clearDelayedBufferingCheckTimeout:Rn,seekEpisodeStartTime:Ns,seekToPercent:cn,getNextEpisode:Fe,seekToNextEpisode:gi,getPrevEpisode:Mo,seekToPrevEpisode:va,startLogging:_n,stopLogging:Tt,startCameraManualRotation:Ut,stopCameraManualRotation:K,moveCameraFocusPX:At,holdCamera:si,releaseCamera:dt,getVideoEpisodes:gd,getPreviewThumbsData:wn,downloadVideo:co,addLanguage:Yf,setLanguage:fe,nextMovie:ht,videoRotate:m$,correctSeekTimeToInteractive:ag,replayInteractive:N,setLooped:zo,reportProblem:rs,setAutoplayNextEnabled:Ke,setTimerNextVideoRunning:Lt,prevVideoClick:hi,nextVideoClick:Po,nextVideoAnnouncementShow:Ao,nextVideoAnnouncementClick:Wo,nextVideoAnnouncementAuto:po,nextVideoAnnouncementCancel:Ji,checkFullscreenSupport:at,changeDoubleForwardOn:dg,closePreviewTrack:$$,previewTrackOpened:b$,previewTrackDragStarted:y$,previewTrackDragFinished:x$},external:{firstStart:c=>eu(c,!0),play:()=>ma(!0),pause:()=>fa(!0),stop:()=>Dp(!0),seekTime:c=>Os(c),seekEpisodeStartTime:c=>da(c),setPlaybackRate:c=>ct(c),setAutoQualityLimits:c=>la(c),setMuted:c=>uo(c,!0),toggleSubtitle:()=>qt(!0),changeSubtitle:Ci,setVolume:c=>an(c,!0),returnFocusToEpisodes:g$,updateAdditionalSettingsItem:fl,addAdditionalSettingsItem:vd,removeAdditionalSettingsItem:ua,updateAdditionalContextItem:pt,addAdditionalContextItem:Ui,removeAdditionalContextItem:Qo,updateAdditionalButton:cl,addAdditionalButton:md,removeAdditionalButton:ul,setLiveLowLatency:pl,hideControls:()=>dn(!1),showControls:()=>dn(!0),setQuality:c=>fo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Lo(c,"to-video",!0),setHighQualityEnabled:c=>Wn(c,"to-video",!0),changeAudioStream:di}},callbacks:s,setUiCallbacks:c=>{He={...c}},getAdmanWrapper:()=>Te,getLogger:()=>ze,getPlayer:()=>P,destroy:h$};return Qt};function Xn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=As(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Ux=["disabledControls$","additionalButtons"],zx=["interactiveTimeIndicator"],ed=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Ux.includes(r)){let l=o||zx.includes(r);a.set(Xn(t,i,r,l))}}};var cp=async(t,e,i)=>{await bo(),e&&i&&(i.focus(),t.set(!1))};var Wx=Ce('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function Fm(t){Xe(t,{children:(e,i)=>{var o=Wx();b(e,o)},$$slots:{default:!0}})}function Hm(t,e){B(e,!0);let[i,o]=Ve(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,f=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=q(void 0);Ne(()=>{n($)&&It(()=>{p.set(n($))})});let y=T=>{let N=ta(T),k=eb(n($));f.set(k),u.set(N),s.set(!r())},_=()=>{m.set(!0)},S=()=>{m.set(!1)},I=v(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:_,blur:S,get ariaExpanded(){return r()},get ref(){return n($)},set ref(T){O($,T,!0)},children:(T,N)=>{Fm(T,{})},$$slots:{default:!0}}),F(),o()}var Kx=t=>{t.stopPropagation()},qx=M("<div><!> <div></div> <div></div></div>"),Qx={hash:"s-26",code:'.interactive-episode-icon-animated.s-26{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-26{height:28px;width:28px}.invisible.s-26{opacity:0;visibility:hidden}.fullscreen.s-26:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-26{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-26{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-26{right:16px;top:40px}}@keyframes s-26-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-26{animation:s-26-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-26{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-26{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-26{display:none}'};function bc(t,e){var X;B(e,!0),Q(t,Qx);let[i,o]=Ve(),r=()=>x(S,"$isMobile",i),a=()=>x(k,"$areControlsVisible",i),l=()=>x(A,"$currentGridType$",i),d=()=>x(T,"$isInteractiveTime$",i),s=()=>x(_,"$interactiveControlsOpacity$",i),u=()=>x(N,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(I,"$isFullscreen",i),f=g(e,"ref",15,void 0),p=q(void 0),$=ve(),y=wo(),{interactiveControlsOpacity$:_}=y,S=$.ui.isMobile,I=$.ui.isFullscreen,T=$.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,k=$.ui.controlsVisible,E=(X=$.callbacks)==null?void 0:X.onInteractiveTimeIndicatorClick,A=$.ui.currentGridType$,W=v(()=>!r()&&a()),H=v(()=>Ps(l(),"s")),z=v(()=>!d()||!!s()||n(W)),Y=q(!1);Ne(()=>{O(Y,n(z),!0)});let ae=()=>{O(Y,!0)},j=()=>{var ie;ne(),(ie=n(p))==null||ie.addEventListener("animationiteration",ae,{once:!0})},ne=()=>{var ie;O(Y,!1),(ie=n(p))==null||ie.removeEventListener("animationiteration",ae)},Z=ie=>{N.set(ie)},we=v(()=>u()&&!n(z));Ne(()=>{u()?j():ne()});let ue=()=>{n(z)||(N.set(!0),E==null||E())};vn(()=>{N.clearTimeout(),ne()});let re=()=>{N.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var xe=qx();let J;xe.__mousemove=[Kx],xe.__click=ue;var Re=C(xe);Oo(Re,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Z,get ref(){return f()},set ref(ie){f(ie)},children:(ie,Oe)=>{cc(ie,{completed:!0})},$$slots:{default:!0}});var pe=L(Re,2);let P;je(pe,ie=>f(ie),()=>f());var ze=L(pe,2);let Te;je(ze,ie=>O(p,ie),()=>n(p)),w(xe),D((ie,Oe,De)=>{J=se(xe,1,"interactive-episode-icon-animated s-26",null,J,ie),P=se(pe,1,"ref-block s-26",null,P,Oe),Te=se(ze,1,"pulse s-26",null,Te,De)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(H)}),()=>({hidden:n(z)}),()=>({paused:n(Y)})]),gt("mouseleave",xe,re),b(t,xe),F(),o()}tt(["mousemove","click"]);function up(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Oo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Ae();let m=v(()=>e.buttonComponent);var f=de(u);Ni(f,()=>n(m),(p,$)=>{$(p,jr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Ls={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Yx=Ce('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function sa(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${gn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=Yx();b(l,s)},$$slots:{default:!0}}),F()}var jx=M('<div class="icon-background-mobile s-23"><!></div>'),Xx={hash:"s-23",code:".icon-background-mobile.s-23{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function qa(t,e){B(e,!0),Q(t,Xx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ve().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Kt(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,f)=>{var p=Ae(),$=de(p);{var y=S=>{var I=jx(),T=C(I);let N=v(()=>e.type==="prev");sa(T,{get size(){return"32"},get reversed(){return n(N)}}),w(I),b(S,I)},_=S=>{let I=v(()=>e.type==="prev");sa(S,{get size(){return"24"},get reversed(){return n(I)}})};R($,S=>{o()?S(y):S(_,!1)})}b(m,p)},$$slots:{default:!0}}),F()}var Zx=Ce('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function $c(t,e){B(e,!0);let i=v(()=>gn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=Zx();b(o,a)},$$slots:{default:!0}}),F()}var wb=require("@vkontakte/videoplayer-shared/es2018");var Jx=M('<div class="icon-background-mobile s-27"></div>'),e2=M("<!> <div><!></div>",1),t2={hash:"s-27",code:".mobile.s-27{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-27{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function td(t,e){B(e,!0),Q(t,t2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,wb.noop),d=G("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Kt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ms.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var f=e2(),p=de(f);{var $=T=>{var N=Jx();b(T,N)};R(p,T=>{o()&&T($)})}var y=L(p,2);let _;var S=C(y);let I=v(()=>o()?"48":"24");$c(S,{get size(){return n(I)}}),w(y),D(T=>_=se(y,1,"s-27",null,_,T),[()=>({mobile:o()})]),b(u,f)},$$slots:{default:!0}}),F()}var i2=Ce('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Ms(t,e){B(e,!0);let i=v(()=>gn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=i2();b(o,a)},$$slots:{default:!0}}),F()}var Sb=require("@vkontakte/videoplayer-shared/es2018");var o2=M('<div class="icon-background-mobile s-22"><!></div>'),n2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function id(t,e){B(e,!0),Q(t,n2);let[i,o]=Ve(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=wo(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),m=g(e,"className",3,""),f=g(e,"click",3,Sb.noop),$=ve().ui.t,{toggle:y}=a,_=v(()=>y),S=v(()=>r()!==null),I=v(()=>n(S)?r():s()),T=v(()=>n(I)?$("tooltip_pause"):$("tooltip_play")),N=v(()=>n(I)?Ms:An),k=v(()=>`${d()?"btn-m--play":""} ${m()}`),E=v(()=>n(S)?n(_):f());Kt(t,{get className(){return n(k)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return ms.KeyK},get ref(){return l()},set ref(A){l(A)},children:(A,W)=>{var H=Ae();let z=v(()=>n(N));var Y=de(H);{var ae=ne=>{var Z=o2(),we=C(Z);Ni(we,()=>n(z),(ue,re)=>{re(ue,{get size(){return"48"}})}),w(Z),b(ne,Z)},j=ne=>{var Z=Ae(),we=de(Z);Ni(we,()=>n(z),(ue,re)=>{re(ue,{get size(){return"24"}})}),b(ne,Z)};R(Y,ne=>{d()?ne(ae):ne(j,!1)})}b(A,H)},$$slots:{default:!0}}),F(),o()}var r2=Ce('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Um(t){Xe(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=r2();b(e,o)},$$slots:{default:!0}})}function yc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Um(d,{})},$$slots:{default:!0}}),F()}var s2=M('<span class="gutter s-25"><span><!></span></span>'),a2={hash:"s-25",code:".gutter.s-25{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-25{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){B(e,!0),Q(t,a2);let[i,o]=Ve(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},f=d("aria_label_autoplay"),p="12",$="#000",y=v(()=>r()?"true":"false");Kt(t,{click:m,get ariaLabel(){return f},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,S)=>{var I=s2(),T=C(I);let N;var k=C(T);{var E=W=>{An(W,{get size(){return p},fill:$})},A=W=>{Ms(W,{get size(){return p},fill:$})};R(k,W=>{r()?W(E):W(A,!1)})}w(T),w(I),D(W=>N=se(T,1,"toggler s-25",null,N,W),[()=>({enabled:r()})]),b(_,I)},$$slots:{default:!0}}),F(),o()}var l2=Ce('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function zm(t){Xe(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=l2();li(),b(e,o)},$$slots:{default:!0}})}function wc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{zm(d,{})},$$slots:{default:!0}}),F()}var d2=Ce('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),c2=Ce('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function Wm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=c2(),d=L(de(l));{var s=u=>{var m=d2();b(u,m)};R(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Sc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=ve().ui.t,s=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,f)=>{let p=v(()=>!!a());Wm(m,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),F()}var Km=require("@vkontakte/videoplayer-core/es2018");function Cc(t,e){B(e,!0);let[i,o]=Ve(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ve(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,f=s.actions.internal.togglePlay,p=v(()=>()=>{if(!l()){m();return}r()===Km.PlaybackState.PAUSED&&f()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),_=v(()=>l()&&r()===Km.PlaybackState.PLAYING);Kt(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(p)},children:(S,I)=>{ec(S,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var qm=require("@vkontakte/videoplayer-shared/es2018");var u2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),p2=M('<img class="icon" aria-hidden="true"/>');function Qa(t,e){"use strict";let i=q(!1),o=()=>{O(i,!0)};var r=Ae(),a=de(r);{var l=s=>{var u=u2();b(s,u)},d=s=>{var u=p2();D(()=>Me(u,"src",e.icon)),gt("error",u,o),Ia(u),b(s,u)};R(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function Qm(t,e){B(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,qm.noop),r=g(e,"ref",15),a=v(()=>o()===qm.noop),l=v(()=>n(a)||i()),d=v(()=>n(a)?"btn-full-opacity":"");Oo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=v(()=>{var f;return(f=e.testId)!=null?f:e.id});Kt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(f,p)=>{Qa(f,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Cb=t=>!!t.buttonComponent;var Vs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var pp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Xn(t,i,r,o))};var fp=require("@vkontakte/videoplayer-shared/es2018"),Tb=10,Ib=40,Gm=.2,m2=.5,v2=65,g2=114,h2=4,Eb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?v2:g2),r=q(!1),a=q(0),l=q(0),d=v(()=>n(o)+Tb-Ib-h2),s=v(()=>(0,fp.interpolate)(n(a),[Gm,1],[0,-n(d)])),u=v(()=>(0,fp.interpolate)(n(a),[Gm,1],[0,Ib])),m=v(()=>(0,fp.interpolate)(n(a),[Gm,1],[0,n(o)+Tb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var S;O(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:_=>{if(!n(r))return;let S=Math.max(Math.min(_.clientY-n(l),0),-n(d));O(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=m2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{O(a,0)}}};var _2=t=>t;function hs(t,{delay:e=0,duration:i=400,easing:o=_2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var b2=M('<span class="root s-2d"> </span>'),$2={hash:"s-2d",code:".root.s-2d{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function Ym(t,e){Q(t,$2);var i=b2(),o=C(i,!0);w(i),D(()=>me(o,e.time)),b(t,i)}var y2=M('<div class="tooltip-wrapper s-v"><div><!></div></div>'),x2={hash:"s-v",code:'.tooltip-wrapper.s-v{display:block;position:relative}.tooltip.s-v{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-v:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-v{opacity:1;visibility:visible}'};function jm(t,e){Q(t,x2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=q(void 0),u=q(void 0);function m(S){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return S<T?T+l():S>e.containerWidth-T?e.containerWidth-T-d():S}let f=v(()=>m(r()));var p=y2(),$=C(p);let y;var _=C($);ni(_,()=>{var S;return(S=e.children)!=null?S:vt}),w($),je($,S=>O(u,S),()=>n(u)),w(p),je(p,S=>O(s,S),()=>n(s)),D(S=>{qe(p,`transform: translate(${n(f)}px, ${a()}px);`),y=se($,1,"tooltip s-v",null,y,S),qe($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var kb=t=>Math.abs(t)/90%4===1;var w2=M('<div class="preview s-u"></div>'),S2=M('<div class="time s-u"> </div>'),C2=M('<div><!> <div class="episode s-u"><!></div> <!></div>'),T2={hash:"s-u",code:".timeline-preview.s-u{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-u{bottom:72px}.preview.s-u{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-u{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-u,.time.s-u{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-u{color:var(--white)}"};function Xm(t,e){B(e,!0),Q(t,T2);let[i,o]=Ve(),r=()=>x(y,"$rotateAlpha",i),a=()=>x(_,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),m=g(e,"progress",3,0),f=g(e,"duration",3,0),p=g(e,"isInteractive",3,!1),$=ve(),y=$.ui.rotateAlpha,_=$.ui.playerSize,S=q(0),I=q(0),T=q(""),N=q(0),k=q(0),E=q(0),A=q(0),W=v(()=>op(m(),f(),u())),H=v(()=>Zl(r())),z=v(()=>kb(r())),Y=v(ne),ae=v(()=>(n(z)?1:-1)*(n(S)/2-n(I)/2)),j=v(()=>n(ae)*-1);Ne(()=>{(X=>{O(S,X.width,!0),O(I,X.height,!0)})(we())}),Ne(()=>{(X=>{O(T,X.imgSrc,!0),O(N,X.imgWidth,!0),O(k,X.imgHeight,!0),O(E,X.imgOffsetX,!0),O(A,X.imgOffsetY,!0)})(ue(m()))});function ne(){var De;let X=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=Z(),Oe=30;return(De=n(W))!=null&&De.text&&(Oe+=16),(ie||n(H))&&(Oe+=18,Oe+=50),Math.min(Math.max(a().height-Oe,0),X)}function Z(){let X=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Oe=ie>X;return{width:X,height:ie,isHorizontal:!Oe,isVertical:Oe}}function we(){let{height:X,isHorizontal:ie,isVertical:Oe,width:De}=Z();return ie&&(X=X/De*n(Y),De=n(Y)),Oe&&(De=De/X*n(Y),X=n(Y)),{width:De,height:X}}function ue(X){let ie;e.previewThumbsData.isUV?ie=Math.floor(f()*X/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*X)));let Oe=Math.floor(ie/e.previewThumbsData.countPerImage),De=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),it=ie%e.previewThumbsData.countPerRow,U=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(U=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&U++);let Pe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Pe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=n(S)*Pe,He=n(I)*U,Ze=-it*n(S),ye=-De*n(I);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Ee,imgHeight:He,imgOffsetX:Ze,imgOffsetY:ye}}var re=C2();let _e;var xe=C(re);{var J=X=>{var ie=w2();D(()=>qe(ie,`width: ${n(S)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(N)}px ${n(k)}px; background-position: ${n(E)}px ${n(A)}px;
|
|
61
|
-
transform: rotate(${r()}deg) ${n(H)?`translate(${n(ae)}px, ${n(
|
|
62
|
-
`)),b(X,ie)};R(xe,X=>{n(T)&&X(J)})}var Re=L(xe,2),pe=C(Re);{var P=X=>{var ie=Ae(),Oe=de(ie);{var De=U=>{var Pe=fs();D(Ee=>me(Pe,Ee),[()=>G("tooltip_episode_unfinished")]),b(U,Pe)},it=U=>{var Pe=fs();D(()=>me(Pe,n(W).text||"")),b(U,Pe)};R(Oe,U=>{p()&&n(W).completed===!1?U(De):U(it,!1)})}b(X,ie)};R(pe,X=>{n(W)&&X(P)})}w(Re);var ze=L(Re,2);{var Te=X=>{var ie=S2(),Oe=C(ie,!0);w(ie),D(()=>me(Oe,d())),b(X,ie)};R(ze,X=>{p()||X(Te)})}w(re),D(X=>{_e=se(re,1,"timeline-preview s-u",null,_e,X),qe(re,`width: ${n(H)?n(I):n(S)}px;`)},[()=>({mobile:s()})]),b(t,re),F(),o()}var I2=M('<span class="time s-f"> </span>'),E2=M("<!> <!>",1),k2={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Zm(t,e){var fe,Le,$t,Pt,ut;B(e,!0),Q(t,k2);let[i,o]=Ve(),r=()=>x(j,"$interactiveEpisodes$",i),a=()=>x(A,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(we,"$isInteractiveExpectation$",i),s=()=>x(Z,"$isInteractiveTime$",i),u=()=>x(xe,"$previewTrackActive",i),m=()=>x(W,"$isLive$",i),f=()=>x(_e,"$disabledControls$",i),p=()=>x(z,"$isMobile",i),$=()=>x(H,"$isActiveLive$",i),y=()=>x(k,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),T=ve(),N=Vt(),k=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,A=T.state.duration$,W=T.state.isLive$,H=T.state.isActiveLive$,z=T.ui.isMobile,Y=N.features.episodes&&S()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),j=T.state.interactiveEpisodes$,ne=T.state.isInteractive,Z=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,ue=T.actions.internal.correctSeekTimeToInteractive,re=(fe=T.callbacks)==null?void 0:fe.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,xe=T.ui.previewTrackActive,J=($t=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:$t.onTimelineMouseEnter,Re=(ut=(Pt=T.callbacks)==null?void 0:Pt.uiInfo)==null?void 0:ut.onTimelineMouseLeave,pe=T.ui.t,P=N.features.interactiveResponsiveUi,ze=v(()=>ne?r():Y),Te=v(()=>en(a())),X=v(()=>en(l())),ie=v(()=>l()/a()),Oe=v(()=>d()||s()),De=q(!1),it=q(""),U=q(0),Pe=q(0),Ee=q(0),He=v(()=>({containerWidth:n(Pe),translateXPx:n(U),translateYPx:ne&&ae?-36:-16,active:n(De)&&_()&&!n(Oe)&&!P&&!u(),pointer:!N.features.timelinePreview||!ae||m()})),Ze=pe("aria_timeline"),ye=v(()=>pe("aria_timeline_value",{position:n(X),duration:n(Te)}));function ke(ce){return!ue||!ne?ce:ue(ce*a())/a()}function Be(ce,Ue){var Ge;(Ge=e.onSliderPointerDown)==null||Ge.call(e,Ue),T.actions.internal.startScrubbing(ke(ce))}function Dt(ce){s()||T.actions.internal.progressScrubbing(ke(ce))}function ft(ce){var Ue;T.actions.internal.completeScrubbing(ke(ce)),O(De,!1),(Ue=e.onSliderPointerUp)==null||Ue.call(e)}function Bt(ce,Ue,Ge){var lt;(lt=e.onSliderPointerEnter)==null||lt.call(e,ce),ei(ce,Ue,Ge),O(De,!0)}function at(ce,Ue,Ge,lt){var Ft;(Ft=e.onSliderMove)==null||Ft.call(e,lt,ce),ei(ce,Ue,Ge),O(De,!0)}function Ct(){var ce;O(De,!1),(ce=e.onSliderLeave)==null||ce.call(e)}function ei(ce,Ue,Ge){O(Ee,ke(ce),!0),O(U,Ue,!0),Ge&&O(Pe,Ge,!0),O(it,Rt(ce),!0)}function Rt(ce){let Ue=en((m()?1-ce:ce)*a());return m()?`-${Ue}`:Ue}let $e=v(()=>f().has("TIMELINE"));var be=E2(),ee=de(be);jm(ee,jr(()=>n(He),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ce,Ue)=>{var Ge=Ae(),lt=de(Ge);{var Ft=ii=>{Xm(ii,{get time(){return n(it)},get isMobile(){return p()},get videoEpisodes(){return n(ze)},get previewThumbsData(){return ae},get progress(){return n(Ee)},get duration(){return a()},get isInteractive(){return ne}})},Ht=ii=>{var bi=I2(),Yi=C(bi,!0);w(bi),D(()=>me(Yi,n(it))),b(ii,bi)};R(lt,ii=>{N.features.timelinePreview&&ae&&!m()?ii(Ft):ii(Ht,!1)})}b(ce,Ge)},$$slots:{default:!0}}));var ot=L(ee,2);Wa(ot,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return p()},get ariaLabel(){return Ze},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(ye)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(ze)},onPointerDown:Be,onHandleMove:Dt,onPointerMove:at,onPointerUp:ft,onPointerEnter:Bt,onPointerLeave:Ct,get onMouseEnter(){return J},get onMouseLeave(){return Re},get onDisabledClick(){return re},get isInteractive(){return ne},get disabled(){return n($e)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:ft,get ref(){return I()},set ref(ce){I(ce)}}),b(t,be),F(),o()}var P2={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Tc(t,e){B(e,!0),Q(t,P2);let[i,o]=Ve(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),s=d.ui.isMobile,u=d.ui.t,m=v(()=>en(l())),f=v(()=>en(a())),p=v(()=>a()/l()),$=v(()=>u("aria_timeline_value",{position:n(f),duration:n(m)})),y=v(()=>Math.round(n(p)*100));Wa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var A2=M("<div><!></div>"),L2=M("<div></div>"),M2={hash:"s-a",code:".timeline.s-a{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-a{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-a{padding:0}.timeline-stub.s-a{min-width:20px;width:100%}.timeline-stub.mobile.s-a{height:8px}"};function Ga(t,e){B(e,!0),Q(t,M2);let[i,o]=Ve(),r=()=>x(S,"$isLive$",i),a=()=>x(N,"$isMobile",i),l=()=>x(k,"$disabled",i),d=()=>x(T,"$adPosition",i),s=()=>x(I,"$adDuration",i),u=g(e,"isAds",3,!1),m=g(e,"isHidden",3,!1),f=g(e,"timelineNotAvailable",3,!1),p=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=ve(),_=Vt(),S=y.state.isLive$,I=y.ads.duration,T=y.ads.position,N=y.ui.isMobile,k=le(!1),E=v(()=>!f()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var A=Ae(),W=de(A);{var H=Y=>{var ae=A2();let j;var ne=C(ae);{var Z=ue=>{Tc(ue,{get position(){return d()},get duration(){return s()}})},we=ue=>{Zm(ue,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(re){$(re)}})};R(ne,ue=>{u()?ue(Z):ue(we,!1)})}w(ae),Is(ae,()=>zl(m()&&_.features.usePerformanceFix,k,_.disableInvisibleComponentsTimeout)),D(ue=>j=se(ae,1,"timeline s-a",null,j,ue),[()=>({withoutPadding:!p(),mobile:a(),"out-of-flow":l()})]),b(Y,ae)},z=Y=>{var ae=L2();let j;D(ne=>j=se(ae,1,"timeline-stub s-a",null,j,ne),[()=>({mobile:a()})]),b(Y,ae)};R(W,Y=>{n(E)?Y(H):Y(z,!1)})}b(t,A),F(),o()}var Pb=require("@vkontakte/videoplayer-shared/es2018");var V2=(t,e,i,o,r,a,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),a(l())},R2=M("<div></div>"),N2=M('<div><div class="track s-2c"></div></div>'),O2={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function ev(t,e){B(e,!0),Q(t,O2);let[i,o]=Ve(),r=()=>x(N,"$rotateAlpha",i),a=()=>x(_,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:f=[],frameHeight:p=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:S,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,N=d.ui.rotateAlpha,k=q(void 0),E=q(!1),A=q(0),W=q(0),H=q(0),z=q(0),Y=v(()=>p<=$),ae=v(()=>Zl(r())),j=v(()=>n(Y)?!n(ae):n(ae)),ne=114,Z=65,we=3,ue=v(()=>n(j)?ne:Z),re=v(()=>n(Y)?ne:Z),_e=v(()=>n(Y)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),xe=v(()=>m*n(ue)),J=q(0);Ne(()=>{O(z,Math.ceil(-n(H)/n(ue))-1),O(H,-n(xe)*a()/l())});let Re=()=>{T(pe(),!0)},pe=()=>l()*-n(H)/n(xe)/l(),P=!1,ze=ye=>{if(!n(E))return!1;let ke=ye.clientX-n(A);O(H,n(W)+ke),O(H,Math.max(Math.min(n(H),0),-n(xe)),!0),Math.abs(ke)>1&&(P=!0),I(pe())},Te=ye=>{n(E)&&(O(E,!1),!P&&ye&&O(H,-(ye.offsetX-n(J)/2)),P=!1,Re())},X=()=>{n(E)&&Te()},ie=v(()=>s/u),Oe=(ye,ke)=>{if(ye!==f.length-1)return u;let Be=0,Dt=ke*u;for(let ft=1;ft<=u;ft++)ye*s+Be+Dt<m&&Be++;return Be},De=v(()=>Math.floor(n(z)/s)),it=v(()=>(0,Pb.getRangeAroundIndex)(3,n(De),f.length-1)),U=(ye,ke,Be)=>{let Dt=s*n(ue);return ye*Dt+ke*n(ue)*u+n(J)/2-we/2+Be*n(ue)},Pe=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(_e)}`].join(";"));var Ee=N2();let He;var Ze=C(Ee);Ze.__pointerdown=[V2,E,A,W,H,S,pe],Ze.__pointermove=ze,Ze.__pointerup=Te,yi(Ze,20,()=>n(it),ye=>ye,(ye,ke)=>{var Be=Ae(),Dt=de(Be);yi(Dt,16,()=>Array.from({length:n(ie)},(ft,Bt)=>Bt),ft=>ft,(ft,Bt)=>{var at=Ae(),Ct=de(at);yi(Ct,16,()=>Array.from({length:Oe(ke,Bt)},(ei,Rt)=>Rt),ei=>ei,(ei,Rt)=>{var $e=R2();D((be,ee)=>{qe($e,be),se($e,1,ee,"s-2c")},[()=>`--row-index: ${Bt}; --column-index: ${Rt}; left: ${U(ke,Bt,Rt)}px; background-image: url(${f[ke]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ei,$e)}),b(ft,at)}),b(ye,Be)}),w(Ze),w(Ee),je(Ee,ye=>O(k,ye),()=>n(k)),D(ye=>{He=se(Ee,1,"root s-2c",null,He,ye),qe(Ee,n(Pe)),qe(Ze,`transform: translateX(${n(H)}px); width: ${n(xe)}px;`)},[()=>({"is-vertical-video":!n(Y),"vertically-rotated":n(ae)})]),gt("mouseleave",Ze,X),kn(Ee,"clientWidth",ye=>O(J,ye)),b(t,Ee),F(),o()}tt(["pointerdown","pointermove","pointerup"]);var D2=M('<div class="notification s-2b"><span class="description s-2b"> </span></div>'),B2={hash:"s-2b",code:".notification.s-2b{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2b{font-size:14px;line-height:18px}"};function tv(t,e){B(e,!1),Q(t,B2);let i=340,{ui:{t:o}}=ve();xo();var r=D2(),a=C(r),l=C(a,!0);w(a),w(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],Sn),Yr(3,r,()=>hs,()=>({duration:i})),b(t,r),F()}var Ab=require("@vkontakte/videoplayer-shared/es2018"),F2=M('<div class="preview-track-close tooltip s-29"><!></div>'),H2=M('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),U2=M('<div class="wrapper-preview-track s-29"><!></div>'),z2=M('<div class="enriched-timeline s-29"><!> <!> <!></div>'),W2={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function iv(t,e){B(e,!0),Q(t,W2);let[i,o]=Ve(),r=()=>x(_,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(p,"$position$",i),s=()=>x($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),m=ve(),f=200,{positionWithScrubbing$:p,isRewindableLive$:$,duration$:y}=m.state,{playerSize:_,previewTrackActive:S}=m.ui,{countPerImage:I=0,links:T=[],frequency:N=0}=m.actions.internal.getPreviewThumbsData()||{},k=v(()=>r().width>100),E=q(!N_()),A=()=>{n(E)&&(R_(),O(E,!1))},W=ue=>{let re=Math.floor(a()*ue/N),_e=Math.floor(re/I),xe=(0,Ab.getRangeAroundIndex)(3,_e,T.length-1);for(let J of xe){let Re=new Image;Re.src=T[J]}},H=(ue,re)=>{W(re),!l()&&e.onTimelineMove(ue)};var z=z2(),Y=C(z);{var ae=ue=>{var re=H2(),_e=C(re);let xe=v(()=>en(d()));Ym(_e,{get time(){return n(xe)}});var J=L(_e,2),Re=C(J);ks(Re,{onClick:()=>m.actions.internal.closePreviewTrack()}),w(J);var pe=L(J,2);{var P=ze=>{var Te=F2(),X=C(Te);tv(X,{}),w(Te),b(ze,Te)};R(pe,ze=>{n(E)&&ze(P)})}w(re),gt("mouseleave",J,A),Yr(3,re,()=>hs,()=>({duration:f})),b(ue,re)};R(Y,ue=>{l()&&ue(ae)})}var j=L(Y,2);let ne=v(()=>!n(k));Ga(j,{get isHidden(){return n(ne)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:W,get ref(){return u()},set ref(ue){u(ue)}});var Z=L(j,2);{var we=ue=>{var re=U2(),_e=C(re);ev(_e,{}),w(re),D(()=>qe(re,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ue,re)};R(Z,ue=>{e.previewTrackAvailable&&ue(we)})}w(z),D(()=>qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var q2=M('<div><!> <div class="controls s-12" data-testid="player_controls"><div class="controls-left s-12"><!> <!> <!></div> <div class="controls-right s-12"></div></div></div> <!>',1),Q2={hash:"s-12",code:'.wrapper-bottom.s-12{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-12:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-12>:where(.s-12){pointer-events:auto}.controls.s-12{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-12,.controls-right.s-12{align-content:center;display:flex}.controls-left.s-12{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-12 >:not(:first-child),.controls-right.s-12 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-12{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-12{transition:none}'};function nv(t,e){var ua,Cr;B(e,!0),Q(t,Q2);let[i,o]=Ve(),r=()=>x(So,"$disabledControls$",i),a=()=>x(nt,"$adPlaybackState",i),l=()=>x(Ht,"$playbackState$",i),d=()=>x($o,"$currentSubtitle$",i),s=()=>x(Yi,"$isEnded$",i),u=()=>x(tn,"$currentGridType$",i),m=()=>x(Nt,"$isLive$",i),f=()=>x(We,"$chromecastState$",i),p=()=>x(ht,"$isPictureInPictureActive",i),$=()=>x(jt,"$pictureInPictureType$",i),y=()=>x(wi,"$availableSubtitlesList$",i),_=()=>x(Ut,"$contextMenuOpenedByKeyboard$",i),S=()=>x(Tt,"$showContextMenuBtn$",i),I=()=>x(vi,"$isRewindableLive$",i),T=()=>x(ui,"$isActiveLive$",i),N=()=>x(is,"$graphIsOpened$",i),k=()=>x(_n,"$contextMenuVisible$",i),E=()=>x(Di,"$isFullscreen",i),A=()=>x(Fi,"$autoplayNextEnabled",i),W=()=>x(n(Ai),"$prevButton",i),H=()=>x(n(Zi),"$replayButton",i),z=()=>x(n(Ho),"$playButton",i),Y=()=>x(n(Uo),"$nextButton",i),ae=()=>x(n(co),"$playPrevChapterButton",i),j=()=>x(n(Ei),"$seekToInteractiveButton",i),ne=()=>x(n(Br),"$interactiveGraphButton",i),Z=()=>x(n(Fr),"$liveButton",i),we=()=>x(n(os),"$time",i),ue=()=>x(n(ns),"$episodes",i),re=()=>x(n(Hr),"$vkLogo",i),_e=()=>x(n(ko),"$volume",i),xe=()=>x(n(an),"$subtitles",i),J=()=>x(n(uo),"$settings",i),Re=()=>x(n(wr),"$context",i),pe=()=>x(n(zo),"$fullscreen",i),P=()=>x(n(rs),"$chromecast",i),ze=()=>x(Co,"$additionalDesktopControlPanelRightButtons$",i),Te=()=>x(Bi,"$playerSize",i),X=()=>x(on,"$isInteractiveTime$",i),ie=()=>x(Jt,"$previewTrackActive",i),Oe=()=>x(xi,"$settingsMenuVisible",i),De=()=>x(po,"$settingButtonRef$",i),it=()=>x(K,"$startedByKeyboard$",i),U=()=>x(ii,"$isAudioAvailable$",i),Pe=()=>x(be,"$fakeIsPlaying$",i),Ee=()=>x(_s,"$seekToInteractiveDisabledTooltip$",i),He=()=>x(wt,"$isPreviewTrackHorizontallyAligned$",i),Ze=()=>x(he,"$previewTrackAvailable",i),ye=()=>x(mo,"$previewTrackDragInProgress",i),ke=()=>x(Gt,"$adPosition",i),Be=()=>x(Ft,"$position$",i),Dt=()=>x(St,"$adDuration",i),ft=()=>x(lt,"$duration$",i),Bt=g(e,"playerControlsWrapperRef",15,void 0),at=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),ei=g(e,"logoTargetUrl",3,""),Rt=g(e,"isOneVideoPlaylist",3,!1),$e=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=wo(),ee=ve(),ot=wo(),fe=Vt(),Le=ee.actions.internal.toggleMuted,$t=ee.actions.internal.togglePlay,Pt=ee.actions.internal.pause,ut=ee.actions.internal.toggleSubtitle,ce=ee.actions.internal.checkFullscreenSupport,Ue=(ua=ee.callbacks)==null?void 0:ua.onAudioDoesNotExistHint,Ge=(Cr=ee.callbacks)==null?void 0:Cr.onAudioDisabledHint,lt=ee.state.duration$,Ft=ee.state.positionWithScrubbing$,Ht=ee.state.playbackState$,ii=ee.state.isAudioAvailable$,bi=ee.state.isAudioDisabled,Yi=ee.state.isEnded$,Nt=ee.state.isLive$,ui=ee.state.isActiveLive$,vi=ee.state.isRewindableLive$,{isActive$:ht,type$:jt}=ot.pictureInPicture$,xi=ee.ui.settingsMenu.visible$,ji=ee.ui.settingsMenu.openedByBtnKeyboard$,Zt=ee.ui.controls,Et=ee.actions.internal.getVideoEpisodes(),We=ee.state.chromecastState$,wi=ee.state.availableSubtitlesList$,$o=ee.state.currentSubtitle$,So=Zt.disabledControls$,_n=ee.ui.contextMenu.visible$,Tt=ee.ui.contextMenu.showContextMenuBtn$,Ut=ee.ui.contextMenu.openedByBtnKeyboard$,K=ee.ui.startedByKeyboard$,At=ee.ui.controlBlocks,si=ee.ui.previewTrackNotificationVisible,dt=ee.ui.t,St=ee.ads.duration,Gt=ee.ads.position,nt=ee.ads.playbackState,Di=ee.ui.isFullscreen,Bi=ee.ui.playerSize,tn=ee.ui.currentGridType$,Co=ee.ui.additionalDesktopControlPanelRightButtons$,Fi=ee.ui.autoplayNextEnabled$,Xi=ee.actions.internal.getVideoElement,Lr=ee.actions.internal.replayInteractive,yo=ee.actions.internal.prevVideoClick,ro=ee.actions.internal.nextVideoClick,Ii=ee.state.isInteractive,on=ee.state.isInteractiveTime$,nn=ee.state.showInteractiveGraph,Vn=ee.state.showSeekToInteractive,Jn=ee.state.showPlayPrevChapter,Mr=ee.state.showInteractiveTimeIndicator,ts=ee.state.playPrevChapterDisabledTooltip,_s=ot.seekToInteractiveDisabledTooltip$,is=ot.graphIsOpened$,er=fe.features.interactiveResponsiveUi,_r=v(()=>r().has("EPISODE_BUTTON")),bn=v(()=>r().has("GRAPH_BUTTON")),Rn=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Bo=v(()=>r().has("PLAY_BUTTON")),Nn=v(()=>r().has("REPLAY_BUTTON")),tr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),br=()=>ee.actions.internal.toggleChromecast(),$r=v(()=>Ct()?a()==="playing":l()===Ya.PlaybackState.PLAYING),Vr=v(()=>d().value!=="off"),so=v(()=>s()&&!Ct()||Ii),Rr=v(()=>er?n(so)&&io(u(),"m"):n(so)),On=v(()=>!s()||Ii||Ct()),Dn=v(()=>io(u(),"m")),ao=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.nextButtonActive),Nr=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.prevButtonActive),Bn=v(()=>!Ct()&&!!m()),mt=v(()=>f()!==Ya.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&io(u(),"m")&&!Ii),di=v(()=>e.showAutoplayNext&&!Rt()&&io(u(),"s")),yr=v(()=>y().length>0&&io(u(),"m")),ir=v(()=>_()||S()),or=v(()=>io(u(),"s")&&!Ct()),rn=v(()=>!e.logoHidden&&!Ct()),xr=v(()=>fe.features.fullscreen&&ce()&&(e.logoHidden||io(u(),er?"xs":"s"))&&!(p()&&$()===1)&&(Ii?$e():!0)),sn=v(()=>(!m()||Ct())&&!(fe.features.interactiveHideTime&&Ii)),$n=v(()=>nn&&io(u(),"m")),Fn=v(()=>er?Vn&&io(u(),"s"):Vn),Hn=v(()=>er?Jn&&io(u(),"s"):Jn),Fo=v(()=>!Ct()&&!m()&&!!(Et!=null&&Et.length)&&n(Dn)&&!n(_r)),To=v(()=>!I()||!!T()),nr=v(()=>N()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),Io=v(()=>k()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),Hi=(st,pt)=>st?pt&&pt===Ya.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Un=v(()=>Hi(n(To),l())),rr=v(()=>fe.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Or=v(()=>n(Vr)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),zn=v(()=>E()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),Eo=v(()=>f()===Ya.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),Dr=v(()=>A()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),yt=q(0),xt=ai({}),lo=ai({}),Ai=v(()=>Zt.prevButton),Zi=v(()=>Zt.replayButton),Ho=v(()=>Zt.playButton),Uo=v(()=>Zt.nextButton),co=v(()=>Zt.playPrevChapterButton),Ei=v(()=>Zt.seekToInteractiveButton),Br=v(()=>Zt.interactiveGraphButton),Fr=v(()=>Zt.liveButton),os=v(()=>Zt.time),ns=v(()=>Zt.episodes),Hr=v(()=>Zt.vkLogo),ko=v(()=>Zt.volume),an=v(()=>Zt.subtitles),uo=v(()=>Zt.settings),wr=v(()=>Zt.context),zo=v(()=>Zt.fullscreen),rs=v(()=>Zt.chromecast),Ke=v(()=>({prevButton:W()?W().right-W().left:0,replayButton:H()?H().right-H().left:0,playButton:z()?z().right-z().left:0,nextButton:Y()?Y().right-Y().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:j()?j().right-j().left:0,interactiveGraphButton:ne()?ne().right-ne().left:0,liveButton:Z()?Z().right-Z().left:0,time:we()?we().right-we().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:re()?re().right-re().left:0,volume:_e()?_e().right-_e().left:0,subtitles:xe()?xe().right-xe().left:0,settings:J()?J().right-J().left:0,context:Re()?Re().right-Re().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:P()?P().right-P().left:0,additionalButtons:ze().length?ze().reduce(st=>[...st,40],[]):[]})),Lt=q(0);Ne(()=>{(!n(Lt)||n(Lt)<n(Ke).time)&&It(()=>O(Lt,n(Ke).time,!0))});let hi=q(!1);Ne(()=>{let st=0;n(Fo)&&(io(u(),"xl")?st=n(Ke).time:st=60);let pt=n(Ke).prevButton+n(Ke).playButton+n(Ke).nextButton+n(Ke).seekToInteractiveButton+n(Ke).interactiveGraphButton+n(Ke).liveButton+n(Lt)+st;O(hi,n(sn)&&n(yt)>=pt,!0)});let Po=v(()=>n(hi)&&io(u(),"m")),Ao=(0,ov.debounceFn)(ed,260),Wo=(0,ov.debounceFn)(pp,260);Ne(()=>{Te(),X(),ie(),Ao(Xi(),Zt,xt,e.showControls),Wo(Xi(),At,lo,e.showControls)}),Ne(()=>{lo.bottom=Bt()});let po=le();Ne(()=>{Oe(),De()&&It(()=>Kl(De(),Oe(),ji))});let Ji;Ne(()=>{it(),It(()=>cp(K,it(),Ji))});function yn(){ia({isAudioDisabled:bi,isAudioAvailable:U(),isAds:Ct(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:Ge})&&Le()}let xn=Ii?Lr:$t,fo=v(()=>Pe()!==null),Lo=v(()=>n(fo)?Pe():n($r)),Wn=v(()=>n(Lo)?dt("tooltip_pause"):dt("tooltip_play")),sr=dt("tooltip_episodes"),ar=v(()=>{var st,pt,Ui,Qo;return n(Nr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ls.prevButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:yo.bind(null,!0)},tooltipEnabled:!((pt=(st=ee.callbacks)==null?void 0:st.uiInfo)!=null&&pt.onPrevButtonMouseEnter)&&!((Qo=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)!=null&&Qo.onPrevButtonMouseLeave),mouseEnter:()=>{var zi,_i,Mi;(Mi=(_i=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:_i.onPrevButtonMouseEnter)==null||Mi.call(_i,Xn(Xi(),xt,"prevButton",e.showControls))},mouseLeave:()=>{var zi,_i,Mi;(Mi=(_i=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:_i.onPrevButtonMouseLeave)==null||Mi.call(_i,Xn(Xi(),xt,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Kn=v(()=>n(Rr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ls.replayButton,buttonComponent:td,buttonComponentProps:{disabled:n(Nn),click:xn},tooltipText:dt("tooltip_restart"),disabled:n(Nn)}:void 0),bs=v(()=>n(On)?{id:"playButton",type:"desktop-control-panel-left",weight:Ls.playButton,buttonComponent:id,buttonComponentProps:{disabled:n(Bo),isPlaying:n($r),click:$t},tooltipText:n(Wn),disabled:n(Bo)}:void 0),ss=v(()=>{var st,pt,Ui,Qo;return n(ao)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ls.nextButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ro.bind(null,!0)},tooltipEnabled:!((pt=(st=ee.callbacks)==null?void 0:st.uiInfo)!=null&&pt.onNextButtonMouseEnter)&&!((Qo=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)!=null&&Qo.onNextButtonMouseLeave),mouseEnter:()=>{var zi,_i,Mi;(Mi=(_i=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:_i.onNextButtonMouseEnter)==null||Mi.call(_i,Xn(Xi(),xt,"nextButton",e.showControls))},mouseLeave:()=>{var zi,_i,Mi;(Mi=(_i=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:_i.onNextButtonMouseLeave)==null||Mi.call(_i,Xn(Xi(),xt,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ye=v(()=>Ii&&n(Hn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ls.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(tr),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(ts),disabled:n(tr)}:void 0),qt=v(()=>Ii&&n(Fn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ls.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(Rn),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n(Rn),disabledTooltipContent:dt(Ee())}:void 0),Ci=v(()=>Ii&&n($n)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ls.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(bn),click:is.toggle,graphIsOpened:N()},tooltipText:n(nr)}:void 0),Ko=v(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ls.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(To),ariaLabel:n(Un)},tooltipText:n(Un),disabled:n(To)&&l()===Ya.PlaybackState.PLAYING}:void 0),ln=v(()=>[n(ar),n(Kn),n(bs),n(ss),n(Ye),n(qt),n(Ci),n(Ko)].filter(st=>!!st).sort(Ba)),lr=v(()=>n(rn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Vs.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:ei(),logoClickable:e.logoClickable,click:Pt},tooltipText:n(rr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),dn=v(()=>n(di)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Vs.autoplayNext,buttonComponent:xc,tooltipText:n(Dr)}:void 0),qo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Vs.volume,buttonComponent:km,buttonComponentProps:{click:yn,isAds:Ct()}})),Ns=v(()=>n(yr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Vs.subtitles,buttonComponent:Cm,buttonComponentProps:{isSubtitlesEnabled:n(Vr),click:ut},tooltipText:n(Or)}:void 0),cn=v(()=>n(or)?{id:"settings",type:"desktop-control-panel-right",weight:Vs.settings,buttonComponent:jl,buttonComponentProps:{ref$:po},tooltipText:Oe()?void 0:dt("tooltip_settings_off")}:void 0),Os=v(()=>fe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Vs.context,buttonComponent:Hm,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n(ir)?"":"out-of-view",tooltipText:n(Io)}:void 0),la=v(()=>n(xr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Vs.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(zn)}:void 0),da=v(()=>n(mt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Vs.chromecast,buttonComponent:vc,buttonComponentProps:{state:f(),click:br},tooltipText:n(Eo)}:void 0),ct=v(()=>[n(lr),n(dn),n(qo),n(Ns),n(cn),n(Os),n(la),n(da),...ze()].filter(st=>!!st).sort(Ba)),Jt=ee.ui.previewTrackActive,mo=ee.ui.previewTrackDragInProgress,he=ee.ui.previewTrackAvailable,wt=ee.ui.isPreviewTrackHorizontallyAligned,ti=v(()=>Eb({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>xt.timeline,isHorizontal:He()})),$i=v(()=>n(ti).progressBarY),Li=v(()=>n(ti).controlsY),ci=v(()=>n(ti).onPointerDown),oi=v(()=>n(ti).onPointerMove),vo=v(()=>n(ti).onPointerUp),un=v(()=>n(ti).calculatedHeight),pn=v(()=>n(ti).closePreviewTrack);Ne(()=>{ie()?si.set(!1):n(pn)()});let ki;Mt(()=>()=>ki&&clearTimeout(ki));let fd=st=>{ie()||!Ze()||(n(ci)(st),ki=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},sl=()=>{ie()||n(vo)(),ki&&clearTimeout(ki),ye()&&ee.actions.internal.previewTrackDragFinished()},Ds=st=>{n(oi)(st),!ie()&&Ze()&&!ie()&&si.set(!0)},al=()=>{si.set(!1)};var ll=q2(),Sr=de(ll);let ca;var Bs=C(Sr);{var Ur=st=>{let pt=v(()=>n($i)()),Ui=v(()=>n(un)());iv(st,{get animatedOffsetY(){return n(pt)},get animatedPreviewTrackHeight(){return n(Ui)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Ds,onTimelinePointerDown:fd,onTimelinePointerUp:sl,onTimelinePointerLeave:al,get previewTrackAvailable(){return Ze()},get timelineRef(){return xt.timeline},set timelineRef(Qo){xt.timeline=Qo}})};R(Bs,st=>{e.showControls&&st(Ur)})}var as=L(Bs,2),Fs=C(as),dr=C(Fs);yi(dr,17,()=>n(ln),st=>st.id,(st,pt)=>{up(st,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipEnabled(){return n(pt).tooltipEnabled},get mouseEnter(){return n(pt).mouseEnter},get mouseLeave(){return n(pt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(Ui){xt[n(pt).id]=Ui}})});var dl=L(dr,2);{var cl=st=>{let pt=v(()=>!e.showControls),Ui=v(()=>Ct()?ke():Be()),Qo=v(()=>Ct()?Dt():ft());dc(st,{get isHidden(){return n(pt)},isMobile:!1,get showDuration(){return n(Po)},get position(){return n(Ui)},get duration(){return n(Qo)},get ref(){return xt.time},set ref(zi){xt.time=zi}})};R(dl,st=>{n(sn)&&st(cl)})}var md=L(dl,2);let ul=v(()=>!n(Fo));Oo(md,{className:"w-max",get disabled(){return n(ul)},get tooltipContent(){return sr},get tooltipVisible(){return e.showControls},get ref(){return xt.episodes},set ref(st){xt.episodes=st},children:(st,pt)=>{var Ui=Ae(),Qo=de(Ui);{var zi=_i=>{gc(_i,{get position(){return Be()},get duration(){return ft()},get timeCodes(){return Et}})};R(Qo,_i=>{n(Fo)&&_i(zi)})}b(st,Ui)},$$slots:{default:!0}}),w(Fs);var pl=L(Fs,2);yi(pl,21,()=>n(ct),st=>st.id,(st,pt)=>{var Ui=Ae(),Qo=de(Ui);{var zi=Mi=>{up(Mi,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(pa){xt[n(pt).id]=pa}})},_i=Mi=>{let pa=v(()=>!!n(pt).disabled);Qm(Mi,{get id(){return n(pt).id},get testId(){return n(pt).testId},get icon(){return n(pt).icon},get ariaLabel(){return n(pt).ariaLabel},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pa)},get onClick(){return n(pt).onClick},get disableMouseupTooltipShow(){return n(pt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(ml){xt[n(pt).id]=ml}})};R(Qo,Mi=>{Cb(n(pt))?Mi(zi):Mi(_i,!1)})}b(st,Ui)}),w(pl),w(as),je(as,st=>at(st),()=>at()),w(Sr),je(Sr,st=>Bt(st),()=>Bt());var fl=L(Sr,2);{var vd=st=>{bc(st,{get ref(){return xt.interactiveTimeIndicator},set ref(pt){xt.interactiveTimeIndicator=pt}})};R(fl,st=>{Mr&&st(vd)})}D((st,pt)=>{ca=se(Sr,1,"wrapper-bottom s-12",null,ca,st),qe(as,pt),as.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ye()}),()=>`transform: translateY(${n(Li)()}px);`]),kn(Fs,"clientWidth",st=>O(yt,st)),b(t,ll),F(),o()}var od=require("@vkontakte/videoplayer-core/es2018");var rv=require("@vkontakte/videoplayer-shared/es2018");var G2=M('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),Y2=M('<img class="icon s-20" aria-hidden="true"/>'),j2={hash:"s-20",code:".icon.s-20{height:24px!important;width:24px!important}.inner.s-20{background-color:var(--white);height:16px;width:16px}"};function sv(t,e){Q(t,j2);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,rv.noop),r=v(()=>o()===rv.noop),a=v(()=>n(r)||i()),l=q(!1),d=()=>{O(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Kt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var f=Ae(),p=de(f);{var $=_=>{var S=G2();b(_,S)},y=_=>{var S=Y2();D(()=>Me(S,"src",e.iconUrl)),gt("error",S,d),Ia(S),b(_,S)};R(p,_=>{n(l)?_($):_(y,!1)})}b(u,f)},$$slots:{default:!0}})}var X2=Ce('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function av(t){Xe(t,{testId:"muted-icon",children:(e,i)=>{var o=X2();b(e,o)},$$slots:{default:!0}})}var Lb=require("@vkontakte/videoplayer-shared/es2018");function mp(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Lb.noop),r=g(e,"ref",15,void 0),l=ve().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Kt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var f=Ae(),p=de(f);{var $=_=>{av(_,{})},y=_=>{ra(_,{get size(){return"24"}})};R(p,_=>{i()?_($):_(y,!1)})}b(u,f)},$$slots:{default:!0}}),F()}var Z2=Ce('<path d="M11.64 12.37 9.07 9.8h1.03a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),J2=Ce('<path d="m6.36 9.63 2.57 2.57H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),ew=Ce('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function lv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=ew(),d=L(de(l));{var s=m=>{var f=Z2();b(m,f)},u=m=>{var f=J2();b(m,f)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var Mb=require("@vkontakte/videoplayer-shared/es2018");function dv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Mb.noop),a=G("menu_pip");Kt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{lv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var cv=require("@vkontakte/videoplayer-shared/es2018");var tw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},iw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},ow=M("<div><!></div>"),nw=M("<div><!></div>"),rw=M("<div><!></div>"),sw=M("<!> <!> <!>",1),aw=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),lw=M('<div class="wrapper-middle s-13"><!></div>'),dw=M("<div><!></div> <!> <div><!></div>",1),cw=M('<div aria-hidden="true">·</div> <!>',1),uw=M('<!> <!> <div><div><div class="controls mobile s-13" data-testid="bottom-controls"><div class="controls-group contain s-13"><!> <!> <!> <!></div> <div class="controls-group s-13"><!> <!> <!></div></div> <!></div></div> <!>',1),pw={hash:"s-13",code:".wrapper-bottom.s-13{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-13>:where(.s-13){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-13{height:9px;padding:0 4px 4px}.wrapper-middle.s-13{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-13,.wrapper-top-right.s-13{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-13{right:8px;top:4px}.wrapper-top-left.s-13{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-13,.wrapper-middle-left-second.s-13,.wrapper-middle-right.s-13{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-13{left:12px}.wrapper-middle-left-second.s-13{left:64px}.wrapper-middle-right.s-13{right:12px}.controls.s-13{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-13,.controls-group.s-13{display:flex}.controls-group.contain.s-13{min-width:0}.controls-group.s-13 >:not(:first-child){margin-left:8px}.hidden.s-13{opacity:0;visibility:hidden}.controls-hidden.s-13{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-13{transition:none}.overlay-mobile.s-13{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-13,.wrapper-top-right.fullscreen.s-13{top:16px}.controls-wrapper.fullscreen.s-13{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-13{left:44px;top:12px}.wrapper-top-right.fullscreen.s-13{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-13{left:44px}.wrapper-middle-left-second.fullscreen.s-13{left:96px}.wrapper-middle-right.fullscreen.s-13{right:44px}.controls-wrapper.fullscreen.s-13{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function uv(t,e){var zo,rs;B(e,!0),Q(t,pw);let[i,o]=Ve(),r=()=>x(Bi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(Zt,"$disabledControls$",i),l=()=>x(Rt,"$playbackState$",i),d=()=>x(So,"$adPlaybackState",i),s=()=>x(ee,"$isEnded$",i),u=()=>x(Tt,"$playerSize",i),m=()=>x(ut,"$scrubbingInProgress",i),f=()=>x(xi,"$chromecastState$",i),p=()=>x(Ue,"$isPictureInPictureActive",i),$=()=>x(Ge,"$pictureInPictureType$",i),y=()=>x(ce,"$mobileNotReportControlHidden$",i),_=()=>x(vi,"$chromecastHidden",i),S=()=>x(at,"$playerPhase",i),I=()=>x(Nt,"$pipHidden",i),T=()=>x(We,"$currentGridType$",i),N=()=>x(bi,"$vkLogoHidden",i),k=()=>x(ii,"$volumeHidden",i),E=()=>x(ot,"$isLive$",i),A=()=>x(lt,"$settingsMenuVisible",i),W=()=>x(Pt,"$isRewindableLive$",i),H=()=>x($t,"$isActiveLive$",i),z=()=>x($e,"$isAudioAvailable$",i),Y=()=>x(Le,"$muted$",i),ae=()=>x(fe,"$volume$",i),j=()=>x(dt,"$isInteractiveTime$",i),ne=()=>x(Fn,"$settingButtonRef$",i),Z=()=>x(Et,"$startedByKeyboard$",i),we=()=>x(_n,"$isFullscreen",i),ue=()=>x(Ut,"$additionalButtons$",i),re=()=>x(Yi,"$autoplayNextToggleHidden",i),_e=()=>x(ji,"$crashed$",i),xe=()=>x(ui,"$settingsHidden",i),J=()=>x(tn,"$graphIsOpened$",i),Re=()=>x($o,"$adPosition",i),pe=()=>x(wi,"$adDuration",i),P=()=>x(ei,"$position$",i),ze=()=>x(Ct,"$duration$",i),Te=g(e,"playerControlsWrapperRef",15,void 0),X=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),Oe=g(e,"logoTargetUrl",3,""),De=g(e,"isOneVideoPlaylist",3,!1),it=g(e,"customFullscreenSupported",3,!0),U=ve(),Pe=wo(),Ee=Vt(),He=U.actions.internal.toggleMuted,Ze=U.actions.internal.togglePlay,ye=U.actions.internal.pause,ke=U.actions.internal.prevVideoClick,Be=U.actions.internal.nextVideoClick,Dt=U.actions.internal.checkFullscreenSupport,ft=(zo=U.callbacks)==null?void 0:zo.onAudioDoesNotExistHint,Bt=(rs=U.callbacks)==null?void 0:rs.onAudioDisabledHint,at=U.playerPhase,Ct=U.state.duration$,ei=U.state.positionWithScrubbing$,Rt=U.state.playbackState$,$e=U.state.isAudioAvailable$,be=U.state.isAudioDisabled,ee=U.state.isEnded$,ot=U.state.isLive$,fe=U.state.volume$,Le=U.state.muted$,$t=U.state.isActiveLive$,Pt=U.state.isRewindableLive$,ut=U.ui.scrubbingInProgress,ce=U.ui.mobileNotReportControlHidden$,{isActive$:Ue,type$:Ge}=Pe.pictureInPicture$,lt=U.ui.settingsMenu.visible$,Ft=U.ui.settingsMenu.openedByBtnKeyboard$,Ht=U.ui.controls,{volume:ii,vkLogo:bi,autoplayNextToggle:Yi,pip:Nt,settings:ui,chromecast:vi}=U.ui.hiddenControls,ht=U.actions.internal.getVideoEpisodes(),jt=U.webApi.pictureInPictureApi,xi=U.state.chromecastState$,ji=U.state.crashed$,Zt=Ht.disabledControls$,Et=U.ui.startedByKeyboard$,We=U.ui.currentGridType$,wi=U.ads.duration,$o=U.ads.position,So=U.ads.playbackState,_n=U.ui.isFullscreen,Tt=U.ui.playerSize,Ut=U.ui.additionalButtonsDeprecated$,K=U.actions.internal.getVideoElement,At=U.actions.internal.replayInteractive,si=U.state.isInteractive,dt=U.state.isInteractiveTime$,St=U.state.showInteractiveGraph,Gt=U.state.showSeekToInteractive,nt=U.state.showPlayPrevChapter,Di=U.state.showInteractiveTimeIndicator,Bi=Pe.seekToInteractiveDisabledTooltip$,tn=Pe.graphIsOpened$,Co=U.ui.controlBlocks,Fi=v(()=>G(U.state.playPrevChapterDisabledTooltip)),Xi=v(()=>G(r())),Lr=v(()=>a().has("EPISODE_BUTTON")),yo=v(()=>a().has("GRAPH_BUTTON")),ro=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ii=v(()=>a().has("PLAY_BUTTON")),on=v(()=>a().has("REPLAY_BUTTON")),nn=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Vn=v(()=>l()===od.PlaybackState.PLAYING),Jn=v(()=>d()==="paused"),Mr=v(()=>s()&&!ie()&&!si),ts=v(()=>!s()||ie()),_s=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),is=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),er=v(()=>u().width>300),_r=v(()=>u().width>400),bn=v(m),Rn=v(()=>f()!==od.ChromecastState.NOT_AVAILABLE&&!(p()&&$()===1)&&!y()&&!si&&!_()),Bo=v(()=>S()==="LiveWaitingStart"),Nn=v(()=>!!jt&&f()!==od.ChromecastState.CONNECTED&&!y()&&($()===1&&n(Bo)||!n(Bo))&&!n(bn)&&!si&&!I()),tr=q(!1);Mt(()=>{let Ke=jt==null?void 0:jt.info.isActive$.subscribe(Lt=>O(tr,Lt,!0));return()=>Ke==null?void 0:Ke.unsubscribe()});let br=v(()=>!n(bn)&&io(T(),"s")),$r=v(()=>!e.logoHidden&&u().width>350&&!N()),Vr=v(()=>Ee.features.fullscreen&&Dt()&&!(p()&&$()===1)&&(si?it():!0)&&!n(bn)&&!n(tr)),so=v(()=>!k()&&!n(bn)),Rr=v(()=>(!E()||ie())&&u().width>260&&!n(bn)&&!(Ee.features.interactiveHideTime&&si)),On=v(()=>A()||e.showControls),Dn=v(()=>!ie()&&!E()&&!!(ht!=null&&ht.length)&&n(er)&&!n(Lr)&&!n(bn)),ao=v(()=>!W()||!!H()),Nr=v(()=>St&&io(T(),"m")),Bn=v(()=>!z()||Y()||ae()===0),mt=ai({}),di=ai({}),yr=(0,cv.debounceFn)(ed,260),ir=(0,cv.debounceFn)(pp,260);Ne(()=>{u(),j(),yr(K(),Ht,mt,e.showControls),ir(K(),Co,di,e.showControls)});let or=()=>U.actions.internal.toggleChromecast();async function rn(){jt!=null&&jt.isActive()?await(jt==null?void 0:jt.exit()):await(jt==null?void 0:jt.request())}function xr(){ia({isAudioDisabled:be,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:ft,isAds:ie()})&&He()}let sn=q(""),$n=(Ke,Lt)=>{if(!Ke){O(sn,G("tooltip_live"),!0);return}Lt&&Lt===od.PlaybackState.PAUSED&&O(sn,G("tooltip_play"),!0)};Ne(()=>{$n(n(ao),l())});let Fn=le();Ne(()=>{ne()&&Kl(ne(),A(),Ft)}),Ne(()=>{cp(Et,Z(),mt.playButton)});var Hn=uw(),Fo=de(Hn);{var To=Ke=>{var Lt=aw(),hi=de(Lt);let Po;var Ao=L(hi,2);let Wo;je(Ao,ct=>di.topLeft=ct,()=>di==null?void 0:di.topLeft);var po=L(Ao,2);let Ji;var yn=C(po);yi(yn,1,ue,({iconUrl:ct,ariaLabel:Jt,testId:mo,onClick:he,tooltip:wt})=>ct,(ct,Jt)=>{let mo=()=>n(Jt).iconUrl,he=()=>n(Jt).ariaLabel,wt=()=>n(Jt).testId,ti=()=>n(Jt).onClick,$i=()=>n(Jt).tooltip,Li=v(()=>{var ci;return(ci=he())!=null?ci:$i()});sv(ct,{get iconUrl(){return mo()},get ariaLabel(){return n(Li)},get testId(){return wt()},get onClick(){return ti()}})});var xn=L(yn,2);{var fo=ct=>{xc(ct,{get ref(){return mt.autoplayNextToggle},set ref(Jt){mt.autoplayNextToggle=Jt}})};R(xn,ct=>{e.showAutoplayNext&&!De()&&!re()&&ct(fo)})}var Lo=L(xn,2);{var Wn=ct=>{vc(ct,{isMobile:!0,click:or,get state(){return f()},get ref(){return mt.chromecast},set ref(Jt){mt.chromecast=Jt}})};R(Lo,ct=>{n(Rn)&&ct(Wn)})}var sr=L(Lo,2);{var ar=ct=>{dv(ct,{click:rn,get isPictureInPictureActive(){return p()},get ref(){return mt.pip},set ref(Jt){mt.pip=Jt}})};R(sr,ct=>{n(Nn)&&ct(ar)})}var Kn=L(sr,2);{var bs=ct=>{jl(ct,{get ref$(){return Fn}})};R(Kn,ct=>{_e()&&!xe()&&ct(bs)})}var ss=L(Kn,2);{var Ye=ct=>{fc(ct,{get click(){return ye},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(Jt){mt.vkLogo=Jt}})};R(ss,ct=>{n($r)&&ct(Ye)})}w(po),je(po,ct=>di.topRight=ct,()=>di==null?void 0:di.topRight);var qt=L(po,2);let Ci;var Ko=C(qt);{var ln=ct=>{let Jt=v(()=>ke.bind(null,!0));qa(ct,{get click(){return n(Jt)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(mo){mt.prevButton=mo}})};R(Ko,ct=>{n(_s)&&ct(ln)})}var lr=L(Ko,2);{var dn=ct=>{id(ct,{get disabled(){return n(Ii)},get click(){return Ze},isMobile:!0,get isPlaying(){return n(Vn)},get ref(){return mt.playButton},set ref(Jt){mt.playButton=Jt}})};R(lr,ct=>{n(ts)&&ct(dn)})}var qo=L(lr,2);{var Ns=ct=>{td(ct,{get disabled(){return n(on)},get click(){return Ze},isMobile:!0,get ref(){return mt.replayButton},set ref(Jt){mt.replayButton=Jt}})};R(qo,ct=>{n(Mr)&&ct(Ns)})}var cn=L(qo,2);{var Os=ct=>{let Jt=v(()=>Be.bind(null,!0));qa(ct,{get click(){return n(Jt)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(mo){mt.nextButton=mo}})};R(cn,ct=>{n(is)&&ct(Os)})}w(qt),je(qt,ct=>di.middle=ct,()=>di==null?void 0:di.middle);var la=L(qt,2);{var da=ct=>{var Jt=sw(),mo=de(Jt);{var he=ci=>{var oi=ow();let vo;oi.__click=[tw,nn,e,Fi];var un=C(oi);let pn=v(()=>!e.showControls);yc(un,{get hidden(){return n(pn)},get disabled(){return n(nn)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(ki){mt.playPrevChapterButton=ki}}),w(oi),D(ki=>vo=se(oi,1,"wrapper-middle-left s-13",null,vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(ci,oi)};R(mo,ci=>{nt&&ci(he)})}var wt=L(mo,2);{var ti=ci=>{var oi=nw();let vo;var un=C(oi);let pn=v(()=>!e.showControls&&!J());Sc(un,{get hidden(){return n(pn)},get disabled(){return n(yo)},get click(){return tn.toggle},get graphIsOpened(){return J()},get ref(){return mt.interactiveGraphButton},set ref(ki){mt.interactiveGraphButton=ki}}),w(oi),D(ki=>vo=se(oi,1,Fd(nt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-13",vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls&&!J()})]),b(ci,oi)};R(wt,ci=>{n(Nr)&&ci(ti)})}var $i=L(wt,2);{var Li=ci=>{var oi=rw();let vo;oi.__click=[iw,ro,e,Xi];var un=C(oi);let pn=v(()=>!e.showControls);wc(un,{get hidden(){return n(pn)},get disabled(){return n(ro)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(ki){mt.seekToInteractiveButton=ki}}),w(oi),D(ki=>vo=se(oi,1,"wrapper-middle-right s-13",null,vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(ci,oi)};R($i,ci=>{Gt&&ci(Li)})}b(ct,Jt)};R(la,ct=>{si&&!m()&&ct(da)})}D((ct,Jt,mo,he)=>{Po=se(hi,1,"overlay-mobile s-13",null,Po,ct),Wo=se(Ao,1,"wrapper-top-left s-13",null,Wo,Jt),Ji=se(po,1,"wrapper-top-right s-13",null,Ji,mo),Ci=se(qt,1,"wrapper-middle s-13",null,Ci,he)},[()=>({hidden:!n(On)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(Ke,Lt)};R(Fo,Ke=>{ie()||Ke(To)})}var nr=L(Fo,2);{var Io=Ke=>{var Lt=dw(),hi=de(Lt);let Po;var Ao=C(hi);mp(Ao,{get muted(){return Y()},click:xr,get ref(){return mt.volume},set ref(fo){mt.volume=fo}}),w(hi);var Wo=L(hi,2);{var po=fo=>{var Lo=lw(),Wn=C(Lo);let sr=v(()=>!n(Jn));id(Wn,{get disabled(){return n(Ii)},get click(){return Ze},isMobile:!0,get isPlaying(){return n(sr)},get ref(){return mt.playButton},set ref(ar){mt.playButton=ar}}),w(Lo),b(fo,Lo)};R(Wo,fo=>{n(Jn)&&fo(po)})}var Ji=L(Wo,2);let yn;var xn=C(Ji);Tc(xn,{get position(){return Re()},get duration(){return pe()}}),w(Ji),D((fo,Lo)=>{Po=se(hi,1,"wrapper-top-right s-13",null,Po,fo),yn=se(Ji,1,"wrapper-bottom ads-timeline-mobile s-13",null,yn,Lo)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(Ke,Lt)};R(nr,Ke=>{ie()&&d()!=="inactive"&&Ke(Io)})}var Hi=L(nr,2);let Un;var rr=C(Hi);let Or;var zn=C(rr),Eo=C(zn),Dr=C(Eo);{var yt=Ke=>{Oo(Ke,{get disabled(){return n(on)},get ref(){return mt.replayButton},set ref(Lt){mt.replayButton=Lt},children:(Lt,hi)=>{td(Lt,{get disabled(){return n(on)},get click(){return At}})},$$slots:{default:!0}})};R(Dr,Ke=>{si&&Ke(yt)})}var xt=L(Dr,2);{var lo=Ke=>{Oo(Ke,{get ref(){return mt.liveButton},set ref(Lt){mt.liveButton=Lt},children:(Lt,hi)=>{Cc(Lt,{get isLiveActive(){return n(ao)},isMobile:!0,get ariaLabel(){return n(sn)}})},$$slots:{default:!0}})};R(xt,Ke=>{!ie()&&E()&&Ke(lo)})}var Ai=L(xt,2);{var Zi=Ke=>{let Lt=v(()=>ie()?Re():P()),hi=v(()=>ie()?pe():ze()),Po=v(()=>!e.showControls);dc(Ke,{get showDuration(){return n(_r)},get position(){return n(Lt)},get duration(){return n(hi)},isMobile:!0,get isHidden(){return n(Po)},get ref(){return mt.time},set ref(Ao){mt.time=Ao}})};R(Ai,Ke=>{n(Rr)&&Ke(Zi)})}var Ho=L(Ai,2);let Uo=v(()=>!n(Dn));Oo(Ho,{className:"w-max",get disabled(){return n(Uo)},get ref(){return mt.episodes},set ref(Ke){mt.episodes=Ke},children:(Ke,Lt)=>{var hi=Ae(),Po=de(hi);{var Ao=Wo=>{var po=cw(),Ji=L(de(po),2);gc(Ji,{get position(){return P()},get duration(){return ze()},get timeCodes(){return ht}}),b(Wo,po)};R(Po,Wo=>{n(Dn)&&Wo(Ao)})}b(Ke,hi)},$$slots:{default:!0}}),w(Eo),je(Eo,Ke=>di.bottomLeft=Ke,()=>di==null?void 0:di.bottomLeft);var co=L(Eo,2),Ei=C(co);{var Br=Ke=>{Oo(Ke,{get ref(){return mt.volume},set ref(Lt){mt.volume=Lt},children:(Lt,hi)=>{mp(Lt,{get muted(){return n(Bn)},click:xr})},$$slots:{default:!0}})};R(Ei,Ke=>{n(so)&&Ke(Br)})}var Fr=L(Ei,2);{var os=Ke=>{Oo(Ke,{get ref(){return mt.settings},set ref(Lt){mt.settings=Lt},children:(Lt,hi)=>{jl(Lt,{get ref$(){return Fn}})},$$slots:{default:!0}})};R(Fr,Ke=>{n(br)&&Ke(os)})}var ns=L(Fr,2);{var Hr=Ke=>{Oo(Ke,{get ref(){return mt.fullscreen},set ref(Lt){mt.fullscreen=Lt},children:(Lt,hi)=>{pc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};R(ns,Ke=>{n(Vr)&&Ke(Hr)})}w(co),je(co,Ke=>di.bottomRight=Ke,()=>di==null?void 0:di.bottomRight),w(zn),je(zn,Ke=>X(Ke),()=>X());var ko=L(zn,2);let an=v(()=>!e.showControls);Ga(ko,{get isHidden(){return n(an)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return W()},get ref(){return mt.timeline},set ref(Ke){mt.timeline=Ke}}),w(rr),je(rr,Ke=>di.bottom=Ke,()=>di==null?void 0:di.bottom),w(Hi),je(Hi,Ke=>Te(Ke),()=>Te());var uo=L(Hi,2);{var wr=Ke=>{bc(Ke,{get ref(){return mt.interactiveTimeIndicator},set ref(Lt){mt.interactiveTimeIndicator=Lt}})};R(uo,Ke=>{Di&&Ke(wr)})}D((Ke,Lt)=>{Un=se(Hi,1,"wrapper-bottom mobile s-13",null,Un,Ke),Or=se(rr,1,"controls-wrapper s-13",null,Or,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,Hn),F(),o()}tt(["click"]);function Ic(t,e){B(e,!0);let[i,o]=Ve(),r=()=>x(I,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),m=g(e,"showAutoplayNext",3,!1),f=g(e,"isOneVideoPlaylist",3,!1),p=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,pv.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,pv.noop),I=ve().ui.isMobile,T=q(!1);Mt(()=>{let A=setTimeout(()=>O(T,!0),0);return()=>clearTimeout(A)});var N=Ae(),k=de(N);{var E=A=>{var W=Ae(),H=de(W);{var z=ae=>{uv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return f()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},Y=ae=>{nv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return f()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};R(H,ae=>{r()?ae(z):ae(Y,!1)})}b(A,W)};R(k,A=>{n(T)&&A(E)})}b(t,N),F(),o()}var fw=Ce('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Ec(t,e){B(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${gn(e.size)}${n(i)}`);Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=fw();b(r,l)},$$slots:{default:!0}}),F()}var mw=Ce('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function fv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=mw();b(a,d)},$$slots:{default:!0}}),F()}var vw=M('<span class="hot-key-helpers-text s-1g"> </span>'),gw=M('<div data-testid="hotkey-helper-icon" class="s-1g"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),hw=M("<div><!></div>"),_w={hash:"s-1g",code:'.hot-key-helpers-container.s-1g{align-items:center;animation:s-1g-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-1g{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-1g{left:calc(75% - 100px)}.hot-key-helpers-text.s-1g{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-1g{animation:s-1g-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-1g-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-1g-fadeOut{0%{opacity:1}to{opacity:0}}'};function mv(t,e){B(e,!0),Q(t,_w);let[i,o]=Ve(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=Vt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=v(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),f=v(()=>{var I;return(I=r())==null?void 0:I.type}),p=v(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var $=hw();let y;var _=C($);{var S=I=>{var T=gw(),N=de(T),k=C(N);{var E=X=>{let ie=v(()=>n(f)==="BACKWARD_SEEK");fv(X,{get reversed(){return n(ie)},shadow:!0})};R(k,X=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(f))&&X(E)})}var A=L(k,2);{var W=X=>{Ms(X,{get size(){return"48"},shadow:!0})};R(A,X=>{n(f)==="PAUSE"&&!l.playbackStatusShow&&X(W)})}var H=L(A,2);{var z=X=>{An(X,{get size(){return"48"},shadow:!0})};R(H,X=>{n(f)==="PLAY"&&!l.playbackStatusShow&&X(z)})}var Y=L(H,2);{var ae=X=>{$c(X,{get size(){return"48"},shadow:!0})};R(Y,X=>{n(f)==="REPLAY"&&!l.playbackStatusShow&&X(ae)})}var j=L(Y,2);{var ne=X=>{na(X,{get size(){return"48"},type:"off",shadow:!0})};R(j,X=>{n(f)==="SUBTITLES_OFF"&&X(ne)})}var Z=L(j,2);{var we=X=>{na(X,{get size(){return"48"},shadow:!0})};R(Z,X=>{n(f)==="SUBTITLES_ON"&&X(we)})}var ue=L(Z,2);{var re=X=>{let ie=v(()=>n(f)==="RATE_DOWN");Ec(X,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};R(ue,X=>{["RATE_DOWN","RATE_UP"].includes(n(f))&&X(re)})}var _e=L(ue,2);{var xe=X=>{let ie=v(()=>n(f)==="EPISODE_PREV");sa(X,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};R(_e,X=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(f))&&X(xe)})}var J=L(_e,2);{var Re=X=>{ra(X,{get size(){return"48"},volume:0,shadow:!0})};R(J,X=>{n(f)==="MUTE"&&X(Re)})}var pe=L(J,2);{var P=X=>{ra(X,{get size(){return"48"},volume:1,shadow:!0})};R(pe,X=>{n(f)==="VOLUME"&&X(P)})}w(N);var ze=L(N,2);{var Te=X=>{var ie=vw(),Oe=C(ie,!0);w(ie),D(()=>me(Oe,n(p))),b(X,ie)};R(ze,X=>{n(p)&&X(Te)})}D(()=>Me(N,"data-type",n(f))),b(I,T)};R(_,I=>{!n(s)&&n(f)&&I(S)})}w($),D(I=>y=se($,1,"hot-key-helpers-container s-1g",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(t,$),F(),o()}var bw=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},$w=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},yw=M('<div tabindex="0" role="button"><div class="button-block s-q" aria-hidden="true"><div class="button-row s-q"><div class="button button-up s-q"><!></div> <div class="button button-right s-q"><!></div></div> <div class="button-row s-q"><div class="button button-left s-q"><!></div> <div class="button button-down s-q"><!></div></div></div></div>'),xw={hash:"s-q",code:".immersive-controls.s-q{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-q{left:20px;top:50px}.button-block.s-q{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-q{display:flex;flex-direction:row;position:relative}.button.s-q{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-q svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-q svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-q svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-q svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-q svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-q:hover svg{opacity:1}"};function kc(t,e){B(e,!0),Q(t,xw);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=G("aria_label_spherical_control");var f=yw();let p;f.__keydown=[bw,r,a,l,s,d],f.__keyup=[$w,r,u];var $=C(f),y=C($),_=C(y);_.__mousedown=a,_.__mouseup=u;var S=C(_);Pr(S,{direction:"up",useBtnColor:!0}),w(_);var I=L(_,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Pr(T,{direction:"up",useBtnColor:!0}),w(I),w(y);var N=L(y,2),k=C(N);k.__mousedown=s,k.__mouseup=u;var E=C(k);Pr(E,{direction:"up",useBtnColor:!0}),w(k);var A=L(k,2);A.__mousedown=l,A.__mouseup=u;var W=C(A);Pr(W,{direction:"up",useBtnColor:!0}),w(A),w(N),w($),w(f),D(H=>{p=se(f,1,"immersive-controls s-q",null,p,H),Me(f,"aria-label",m)},[()=>({"m-shifted":i()})]),gt("mouseleave",_,u),gt("mouseleave",I,u),gt("mouseleave",k,u),gt("mouseleave",A,u),b(t,f),F()}tt(["keydown","keyup","mousedown","mouseup"]);var Rs=require("@vkontakte/videoplayer-shared/es2018");var Vb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var vp=class{constructor(){this.flickeringTimeout=Vb(1e3);this.subscriptions=new Rs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Rs.ValueSubject([]);this.captionsPrepared$=new Rs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Rs.filter)(()=>this.isEnabled()),(0,Rs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var ww=M('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Sw=M('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),Cw=M('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Tw=M('<div><span class="caption s-c"><!></span></div>'),Iw=M("<div><!></div>"),Ew={hash:"s-c",code:".subtitles-container.s-c{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-c{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-c{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-c .subtitles-caption:where(.s-c){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-c{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-c{bottom:8%}.subtitles-container.auto.s-c .subtitles-caption:where(.s-c){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-c{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-c .caption:where(.s-c){width:100%}.caption-line.s-c{display:block;text-align:center}.subtitles-container.auto.s-c .caption-line:where(.s-c){text-align:left}.caption-segment.s-c{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function Xa(t,e){B(e,!0),Q(t,Ew);let[i,o]=Ve(),r=()=>x(p,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(_,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),s=()=>x($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),m=ve(),f=Vt(),p=m.state.currentSubtitle$,$=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,S=m.ui.previewTrackActive,I=v(()=>!!r().isAuto),T=v(()=>!!a()),N=v(()=>e.playerSize.width*.02),k=v(()=>u()&&!l()||n(N)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:n(N)),E=q(null);Ne(()=>{var j,ne,Z;(j=n(E))==null||j.setIsAuto(n(I)),(ne=n(E))==null||ne.setIsLive(n(T)),(Z=n(E))==null||Z.setCaptions(e.captions)});let A=q(ai([[]]));Mt(()=>{O(E,new vp().subscribe(),!0);let j=n(E).captionsPrepared$.subscribe(ne=>{O(A,ne,!0)});return()=>{var ne;(ne=n(E))==null||ne.destroy(),j.unsubscribe()}}),Mt(()=>{if(n(I)){let j=window.setTimeout(()=>{$.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else $.set(!1)});let W=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=Iw();let z;var Y=C(H);{var ae=j=>{var ne=Tw();let Z;var we=C(ne),ue=C(we);{var re=xe=>{var J=ww(),Re=C(J),pe=C(Re,!0);w(Re),w(J),D(P=>{var ze;qe(Re,`font-size: ${(ze=n(k))!=null?ze:""}px`),me(pe,P)},[()=>G("subtitles_auto_caption")]),b(xe,J)},_e=(xe,J)=>{{var Re=P=>{var ze=Ae(),Te=de(ze);yi(Te,17,()=>n(A),Dd,(X,ie)=>{var Oe=Sw(),De=C(Oe);yi(De,21,()=>n(ie),({value:it,timeAppeared:U})=>U,(it,U)=>{let Pe=()=>n(U).value,Ee=()=>n(U).timeAppeared;var He=Ae(),Ze=de(He);{var ye=ke=>{var Be=fs();D(()=>me(Be,Pe())),b(ke,Be)};R(Ze,ke=>{(!Ee()||Ee()<=e.position)&&ke(ye)})}b(it,He)}),w(De),w(Oe),D(()=>{var it;return qe(De,`font-size: ${(it=n(k))!=null?it:""}px`)}),b(X,Oe)}),b(P,ze)},pe=P=>{var ze=Ae(),Te=de(ze);yi(Te,17,()=>e.captions,({value:X})=>X,(X,ie)=>{let Oe=()=>n(ie).value;var De=Cw(),it=C(De),U=C(it,!0);w(it),w(De),D(()=>{var Pe;qe(it,`font-size: ${(Pe=n(k))!=null?Pe:""}px`),me(U,Oe())}),b(X,De)}),b(P,ze)};R(xe,P=>{var ze;n(I)&&((ze=n(A))!=null&&ze.length)?P(Re):P(pe,!1)},J)}};R(ue,xe=>{n(I)&&s()?xe(re):xe(_e,!1)})}w(we),w(ne),D(xe=>{var J;Z=se(ne,1,"subtitles-caption s-c",null,Z,xe),qe(ne,`--subtitles-caption-margin: ${(J=n(W))!=null?J:""}%`)},[()=>({mobile:u()})]),b(j,ne)};R(Y,j=>{var ne;(e.captions.length||(ne=n(A))!=null&&ne.length)&&j(ae)})}w(H),D(j=>z=se(H,1,"subtitles-container s-c",null,z,j),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,H),F(),o()}var Rb=require("@vkontakte/videoplayer-core/es2018");var kw=M('<div class="text s-l"> </div>'),Pw=M('<div><div class="icon_wrapper s-l"><!></div> <!></div>'),Aw={hash:"s-l",code:".wrapper.s-l{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-l{background-size:cover}.icon_wrapper.s-l{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-l{margin-top:20px}"};function Pc(t,e){B(e,!0),Q(t,Aw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Vt();var r=Pw();let a;var l=C(r),d=C(l);mc(d,{get size(){return"48"},get iconState(){return Rb.ChromecastState.CONNECTED}}),w(l);var s=L(l,2);{var u=m=>{var f=kw(),p=C(f);w(f),D(()=>{var $;return me(p,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(m,f)};R(s,m=>{i()&&m(u)})}w(r),D(m=>{a=se(r,1,"wrapper s-l",null,a,m),qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}var Lw=Ce('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function vv(t){Xe(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Lw();b(e,o)},$$slots:{default:!0}})}var Mw=M('<div class="container s-4"><!></div>'),Vw={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function Za(t){Q(t,Vw);var e=Mw(),i=C(e);vv(i,{}),w(e),b(t,e)}var Rw=M('<div class="playButton s-b" tabindex="0" role="button"><div class="playButtonBackground s-b"></div> <!></div>'),Nw=M('<div data-testid="unstarted-thumb"><!></div>'),Ow={hash:"s-b",code:".container.s-b{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-b{opacity:0;visibility:hidden}.container.bgCover.s-b{background-size:cover}.playButton.s-b{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-b,.playButtonBackground.s-b{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-b{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-b:hover .playButtonBackground:where(.s-b){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-b svg{position:relative}"};function Ja(t,e){B(e,!0),Q(t,Ow);let i=g(e,"iconVisible",3,!0),o=ve(),r=Vt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var _;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=$=>{var y,_;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,$)};var u=Nw();let m;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var f=C(u);{var p=$=>{var y=Rw();y.__keydown=d;var _=L(C(y),2);An(_,{get size(){return"48"}}),w(y),D(()=>Me(y,"aria-label",l)),b($,y)};R(f,$=>{i()&&$(p)})}return w(u),D($=>{m=se(u,1,"container s-b",null,m,$),qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}tt(["click","contextmenu","keydown"]);var Dw=M('<div data-testid="video_title"><span> </span></div>'),Bw={hash:"s-1i",code:".title.s-1i{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;color:var(--white);font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity}.hidden.s-1i{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function gv(t,e){B(e,!0),Q(t,Bw);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=q(void 0);Mt(()=>{var f;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function m(p){var $;p.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(f=n(a))==null||f.addEventListener("transitionend",m),()=>{var p;return(p=n(a))==null?void 0:p.removeEventListener("transitionend",m)}});var l=Dw();let d;var s=C(l),u=C(s,!0);w(s),je(s,m=>r(m),()=>r()),w(l),je(l,m=>O(a,m),()=>n(a)),D(m=>{d=se(l,1,"title s-1i",null,d,m),me(u,i())},[()=>({hidden:o()})]),b(t,l),F()}var Nb=require("@vkontakte/videoplayer-shared/es2018");var Fw=M('<div class="timer__cell cell s-14"><span class="cell__value s-14"> </span> <span class="cell__unit s-14"> </span></div> <span class="timer__points s-14"> </span>',1),Hw=M('<div class="timer__cell cell s-14"><span class="cell__value s-14"> </span> <span class="cell__unit s-14"> </span></div> <span class="timer__points s-14"> </span>',1),Uw=M('<div class="timer__cell cell s-14"><span class="cell__value s-14"> </span> <span class="cell__unit s-14"> </span></div> <span class="timer__points s-14"> </span>',1),zw=M('<div class="timer__cell cell s-14"><span class="cell__value s-14"> </span> <span class="cell__unit s-14"> </span></div>'),Ww=M("<div><!> <!> <!> <!></div>"),Kw={hash:"s-14",code:".timer__container.s-14{align-items:flex-start;display:flex;justify-content:center}.cell.s-14{align-items:center;display:flex;flex-direction:column}.cell__value.s-14{font-size:48px;font-weight:600;line-height:1.2}.small.s-14 .cell__value:where(.s-14){font-size:24px}.cell__unit.s-14{font-size:14px;font-weight:400;line-height:1.2}.small.s-14 .cell__unit:where(.s-14){font-size:12px}.timer__points.s-14{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-14 .timer__points:where(.s-14){font-size:20px}"};function hv(t,e){B(e,!0),Q(t,Kw);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=H=>String(H).padStart(2,"0"),m=H=>Math.max(H.length,1),f=H=>`${(e.isSmallSize?s:d)*m(H)}px`,p=H=>{let z=Math.floor(H/86400);z&&(H-=z*86400,O(i,u(z),!0));let Y=Math.floor(H/3600);O(o,u(Y),!0);let ae=Math.floor(H/60)%60;O(r,u(ae),!0);let j=H%60;O(a,u(j),!0)},$=()=>{let H=Math.floor(Date.now()/1e3),z=e.startTime-H;p(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Mt(()=>{l=requestAnimationFrame($)}),vn(()=>{cancelAnimationFrame(l)});var y=Ww();let _;var S=C(y);{var I=H=>{var z=Fw(),Y=de(z);let ae;var j=C(Y),ne=C(j,!0);w(j);var Z=L(j,2),we=C(Z,!0);w(Z),w(Y);var ue=L(Y,2),re=C(ue,!0);w(ue),D((_e,xe,J)=>{ae=qe(Y,"",ae,{width:_e}),me(ne,n(i)),me(we,xe),me(re,J)},[()=>f(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(H,z)};R(S,H=>{n(i)&&H(I)})}var T=L(S,2);{var N=H=>{var z=Hw(),Y=de(z);let ae;var j=C(Y),ne=C(j,!0);w(j);var Z=L(j,2),we=C(Z,!0);w(Z),w(Y);var ue=L(Y,2),re=C(ue,!0);w(ue),D((_e,xe,J)=>{ae=qe(Y,"",ae,{width:_e}),me(ne,n(o)),me(we,xe),me(re,J)},[()=>f(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(H,z)};R(T,H=>{n(o)&&H(N)})}var k=L(T,2);{var E=H=>{var z=Uw(),Y=de(z);let ae;var j=C(Y),ne=C(j,!0);w(j);var Z=L(j,2),we=C(Z,!0);w(Z),w(Y);var ue=L(Y,2),re=C(ue,!0);w(ue),D((_e,xe,J)=>{ae=qe(Y,"",ae,{width:_e}),me(ne,n(r)),me(we,xe),me(re,J)},[()=>f(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(H,z)};R(k,H=>{n(r)&&H(E)})}var A=L(k,2);{var W=H=>{var z=zw();let Y;var ae=C(z),j=C(ae,!0);w(ae);var ne=L(ae,2),Z=C(ne,!0);w(ne),w(z),D((we,ue)=>{Y=qe(z,"",Y,{width:we}),me(j,n(a)),me(Z,ue)},[()=>f(n(a)),()=>G("waiting_live_second_value")]),b(H,z)};R(A,H=>{n(a)&&H(W)})}w(y),D(H=>_=se(y,1,"timer__container s-14",null,_,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var qw=M('<div class="waiting s-s"><span> </span></div>'),Qw=M('<div class="upcoming-timer timer s-s"><span> </span> <!></div>'),Gw=M('<div class="waiting-container s-s"><!></div>'),Yw={hash:"s-s",code:'.waiting-container.s-s{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-s,.waiting-container.s-s:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-s:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-s{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-s{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-s{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-s{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-s{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-s{font-size:15px}.medium.s-s{font-size:17px}'};function Ac(t,e){B(e,!0),Q(t,Yw);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=q(void 0),a=q(void 0),l=0,d=q(void 0),s=q(void 0),u=v(()=>{var S,I;return((S=n(d))!=null?S:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=v(()=>{var S,I;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),f=e.onUpcomingLiveViewStateChanged?(0,Nb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,I)})},300):void 0;Ne(()=>{n(s),n(d),n(o),f==null||f()}),vn(()=>{if(cancelAnimationFrame(l),f==null||f.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var p=Gw();p.__contextmenu=function(...S){var I;(I=e.onContextMenu)==null||I.apply(this,S)},p.__click=function(...S){var I;(I=e.onClick)==null||I.apply(this,S)};var $=C(p);{var y=S=>{var I=qw(),T=C(I);let N;var k=C(T,!0);w(T),w(I),je(I,E=>O(r,E),()=>n(r)),D((E,A)=>{N=se(T,1,"waiting__title s-s",null,N,E),me(k,A)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(S,I)},_=S=>{var I=Qw(),T=C(I);let N;var k=C(T,!0);w(T);var E=L(T,2);let A=v(()=>n(u)||n(m)),W=v(()=>i()||0);hv(E,{get isSmallSize(){return n(A)},get startTime(){return n(W)},onTimerOver:()=>O(o,!0)}),w(I),je(I,H=>O(a,H),()=>n(a)),D((H,z)=>{N=se(T,1,"timer__title s-s",null,N,H),me(k,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),b(S,I)};R($,S=>{n(o)?S(y):S(_,!1)})}w(p),D(()=>qe(p,`background-image: url(${e.thumbUrl})`)),kn(p,"clientWidth",S=>O(d,S)),kn(p,"clientHeight",S=>O(s,S)),b(t,p),F()}tt(["contextmenu","click"]);var jw=M('<div class="waiting-container s-o"><div class="waiting-caption s-o"><!> <p class="waiting-title s-o"> </p></div></div>'),Xw={hash:"s-o",code:'.waiting-container.s-o{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-o,.waiting-container.s-o:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-o:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-o{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-o{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function el(t,e){B(e,!0),Q(t,Xw);let i=g(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=jw();a.__contextmenu=function(...m){var f;(f=e.onContextMenu)==null||f.apply(this,m)},a.__click=function(...m){var f;(f=e.onClick)==null||f.apply(this,m)};var l=C(a),d=C(l);Ha(d,{style:"position: static; transform: translate(0, 0)"});var s=L(d,2),u=C(s,!0);w(s),w(l),w(a),D(()=>{qe(a,`background-image: url('${i()}')`),me(u,n(r))}),b(t,a),F()}tt(["contextmenu","click"]);var Zw=Ce('<path d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path>');function _v(t){Xe(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=Zw();b(e,o)},$$slots:{default:!0}})}var Jw=M('<div class="select-icon s-1w"><!></div>'),eS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Lc(t){Q(t,eS);var e=Jw(),i=C(e);_v(i,{}),w(e),b(t,e)}var tS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},iS=(t,e)=>{ql(t,()=>e.item.selectItem(e.item.value))},oS=M("<p> </p>"),nS=M('<p class="sublabel s-1r"> </p>'),rS=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),sS={hash:"s-1r",code:".menu-item-value.s-1r{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1r{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1r,.sublabel.s-1r{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1r{opacity:.5}"};function bv(t,e){B(e,!0),Q(t,sS);let i=g(e,"isMobile",3,!1);var o=rS();let r;o.__click=[tS,e],o.__keydown=[iS,e];var a=C(o);{var l=y=>{Lc(y,{})};R(a,y=>{e.item.selected&&y(l)})}var d=L(a,2);let s;var u=C(d);{var m=y=>{var _=Ae(),S=de(_);Ni(S,()=>e.item.valueComponent,(I,T)=>{T(I,jr(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),b(y,_)},f=y=>{var _=oS();let S;var I=C(_,!0);w(_),D(T=>{var N;S=se(_,1,"label s-1r",null,S,T),me(I,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),b(y,_)};R(u,y=>{e.item.valueComponent?y(m):y(f,!1)})}var p=L(u,2);{var $=y=>{var _=nS(),S=C(_,!0);w(_),D(()=>me(S,e.item.sublabel)),b(y,_)};R(p,y=>{e.item.sublabel&&y($)})}w(d),w(o),D((y,_,S)=>{r=se(o,1,"item",null,r,y),Me(o,"data-value",e.item.value),Me(o,"aria-label",_),Me(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1r",null,s,S),Me(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}tt(["click","keydown"]);var aS=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function $v(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>_=>ju(_,n(r)));var l=aS();let d;l.__click=function(..._){var S;(S=n(r))==null||S.apply(this,_)},l.__keydown=function(..._){var S;(S=n(a))==null||S.apply(this,_)};var s=C(l);{var u=_=>{Lc(_,{})};R(s,_=>{e.item.selected&&_(u)})}var m=L(s,2);let f;var p=C(m);{var $=_=>{var S=Ae();let I=v(()=>e.item.valueComponent);var T=de(S);Ni(T,()=>n(I),(N,k)=>{k(N,jr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(_,S)},y=_=>{var S=fs();D(()=>me(S,e.item.label)),b(_,S)};R(p,_=>{e.item.valueComponent?_($):_(y,!1)})}w(m),w(l),je(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),D((_,S)=>{var I;d=se(l,1,"item",null,d,_),Me(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Me(l,"data-testid",e.item.id),f=se(m,1,"menu-item-value",null,f,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}tt(["click","keydown"]);var es={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var dS=(t,e)=>{Z_(t,e.returnFromSubMenu,e.closeSettingsMenu)},cS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},uS=(t,e)=>{oc(t)&&(Ar(t),e.returnFromSubMenu())},pS=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1k"> </p></li> <!></ul></div>'),fS={hash:"s-1k",code:".sub-menu.s-1k{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1k .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1k{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1k{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1k .items:where(.s-1k) .item.header:where(.s-1k){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1k .title:where(.s-1k){margin-left:8px}.sub-menu.s-1k .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1k .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1k .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1k .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1k .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1k .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1k .item .sublabel{font-size:12px;line-height:14px}.item.s-1k:not(.mobile) p:where(.s-1k),.sub-menu.s-1k .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function xv(t,e){B(e,!0),Q(t,fS);let[i,o]=Ve(),r=()=>x(f,"$isFullscreen",i),a=()=>x(p,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=g(e,"listRef",15);Mt(()=>{let j=e.items.findIndex(ne=>ne.selected);u().children[j+1].focus()});let m=ve(),f=m.ui.isFullscreen,p=m.ui.playerSize,$=q(void 0),y=q(0),_=q(0),S=v(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(_)-d()}px; overflow: auto;`),I=v(()=>Math.max(e.minWidth,n(y)));var T=pS();let N;var k=C(T);let E;k.__keydown=[dS,e];var A=C(k);let W;A.__click=[cS,e],A.__keydown=[uS,e];var H=C(A);Pr(H,{direction:"left"});var z=L(H,2),Y=C(z,!0);w(z),w(A),je(A,j=>O($,j),()=>n($));var ae=L(A,2);yi(ae,17,()=>e.items,Dd,(j,ne)=>{var Z=Ae(),we=de(Z);{var ue=_e=>{bv(_e,{get item(){return n(ne)},get isMobile(){return l()}})},re=(_e,xe)=>{{var J=Re=>{$v(Re,{get isMobile(){return l()},get item(){return n(ne)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(_e,Re=>{n(ne).type==="OPEN_SUB_MENU"&&Re(J)},xe)}};R(we,_e=>{n(ne).type==="SELECT_VALUE"?_e(ue):_e(re,!1)})}b(j,Z)}),w(k),je(k,j=>u(j),()=>u()),w(T),D((j,ne,Z)=>{N=se(T,1,"sub-menu menu s-1k",null,N,j),Me(T,"data-testid",`${e.id}-sub-menu`),qe(T,`min-width: ${n(I)}px`),E=se(k,1,"items s-1k",null,E,ne),qe(k,n(S)),W=se(A,1,"item header back s-1k",null,W,Z),Me(A,"aria-label",s()),me(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),kn(A,"clientWidth",j=>O(y,j)),kn(A,"clientHeight",j=>O(_,j)),b(t,T),F(),o()}tt(["keydown","click"]);var Db=require("@vkontakte/videoplayer-shared/es2018");var mS=(t,e)=>ju(t,e()),vS=(t,e)=>{t.stopPropagation(),e()()},gS=M('<div class="value s-1j"> </div>'),hS=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),_S={hash:"s-1j",code:".value.s-1j{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function wv(t,e){B(e,!0),Q(t,_S);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Db.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=hS();let s;d.__click=[vS,o],d.__keydown=[mS,o];var u=C(d),m=C(u);{var f=T=>{Qa(T,{get icon(){return e.icon}})},p=T=>{var N=Ae();let k=v(()=>e.icon);var E=de(N);Ni(E,()=>n(k),(A,W)=>{W(A,jr(a))}),b(T,N)};R(m,T=>{typeof e.icon=="string"?T(f):T(p,!1)})}w(u);var $=L(u,2),y=C($,!0);w($);var _=L($,2);{var S=T=>{var N=Ae();let k=v(r);var E=de(N);Ni(E,()=>n(k),(A,W)=>{W(A,{})}),b(T,N)},I=T=>{var N=gS(),k=C(N,!0);w(N),D(()=>me(k,e.value)),b(T,N)};R(_,T=>{r()?T(S):T(I,!1)})}w(d),je(d,T=>l(T),()=>l()),D(T=>{s=se(d,1,"item",null,s,T),Me(d,"aria-label",e.ariaLabel),Me(d,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var Sv=require("@vkontakte/videoplayer-shared/es2018");var bS=(t,e)=>{ql(t,()=>e())},$S=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),yS=M('<img class="icon" aria-hidden="true"/>'),xS=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1l"> </div></li>'),wS={hash:"s-1l",code:".label.s-1l{overflow:hidden;text-overflow:ellipsis}"};function Cv(t,e){B(e,!0),Q(t,wS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Sv.noop),r=g(e,"closeSettings",3,Sv.noop),a=q(!1),l=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=xS();let u;s.__click=d,s.__keydown=[bS,d];var m=C(s),f=C(m);{var p=S=>{var I=Ae(),T=de(I);{var N=E=>{var A=$S();b(E,A)},k=E=>{var A=yS();D(()=>Me(A,"src",e.icon)),gt("error",A,l),Ia(A),b(E,A)};R(T,E=>{n(a)?E(N):E(k,!1)})}b(S,I)},$=S=>{var I=Ae();let T=v(()=>e.icon);var N=de(I);Ni(N,()=>n(T),(k,E)=>{E(k,{})}),b(S,I)};R(f,S=>{typeof e.icon=="string"?S(p):S($,!1)})}w(m);var y=L(m,2),_=C(y,!0);w(y),w(s),D(S=>{var I;u=se(s,1,"item",null,u,S),Me(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Me(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),b(t,s),F()}tt(["click","keydown"]);var Bb=require("@vkontakte/videoplayer-shared/es2018");var SS=M('<div class="toggle_wrap s-1p"><div></div> <div class="toggle-label s-1p"></div></div>'),CS={hash:"s-1p",code:'.toggle_wrap.s-1p{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1p{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1p:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1p:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1p{overflow:hidden}'};function Tv(t,e){Q(t,CS);let i=g(e,"enabled",3,!1);var o=SS(),r=C(o);let a;li(2),w(o),D(l=>a=se(r,1,"toggle s-1p",null,a,l),[()=>({on:i()})]),b(t,o)}var TS=(t,e,i)=>{J_(t,e(),o=>i()(o))},IS=(t,e,i)=>{t.stopPropagation(),e()(!i())},ES=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),kS=M('<li role="menuitem" tabindex="0"><!></li>');function Iv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Bb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=kS();let s;d.__click=[IS,o,r],d.__keydown=[TS,r,o];var u=C(d);za(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,f)=>{var p=ES();let $;var y=C(p),_=C(y);{var S=E=>{Qa(E,{get icon(){return e.icon}})},I=E=>{var A=Ae();let W=v(()=>e.icon);var H=de(A);Ni(H,()=>n(W),(z,Y)=>{Y(z,{})}),b(E,A)};R(_,E=>{typeof e.icon=="string"?E(S):E(I,!1)})}w(y);var T=L(y,2),N=C(T,!0);w(T);var k=L(T,2);Tv(k,{get enabled(){return r()}}),w(p),D(E=>{$=se(p,1,"switch-wrapper",null,$,E),me(N,e.label)},[()=>({mobile:i()})]),b(m,p)},$$slots:{default:!0}}),w(d),D(m=>{var f;s=se(d,1,"item switch-item",null,s,m),Me(d,"aria-label",(f=e.ariaLabel)!=null?f:e.label),Me(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}tt(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var Fb=()=>{let t=q(ai([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Hb=require("@vkontakte/videoplayer-shared/es2018");var PS=M('<div class="quality-icon s-1n"><!></div>'),AS=M('<div class="quality-label s-1n"><span> </span> <!></div>'),LS={hash:"s-1n",code:".quality-label.s-1n{position:relative}.quality.s-1n{font-size:13px;line-height:18px}.quality.sub.s-1n{opacity:.7}.quality-icon.s-1n{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1n svg{color:var(--blue-light)}"};function tl(t,e){B(e,!0),Q(t,LS);let i=g(e,"isSubCase",3,!1),o=v(()=>e.quality?(0,Hb.getVideoQualityLabel)(e.quality):""),r=v(()=>tp(e.quality));var a=AS(),l=C(a);let d;var s=C(l,!0);w(l);var u=L(l,2);{var m=f=>{var p=PS();let $=v(()=>n(r));var y=C(p);Ni(y,()=>n($),(_,S)=>{S(_,{})}),w(p),D(()=>Me(p,"data-testid",`${n(o)}-icon`)),b(f,p)};R(u,f=>{n(r)&&!e.isMobile&&f(m)})}w(a),D(f=>{d=se(l,1,"s-1n",null,d,f),me(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var Kb=require("@vkontakte/videoplayer-shared/es2018");var Ev=require("@vkontakte/videoplayer-core/es2018");var Ub=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},zb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Ub({quality:t,availableQualities:e});return i?t===Ev.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},Wb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Ev.VideoQuality.INVARIANT?i:`${i}${Ub({quality:t,availableQualities:e})}`:"...";var MS=M('<div class="menu-item-value-wrapper s-1u"><!></div>'),VS={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function nd(t,e){B(e,!0),Q(t,VS);let[i,o]=Ve(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,f=" · ",p=v(()=>e.prefix+(e.selected&&r()!==Kb.VideoQuality.INVARIANT?f:"")),$=v(()=>Wb({prefix:n(p),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=MS(),_=C(y);let S=v(()=>e.selected?r():void 0);tl(_,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),w(y),b(t,y),F(),o()}var RS=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},NS={br:!0,span:!0},kv=(t,e={})=>{var d,s,u,m,f,p,$;if(!t)return t;let i={...NS,...e},o=Object.keys(i);if(!o.length)return t;let r=RS(o),a=[],l=0;for(let y of t.matchAll(r)){let _=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[S]){a.push(t.slice(l,I)),l=I+_.length;continue}let T=(f=y.groups)!=null&&f.childrenhtml?kv(y.groups.childrenhtml,i):"",N=(p=y.groups)!=null&&p.childrenhtml?_.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>T||""):_;a.push(t.slice(l,I),N),l=I+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Mc(t,e){B(e,!1);let i=g(e,"message",8),o=kv(i());xo();var r=Ae(),a=de(r);{var l=d=>{var s=Ae(),u=de(s);Bd(u,()=>o),b(d,s)};R(a,d=>{o&&d(l)})}b(t,r),F()}var OS=M('<p class="quality-applies sublabel s-1v"><!></p>'),DS={hash:"s-1v",code:".quality-applies.s-1v{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Pv(t,e){B(e,!1),Q(t,DS),xo();var i=OS(),o=C(i);let r=Sn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),w(i),b(t,i),F()}var Qb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",selected:o,valueComponent:nd,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Av=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?nd:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Gb=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Pv,bottomBordered:!0,children:"quality-appliance"}),Lv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?nd:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("high_quality_description")}),Mv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"quality-traffic-saving",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:G("traffic_saving_quality"),valueComponent:t?nd:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var gp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=hc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=gp(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=gp(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=gp(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=gp(t,e);return G("audio_stream_display_unknown",{index:a})};var BS={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Av,selected:e&&!o&&!r||!1}),a.push({handler:Mv,selected:o},{handler:Lv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[Gb(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Qb(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:tl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Av,selected:((i=Bu())==null?void 0:i.type)==="auto_quality"},{handler:Mv,selected:((o=Bu())==null?void 0:o.type)==="traffic_saving"},{handler:Lv,selected:((r=Bu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-languages":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-languages",title:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:hp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Mn?"sub_off":void 0}))})},Yb=({subMenuId:t,context:e})=>t?[BS[t](e)]:[];var FS=Ce('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Vv(t){Xe(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=FS();b(e,o)},$$slots:{default:!0}})}var HS=Ce('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Rv(t){Xe(t,{width:"18",height:"15",children:(e,i)=>{var o=HS();b(e,o)},$$slots:{default:!0}})}var US=Ce('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Nv(t){Xe(t,{testId:"play-speed-icon",children:(e,i)=>{var o=US();b(e,o)},$$slots:{default:!0}})}var zS=Ce('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Ov(t){Xe(t,{testId:"download-icon",children:(e,i)=>{var o=zS();b(e,o)},$$slots:{default:!0}})}var WS=Ce('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"></path>');function Dv(t){Xe(t,{testId:"report-icon",children:(e,i)=>{var o=WS();b(e,o)},$$slots:{default:!0}})}var KS=Ce('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function _p(t){Xe(t,{children:(e,i)=>{var o=KS();b(e,o)},$$slots:{default:!0}})}var qS=Ce('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function Bv(t){Xe(t,{testId:"info-icon",children:(e,i)=>{var o=qS();b(e,o)},$$slots:{default:!0}})}var QS=M('<div class="menu-item-value-wrapper s-1s"><!></div>'),GS={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function Fv(t,e){B(e,!0),Q(t,GS);let[i,o]=Ve(),r=()=>x(u,"$currentQuality$",i),a=()=>x(m,"$availableQualities$",i),l=()=>x(f,"$isAutoQualityEnabled$",i),d=()=>x(p,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,m=s.state.availableQualities$,f=s.state.isAutoQualityEnabled$,p=s.ui.isMobile,$=v(()=>zb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=QS(),_=C(y);tl(_,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),w(y),b(t,y),F(),o()}var jS={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:lc,label:G("menu_quality"),value:e,valueComponent:Fv,weight:es["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:es["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Vv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-languages-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=hp(t,e);return{id:"audio-languages-settings",weight:es["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:Rv,label:G("menu_audio_languages"),value:i,children:"audio-languages"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:es["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Nv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:es["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:na,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:es.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:Ov}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:es.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:Dv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:es["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:_p,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:es["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:_p,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:es["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:Bv,isHiddenFor:["desktop"]})},jb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>jS[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ba)};var ZS=(t,e)=>{Yu(t,e)},JS=M('<div><div> </div> <div class="close s-k"></div></div>'),eC=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),tC=M("<div><!> <!></div>"),iC={hash:"s-k",code:'.settings-menu-container.mobile.s-k{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-k ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-k .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-k .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-k .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-k .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-k .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-k .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-k{line-height:40px}.settings-menu.desktop.s-k{min-width:300px}.settings-menu-container.s-k .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-k .menu.mobile.hidden{display:none}.settings-menu-container.s-k .menu .item:not(.switch-item),.settings-menu-container.s-k .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-k .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-k .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-k .item:not(.switch-item),.settings-menu.s-k .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-k .item.mobile:not(.switch-item),.settings-menu.s-k .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-k .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-k .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-k .item.header.mobile:where(.s-k){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-k .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-k .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-k .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-k .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-k .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-k{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-k:after,.close.s-k:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-k:before{transform:rotate(45deg)}.close.s-k:after{transform:rotate(-45deg)}'};function Rc(t,e){B(e,!0),Q(t,iC);let[i,o]=Ve(),r=()=>x(De,"$settingsMenuVisible",i),a=()=>x(it,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Be,"$debugPanelVisible",i),d=()=>x(Pe,"$isMobile",i),s=()=>x(ke,"$playerSize",i),u=()=>x(Oe,"$hasMpegSources$",i),m=()=>x(Ee,"$mobileNotReportControlHidden$",i),f=()=>x(J,"$autoQualityLimitingAvailable$",i),p=()=>x(X,"$availableSubtitlesList$",i),$=()=>x(He,"$isLiveWithPlaybackSpeed",i),y=()=>x(re,"$availableAudioStreams$",i),_=()=>x(ze,"$availablePlaybackRates$",i),S=()=>x(ue,"$currentAudioStream$",i),I=()=>x(P,"$currentPlaybackRate$",i),T=()=>x(Ze,"$trafficSavingEnabled",i),N=()=>x(_e,"$currentQuality$",i),k=()=>x(Re,"$isAutoQualityEnabled$",i),E=()=>x(Te,"$currentSubtitle$",i),A=()=>x(ft,"$additionalSettingsMenuItems$",i),W=()=>x(pe,"$isAutoQualityAvailable$",i),H=()=>x(xe,"$availableQualities$",i),z=()=>x(ye,"$highQualityEnabled",i),Y=g(e,"ref",15,void 0),ae=g(e,"playerControlsHeight",3,0),j=ai({}),ne=ai({}),Z=ve(),we=Vt(),ue=Z.state.audioStream$,re=Z.state.availableAudioStreams$,_e=Z.state.currentQuality$,xe=Z.state.availableQualities$,J=Z.state.autoQualityLimitingAvailable$,Re=Z.state.isAutoQualityEnabled$,pe=Z.state.isAutoQualityAvailable$,P=Z.state.currentPlaybackRate$,ze=Z.state.availablePlaybackRates$,Te=Z.state.currentSubtitle$,X=Z.state.availableSubtitlesList$,ie=Z.state.canDownload,Oe=Z.state.hasMpegSources$,De=Z.ui.settingsMenu.visible$,it=Z.ui.settingsMenu.openedByBtnKeyboard$,U=Z.ui.settingsMenu.ref$,Pe=Z.ui.isMobile,Ee=Z.ui.mobileNotReportControlHidden$,He=Z.state.canChangePlaybackSpeed$,Ze=Z.state.trafficSavingEnabled$,ye=Z.state.highQualityEnabled$,ke=Z.ui.playerSize,Be=Z.ui.debugPanelVisible,Dt=Z.state.isInteractiveTime$,ft=Z.ui.additionalSettingsMenuItems$,Bt=Z.ui.t,at=Z.actions.internal.downloadVideo,Ct=Z.actions.internal.closeSettingsMenu,ei=Z.actions.internal.openSettingsSubMenu,Rt=Z.actions.internal.closeSettingsSubMenu,$e=q(!1),be=q(void 0),ee=Fb();Ne(()=>{!r()&&ee.current&&(Rt(ne[ee.current]),ee.popAllSubMenus())}),Ne(()=>{r()||O(be,void 0)}),Ne(()=>{!ee.current&&n(be)&&X_(j,n(be))}),Ne(()=>{Y()&&U.set(Y())});async function ot(Tt){var K;ee.pushSubMenu(Tt),await bo(),ei(Tt,ne[Tt]);let Ut=(K=Y())==null?void 0:K.firstElementChild;Ut&&rm(Ut)}function fe(Tt){var Ut;Tt==null||Tt.stopPropagation(),a()||(Ut=e.returnFocus)==null||Ut.call(e),Ct(),O($e,!1)}function Le(Tt,Ut){Z.actions.internal.setQuality(Tt,{appliesTo:Ut}),fe()}function $t(Tt){Z.actions.internal.setAudioStream(Tt),fe()}function Pt(Tt,Ut){Z.actions.internal.setTrafficSavingEnabled(Tt,Ut),we.features.qualityDetailsSubMenuEnabled&&fe()}function ut(Tt,Ut){Z.actions.internal.setHighQualityEnabled(Tt,Ut),fe()}function ce(Tt){Z.actions.internal.setPlaybackRate(Tt),fe()}function Ue(Tt){Z.actions.internal.setSubtitle(Tt),fe()}function Ge(){at()}function lt(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Z.actions.internal.reportProblem(),Z.actions.internal.pause()}function Ft(){Wl(Z.actions.internal.getDebugTextData())}let Ht=()=>{let Tt=Z.actions.internal.getTraceTextData(),Ut=new Blob([...Tt],{type:"application/json"}),K=window.URL.createObjectURL(Ut);Ma(K,"vk_player_trace_info","json")};function ii(){Be.set(!l())}function bi(){O($e,!0)}function Yi(){O($e,!1)}function Nt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let ui=v(()=>ie&&u()&&!m()),vi=v(()=>we.features.trafficSaving&&!m()&&f()&&!we.features.qualityDetailsSubMenuEnabled),ht=v(()=>p().length>0&&!m()),jt=v(()=>!!$()&&!m()),xi=v(()=>we.features.audioLanguages&&y().length>=2&&!m()),ji=v(()=>!m());Mt(()=>Dt.subscribe(Tt=>{Tt&&!d()&&!n($e)&&!a()&&fe()}));let Zt=v(()=>{let Tt=[n(ji)&&"quality-settings",n(xi)&&"audio-languages-settings",n(jt)&&"playback-rate-settings",n(ht)&&"subtitles-settings",n(vi)&&"traffic-saving-switch",n(ui)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ut=>!!Ut);return jb({items:Tt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:ce,trafficSavingEnabled:T(),toggleTrafficSaving:Pt,currentQuality:N()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ge,onCopyDataClick:Ft,onReportProblemClick:lt,onSaveTraceDataClick:Ht,toggleShowDebugInfo:ii},additionalSettingsMenuItems:A()})}),Et=v(()=>Yb({subMenuId:ee.current,context:{availablePlaybackRates:_(),selectPlaybackRate:ce,trafficSavingEnabled:T(),toggleTrafficSaving:Pt,currentQuality:N()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:W()||!1,availableQualities:H(),highQualityEnabled:z(),toggleHighQuality:ut,availableAudioStreams:y(),availableSubtitlesList:p(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:$t,selectQuality:Le,selectSubtitle:Ue}}));var We=tC();let wi;var $o=C(We);{var So=Tt=>{var Ut=eC();let K;Ut.__keydown=[ZS,Ct];var At=C(Ut);{var si=Gt=>{var nt=JS();let Di;var Bi=C(nt),tn=C(Bi,!0);w(Bi);var Co=L(Bi,2);Co.__click=fe,w(nt),D((Fi,Xi)=>{Di=se(nt,1,"item header s-k",null,Di,Fi),me(tn,Xi)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),b(Gt,nt)};R(At,Gt=>{d()&&Gt(si)})}var dt=L(At,2);let St;yi(dt,21,()=>n(Zt),Gt=>Gt.id,(Gt,nt)=>{var Di=Ae(),Bi=de(Di);{var tn=Fi=>{wv(Fi,{get isMobile(){return d()},get id(){return n(nt).id},get icon(){return n(nt).icon},get iconProps(){return n(nt).iconProps},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get value(){return n(nt).value},get valueComponent(){return n(nt).valueComponent},onClick:()=>{ot(n(nt).children),O(be,n(nt).id,!0)},get ref(){return j[n(nt).id]},set ref(Xi){j[n(nt).id]=Xi}})},Co=(Fi,Xi)=>{{var Lr=ro=>{let Ii=v(()=>`${n(nt).id}-menu-item`);Cv(ro,{get isMobile(){return d()},get id(){return n(Ii)},get onClick(){return n(nt).onClick},get icon(){return n(nt).icon},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},closeSettings:fe})},yo=(ro,Ii)=>{{var on=nn=>{let Vn=v(()=>`${n(nt).id}-menu-item`);Iv(nn,{get isMobile(){return d()},get id(){return n(Vn)},get onClick(){return n(nt).onClick},get icon(){return n(nt).icon},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get enabled(){return n(nt).enabled},get tooltipText(){return n(nt).tooltipText},get maxTooltipWidth(){return n(nt).maxTooltipWidth}})};R(ro,nn=>{n(nt).type==="SWITCH"&&nn(on)},Ii)}};R(Fi,ro=>{n(nt).type==="CLICK"?ro(Lr):ro(yo,!1)},Xi)}};R(Bi,Fi=>{n(nt).type==="OPEN_SUB_MENU"?Fi(tn):Fi(Co,!1)})}b(Gt,Di)}),w(dt),je(dt,Gt=>Y(Gt),()=>Y()),w(Ut),D((Gt,nt,Di)=>{K=se(Ut,1,"settings-menu menu s-k",null,K,Gt),St=se(dt,1,"items",null,St,nt),qe(dt,Di)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),Nt]),gt("mouseenter",Ut,bi),gt("mouseleave",Ut,Yi),b(Tt,Ut)};R($o,Tt=>{r()&&Tt(So)})}var _n=L($o,2);yi(_n,17,()=>n(Et),Tt=>Tt.id,(Tt,Ut)=>{let K=v(()=>{var At;return(At=n(Ut).minWidth)!=null?At:137});xv(Tt,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return Ct},openSubMenuList:ot,get items(){return n(Ut).items},get minWidth(){return n(K)},get refMenuItems(){return j},get listRef(){return ne[n(Ut).id]},set listRef(At){ne[n(Ut).id]=At}})}),w(We),D(Tt=>wi=se(We,1,"settings-menu-container s-k",null,wi,Tt),[()=>({mobile:d(),hidden:!r()})]),b(t,We),F(),o()}tt(["keydown","click"]);var oC=M('<button class="btn s-11"> </button>'),nC={hash:"s-11",code:"button.btn.s-11{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Hv(t,e){Q(t,nC);var i=oC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);w(i),D(()=>me(o,e.label)),b(t,i)}tt(["click"]);var rC=M('<div class="container s-t"><div class="notification s-t"><div><p class="description s-t"><!></p> <!></div> <!></div></div>'),sC={hash:"s-t",code:".container.s-t{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-t{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-t{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),Q(t,sC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Vt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=rC(),d=C(l),s=C(d),u=C(s),m=C(u);Mc(m,{get message(){return a}}),w(u);var f=L(u,2);{var p=y=>{let _=v(()=>r("slow_video_notification_button"));Hv(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};R(f,y=>{o||y(p)})}w(s);var $=L(s,2);ks($,{get onClick(){return e.onClose}}),w(d),w(l),Yr(3,d,()=>hs,()=>({duration:i})),b(t,l),F()}var Oc=require("@vkontakte/videoplayer-shared/es2018"),il="annotation",bp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;e.setAttribute("slot",il),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var m;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((m=this.store)==null?void 0:m.ui)||{},s=new MutationObserver(f=>f.forEach(()=>{let p=As(a,this.shadowRootContainer);o.forEach($=>{let y=l==null?void 0:l[$],_=y?ge(y):null,S=d==null?void 0:d[$];_&&(S==null||S.set((0,Oc.isIntersecting)(_,p)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new Oc.Subscription;o.forEach(f=>{l&&u.add(l[f].subscribe(p=>{let $=d==null?void 0:d[f];p&&p.isDisplayed?$==null||$.set((0,Oc.isIntersecting)(p,As(a,this.shadowRootContainer))):$==null||$.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(f=>f==null?void 0:f.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(f=>{var p,$;($=(p=this.store)==null?void 0:p.ui.hiddenControls[f])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var aC=M('<div class="container s-5"><!></div>'),lC={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Dc(t,e){B(e,!0),Q(t,lC);let i=g(e,"reversed",3,!1);var o=Ae(),r=de(o);Cs(r,()=>e.Icon,a=>{var l=aC(),d=C(l);Ni(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),D(()=>qe(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var Uv=require("@vkontakte/videoplayer-core/es2018"),dC=M('<div class="container s-1b"><!></div>'),cC={hash:"s-1b",code:".container.s-1b{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function zv(t,e){B(e,!0),Q(t,cC);let[i,o]=Ve(),r=()=>x(s,"$playbackState$",i),a=()=>x(m,"$previewTrackActive",i),l=()=>x(f,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:f}}=ve(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:$}=Vt(),y=0,_=q(null),S=q(!1);Ne(()=>{r()===Uv.PlaybackState.PLAYING?O(_,An,!0):r()===Uv.PlaybackState.PAUSED?O(_,Ms,!0):O(_,null)}),Ne(()=>{if(!(!p||a()||l()))return y=window.setTimeout(()=>{y=0,O(_,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Ne(()=>{d()&&!n(S)&&(O(S,!0),O(_,null))});var I=Ae(),T=de(I);{var N=k=>{var E=dC(),A=C(E);Dc(A,{get duration(){return $},get Icon(){return n(_)}}),w(E),b(k,E)};R(T,k=>{n(_)&&p&&k(N)})}b(t,I),F(),o()}var uC=M('<div><div data-testid="video-container"></div></div>'),pC={hash:"s-e",code:".video-container.s-e,.video-wrapper.s-e{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-e{background:var(--black)}.video-container.s-e,.video-wrapper.s-e{z-index:var(--video-container-z-index)}.video-container.s-e{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-e{transition:none}.nocursor.s-e{cursor:none}"};function ol(t,e){B(e,!0),Q(t,pC);let[i,o]=Ve(),r=()=>x(m,"$rotateAlpha",i),a=()=>x(f,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(p,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:f},state:{isPlaying$:p}}=ve(),{isSmoothVideoRotate:$}=Vt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var _=uC();let S;_.__contextmenu=function(...N){var k;(k=e.onContextMenu)==null||k.apply(this,N)},_.__mousedown=function(...N){var k;(k=e.onMouseDown)==null||k.apply(this,N)},_.__mouseup=function(...N){var k;(k=e.onMouseUp)==null||k.apply(this,N)},_.__click=function(...N){var k;(k=e.onClick)==null||k.apply(this,N)},_.__dblclick=function(...N){var k;(k=e.onDblClick)==null||k.apply(this,N)};var I=C(_);let T;je(I,N=>s(N),()=>s()),w(_),D((N,k)=>{S=se(_,1,"video-wrapper s-e",null,S,N),T=se(I,1,"video-container s-e",null,T,k),qe(I,`transform: rotate(${r()}deg) scale(${n(y)})`),Me(I,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,_),F(),o()}tt(["contextmenu","mousedown","mouseup","click","dblclick"]);var fC=M('<div><span class="text s-1h"> </span> <!></div>'),mC={hash:"s-1h",code:".root.s-1h{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-1h,.root.visible.s-1h{transform:translateX(-50%)}.root.visible.s-1h{opacity:1;visibility:visible}.text.s-1h{font-size:13px;font-weight:600;line-height:16px}"};function Wv(t,e){B(e,!0),Q(t,mC);let{ui:{t:i}}=ve();var o=fC();let r;var a=C(o),l=C(a,!0);w(a);var d=L(a,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),w(o),D((s,u)=>{r=se(o,1,"root s-1h",null,r,s),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var vC=M('<div class="container s-1d" role="button" data-testid="preview-track-overlay"><div class="icon s-1d"><!></div></div>'),gC={hash:"s-1d",code:".container.s-1d{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1d,.icon.s-1d{align-items:center;display:flex;justify-content:center}.icon.s-1d{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1d:hover .icon:where(.s-1d){transform:scale(1.15)}"};function Kv(t,e){B(e,!1),Q(t,gC);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};xo();var l=vC();l.__click=a;var d=C(l),s=C(d);return An(s,{get size(){return"32"}}),w(d),w(l),Yr(3,l,()=>hs,()=>({duration:r})),b(t,l),kf(e,"handleClick",a),F({handleClick:a})}tt(["click"]);var hC=M('<div class="container s-19"><div class="notification s-19"><span class="text s-19"> </span></div></div>'),_C={hash:"s-19",code:".container.s-19{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-19{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-19{font-size:14px;font-weight:500;line-height:18px}"};function qv(t,e){B(e,!1),Q(t,_C);let{ui:{t:i}}=ve();xo();var o=hC(),r=C(o),a=C(r),l=C(a,!0);w(a),w(r),w(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],Sn),Yr(3,r,()=>hs,()=>({duration:340})),b(t,o),F()}var bC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},$C=M("<div><!></div>"),yC=M('<div class="spherical-video-icon s-9"><!></div>'),xC=M("<div><!></div>"),wC=M('<div class="settings-menu s-9"><!></div>'),SC=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),CC=M("<!> <!> <!>",1),TC=M('<div class="blocked s-9"></div>'),IC=M('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),EC={hash:"s-9",code:".blocked.s-9,.player-wrapper.s-9{height:100%;position:absolute;width:100%}.blocked.s-9{z-index:var(--overlay-container-z-index)}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-9{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Gv(t,e){B(e,!0),Q(t,EC);let[i,o]=Ve(),r=()=>x(di,"$notificationsToShow$",i),a=()=>x(ui,"$playerPhase",i),l=()=>x($o,"$isLoaderVisible",i),d=()=>x(bi,"$adPlaybackState",i),s=()=>x(si,"$crashed",i),u=()=>x(Fi,"$isInteractiveTime$",i),m=()=>x(xi,"$settingsMenuVisible",i),f=()=>x(Xi,"$isInteractiveExpectation$",i),p=()=>x(jt,"$controlsVisible",i),$=()=>x(yo,"$touched",i),y=()=>x(Vr,"$graphIsOpened$",i),_=()=>x(vi,"$isFullscreen",i),S=()=>x(_s,"$autoplayNextEnabled$",i),I=()=>x(Ut,"$postrollPassed",i),T=()=>x(So,"$isEnded$",i),N=()=>x(Hn,"$cursorInside",i),k=()=>x(er,"$isControlsAvailable",i),E=()=>x(bn,"$doubleForwardOn$",i),A=()=>x(br,"$fakeIsPlaying$",i),W=()=>x(xr,"$bottomNoSmooth",i),H=()=>x(nn,"$interactiveTimeIndicator",i),z=()=>x(Di,"$playerSize",i),Y=()=>x(Bi,"$is3DVideo",i),ae=()=>x(Rn,"$doubleForwardAvailable$",i),j=()=>x(We,"$contextMenuVisible$",i),ne=()=>x(ii,"$playbackState$",i),Z=()=>x(ro,"$hotKeyMapData",i),we=()=>x(Zt,"$scrubbingInProgress",i),ue=()=>x(Et,"$volumeChangingInProgress",i),re=()=>x(_n,"$chromecastConnected$",i),_e=()=>x($n,"$controlsTimeoutActive",i),xe=()=>x(ji,"$settingsMenuOpenedByKeyboard",i),J=()=>x(ss,"$contextMenuOpenedByKeyboard$",i),Re=()=>x(Ci,"$contextMenuOpenedByHotKey$",i),pe=()=>x(Ye,"$contextMenuButtonRef$",i),P=()=>x(Ko,"$contextMenuLastActiveElem$",i),ze=()=>x(ht,"$isFullscreenOpenedByKeyboard",i),Te=()=>x(Ht,"$language$",i),X=()=>x(ln,"$previewTrackActive$",i),ie=()=>x(tn,"$icon3DVideoVisible",i),Oe=()=>x(Tt,"$chromecastDeviceName$",i),De=()=>x(Gt,"$currentSubtitle$",i),it=()=>x(nt,"$currentSubtitleCaptions$",i),U=()=>x(Yi,"$position$",i),Pe=()=>x(Nt,"$duration$",i),Ee=()=>x(K,"$isLive$",i),He=()=>x(At,"$isPlaying$",i),Ze=()=>x(Jn,"$contextMenuPosition$",i),ye=()=>x(Bo,"$previewTrackNotificationVisible$",i),ke=()=>x(Ii,"$showHotKeyMap",i),Be=()=>x(wi,"$debugPanelVisible",i),Dt=()=>x(is,"$userActionsDisabled$",i),ft=g(e,"videoContainer",15),Bt=g(e,"adsSlotId",3,void 0),at=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),ei=g(e,"duration",3,void 0),Rt=g(e,"logoTargetUrl",3,""),$e=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),ee=g(e,"prevButtonActive",3,!1),ot=g(e,"endScreenVideoTitle",3,void 0),fe=g(e,"endScreenVideoThumb",3,void 0),Le=g(e,"isOneVideoPlaylist",3,!1),$t=g(e,"shadowRootContainer",3,void 0),Pt=g(e,"outerContainerRef",3,void 0),ut=g(e,"playerStarted",3,!1),ce=g(e,"fullScreenTarget",3,void 0),Ue=g(e,"showMiniTimer",3,!1),Ge=g(e,"showEndScreen",3,!0),lt=g(e,"keyboardControls",15),Ft=e.store.getLogger().createComponentLog("Root component"),Ht=e.store.interfaceLanguage$,ii=e.store.state.playbackState$,bi=e.store.ads.playbackState,Yi=e.store.state.positionWithScrubbing$,Nt=e.store.state.duration$,ui=e.store.playerPhase,vi=e.store.ui.isFullscreen,ht=e.store.ui.isFullscreenOpenedByKeyboard,jt=e.store.ui.controlsVisible,xi=e.store.ui.settingsMenu.visible$,ji=e.store.ui.settingsMenu.openedByBtnKeyboard$,Zt=e.store.ui.scrubbingInProgress,Et=e.store.ui.volumeChangingInProgress,We=e.store.ui.contextMenu.visible$,wi=e.store.ui.debugPanelVisible,$o=e.store.state.isLoaderVisible,So=e.store.state.isEnded$,_n=e.store.state.chromecastConnected$,Tt=e.store.state.chromecastDeviceName$,Ut=e.store.ads.postrollPassed,K=e.store.state.isLive$,At=e.store.state.isPlaying$,si=e.store.state.crashed$,dt=e.store.webApi.annotationsApi,St=e.store.webApi.pictureInPictureApi,Gt=e.store.state.currentSubtitle$,nt=e.store.state.currentSubtitleCaptions$,Di=e.store.ui.playerSize,Bi=e.store.ui.is3DVideo,tn=e.store.ui.icon3DVideoVisible,Co=e.store.state.isInteractive,Fi=e.store.state.isInteractiveTime$,Xi=e.store.state.isInteractiveExpectation$,Lr=e.store.state.hasInteractiveBranches,yo=e.store.ui.touched,ro=e.store.ui.modals.hotKeyMap.data,Ii=e.store.ui.modals.hotKeyMap.show,on=e.store.ui.overlayContainer$,nn=e.store.ui.controls.interactiveTimeIndicator,Vn=e.store.state.showInteractiveTimeIndicator,Jn=e.store.ui.contextMenu.position$,Mr=e.store.actions.internal.setQuality,ts=e.store.actions.internal.closeSettingsMenu,_s=e.store.ui.autoplayNextEnabled$,is=e.store.ui.userActionsDisabled,er=e.store.ui.isControlsAvailable,_r=e.store.ui.videoTitleInfo,bn=e.store.ui.doubleForwardOn$,Rn=e.store.ui.doubleForwardAvailable$,Bo=e.store.ui.previewTrackNotificationVisible,Nn=e.store.actions.internal.getVideoElement,tr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:br,notifications$:$r,graphIsOpened$:Vr}=wo(),so=q(void 0),Rr=q(void 0),On=q(void 0),Dn=q(void 0),ao,Nr,Bn;ro.set(K_());let{closeNotification:mt,notificationsToShow$:di}=$r,yr=v(()=>!!r().slow_video),ir=()=>mt("slow_video"),or=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),rn=q(void 0),xr=le(!1),sn,$n=le(!1),Fn=le(),Hn=le(!1),Fo=q(!1),To=q(!1),nr=q(!1),Io=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Hi=v(()=>u()&&!m()&&!(n(Fo)||n(To))&&!(n(nr)&&!f())),Un=!0,rr=v(()=>e.uiConfig.features.thumbTimer&&Ue()&&a()==="video"&&!p()&&!s()&&!Co&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Or=v(()=>a()==="video"&&!y()&&_()),zn=q(!1),Eo=v(()=>(Ge()||e.showAutoplayNext&&S())&&!!ot()&&!!fe()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(zn)),Dr=v(()=>N()&&!(p()||n(Eo))&&!u()&&k()&&!E()),yt=q(!1),xt=v(()=>A()!==null),{toggle:lo}=br,Ai=!1,Zi=null;St==null||St.setContext(xd());let Ho=()=>{e.autoplay&&!Co&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ei(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ho});let Uo=()=>{window.clearTimeout(ao),$n.set(!1)},co=()=>{window.clearTimeout(Nr),Fn.set(null)},Ei=he=>{Uo(),$n.set(!0),ao=window.setTimeout(()=>$n.set(!1),he);let wt=he-100;sn=window.setTimeout(()=>{W()&&xr.set(!1)},wt>0?wt:he)},Br=(he,wt)=>{co(),Fn.set(wt),Nr=window.setTimeout(()=>Fn.set(null),he)},Fr=Bi.subscribe(he=>{tn.set(he),he&&(window.clearTimeout(Bn),Bn=window.setTimeout(()=>tn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),os=async()=>{var wt,ti,$i,Li;let he=Zs();if(he){let ci=Xd(),oi=ko();he=ci===oi||ci===$t()}if(he){Ei(e.uiConfig.controls.hideTimeoutFullscreen);try{await(St==null?void 0:St.exit())}catch(ci){Ft({message:String(ci)})}}vi.set(he),e.store.getAdmanWrapper().setFullscreen(he),_()?(ti=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||ti.call(wt):(Li=($i=e.store.callbacks)==null?void 0:$i.onFullscreenExit)==null||Li.call($i)},ns=he=>{let{width:wt,height:ti}=he.target;Di.set({width:wt,height:ti})},Hr=()=>{let{width:he,height:wt}=n(so).getBoundingClientRect();Di.set({width:he,height:wt})};Mt(()=>{var wt;return Qu(os),e.uiConfig.features.annotationsInside&&(dt==null||dt.init(n(so))),Oa(St)&&(St==null||St.assignPlayerContainer(n(so)),St==null||St.setExternalEventHandlers({resize:ns,leavepictureinpicture:Hr})),e.interactiveContainer&&((wt=ft().parentElement)==null||wt.insertBefore(e.interactiveContainer,ft().nextSibling)),()=>{window.clearTimeout(ao),window.clearTimeout(sn),window.clearTimeout(Nr),window.clearTimeout(Bn),Fr(),St==null||St.dispose().catch(ti=>{Ft({message:String(ti)})}),Gu(os)}});let ko=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Pt()?n(so):Pt(),wt=he.getRootNode(),ti=wt instanceof ShadowRoot?wt.host:wt,$i=ce()instanceof HTMLElement&&ce().contains(ti);return e.uiConfig.allowChangingFullscreenTarget&&ce()&&$i?ce():he},an=()=>{We.set(!1)},uo=()=>{ts(),an()},wr=async()=>{if(!tr()){Ft({message:"fullscreen disabled"});return}an(),Zs()?(await qu(document),Ft({message:"exit fullscreen"})):(Ft({message:"request fullscreen"}),await Ku(ko()))},zo=he=>{y()||(he.preventDefault(),We.set(!0),Jn.set({left:he.clientX,top:he.clientY}))};function rs(){Hn.set(!0),Co||Ei(e.uiConfig.controls.hideTimeoutCursor)}function Ke(he){var Li,ci;let{relatedTarget:wt}=he,$i=!!(wt&&((Li=n(On))!=null&&Li.contains(wt)))&&((ci=lt())==null?void 0:ci.isFocused());!Co&&!$i&&(xr.set(!0),Ei(e.uiConfig.controls.hideTimeoutCursor))}function Lt(){Hn.set(!1),O(To,!1),O(Fo,!1),Ai=!1,e.store.actions.internal.releaseCamera(),Ei(e.uiConfig.controls.hideTimeout),E()&&xn()}function hi(he){return he?he.offsetTop+hi(he.offsetParent):0}function Po(he){return he?he.offsetLeft+Po(he.offsetParent):0}function Ao(he){if(H()&&Vn){let wt=he.currentTarget,ti=hi(wt),$i=Po(wt),Li=he.pageX-$i,ci=he.pageY-ti,{left:oi,bottom:vo,right:un}=H(),pn=un-oi;return Li>=oi-pn&&ci<=vo+pn}}function Wo(he){if(n(so)){let wt=hi(he.currentTarget),ti=z().height,$i=he.pageY-wt;if(Ao(he)){O(To,!1);return}$i<40?O(To,!0):$i>ti-40?O(Fo,!0):(O(To,!1),m()||O(Fo,!1))}}function po(he){Wo(he),!n(Hi)&&!E()&&Ei(e.uiConfig.controls.hideTimeoutCursor),Y()&&Ai&&Zi&&e.store.actions.internal.moveCameraFocusPX(Zi.clientX-he.clientX,Zi.clientY-he.clientY,he.timeStamp-Zi.timeStamp),Zi=he}let Ji=null,yn=()=>{Ji=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Uo()},e.uiConfig.doubleForwardActivationTime)},xn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ji&&clearTimeout(Ji),Ji=null},fo=he=>{he.preventDefault(),he.button===0&&(Ai=!0,e.store.actions.internal.holdCamera(),ae()&&yn()),!Ai&&Ei(e.uiConfig.controls.hideTimeoutCursor)},Lo=he=>{he.preventDefault(),he.button===0&&(Zi=he,Ai=!1,e.store.actions.internal.releaseCamera()),!E()&&Ei(e.uiConfig.controls.hideTimeoutCursor)},Wn=he=>{he.preventDefault(),Un&&(Ft({message:"double click on video"}),wr(),Ei(e.uiConfig.controls.hideTimeoutCursor))},sr=he=>{var wt;if(he.preventDefault(),E()){xn();return}if(Ji&&xn(),j()||m()){uo();return}if(!(T()&&!Lr)){if(n(xt))return lo();if((wt=lt())==null||wt.focus(),!ut()){e.firstStart(),Ei(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==Qv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ei(e.uiConfig.controls.hideTimeoutCursor)}},ar=he=>{uo(),yo.set(!0),Ei(e.uiConfig.controls.hideTimeout),he&&Br(e.uiConfig.controls.hideHotKeyHelpers,he)},Kn=()=>{var he,wt;uo(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(Z()):Ii.update(ti=>!ti)},bs=()=>{yo.set(!0)},ss=e.store.ui.contextMenu.openedByBtnKeyboard$,Ye=e.store.ui.contextMenu.btnRef$,qt=q(void 0),Ci=e.store.ui.contextMenu.openedByHotKey$,Ko=e.store.ui.contextMenu.lastActiveElem$,ln=e.store.ui.previewTrackActive;Ne(()=>{on.set(n(rn))}),Ne(()=>{O(nr,n(Io)&&ne()!==Qv.PlaybackState.PLAYING,!0),n(Io)||It(()=>O(Io,!0))}),Ne(()=>{var wt,ti;let he=(n(nr)||T()||m()||we()||ue()||re()||_e())&&!n(Hi)&&(a()==="video"||a()==="ads")&&!s()&&k();jt.set(he),!he&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((wt=n(On))!=null&&wt.contains(ep()))&&((ti=lt())==null||ti.focus())}),Ne(()=>{!we()&&n(yt)&&!u()&&Ei(e.uiConfig.controls.hideTimeoutCursor),It(()=>O(yt,we(),!0))}),Ne(()=>{n(Dn),m(),xe(),It(()=>nc(n(Dn),m(),xe()))}),Ne(()=>{n(qt),j(),J(),Re(),It(()=>{let he=J()||Re();nc(n(qt),j(),he)})}),Ne(()=>{let he=pe();he&&(j(),It(()=>Kl(he,j(),ss)))}),Ne(()=>{let he=P();he&&(j(),It(()=>j_(he,j(),Ci)))}),Ne(()=>{var he;!ze()&&_()&&(It(()=>ht.set(!1)),(he=lt())==null||he.focus())}),Ne(()=>{y()&&uo()});let lr=q(void 0),dn=he=>{_r.set(Xn(Nn(),{title:n(lr)},"title",he))},qo=(he,wt)=>{var ci,oi;let ti=(oi=(ci=e.store.callbacks)==null?void 0:ci.uiInfo)==null?void 0:oi.onUpcomingLiveViewStateChanged;if(!ti)return;let $i=!!wt,Li={...Xn(n(so),{upcomingLiveScreen:wt},"upcomingLiveScreen",$i),...he};ti(Li)};var Ns=IC();gt("blur",wa,uo);var cn=de(Ns);cn.__mousemove=po;var Os=C(cn);let la=v(()=>a()==="ads"),da=v(()=>n(xt)?lo:void 0);je(fm(Os,{startDoubleForwardActivationTimer:yn,stopDoubleForward:xn,toggleFullscreen:wr,hideContextMenu:uo,showHotKeyHelpers:ar,showKeyMap:Kn,get isAds(){return n(la)},get fakePlayButtonHandler(){return n(da)},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},children:(he,wt)=>{var ti=CC(),$i=de(ti);ol($i,{get hideCursor(){return n(Dr)},onClick:sr,onContextMenu:zo,onMouseDown:fo,onMouseUp:Lo,onDblClick:Wn,get videoContainer(){return ft()},set videoContainer(oi){ft(oi)}});var Li=L($i,2);ka(Li,()=>"slot",!1,(oi,vo)=>{to(oi,()=>({name:il}))});var ci=L(Li,2);Cs(ci,Te,oi=>{var vo=SC(),un=de(vo);let pn=v(()=>a()!=="thumb"||s()||Co&&e.autoplay);Ja(un,{get hidden(){return n(pn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:zo,onClick:an});var ki=L(un,2);{var fd=Fe=>{Kv(Fe,{})};R(ki,Fe=>{X()&&Fe(fd)})}var sl=L(ki,2);zv(sl,{});var Ds=L(sl,2);Wv(Ds,{get isVisible(){return E()}});var al=L(Ds,2);{var ll=Fe=>{let gi=v(()=>{var Mo;return(Mo=e.live)==null?void 0:Mo.startTime});Ac(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:qo,onContextMenu:zo,onClick:an})};R(al,Fe=>{a()==="LiveWaitingStart"&&Fe(ll)})}var Sr=L(al,2);{var ca=Fe=>{el(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:zo,onClick:an})};R(Sr,Fe=>{a()==="LiveWaitingRecover"&&Fe(ca)})}var Bs=L(Sr,2);{var Ur=Fe=>{el(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:zo,onClick:an})};R(Bs,Fe=>{a()==="LiveWaitingRecord"&&Fe(Ur)})}var as=L(Bs,2);{var Fs=Fe=>{var gi=$C();let Mo;var va=C(gi);Jd(va,{get adsSlotId(){return Bt()},get adsParams(){return at()},get adsAutoplayParam(){return Ct()},get duration(){return ei()},get adsExternalApi(){return e.adsExternalApi}}),w(gi),D(wn=>Mo=se(gi,1,"ads-container s-9",null,Mo,wn),[()=>({hidden:a()!=="ads"})]),b(Fe,gi)};R(as,Fe=>{e.showAds&&ut()&&Fe(Fs)})}var dr=L(as,2);{var dl=Fe=>{let gi=v(()=>!Ge()&&e.showAutoplayNext&&S());cm(Fe,{get title(){return ot()},get thumb(){return fe()},get isHide(){return n(gi)},clickCloseIcon:()=>O(zn,!0)})};R(dr,Fe=>{n(Eo)&&ot()&&fe()&&Fe(dl)})}var cl=L(dr,2);{var md=Fe=>{let gi=v(()=>!p());gv(Fe,{get title(){return e.title},get isHidden(){return n(gi)},onVisibilityChanged:dn,get ref(){return n(lr)},set ref(Mo){O(lr,Mo,!0)}})};R(cl,Fe=>{n(Or)&&Fe(md)})}var ul=L(cl,2);{var pl=Fe=>{let gi=v(()=>a()==="video"&&p());kc(Fe,{get isShifted(){return n(gi)}})};R(ul,Fe=>{Y()&&Fe(pl)})}var fl=L(ul,2);{var vd=Fe=>{var gi=yC(),Mo=C(gi);jd(Mo,{}),w(gi),b(Fe,gi)};R(fl,Fe=>{ie()&&Fe(vd)})}var ua=L(fl,2);{var Cr=Fe=>{Pc(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};R(ua,Fe=>{re()&&Fe(Cr)})}var st=L(ua,2);{var pt=Fe=>{Xa(Fe,{get shifted(){return p()},get captions(){return it()},get position(){return U()},get playerSize(){return z()}})};R(st,Fe=>{De().value!=="off"&&Fe(pt)})}var Ui=L(st,2);{var Qo=Fe=>{var gi=xC();gi.__contextmenu=zo,gi.__click=[bC,j,We,m,xi,uo];var Mo=C(gi);Za(Mo,{}),w(gi),b(Fe,gi)};R(Ui,Fe=>{s()&&Fe(Qo)})}var zi=L(Ui,2);{var _i=Fe=>{let gi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Mo=v(()=>a()==="ads"),va=v(()=>e.canRewindLive&&Pe()!==0);Ic(Fe,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return W()},get showControls(){return p()},get isAds(){return n(Mo)},get canRewindLive(){return n(va)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return $e()},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Le()},customFullscreenSupported:Un,toggleFullscreen:wr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Rr)},set playerControlsWrapperRef(wn){O(Rr,wn,!0)},get playerControlsRef(){return n(On)},set playerControlsRef(wn){O(On,wn,!0)}})};R(zi,Fe=>{ut()&&Fe(_i)})}var Mi=L(zi,2);{var pa=Fe=>{var gi=wC(),Mo=C(gi);let va=v(()=>{var wn;return(wn=n(On))==null?void 0:wn.clientHeight});Rc(Mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(va)},returnFocus:()=>{var wn;return(wn=lt())==null?void 0:wn.focus()},get ref(){return n(Dn)},set ref(wn){O(Dn,wn,!0)}}),w(gi),b(Fe,gi)};R(Mi,Fe=>{!re()&&a()!=="ads"&&Fe(pa)})}var ml=L(Mi,2);let Np=v(()=>!n(rr));ic(ml,{get isLive(){return Ee()},get isHidden(){return n(Np)},get isPlaying(){return He()},get position(){return U()},get duration(){return Pe()}});var Yc=L(ml,2);mv(Yc,{get data(){return Fn}});var jc=L(Yc,2);lm(jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=lt())==null?void 0:Fe.focus()},get visible(){return j()},get playerContainerRef(){return n(so)},get position(){return Ze()},get menuElementRef(){return n(qt)},set menuElementRef(Fe){O(qt,Fe,!0)}});var Xc=L(jc,2);{var Op=Fe=>{Nc(Fe,{onClose:ir,onSelectAutoQuality:()=>{Mr("auto"),ir()}})};R(Xc,Fe=>{n(yr)&&Fe(Op)})}var Zc=L(Xc,2);{var vl=Fe=>{qv(Fe,{})};R(Zc,Fe=>{ye()&&Fe(vl)})}var Jc=L(Zc,2);{var fa=Fe=>{Ha(Fe,{})};R(Jc,Fe=>{n(or)&&Fe(fa)})}var ma=L(Jc,2);{var Dp=Fe=>{gm(Fe,{})};R(ma,Fe=>{ke()&&Fe(Dp)})}var eu=L(ma,2);{var gd=Fe=>{sc(Fe,{})};R(eu,Fe=>{Be()&&Fe(gd)})}b(oi,vo)}),b(he,ti)},$$slots:{default:!0}}),he=>lt(he),()=>lt());var ct=L(Os,2);je(ct,he=>O(rn,he),()=>n(rn)),w(cn),je(cn,he=>O(so,he),()=>n(so));var Jt=L(cn,2);{var mo=he=>{var wt=TC();b(he,wt)};R(Jt,he=>{Dt()&&he(mo)})}gt("mouseenter",cn,rs),gt("mouseleave",cn,Lt),gt("click",cn,bs,!0),gt("focusin",cn,Ke,!0),b(t,Ns),F(),o()}tt(["mousemove","contextmenu","click"]);var aa=require("@vkontakte/videoplayer-core/es2018"),o$=require("@vkontakte/videoplayer-shared/es2018");var kC=M('<div></div> <div class="info s-m"><div class="triangles-wrapper s-m"><div></div> <div></div> <div></div></div> <p class="step-caption s-m"> </p></div>',1),PC=M("<div><!></div>"),AC={hash:"s-m",code:".double-click-area.s-m{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-m{left:0}.double-click-area.right.s-m{right:0}.semicircle.s-m{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-m{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-m{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-m{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-m,.triangles-wrapper.s-m{display:flex;justify-content:center}.triangles-wrapper.s-m{margin-bottom:10px;position:relative}.triangle.s-m{animation:s-m-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-m:nth-child(3),.triangle.right.s-m:first-child{animation-delay:0s}.triangle.left.s-m:nth-child(2),.triangle.right.s-m:nth-child(2){animation-delay:.1s}.triangle.left.s-m:first-child,.triangle.right.s-m:nth-child(3){animation-delay:.2s}@keyframes s-m-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-m{border-right:8px solid var(--white)}.triangle.right.s-m{border-left:8px solid var(--white)}.triangle.s-m:not(:last-child){margin-right:5px}.step-caption.s-m{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function $p(t,e){B(e,!0),Q(t,AC);let i=g(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(ai(i())),d=f=>{f.stopPropagation(),a+=1,O(l,i()*(a-1)),a===1?e.handleSingleFirstClick(f):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};vn(()=>{window.clearTimeout(r)});var s=PC();s.__click=d;var u=C(s);{var m=f=>{var p=kC(),$=de(p),y=L($,2),_=C(y),S=C(_),I=L(S,2),T=L(I,2);w(_);var N=L(_,2),k=C(N,!0);w(N),w(y),D(E=>{var A,W,H,z;se($,1,`semicircle ${(A=e.side)!=null?A:""}`,"s-m"),se(S,1,`triangle ${(W=e.side)!=null?W:""}`,"s-m"),se(I,1,`triangle ${(H=e.side)!=null?H:""}`,"s-m"),se(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-m"),me(k,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(f,p)};R(u,f=>{n(o)&&f(m)})}w(s),D(()=>{var f;return se(s,1,`double-click-area ${(f=e.side)!=null?f:""}`,"s-m")}),b(t,s),F()}tt(["click"]);var LC=(t,e,i)=>{e(!1),i()},MC=M('<div class="overlay s-h"></div> <div class="next-video s-h"><div class="top s-h"><div class="caption s-h"> </div> <!></div> <div class="row s-h"><div class="column s-h"><div class="thumb s-h"><div></div> <!></div></div> <div class="column s-h"><div class="title s-h"> </div></div></div></div>',1),VC={hash:"s-h",code:".overlay.s-h{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-h{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-h{display:flex;justify-content:space-between}.caption.s-h{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-h{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-h{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-h{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-h,.thumb-overlay.s-h{height:100%;width:100%}.thumb-overlay.s-h{position:absolute}.thumb-overlay.withOpacity.s-h{background:var(--black);opacity:.3}.title.s-h{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Yv(t,e){B(e,!0),Q(t,VC);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,f=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},_=()=>{e.clickCloseIcon(),$()};Mt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),p())});var S=Ae(),I=de(S);{var T=N=>{var k=MC(),E=L(de(k),2),A=C(E),W=C(A),H=C(W,!0);w(W);var z=L(W,2);ks(z,{onClick:_}),w(A);var Y=L(A,2);Y.__click=[LC,u,f];var ae=C(Y),j=C(ae),ne=C(j);let Z;var we=L(ne,2);{var ue=J=>{ac(J,{get isRunning(){return a()},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(j),w(ae);var re=L(ae,2),_e=C(re),xe=C(_e,!0);w(_e),w(re),w(Y),w(E),D((J,Re)=>{me(H,J),qe(j,`background-image: url('${e.thumb}')`),Z=se(ne,1,"thumb-overlay s-h",null,Z,Re),me(xe,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(N,k)};R(I,N=>{e.isHide||N(T)})}b(t,S),F(),o()}tt(["click"]);var Zb=require("@vkontakte/videoplayer-core/es2018");var Jb=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{Zb.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),vn(()=>{i==null||i(),clearTimeout(o)})};var e$=require("@vkontakte/videoplayer-core/es2018");var yp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var t$=require("@vkontakte/videoplayer-core/es2018"),i$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>t$.clientChecker.device.isIOS&&ge(l)===e$.VideoFormat.DASH_LIVE_CMAF,f=()=>{s==null||s(),s=null},p=$=>{if(f(),!m()||!$)return;let y=u();if(!y)return;let _=new yp(y),S=ge(d),I=ge(a),T=ge(r);for(let E of S)I.some(W=>W.value===E.id)&&_.attach(E,T.value===E.id);let N=d.subscribe(E=>{for(let A of E)_.updateSrc(A)}),k=()=>{let E=_.getCurrentShowingId();o(ge(a).find(A=>A.value===E))};y.textTracks.addEventListener("change",k),s=()=>{N(),_.detachAll(),y.textTracks.removeEventListener("change",k)}};Mt(()=>i.subscribe(p)),vn(f)};var RC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},NC=M("<!> <!>",1),OC=M("<div><!></div>"),DC=M('<div class="spherical-video-icon s-7"><!></div>'),BC=M("<div><!></div>"),FC=M('<div class="settings-mobile s-7"><!></div>'),HC=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),UC=M('<div class="player-wrapper s-7" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),zC={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-7{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function jv(t,e){var Eo,Dr;B(e,!0),Q(t,zC);let[i,o]=Ve(),r=()=>x($t,"$playerPhase",i),a=()=>x(bi,"$isLoaderVisible",i),l=()=>x(ot,"$adPlaybackState",i),d=()=>x(Zt,"$crashed",i),s=()=>x(_s,"$notificationsToShow$",i),u=()=>x(ee,"$playbackState$",i),m=()=>x(Rt,"$graphIsOpened$",i),f=()=>x(Ue,"$interactiveHideMobileControls",i),p=()=>x(Yi,"$isEnded$",i),$=()=>x(dt,"$isInteractiveExpectation$",i),y=()=>x(ut,"$controlsVisible",i),_=()=>x(nt,"$touched",i),S=()=>x(Bi,"$autoplayNextEnabled$",i),I=()=>x(vi,"$postrollPassed",i),T=()=>x(_r,"$bottomNoSmooth",i),N=()=>x(wi,"$videoSize",i),k=()=>x(Tt,"$playerSize",i),E=()=>x(Pt,"$isFullscreen",i),A=()=>x(fe,"$position$",i),W=()=>x(Le,"$duration$",i),H=()=>x(tn,"$loadedMetadata",i),z=()=>x(Ge,"$settingsMenuVisible",i),Y=()=>x(Ft,"$scrubbingInProgress",i),ae=()=>x(Ht,"$volumeChangingInProgress",i),j=()=>x(Nt,"$chromecastConnected$",i),ne=()=>x(ce,"$isControlsAvailable",i),Z=()=>x(si,"$isInteractiveTime$",i),we=()=>x(xi,"$isActiveLive",i),ue=()=>x(lt,"$settingsMenuOpenedByKeyboard",i),re=()=>x(be,"$language$",i),_e=()=>x(Gt,"$disabledControls$",i),xe=()=>x(Ut,"$is3DVideo",i),J=()=>x(K,"$icon3DVideoVisible",i),Re=()=>x(ui,"$chromecastDeviceName$",i),pe=()=>x($o,"$currentSubtitle$",i),P=()=>x(So,"$currentSubtitleCaptions$",i),ze=()=>x(_n,"$realDuration$",i),Te=()=>x(ht,"$isLive$",i),X=()=>x(jt,"$isPlaying$",i),ie=()=>x(ii,"$debugPanelVisible",i),Oe=g(e,"videoContainer",15),De=g(e,"adsSlotId",3,void 0),it=g(e,"adsParams",3,void 0),U=g(e,"adsAutoplayParam",3,void 0),Pe=g(e,"duration",3,void 0),Ee=g(e,"logoTargetUrl",3,""),He=g(e,"showNextPrevButtons",3,!1),Ze=g(e,"nextButtonActive",3,!1),ye=g(e,"prevButtonActive",3,!1),ke=g(e,"endScreenVideoTitle",3,void 0),Be=g(e,"endScreenVideoThumb",3,void 0),Dt=g(e,"isOneVideoPlaylist",3,!1),ft=g(e,"showMiniTimer",3,!1),Bt=g(e,"fullScreenTarget",3,void 0),at=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:ei,graphIsOpened$:Rt}=wo(),$e=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,ot=e.store.ads.playbackState,fe=e.store.state.positionWithScrubbing$,Le=e.store.state.duration$,$t=e.store.playerPhase,Pt=e.store.ui.isFullscreen,ut=e.store.ui.controlsVisible,ce=e.store.ui.isControlsAvailable,Ue=e.store.ui.interactiveHideMobileControls,Ge=e.store.ui.settingsMenu.visible$,lt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ft=e.store.ui.scrubbingInProgress,Ht=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,bi=e.store.state.isLoaderVisible,Yi=e.store.state.isEnded$,Nt=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,vi=e.store.ads.postrollPassed,ht=e.store.state.isLive$,jt=e.store.state.isPlaying$,xi=e.store.state.isActiveLive$,ji=e.store.state.isRewindableLive$,Zt=e.store.state.crashed$,Et=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,wi=e.store.state.videoSize$,$o=e.store.state.currentSubtitle$,So=e.store.state.currentSubtitleCaptions$,_n=e.store.state.duration$,Tt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,K=e.store.ui.icon3DVideoVisible,At=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,dt=e.store.state.isInteractiveExpectation$,St=e.store.state.hasInteractiveBranches,Gt=e.store.ui.controls.disabledControls$,nt=e.store.ui.touched,Di=e.store.ui.overlayContainer$,Bi=e.store.ui.autoplayNextEnabled$,tn=e.store.state.loadedMetadata$,Co=e.store.actions.internal.closeSettingsMenu,Fi=(Eo=e.store.callbacks)==null?void 0:Eo.onDisabledPlayPrevChapterClick,Xi=(Dr=e.store.callbacks)==null?void 0:Dr.onDisabledSeekToInteractiveClick,Lr=e.store.actions.internal.setQuality,yo=q(void 0),ro=q(void 0),Ii=q(void 0),on=q(void 0),nn,Vn,Jn=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Mr=q(void 0),{closeNotification:ts,notificationsToShow$:_s}=ei,is=v(()=>!!s().slow_video),er=()=>ts("slow_video"),_r=le(!1),bn,Rn=q(!1),Bo=v(()=>u()!==aa.PlaybackState.PLAYING),Nn=q(!1),tr=v(()=>m()||f()||!n(Rn)&&(p()&&!!St||n(Bo)&&$())),br=q(!0),$r=v(()=>e.uiConfig.features.thumbTimer&&ft()&&r()==="video"&&!y()&&!d()&&!At&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Vr=q(!1),so=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!ke()&&!!Be()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!n(Vr)),Rr=q(!1);We==null||We.setContext(xd());let On=yt=>{yt&&!At&&ao(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:On});let Dn=()=>{clearTimeout(nn),O(Rn,!1),f()&&Ue.set(!1)},ao=yt=>{Dn(),O(Rn,!0),nn=setTimeout(()=>O(Rn,!1),yt);let xt=yt-100;bn=setTimeout(()=>{T()&&_r.set(!1)},xt>0?xt:yt)},Nr=Ut.subscribe(yt=>{K.set(yt),yt&&(clearTimeout(Vn),Vn=setTimeout(()=>K.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=async(yt=Zs())=>{var xt,lo,Ai,Zi,Ho,Uo;if(yt&&!aa.clientChecker.device.isIOS){let co=Xd(),Ei=rn(),Br=aa.clientChecker.browser.isSamsungBrowser&&co===e.shadowRootContainer;yt=co===Ei||Br}if(yt){ao(e.uiConfig.controls.hideTimeoutFullscreen);try{await(We==null?void 0:We.exit())}catch(co){$e({message:String(co)})}try{let co=(xt=N())!=null&&xt.width&&((lo=N())!=null&&lo.height)?N():k();await W_(co)}catch(co){$e({message:String(co)})}}Pt.set(yt),e.store.getAdmanWrapper().setFullscreen(yt),E()?(Zi=(Ai=e.store.callbacks)==null?void 0:Ai.onFullscreenEnter)==null||Zi.call(Ai):(Uo=(Ho=e.store.callbacks)==null?void 0:Ho.onFullscreenExit)==null||Uo.call(Ho)},mt=yt=>{let xt=yt,{width:lo,height:Ai}=xt.target;Tt.set({width:lo,height:Ai})},di=()=>{let{width:yt,height:xt}=n(yo).getBoundingClientRect();Tt.set({width:yt,height:xt})};Mt(()=>{var yt;return Qu(Bn),e.uiConfig.features.annotationsInside&&(Et==null||Et.init(n(yo))),Oa(We)&&(We==null||We.assignPlayerContainer(n(yo)),We==null||We.setExternalEventHandlers({resize:mt,leavepictureinpicture:di})),O(br,!aa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((yt=Oe().parentElement)==null||yt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(nn),clearTimeout(bn),clearTimeout(Vn),Nr(),We==null||We.dispose().catch(xt=>{$e({message:String(xt)})}),Gu(Bn)}});let yr=q(!0),ir=q(!0),or=yt=>{let xt=A()+(yt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(O(yr,!1),xt=0):xt>=W()&&(O(ir,!1),xt=W()),O(Nn,!0),e.seekTime(xt)},rn=()=>aa.clientChecker.device.isIOS?n(yo):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,xr=async()=>{try{if(Zs())await qu(document),$e({message:"exit fullscreen"});else{if($e({message:"request fullscreen"}),aa.clientChecker.device.isIOS&&!H())return;await Ku(rn())}}catch(yt){$e({message:String(yt)})}},sn=()=>{Co()},$n=yt=>{if(yt.preventDefault(),z()){sn();return}if(!at()){e.firstStart(),ao(e.uiConfig.controls.hideTimeoutCursor);return}O(Nn,!1),y()?Dn():ao(e.uiConfig.controls.hideTimeoutMobile)},Fn=()=>{nt.set(!0)},Hn=()=>{At||(_r.set(!0),ao(e.uiConfig.controls.hideTimeoutCursor))},Fo=yt=>{Fi&&(Fi(yt),ao(e.uiConfig.controls.hideTimeoutMobile))},To=yt=>{Xi&&(Xi(yt),ao(e.uiConfig.controls.hideTimeoutMobile))};Ne(()=>{Di.set(n(Mr))}),Ne(()=>{ut.set((n(Bo)||z()||Y()||ae()||j()||!n(so)&&(p()||n(Rn)&&!n(Nn)))&&!n(tr)&&r()==="video"&&!d()&&ne())}),Ne(()=>{!Y()&&n(Rr)&&!Z()&&ao(e.uiConfig.controls.hideTimeoutMobile),O(Rr,Y(),!0)}),Ne(()=>{O(yr,A()>0),O(ir,!we()&&A()<W(),!0)}),Ne(()=>{nc(n(on),z(),ue(),!0)});let nr=G("aria_label_video_player");Jb({fullScreenChangeHandler:Bn,getFullscreenTarget:rn}),i$({store:e.store,getFullscreenTarget:rn});let Io=(yt,xt)=>{var Ho,Uo;let lo=(Uo=(Ho=e.store.callbacks)==null?void 0:Ho.uiInfo)==null?void 0:Uo.onUpcomingLiveViewStateChanged;if(!lo)return;let Ai=!!xt,Zi={...Xn(n(yo),{upcomingLiveScreen:xt},"upcomingLiveScreen",Ai),...yt};lo(Zi)};var Hi=UC();gt("blur",wa,sn);var Un=C(Hi);ol(Un,{onClick:$n,get videoContainer(){return Oe()},set videoContainer(yt){Oe(yt)}});var rr=L(Un,2);ka(rr,()=>"slot",!1,(yt,xt)=>{to(yt,()=>({name:il}))});var Or=L(rr,2);Cs(Or,re,yt=>{var xt=HC(),lo=de(xt);let Ai=v(()=>r()!=="thumb"||d()||At&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);Ja(lo,{get hidden(){return n(Ai)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zi=L(lo,2);{var Ho=Ye=>{var qt=NC(),Ci=de(qt);{var Ko=dn=>{let qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(dn,{side:"left",get seekStep(){return n(qo)},handleSingleFirstClick:$n,handleSecondClick:()=>or("backward")})};R(Ci,dn=>{n(yr)&&dn(Ko)})}var ln=L(Ci,2);{var lr=dn=>{let qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(dn,{side:"right",get seekStep(){return n(qo)},handleSingleFirstClick:$n,handleSecondClick:()=>or("forward")})};R(ln,dn=>{n(ir)&&dn(lr)})}b(Ye,qt)};R(Zi,Ye=>{e.canRewindLive&&ji&&!_e().has("TIMELINE")&&Ye(Ho)})}var Uo=L(Zi,2);{var co=Ye=>{let qt=v(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});Ac(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(qt)},onUpcomingLiveViewStateChanged:Io})};R(Uo,Ye=>{r()==="LiveWaitingStart"&&Ye(co)})}var Ei=L(Uo,2);{var Br=Ye=>{el(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ei,Ye=>{r()==="LiveWaitingRecover"&&Ye(Br)})}var Fr=L(Ei,2);{var os=Ye=>{el(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Fr,Ye=>{r()==="LiveWaitingRecord"&&Ye(os)})}var ns=L(Fr,2);{var Hr=Ye=>{var qt=OC();let Ci;var Ko=C(qt);Jd(Ko,{get adsSlotId(){return De()},get adsParams(){return it()},get adsAutoplayParam(){return U()},get duration(){return Pe()},get adsExternalApi(){return e.adsExternalApi}}),w(qt),D(ln=>Ci=se(qt,1,"ads-container s-7",null,Ci,ln),[()=>({hidden:r()!=="ads"})]),b(Ye,qt)};R(ns,Ye=>{e.showAds&&at()&&Ye(Hr)})}var ko=L(ns,2);{var an=Ye=>{let qt=v(()=>!Ct()&&e.showAutoplayNext&&S());Yv(Ye,{get title(){return ke()},get thumb(){return Be()},get isHide(){return n(qt)},clickCloseIcon:()=>O(Vr,!0)})};R(ko,Ye=>{n(so)&&ke()&&Be()&&Ye(an)})}var uo=L(ko,2);{var wr=Ye=>{kc(Ye,{})};R(uo,Ye=>{xe()&&Ye(wr)})}var zo=L(uo,2);{var rs=Ye=>{var qt=DC(),Ci=C(qt);jd(Ci,{}),w(qt),b(Ye,qt)};R(zo,Ye=>{J()&&Ye(rs)})}var Ke=L(zo,2);{var Lt=Ye=>{Pc(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Re()}})};R(Ke,Ye=>{j()&&Ye(Lt)})}var hi=L(Ke,2);{var Po=Ye=>{Xa(Ye,{get shifted(){return y()},get captions(){return P()},get position(){return A()},get playerSize(){return k()},isMobile:!0})};R(hi,Ye=>{pe().value!=="off"&&Ye(Po)})}var Ao=L(hi,2);{var Wo=Ye=>{var qt=BC();qt.__click=[RC,z,Ge,sn];var Ci=C(qt);Za(Ci,{}),w(qt),b(Ye,qt)};R(Ao,Ye=>{d()&&Ye(Wo)})}var po=L(Ao,2);{var Ji=Ye=>{let qt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=v(()=>r()==="ads"),Ko=v(()=>e.canRewindLive&&ze()!==0);Ic(Ye,{get bottomHidden(){return n(qt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Ci)},get canRewindLive(){return n(Ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ee()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return He()},get nextButtonActive(){return Ze()},get prevButtonActive(){return ye()},get isOneVideoPlaylist(){return Dt()},get customFullscreenSupported(){return n(br)},get endScreenShown(){return n(so)},toggleFullscreen:xr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Fo,onDisabledSeekToInteractiveClick:To,get playerControlsWrapperRef(){return n(ro)},set playerControlsWrapperRef(ln){O(ro,ln,!0)},get playerControlsRef(){return n(Ii)},set playerControlsRef(ln){O(Ii,ln,!0)}})};R(po,Ye=>{at()&&Ye(Ji)})}var yn=L(po,2);{var xn=Ye=>{var qt=FC(),Ci=C(qt);Rc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return o$.noop},get ref(){return n(on)},set ref(Ko){O(on,Ko,!0)}}),w(qt),b(Ye,qt)};R(yn,Ye=>{z()&&Ye(xn)})}var fo=L(yn,2);let Lo=v(()=>!n($r));ic(fo,{get isLive(){return Te()},get isHidden(){return n(Lo)},get isPlaying(){return X()},get position(){return A()},get duration(){return W()}});var Wn=L(fo,2);{var sr=Ye=>{Ha(Ye,{})};R(Wn,Ye=>{n(Jn)&&Ye(sr)})}var ar=L(Wn,2);{var Kn=Ye=>{sc(Ye,{})};R(ar,Ye=>{ie()&&Ye(Kn)})}var bs=L(ar,2);{var ss=Ye=>{Nc(Ye,{onClose:er,onSelectAutoQuality:()=>{Lr("auto"),er()}})};R(bs,Ye=>{n(is)&&Ye(ss)})}b(yt,xt)});var zn=L(Or,2);je(zn,yt=>O(Mr,yt),()=>n(Mr)),w(Hi),je(Hi,yt=>O(yo,yt),()=>n(yo)),D(()=>Me(Hi,"aria-label",nr)),gt("click",Hi,Fn,!0),gt("focusin",Hi,Hn,!0),b(t,Hi),F(),o()}tt(["click"]);function xp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var n$=require("@vkontakte/videoplayer-shared/es2018");var WC=M('<div class="time-container s-8"><!></div>'),KC=M('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),qC={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-8{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-8{opacity:1}.time-container.s-8{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function Xv(t,e){B(e,!0),Q(t,qC);let[i,o]=Ve(),r=()=>x(Z,"$scrubbingInProgress",i),a=()=>x(j,"$playerSize",i),l=()=>x(A,"$isPlaying$",i),d=()=>x(k,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(T,"$playerPhase",i),m=()=>x(N,"$crashed$",i),f=()=>x(W,"$currentSubtitle$",i),p=()=>x(H,"$currentSubtitleCaptions$",i),$=()=>x(E,"$positionExact$",i),y=()=>x(Y,"$isLive$",i),_=()=>x(ae,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:T,state:{crashed$:N,duration$:k,positionExact$:E,isPlaying$:A,currentSubtitle$:W,currentSubtitleCaptions$:H,positionWithScrubbing$:z,isLive$:Y,isRewindableLive$:ae},ui:{playerSize:j,controls:ne,scrubbingInProgress:Z},actions:{internal:{getVideoElement:we}}}=ve(),ue=8,re=q(!1),_e=ai({}),xe=q(!1),J=v(()=>!r()&&!n(xe)),Re=()=>{O(re,!0)},pe=()=>{O(re,!1)},P=(0,n$.debounceFn)(ed,260);Ne(()=>{a(),P(we(),ne,_e,n(re))});let ze=v(()=>l()?en(d()-s()):en(isFinite(d())?d():S()));var Te=KC(),X=C(Te);ol(X,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(ke){I(ke)}});var ie=L(X,2);ka(ie,()=>"slot",!1,(ke,Be)=>{to(ke,()=>({name:il}))});var Oe=L(ie,2);let De=v(()=>u()!=="thumb"||m());Ja(Oe,{get hidden(){return n(De)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var it=L(Oe,2);{var U=ke=>{Xa(ke,{shifted:!1,get captions(){return p()},get position(){return $()},get playerSize(){return a()}})};R(it,ke=>{f().value!=="off"&&n(J)&&ke(U)})}var Pe=L(it,2);{var Ee=ke=>{var Be=WC(),Dt=C(Be);tc(Dt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(ze)}}),w(Be),b(ke,Be)};R(Pe,ke=>{n(J)&&ke(Ee)})}var He=L(Pe,2);let Ze;var ye=C(He);Ga(ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return _e.timeline},set ref(ke){_e.timeline=ke}}),w(He),w(Te),D(ke=>Ze=se(He,1,"timeline s-8",null,Ze,ke),[()=>({visible:n(re)})]),gt("mouseenter",Te,Re),gt("mouseleave",Te,pe),gt("mouseenter",He,()=>O(xe,!0)),gt("mouseleave",He,()=>O(xe,!1)),b(t,Te),F(),o()}var QC=M("<div><!></div>"),GC={hash:"s-3",code:'.vk-vp-root.s-3{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-3{overflow:visible}.vk-vp-root.s-3 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-3 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-3 p{margin:0}.vk-vp-root.s-3 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-3 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-3 :focus,.vk-vp-root.s-3 :focus-visible{outline:none}.vk-vp-root.s-3 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-3 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-3 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-3 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-3 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-3 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-3 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function Zv(t,e){B(e,!0),Q(t,GC);let[i,o]=Ve(),r=()=>x(at,"$isLive$",i),a=()=>x(Et,"$availableSubtitlesList$",i),l=()=>x(We,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),m=g(e,"videoConfig",7),f=g(e,"uiConfig",7),p=g(e,"title",7),$=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),_=g(e,"interactiveController",7),S=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),T=g(e,"live",7),N=g(e,"preload",7),k=g(e,"autoplay",7),E=g(e,"volume",7,void 0),A=g(e,"muted",7,void 0),W=g(e,"fromTime",7),H=g(e,"canRewindLive",7),z=g(e,"showAds",7),Y=g(e,"adsSlotId",7,void 0),ae=g(e,"adsParams",7,void 0),j=g(e,"adsAutoplayParam",7,void 0),ne=g(e,"duration",7,void 0),Z=g(e,"logoClickable",7),we=g(e,"logoHidden",7),ue=g(e,"isMobile",7),re=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),xe=g(e,"prevButtonActive",7,!1),J=g(e,"endScreenVideoTitle",7,void 0),Re=g(e,"endScreenVideoThumb",7,void 0),pe=g(e,"isOneVideoPlaylist",7,!1),P=g(e,"supportLink",7),ze=g(e,"shadowRootContainer",7),Te=g(e,"outerContainerRef",7),X=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),Oe=g(e,"showMiniTimer",7,!1),De=g(e,"saveRate",7),it=g(e,"seekToInteractive",7,nl.noop),U=g(e,"playPrevChapter",7,nl.noop),Pe=g(e,"volumeMultiplier",7),Ee=g(e,"showAutoplayNext",7),He=g(e,"showEndScreen",7,!0),Ze=g(e,"keyboardControls",15,void 0),{subscribers:ye,stores:ke}=u();Zh(f());let Be=Vt(),Dt=f().logoLink,ft=s().ui.debugPanelVisible,Bt=s().ui.playerSize,at=s().state.isLive$,ei=s().state.isInteractive&&rd.clientChecker.device.isAndroid,Rt=q(void 0),$e=null,be=q(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),d_(s(),ke),Ne(()=>{var K,At;s().ui.isMobile.set(ue()),(At=(K=m().callbacks)==null?void 0:K.onDomReady)==null||At.call(K)});let ee=(K=!1)=>{O(be,!0),K?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},ot=()=>{if(Be.features.qualityDetailsSubMenuEnabled){let K=L_(s().videoId);if(K)switch(K.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,K.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,K.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(K.quality);break}}else{M_(s().videoId),Wf()&&s().actions.internal.setTrafficSavingEnabled(!0);let At=Hf(s().videoId);At&&s().actions.internal.setQuality(At)}};function fe(K){var Gt,nt,Di;let At=d()||K;At&&s().initVideo({container:n(Rt),sources:At,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:I(),volumeMultiplier:Pe()});let si=nl.safeStorage.get(Wd)==="true";ft.set(si),W()>0&&s().actions.external.seekTime(W());let dt=ue()?Be.volumeDefault:(nt=(Gt=E())!=null?Gt:Nu())!=null?nt:Be.volumeDefault,St=(Di=A())!=null?Di:T_();if(s().actions.external.setVolume(dt),s().actions.external.setMuted(St),s().getAdmanWrapper().setInitialVolume(St?0:dt),ot(),Be.features.saveRate&&De()){let Bi=k_();Bi&&!r()&&s().actions.internal.setPlaybackRate(Bi)}if(Ee()){let Bi=A_();Bi&&s().actions.internal.setAutoplayNextEnabled(Bi)}s().ui.isAutoplay.set(k()),k()&&ee(),N()&&Be.features.preload&&s().actions.internal.preload()}let Le=K=>{if(window.ResizeObserver){let At,si;$e=new ResizeObserver((0,nl.throttleFn)(dt=>{let St=dt[0];if(St.contentBoxSize){let Gt=Array.isArray(St.contentBoxSize)?St.contentBoxSize[0]:St.contentBoxSize;At=Gt.inlineSize,si=Gt.blockSize}else St.contentRect&&(At=St.contentRect.width,si=St.contentRect.height);Bt.set({width:At,height:si})},300)),$e.observe(K)}Bt.set({width:K.clientWidth,height:K.clientHeight})},$t=()=>{document.hidden&&s().actions.external.stop()};Mt(()=>{var si,dt,St,Gt;ei&&document.addEventListener("visibilitychange",$t),Be.debugLog&&s().actions.internal.startLogging(),Le(n(Rt));let K=ye.map(nt=>nt.init({store:s(),microStores:ke,config:m(),interactiveController:_(),uiConfig:f()})),At=()=>{ei&&document.removeEventListener("visibilitychange",$t),$e==null||$e.disconnect(),K.forEach(nt=>nt.unsubscribe()),s().destroy()};return((si=T())==null?void 0:si.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),At):((dt=T())==null?void 0:dt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),At):(((St=T())==null?void 0:St.status)==="finished"||((Gt=T())==null?void 0:Gt.status)==="postlive")&&!(d()&&(0,rd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),At):(fe(),At)});function Pt(){n(be)?s().actions.external.play():ee(!0)}function ut(){s().actions.external.pause()}function ce(K){s().actions.external.setMuted(K)}function Ue(){s().actions.external.toggleSubtitle()}function Ge(K,At){s().actions.external.changeSubtitle(K,At)}function lt(K){s().actions.external.changeAudioStream(K)}function Ft(){var K;(K=s().webApi.slotsApi)!=null&&K.haveSlots()&&s().actions.external.hideControls()}function Ht(){var K;(K=s().webApi.slotsApi)!=null&&K.haveSlots()&&s().actions.external.showControls()}function ii(K){ue()||K>=0&&K<=1&&s().actions.external.setVolume(K)}function bi(K){s().actions.internal.seekTime(K,r$.SeekAction.UNKNOWN)}function Yi(K){s().actions.external.seekEpisodeStartTime(K)}function Nt(){s().actions.external.returnFocusToEpisodes()}function ui(K){s().actions.external.setPlaybackRate(K)}function vi(K){s().actions.external.setAutoQualityLimits(K)}function ht(){s().actions.external.setQuality("auto")}function jt(K){s().actions.external.setTrafficSavingEnabled(K)}function xi(K){s().actions.external.setHighQualityEnabled(K)}let ji=xp(Be.view),Zt=m().playerView==="preview",Et=s().state.availableSubtitlesList$;if(Be.features.initSubtitles){let K=!1;Ne(()=>{var At;if(!K&&a().length){K=!0;let si;if(Be.features.userVideoPrefs&&s().videoId){let St=Fu(Be.userSalt,String(s().videoId));St!=null&&St.subtitleTrackId&&(si=a().find(Gt=>Gt.value===St.subtitleTrackId))}let dt=(At=I())!=null?At:qf();dt&&(si=a().find(St=>St.language===dt)),s().actions.internal.setSubtitle(si)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var wi=QC();let $o;var So=C(wi);{var _n=K=>{jv(K,{get store(){return s()},get uiConfig(){return Be},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return k()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return ae()},get adsAutoplayParam(){return j()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Dt},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return pe()},get supportLink(){return P()},get shadowRootContainer(){return ze()},get outerContainerRef(){return Te()},get fullScreenTarget(){return X()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return it()},get playPrevChapter(){return U()},firstStart:ee,seekTime:bi,get showEndScreen(){return He()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Rt)},set videoContainer(At){O(Rt,At,!0)}})},Tt=K=>{var At=Ae(),si=de(At);{var dt=Gt=>{Xv(Gt,{get thumbUrl(){return $()},get outsideDuration(){return ne()},get canRewindLive(){return H()},get videoContainer(){return n(Rt)},set videoContainer(nt){O(Rt,nt,!0)}})},St=Gt=>{Gv(Gt,{get store(){return s()},get uiConfig(){return Be},get title(){return p()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return k()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return ae()},get adsAutoplayParam(){return j()},get duration(){return ne()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Dt},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return pe()},get supportLink(){return P()},get shadowRootContainer(){return ze()},get outerContainerRef(){return Te()},get fullScreenTarget(){return X()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return it()},get playPrevChapter(){return U()},firstStart:ee,get showEndScreen(){return He()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Rt)},set videoContainer(nt){O(Rt,nt,!0)},get keyboardControls(){return Ze()},set keyboardControls(nt){Ze(nt)}})};R(si,Gt=>{Zt?Gt(dt):Gt(St,!1)})}b(K,At)};R(So,K=>{ue()?K(_n):K(Tt,!1)})}w(wi),D(K=>{$o=se(wi,1,"vk-vp-root s-3",null,$o,K),qe(wi,ji)},[()=>({"root--miui-browser":rd.clientChecker.device.isMobile&&rd.clientChecker.browser.isMiuiBrowser,"visible-outside":Zt,"preview-track-horizontally-alinged":l()})]),b(t,wi);var Ut=F({initVideo:fe,play:Pt,pause:ut,setMuted:ce,toggleSubtitle:Ue,changeSubtitle:Ge,changeAudioStream:lt,hideControls:Ft,showControls:Ht,setVolume:ii,seekTime:bi,seekEpisodeStartTime:Yi,returnFocusToEpisodes:Nt,setPlaybackRate:ui,setAutoQualityLimits:vi,setAutoQuality:ht,toggleTrafficSaving:jt,toggleHighQuality:xi,get sources(){return d()},set sources(K){d(K)},get store(){return s()},set store(K){s(K)},get microStoresRoot(){return u()},set microStoresRoot(K){u(K)},get videoConfig(){return m()},set videoConfig(K){m(K)},get uiConfig(){return f()},set uiConfig(K){f(K)},get title(){return p()},set title(K){p(K)},get thumbUrl(){return $()},set thumbUrl(K){$(K)},get interactiveContainer(){return y()},set interactiveContainer(K){y(K)},get interactiveController(){return _()},set interactiveController(K){_(K)},get subtitles(){return S()},set subtitles(K){S(K)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(K){I(K)},get live(){return T()},set live(K){T(K)},get preload(){return N()},set preload(K){N(K)},get autoplay(){return k()},set autoplay(K){k(K)},get volume(){return E()},set volume(K){E(K)},get muted(){return A()},set muted(K){A(K)},get fromTime(){return W()},set fromTime(K){W(K)},get canRewindLive(){return H()},set canRewindLive(K){H(K)},get showAds(){return z()},set showAds(K){z(K)},get adsSlotId(){return Y()},set adsSlotId(K){Y(K)},get adsParams(){return ae()},set adsParams(K){ae(K)},get adsAutoplayParam(){return j()},set adsAutoplayParam(K){j(K)},get duration(){return ne()},set duration(K){ne(K)},get logoClickable(){return Z()},set logoClickable(K){Z(K)},get logoHidden(){return we()},set logoHidden(K){we(K)},get isMobile(){return ue()},set isMobile(K){ue(K)},get showNextPrevButtons(){return re()},set showNextPrevButtons(K){re(K)},get nextButtonActive(){return _e()},set nextButtonActive(K){_e(K)},get prevButtonActive(){return xe()},set prevButtonActive(K){xe(K)},get endScreenVideoTitle(){return J()},set endScreenVideoTitle(K){J(K)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(K){Re(K)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(K){pe(K)},get supportLink(){return P()},set supportLink(K){P(K)},get shadowRootContainer(){return ze()},set shadowRootContainer(K){ze(K)},get outerContainerRef(){return Te()},set outerContainerRef(K){Te(K)},get fullScreenTarget(){return X()},set fullScreenTarget(K){X(K)},get failoverHosts(){return ie()},set failoverHosts(K){ie(K)},get showMiniTimer(){return Oe()},set showMiniTimer(K){Oe(K)},get saveRate(){return De()},set saveRate(K){De(K)},get showAutoplayNext(){return Ee()},set showAutoplayNext(K){Ee(K)},get seekToInteractive(){return it()},set seekToInteractive(K){it(K)},get playPrevChapter(){return U()},set playPrevChapter(K){U(K)},get volumeMultiplier(){return Pe()},set volumeMultiplier(K){Pe(K)},get showEndScreen(){return He()},set showEndScreen(K){He(K)},get keyboardControls(){return Ze()},set keyboardControls(K){Ze(K)}});return o(),Ut}var YC=Ce('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function Jv(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Xe(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=YC();li(9),b(r,l)},$$slots:{default:!0}})}var jC=M('<div class="title s-0"> </div>'),XC=M('<div class="playerStub s-0"><!> <!></div>'),ZC={hash:"s-0",code:".playerStub.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-0{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function eg(t,e){Q(t,ZC);var i=XC(),o=C(i);{var r=d=>{var s=jC(),u=C(s,!0);w(s),D(()=>me(u,e.title)),b(d,s)};R(o,d=>{e.title&&d(r)})}var a=L(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);Jv(d,{get isWhite(){return n(s)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),D(()=>qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var JC=M('<div class="playerError s-1"><!></div>'),eT={hash:"s-1",code:".playerError.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function tg(t){Q(t,eT);var e=JC(),i=C(e);Za(i,{}),w(e),b(t,e)}var Vp=require("@vkontakte/videoplayer-shared/es2018"),Oi=require("@vkontakte/videoplayer-shared/es2018"),Gc=require("@vkontakte/videoplayer-core/es2018"),ud=require("@vkontakte/videoplayer-statistics/es2018");var Sp=require("@vkontakte/videoplayer-shared/es2018"),wp=class{constructor(){this.subscription=new Sp.Subscription,this.logger=new Sp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=ge(e.state.currentPlaybackRate$),r=ge(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var ad=require("@vkontakte/videoplayer-shared/es2018");var tT=Ce('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),iT=M('<div><div><!></div> <span class="title s-6"> </span></div>'),oT={hash:"s-6",code:".player-pip-dummy.s-6{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function ig(t,e){B(e,!0),Q(t,oT);let[i,o]=Ve(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(m,"$isMobile$",i),l=ve(),d=Vt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,f=l.ui.t,p=v(()=>r()&&f("pip_dummy_title")),$=xp(d.view);var y=iT();let _;var S=C(y);let I;var T=C(S);Xe(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,A)=>{var W=tT();li(),b(E,W)},$$slots:{default:!0}}),w(S);var N=L(S,2),k=C(N,!0);w(N),w(y),D((E,A)=>{_=se(y,1,"player-pip-dummy s-6",null,_,E),qe(y,$),I=se(S,1,"dummy-image s-6",null,I,A),me(k,n(p))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var nT=Object.defineProperty,rT=(t,e,i)=>e in t?nT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,sd=(t,e,i)=>rT(t,typeof e!="symbol"?e+"":e,i),sT=460,aT=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){sd(this,"playerDomElement"),sd(this,"playerParentShadowRoot"),sd(this,"playerDummyElement"),sd(this,"svelteContext"),sd(this,"pipWindow"),sd(this,"info",{isActive$:new ad.ValueSubject(!1),isEnabled$:new ad.ValueSubject(!1),type:1}),this.info.isEnabled$=new ad.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ad.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:sT,height:aT,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
63
|
-
`),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Qr(ig,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ea(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function s$(t){return t instanceof Bc}var Cp=class{static getLatestSupportedVersion(e){let i=new Na(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var a$="Inner error. Unexpectedly root annotation container null reference exception",l$="Annotation with such name already exists",d$="Annotation with such name does not exist";var ld=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var dd=require("@vkontakte/videoplayer-shared/es2018"),lT="1",dT=100,Tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new dd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,dd.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},dT);this.subscriptions.add((0,dd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ld(a$);if(this.annotations.has(e))throw new ld(l$);i.style.zIndex=(o=i.style.zIndex)!=null?o:lT,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new ld(d$);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var rl=require("@vkontakte/videoplayer-shared/es2018"),hn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,rl.assertNonNullable)(e),(0,rl.assertNonNullable)(i),(0,rl.assertNonNullable)(r),r.interactiveData&&(0,rl.assertNonNullable)(o),this.subscription=new rl.Subscription,this.subscription}};var Hc=class extends hn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Uc=class extends hn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,f=ge(m),p=()=>f&&ge(u);return o.add(u.subscribe($=>{if(!f)return;let y=ge(l);ge(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||p())})),o.add(l.subscribe($=>{if($===null)return;let y=ge(d);if(p()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var zc=class extends hn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var c$=require("@vkontakte/videoplayer-shared/es2018"),og=le(!1),Ip=null,Wc=class extends hn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...og,set:(i,o=!1)=>{i!==ge(og)&&(this.clearTimeout(),og.set(i),!i&&Ip&&(Ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(f=>{ge(l)&&f&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,c$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:f,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var y,_;if(!(!f||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);m.tooltipHelpHintActive&&Ip===null&&(Ip=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Ep=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends hn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:Ep.noop};this.checkIfShouldHide=i=>Ps(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ge(l)))return;let s=ge(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:f}=r.ui.controls,p=ge(u),$=ge(m);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),f.remove(Vf),!p&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),f.add(Vf),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Ep.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}})),o}};var ng=require("@vkontakte/videoplayer-shared/es2018"),qc=class extends hn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new ng.ValueSubject(!1),isEnabled$:new ng.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Pp=require("@vkontakte/videoplayer-shared/es2018");var kp=require("@vkontakte/videoplayer-shared/es2018"),u$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?cT({maxCount:t}):void 0,e!==0?uT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},cT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,kp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},uT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(kp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>kp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Qc=class extends hn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=u$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Pp.filterChanged)(),(0,Pp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var p$=()=>[Hc,Uc,zc,Wc,Kc,qc,Qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var cd=require("@vkontakte/videoplayer-shared/es2018");var Ap=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Lp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Ap(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var pT=M('<div class="root s-2"><!></div>'),fT={hash:"s-2",code:".root.s-2{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function rg(t,e){B(e,!0),Q(t,fT);let i=null,o=q(null);Ne(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Ae(),l=de(a);{var d=s=>{var u=Ae(),m=de(u);Cs(m,()=>n(o),f=>{var p=pT(),$=C(p);let y=v(()=>n(o)==="prev");Dc($,{get duration(){return e.animationDuration},get Icon(){return sa},get reversed(){return n(y)}}),w(p),b(f,p)}),b(s,u)};R(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var mT=Object.defineProperty,vT=(t,e,i)=>e in t?mT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>vT(t,typeof e!="symbol"?e+"":e,i),gT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Oi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Zn=q(void 0),sg=ai({animationDuration:0,playbackStatusShow:!1}),Mp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"stateContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"postponedInitParams",null),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new Vp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:f,refreshStatAuthToken:p,autoplay:$,isMobile:y,isTouch:_,refDomain:S,deviceId:I,interactiveData:T}=Fc(this.videoConfig,i),N=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,k=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:A=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new ud.OneStat({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:f,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:A,refDomain:S,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...N&&(!this.isInited||k)&&{projectId:Number(N)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),cd.devNull.create("ui"),this.logger=new Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.interactiveSubscription=new Oi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Qr(tg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Qr(eg,l),this.sveltePersistentLayerComponent=Qr(rg,{target:this.playerContainer,props:sg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;sg.animationDuration=e,sg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),cd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new ud.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,m,f,p,$;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:S,preload:I,autoplay:T,volume:N,muted:k,fromTime:E,canRewindLive:A,supportLink:W,showAds:H,adsSlotId:z,adsParams:Y={},adsAutoplayParam:ae,interfaceLanguage:j,isCyrillicRelatedInterface:ne,logoClickable:Z,logoHidden:we,isMobile:ue,isTouch:re,isAudioDisabled:_e,isLiveCatchUpMode:xe,fullScreenTarget:J,failoverHosts:Re,canDownload:pe,callbacks:P,interactiveData:ze,showThumbTimer:Te,additionalButtons:X=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Oe=[],repeat:De,loop:it,saveRate:U,volumeMultiplier:Pe,showEndScreen:Ee,showAutoplayNext:He,mediascopePixels:Ze}=Fc(this.videoConfig,i),{sources:ye,title:ke,thumbUrl:Be,unitedVideoId:Dt,isClip:ft=!1,duration:Bt,adsParams:at={},videoEpisodes:Ct,previewThumbsData:ei,subtitles:Rt,subtitlesForcedLanguage:$e,live:be,adsExternalApi:ee}=e;if(!ye&&!be){let ui=new Error("empty sources and live");this.fatalError$.next(ui),(r=P.onCrashed)==null||r.call(P,ui.message);return}let ot={...Y,...at},fe=this.getNextVideoInfo(),Le={sources:ye,title:ke,thumbUrl:Be,subtitles:Rt,subtitlesForcedLanguage:$e,unitedVideoId:Dt,isClip:ft,live:be,albumId:y,statPlace:_,autoplay:T,muted:k,volume:N,fromTime:E,canRewindLive:A,showAds:H,adsSlotId:z,adsParams:ot,adsAutoplayParam:ae,duration:Bt,logoClickable:Z,logoHidden:we,isTouch:re!=null?re:ue,repeat:De,loop:it,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},$t={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Le)}`});let Pt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),ut=(Pt==null?void 0:Pt.oneStat)||this.createOneStat(e,i),ce=this.createThinOneStat(e,i),Ue;Ze&&(Ue=new ud.MediascopePixel({pixels:Ze})),(ut||ce)&&(this.statistics=new dp(ut,ce,Ue,Pt==null?void 0:Pt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ra(this.uiConfig.sentry,{version:La,env:Mu},{movieId:Dt,albumId:y,place:_,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:ue,clip:ft}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry={...this.sentry,...Ra.getInstance()};let lt=!!ze,Ft=[],Ht="tooltip_interactive_go_back_disabled_first";if(lt&&this.interactiveController){let ui=this.interactiveController.state.isInitialChapter$.getValue(),vi=this.interactiveController.getHistoryState();ui&&Ft.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ft.push("SEEK_TO_INTERACTIVE_BUTTON"),vi.hasPrevChapter$.getValue()||(Ft.push("PLAY_PREV_CHAPTER_BUTTON"),ui||(vi.isGoBackLimited$.getValue()?Ht="tooltip_interactive_go_back_disabled_limit":Ht="tooltip_interactive_go_back_disabled"))}let ii=()=>{var ui;this.isInited=!1,this.prevIsid=void 0;let vi=(o==null?void 0:o.info.isEnded$.getValue())&&((ui=this.interactiveController)==null?void 0:ui.state.isEndChapter$.getValue());P.onReplayInteractiveVideo&&!vi?P.onReplayInteractiveVideo():this.replayInteractiveVideo()},bi=De&&this.videoConfig.videos.length===1;this.store=xb({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:ne,videoId:Dt,isClip:ft,isLiveCatchUpMode:xe,isAudioDisabled:_e,statAuthToken:S,callbacks:P,webApi:$t,videoEpisodes:Ct,previewThumbsData:ei,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ft,isInteractive:lt,saveRate:U,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ii,playPrevChapterDisabledTooltip:Ht,hasInteractiveBranches:!!(($=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?X:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ui=>{var vi;return(vi=this.sveltePersistentLayerComponent)==null?void 0:vi.startVideoChangedAnimation(ui)},looped:this.uiConfig.features.useLoopSetting?it:bi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Yi}=this.microStoresRoot=p$(),Nt=()=>{var ui,vi,ht,jt,xi,ji;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onCurrentFormatChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(Yi.interactiveControlsOpacity$.subscribe(Et=>{var We;Et!==null&&((We=this==null?void 0:this.interactiveController)==null||We.setDisabledControls(Et))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onThroughputEstimationChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onTrafficSavingEnabledChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onHighQualityEnabledChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onAutoQualityEnabledChanged)==null?void 0:We.call(P,!!Et)})),this.subscription.add(new Oi.Observable(Et=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(We=>Et.next(We)))}).pipe((0,Oi.skip)(1)).subscribe(Et=>{var We;return(We=P==null?void 0:P.onCurrentPlaybackRateChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.volume$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onVolumeChange)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.muted$.subscribe(Et=>{var We,wi,$o,So;if(Et)(We=P==null?void 0:P.onMute)==null||We.call(P);else{let _n=($o=((wi=this.store)==null?void 0:wi.state.volume$)&&ge(this.store.state.volume$))!=null?$o:0;(So=P==null?void 0:P.onUnmute)==null||So.call(P,_n)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onVideoBitrateChanged)==null?void 0:We.call(P,Et)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Et=>{var We;let wi=(We=this.store)==null?void 0:We.ui.controls.disabledControls$;wi&&(Et&&!wi.includes(Kd)&&wi.add(Kd),Et||wi.remove(Kd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Et=>{var We;if(!Gc.clientChecker.browser.isSamsungBrowser||!Et||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((We=this.videoConfig)==null?void 0:We.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Et=>{var We;return(We=P==null?void 0:P.onVSIDChanged)==null?void 0:We.call(P,Et)})),this.initMediaSession(),O(Zn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ke,thumbUrl:Be,subtitles:Rt,subtitlesForcedLanguage:$e,live:be,preload:I,autoplay:T,muted:k,volume:N,fromTime:E,canRewindLive:A,supportLink:W,showAds:H,adsSlotId:z,adsParams:ot,adsAutoplayParam:ae,duration:Bt,logoClickable:Z,logoHidden:we,isMobile:re!=null?re:ue,failoverHosts:Re,fullScreenTarget:J,saveRate:U,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Pe,showEndScreen:Ee,showAutoplayNext:He,adsExternalApi:ee},!0);let Zt={target:this.playerContainer,props:n(Zn)};this.svelteRootComponent=Qr(Zv,Zt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ht=(vi=(ui=this.videoConfig)==null?void 0:ui.callbacks)==null?void 0:vi.onInited)==null||ht.call(vi)),(jt=this.internalsExposure)==null||jt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ji=(xi=this.videoConfig)==null?void 0:xi.callbacks)!=null&&ji.onDevNullLog)?cd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):cd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(ui=>{ui&&(console.log("UI SDK async start"),Nt())}):Nt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Oi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?ge(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:f,historyApi:p,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:f,historyApi:p,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let T=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var N,k,E,A,W,H;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(qd)),I==="action-choice-canceled"){let Y=ge(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(A=this.videoConfig)==null?void 0:(W=A.callbacks).onDisabledInteractiveClick)==null||H.call(W)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(qd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var N,k,E;T.length&&((E=(k=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||E.call(k,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,N,k;(k=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveChapterChanged)==null||k.call(N,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,N,k;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(N)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,f,p,$,y,_,S,I,T,N,k,E,A,W,H,z,Y,ae;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let j=new Error("empty videos");this.fatalError$.next(j),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,j.message);return}else this.fatalError$.next(null);if(this.videoConfig=Fc(gT,(0,Oi.cloneDeepWith)(e,j=>j instanceof HTMLElement?j:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=Xh((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Oi.InternalsExposure("ui",this.playerId))),cd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,Vp.now)()]}),(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Oi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(S=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(N=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(A=this.uiConfig.ads.slot)!=null?A:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((W=this.uiConfig.showLogo)!=null?W:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((Y=this.videoConfig.videos)!=null&&Y[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let j={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Cp.getLatestSupportedVersion(j):this.pictureInPictureApi=new Na(j)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new wp:void 0,this.slotsApi=this.uiConfig.features.slots?new bp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Lp(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),s$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ae=this.slotsApi)==null||ae.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Zn)&&(n(Zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Zn).nextButtonActive=this.isNextButtonActive(),n(Zn).prevButtonActive=this.isPrevButtonActive(),n(Zn).endScreenVideoTitle=o.nextVideoTitle,n(Zn).endScreenVideoThumb=o.nextVideoThumb,n(Zn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Zn)&&(n(Zn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Zn).nextButtonActive=this.isNextButtonActive(),n(Zn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=ge(this.store.state.positionExact$),l=ge(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Oi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ea(e)}};var pd=require("@vkontakte/videoplayer-shared/es2018"),Rp=require("@vkontakte/videoplayer-core/es2018"),hT=()=>{window.customElements.define("vk-video-player",Mp)};
|
|
60
|
+
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(f,p)};R(d,f=>{e.type==="off"?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Em(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));qt(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ms.KeyC},role:"button",children:(l,d)=>{let s=m(()=>i()?void 0:"outline");sa(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var j0=M('<span class="duration s-23" data-testid="video_duration"> </span>'),X0=M('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),Z0={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function cc(t,e){B(e,!0),Q(t,Z0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Mt(),d=de(!1),s=m(()=>Jo(e.duration)),u=m(()=>Jo(e.position));var f=X0();let p;var v=C(f),$=C(v,!0);S(v);var y=A(v,2);{var h=x=>{var I=j0(),T=C(I,!0);S(I),O(()=>me(T,n(s))),b(x,I)};R(y,x=>{r()&&x(h)})}S(f),ks(f,()=>Ul(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Xe(f,x=>a(x),()=>a()),O(x=>{p=se(f,1,"time s-23",null,p,x),me($,n(u))},[()=>({mobile:i()})]),b(t,f),F()}var pc=require("@vkontakte/videoplayer-shared/es2018");var J0=Ce('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),ex=Ce("<path></path>"),tx=Ce('<path d="M14 3.96997C14.5523 3.96997 15 4.41769 15 4.96997V20.97C15 21.5223 14.5523 21.97 14 21.97C13.3585 21.97 12.7422 21.7208 12.2808 21.2751L6.79013 15.97H4C2.89543 15.97 2 15.0745 2 13.97V11.97C2 10.8654 2.89543 9.96997 4 9.96997H6.765L12.2794 4.66337C12.7417 4.21849 13.3584 3.96997 14 3.96997Z"></path><!>',1);function aa(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,f)=>f?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=m(()=>r(i(),o())),l=m(()=>pn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Ze(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,f)=>{var p=tx(),v=A(ce(p));{var $=h=>{var x=J0();li(),b(h,x)},y=h=>{var x=ex();O(()=>Le(x,"d",`${d}${n(a)==="max"?s:""}`)),b(h,x)};R(v,h=>{n(a)==="off"?h($):h(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Vo=require("@vkontakte/videoplayer-shared/es2018");var np=require("@vkontakte/videoplayer-shared/es2018");var ub=require("@vkontakte/videoplayer-shared/es2018");var ix=M('<div class="overlay"><!></div>');function Pm(t,e){B(e,!0);let[i,o]=Ve(),r=()=>w(l,"$overlayContainer$",i),l=ve().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Ne(()=>{u(r())}),Lt(()=>(u(r()),()=>s(r())));var f=ix(),p=C(f);oi(p,()=>{var v;return(v=e.children)!=null?v:gt}),S(f),Xe(f,v=>D(d,v),()=>n(d)),b(t,f),F(),o()}var ox=M('<div class="tooltip s-1p"><div class="content s-1p"> </div> <div class="tooltip-pointer s-1p"></div></div>'),nx=M("<div><!></div> <!>",1),rx={hash:"s-1p",code:'.tooltip-wrapper.s-1p{display:flex;flex-direction:column;min-width:0}.full-width.s-1p{width:100%}.tooltip.s-1p{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1p{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1p{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function qa(t,e){B(e,!0),Q(t,rx);let[i,o]=Ve(),r=()=>w(j,"$overlayContainer$",i),a=()=>w(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),f=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),v=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,ub.noop),h=5,x=K(void 0),I=K(void 0),T,N=K(0),L=K(0),E=K(0),P=K(0),q=Mt(),H=ve(),z=H.ui.playerSize,j=H.ui.overlayContainer$;Ne(()=>{Tt(()=>{y()(s())})});let ae=H.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(I)||!n(x))return;D(L,h);let U=r().getBoundingClientRect(),ke=n(x).getBoundingClientRect(),Pe=ke.width,Ue=n(I).clientWidth,tt=a().width,ye=(Pe-Ue)/2,Ie=ke.left+u()-U.left,Be=Ie+ye,Nt=ke.top+f()-U.top,mt=Ue/2-h,Bt=Be<8,dt=Be+Ue>tt-8;Bt&&(Be=8,mt=Ie+ke.width/2-2.5*h),dt&&(Be=tt-8-Ue,mt=ke.left-U.left+ke.width/2-Be-h),D(E,Be,!0),D(P,Nt),D(N,mt,!0)},ne=()=>{!r()||!n(I)||!n(x)||D(L,-h)},J=()=>{if(!r()||!n(I)||!n(x))return;D(N,h);let U=r().getBoundingClientRect(),ke=n(x).getBoundingClientRect(),Pe=ke.height,Ue=n(I).clientHeight,tt=(Pe-Ue)/2+Ue,ye=ke.left+u()-U.left-n(I).clientWidth,Ie=2,Be=ye-h;Be<8&&(Be=8);let mt=ke.top+f()-U.top+tt,Bt=Ie-tt/2,dt=Ie-h;D(E,Be,!0),D(P,mt),D(L,Bt),D(N,dt)},we=()=>{!r()||!n(I)||!n(x)||D(N,-h)},pe=()=>{switch($()){case"top":X();break;case"bottom":ne();break;case"left":J();break;default:we()}},re=()=>{try{if(!r()||!n(x))return;pe(),s(!0)}catch(U){ae({message:String(U)})}},_e=()=>{s(!1)},$e=()=>{n(I)&&(T||(T=window.setTimeout(re,q.controls.hideTimeoutTooltips)),s()&&re())},ee=()=>{_e(),window.clearTimeout(T),T=void 0},Re=(U,ke,Pe)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${U}px, ${ke}px);`;break;case"bottom":Ue=`transform: translate(${U}px, ${ke}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${U}px, ${ke}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${U}px, ${ke}px);`}return Ue+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Ue+=` opacity: ${Pe?1:0}; visibility: ${Pe?"visible":"hidden"}`,Ue},fe=(U,ke)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${U}px, ${ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${U}px, ${ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${U}px, ${ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${U}px, ${ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},k=m(()=>Re(n(E),n(P),s())),We=m(()=>fe(n(N),n(L)));Lt(pe),un(()=>window.clearTimeout(T));var Te=nx(),Z=ce(Te);let ie;Z.__pointermove=$e,Z.__pointerdown=ee,Z.__pointerup=function(...U){var ke;(ke=e.disableMouseupTooltipShow?void 0:$e)==null||ke.apply(this,U)};var De=C(Z);oi(De,()=>{var U;return(U=e.children)!=null?U:gt}),S(Z),Xe(Z,U=>D(x,U),()=>n(x));var Oe=A(Z,2);{var it=U=>{Pm(U,{children:(ke,Pe)=>{var Ue=ox(),tt=C(Ue),ye=C(tt,!0);S(tt);var Ie=A(tt,2);S(Ue),Xe(Ue,Be=>D(I,Be),()=>n(I)),O(()=>{qe(Ue,n(k)),me(ye,d()),qe(Ie,n(We))}),b(ke,Ue)},$$slots:{default:!0}})};R(Oe,U=>{d()&&!l()&&U(it)})}O(U=>ie=se(Z,1,"tooltip-wrapper s-1p",null,ie,U),[()=>({"full-width":p()})]),lt("pointerenter",Z,$e),lt("pointerleave",Z,ee),b(t,Te),F(),o()}Ye(["pointermove","pointerdown","pointerup"]);var pb=t=>{t.stopPropagation()},sx=M("<div><!></div>"),ax={hash:"s-1j",code:".btn-container.s-1j{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1j{min-width:0;width:100%}"};function Mo(t,e){B(e,!0),Q(t,ax);let[i,o]=Ve(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=ve(),d=wo(),s=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,p=g(e,"className",3,""),v=g(e,"disabled",3,!1),$=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),h=g(e,"width",15,void 0),x=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),T=g(e,"tooltipVisible",3,!1),N=g(e,"tooltipPlacement",3,"top"),L=g(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),P=g(e,"onTooltipVisibilityChange",3,np.noop),q=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,np.noop),j=g(e,"mouseLeave",3,np.noop),ae=m(()=>v()?r()?f("tooltip_disabled_when_graph_on"):L():I()),X=K(!1);Ne(()=>{T()||D(X,!1)});var ne=sx();ne.__pointerdown=[pb],ne.__click=[pb];var J=C(ne);{var we=re=>{qa(re,{get content(){return n(ae)},get translateX(){return q()},get translateY(){return H()},get isFullWidthWrapper(){return x()},get placement(){return N()},get onVisibilityChange(){return P()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){D(X,_e,!0)},children:(_e,$e)=>{var ee=Ae(),Re=ce(ee);oi(Re,()=>{var fe;return(fe=e.children)!=null?fe:gt}),b(_e,ee)},$$slots:{default:!0}})},pe=re=>{var _e=Ae(),$e=ce(_e);oi($e,()=>{var ee;return(ee=e.children)!=null?ee:gt}),b(re,_e)};R(J,re=>{$()&&n(ae)&&!a()?re(we):re(pe,!1)})}S(ne),Xe(ne,re=>y(re),()=>y()),O(()=>{var re;se(ne,1,`btn-container ${(re=p())!=null?re:""}`,"s-1j"),Le(ne,"aria-hidden",E()||null)}),lt("mouseenter",ne,function(...re){var _e;(_e=z())==null||_e.apply(this,re)}),lt("mouseleave",ne,function(...re){var _e;(_e=j())==null||_e.apply(this,re)}),Pn(ne,"clientWidth",h),b(t,ne),F(),o()}Ye(["pointerdown","click"]);var lx=Ce('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function uc(t,e){let i=m(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=lx(),l=ce(a),d=A(l);O(()=>{Le(l,"fill",Js),Le(l,"fill-opacity",e.completed?1:.24),Le(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var dx=M("<div><!></div>"),cx={hash:"s-18",code:".interactive-episode-icon.s-18{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-18{opacity:.4;pointer-events:none}"};function km(t,e){B(e,!0),Q(t,cx);let o=ve().ui.t,r=K(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=dx();let u;var f=C(s);let p=m(()=>!!e.videoEpisode.completed);uc(f,{get completed(){return n(p)}}),S(s),O(v=>{u=se(s,1,"interactive-episode-icon s-18",null,u,v),qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Pn(s,"clientWidth",v=>D(r,v)),b(l,s)},$$slots:{default:!0}}),F()}var ux=M('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),px=M('<div class="video-episodes-wrap s-17"></div>'),fx={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function Am(t,e){Q(t,fx);let i=g(e,"videoEpisodes",19,()=>[]);var o=px();bi(o,21,i,r=>r.from,(r,a)=>{var l=ux();let d;var s=C(l),u=C(s),f=A(u,2);let p;S(s),S(l),O((v,$)=>{d=se(l,1,"video-episode s-17",null,d,v),qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=se(f,1,"video-episode-filled s-17",null,p,$),qe(f,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function mx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&D(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;D(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function vx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function gx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;D(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function hx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function _x(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),D(r,!1),a()(l)}var bx=M("<div></div>"),$x=M('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),yx=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),xx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-h{cursor:default}.slider.s-h:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Qa(t,e){B(e,!0),Q(t,xx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),f=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),v=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),h=g(e,"onPointerDown",3,Vo.noop),x=g(e,"onHandleMove",3,Vo.noop),I=g(e,"onPointerUp",3,Vo.noop),T=g(e,"onPointerEnter",3,Vo.noop),N=g(e,"onPointerMove",3,Vo.noop),L=g(e,"onPointerLeave",3,Vo.noop),E=g(e,"onMouseEnter",3,Vo.noop),P=g(e,"onMouseLeave",3,Vo.noop),q=g(e,"onWheelUp",3,Vo.noop),H=g(e,"onWheelDown",3,Vo.noop),z=g(e,"onWheelLeft",3,Vo.noop),j=g(e,"onWheelRight",3,Vo.noop),ae=g(e,"onDisabledClick",3,Vo.noop),X=g(e,"loadedProgress",3,0),ne=g(e,"filledProgress",3,0),J=g(e,"handleProgress",3,0),we=g(e,"ariaLabel",3,""),pe=g(e,"ariaValueMin",3,void 0),re=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),$e=g(e,"ariaValueText",3,""),ee=g(e,"onContextMenu",3,Vo.noop),Re=g(e,"handleAlwaysVisible",3,!1),fe=Mt(),k=K(void 0),We=K(!1),Te=m(()=>{var he;return(he=re())!=null?he:0}),Z=m(()=>{var he;return(0,Vo.isNonNullable)(f())&&((he=f()[f().length-1])==null?void 0:he.time)<n(Te)}),ie=m(()=>(0,Vo.isNonNullable)(f())&&f().length&&n(Z)&&n(Te)?tt(X()*100,ne()*100):[]);function De(he){if(he.preventDefault(),i()&&D(k,i().getBoundingClientRect(),!0),$())return;let Me=Pe(he.clientX,he.clientY),rt=Ue(he.clientX);T()(Me,rt,n(k).width)}function Oe(he){he.preventDefault(),!$()&&L()()}function it(){E()()}function U(){P()()}function ke(he){$()||p()&&(he.preventDefault(),he.deltaY<0?q()():he.deltaY>0?H()():he.deltaX>0?j()():z()())}function Pe(he,Me){return l()?Math.max(0,Math.min(1,(n(k).height-(Me-n(k).top))/n(k).height)):Math.min(Math.max(he-n(k).x,0),n(k).width)/n(k).width}function Ue(he){return Math.min(Math.max(he-n(k).x,0),n(k).width)}function tt(he,Me){let rt=fe.features.episodesClustering&&!v()?fe.episodeMinWidthPc:0,ft=[],ue=f()[0].time/n(Te)*100,ze=0,Ge=0;for(let Ut=1;Ut<f().length;Ut++)ze=f()[Ut].time/n(Te)*100,ze-ue>rt&&(ft.push({from:ue,width:Math.max(0,ze-ue),loadedWidth:Math.max(0,Math.min(ze,he)-ue),filledWidth:Math.max(0,Math.min(ze,Me)-ue),interactive:f()[Ut-1].interactive,completed:f()[Ut-1].completed}),ue=f()[Ut].time/n(Te)*100,Ge++);let ct={from:ue,width:Math.max(0,100-ue),loadedWidth:Math.max(0,Math.min(he,100)-ue),filledWidth:Math.max(0,Math.min(Me,100)-ue),interactive:f()[Ge].interactive,completed:f()[Ge].completed};100-ue<rt?(Ge-=1,ft[Ge].width+=100-ue,ft[Ge].loadedWidth+=Math.max(0,Math.min(he,100)-ue),ft[Ge].filledWidth+=Math.max(0,Math.min(Me,100)-ue)):ft[Ge]=ct;let Ht=f()[0].time;if(Ht!==0){let Ut=Ht/n(Te)*100;ft.unshift({from:0,width:Ut,loadedWidth:Math.min(Ut,he),filledWidth:Math.min(Ut,Me)})}return ft}function ye(he){return Math.max(0,Math.min(100,he*100))}let Ie=m(()=>ye(X())),Be=m(()=>ye(ne()));var Nt=yx(),mt=ce(Nt);{var Bt=he=>{var Me=bx();let rt;bi(Me,21,()=>n(ie),ft=>ft.from,(ft,ue)=>{var ze=Ae(),Ge=ce(ze);{var ct=Ht=>{km(Ht,{get videoEpisode(){return n(ue)},get disabled(){return $()}})};R(Ge,Ht=>{n(ue).interactive&&Ht(ct)})}b(ft,ze)}),S(Me),O(ft=>rt=se(Me,1,"interactive-icons s-h",null,rt,ft),[()=>({mobile:s(),hidden:s()&&!n(We)})]),b(he,Me)};R(mt,he=>{v()&&he(Bt)})}var dt=A(mt,2);let wt;dt.__pointerdown=[mx,i,k,$,We,Pe,h],dt.__pointermove=[vx,$,Pe,Ue,N,k,We,x],dt.__pointerup=[gx,$,We,Pe,I],dt.__click=[hx,$,ae,Pe],dt.__contextmenu=[_x,Pe,$,ae,We,ee];var ti=C(dt);{var Pt=he=>{Am(he,{get videoEpisodes(){return n(ie)},get disabled(){return $()},get isMobile(){return s()}})},Dt=he=>{var Me=$x(),rt=C(Me),ft=A(rt,2);let ue;S(Me),O(ze=>{Le(rt,"data-value",n(Ie)),qe(rt,`transform: translateX(${n(Ie)}%);`),ue=se(ft,1,"filled s-h",null,ue,ze),Le(ft,"data-value",n(Be)),qe(ft,`transform: translateX(${n(Be)}%);`)},[()=>({"active-live":d()})]),b(he,Me)};R(ti,he=>{n(ie).length?he(Pt):he(Dt,!1)})}var Ft=A(ti,2);let Y;var Se=C(Ft);let le;S(Ft),S(dt),Xe(dt,he=>i(he),()=>i()),O((he,Me,rt,ft)=>{var ue,ze;wt=se(dt,1,`slider ${(ue=o())!=null?ue:""}`,"s-h",wt,he),Le(dt,"aria-label",we()),Le(dt,"aria-valuemin",pe()),Le(dt,"aria-valuemax",re()),Le(dt,"aria-valuenow",_e()),Le(dt,"aria-valuetext",$e()),Le(dt,"data-testid",(ze=r())!=null?ze:null),Y=se(Ft,1,"handleWrap s-h",null,Y,Me),qe(Ft,rt),le=se(Se,1,"handle s-h",null,le,ft)},[()=>({disabled:$(),"slider-dragging":n(We),hidden:a(),"handle-always-visible":Re(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ye(J())}%);`,()=>({"active-live":d()})]),lt("pointerenter",dt,De),lt("pointerleave",dt,Oe),lt("mouseenter",dt,it),lt("mouseleave",dt,U),lt("wheel",dt,ke),b(t,Nt),F()}Ye(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Gd[t]>=Gd[e];var Ms=(t,e)=>Gd[t]<=Gd[e],fb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Sx=M("<div><!></div>"),Cx=M("<div><!> <!></div>"),Tx={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-28{padding:0 8px 0 0;width:0}"};function Lm(t,e){var Ue,tt;B(e,!0),Q(t,Tx);let[i,o]=Ve(),r=()=>w(N,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(De,"$controlsVisible",i),u=ve(),f=Mt(),p=u.state.volume$,v=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:h}=u.actions.internal,x=u.ui.currentGridType$,I=(Ue=u.callbacks)==null?void 0:Ue.onAudioDoesNotExistHint,T=(tt=u.callbacks)==null?void 0:tt.onAudioDisabledHint,N=u.state.isAudioAvailable$,L=u.state.isAudioDisabled,E=u.ui.t,P=K(!1),q,H=m(()=>e.isAds||r()),z=m(()=>!n(H)||a()||l()===0),j=m(()=>Ms(d(),"l")),ae=m(()=>n(j)?"":n(z)?!r()||L?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),ne=m(()=>n(z)?0:l()),J=!1,we=m(()=>e.isAds?!1:L?!T:r()?!1:!I);function pe(ye){y(),$(ye)}function re(){ep(u,l(),f.controls.volumeStepWheel)}function _e(){tp(u,l(),f.controls.volumeStepWheel)}function $e(ye){$(ye)}function ee(ye){$(ye),h()}function Re(){J=!0}function fe(){J=!1,Te()}function k(){clearTimeout(q),D(P,!0)}function We(){Te()}function Te(){q=window.setTimeout(()=>{J||D(P,!1)},f.controls.volumeBarTimeout)}function Z(ye){ye.preventDefault(),ye.deltaY<0?re():ye.deltaY>0&&_e()}let ie=K(!1),De=u.ui.controlsVisible;Ne(()=>{s()||D(ie,!1)});var Oe=Cx();let it;var U=C(Oe);qa(U,{get content(){return n(ae)},translateY:-18,get active(){return n(ie)},set active(ye){D(ie,ye,!0)},children:(ye,Ie)=>{let Be=m(()=>n(j)?"btn-volume-vertical":"btn-volume-horizontal");qt(ye,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(Be)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return ms.KeyM},role:"button",children:(Nt,mt)=>{aa(Nt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ke=A(U,2);{var Pe=ye=>{var Ie=Sx();let Be;var Nt=C(Ie);let mt=m(()=>n(j)?"volumeBar-slider-vertical":""),Bt=m(()=>n(j)&&!n(P)),dt=m(()=>n(j)?Re:pc.noop),wt=m(()=>n(j)?fe:pc.noop),ti=m(()=>Math.round(n(ne)*100)),Pt=m(()=>`${Math.round(n(ne)*100)}%`),Dt=m(()=>n(j)?"volume-slider-vertical":"volume-slider");Qa(Nt,{get className(){return n(mt)},get isHidden(){return n(Bt)},get isVertical(){return n(j)},withWheelHandler:!0,onWheelUp:re,onWheelDown:_e,onPointerDown:pe,onHandleMove:$e,onPointerUp:ee,get onPointerEnter(){return n(dt)},get onPointerLeave(){return n(wt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Pt)},get filledProgress(){return n(ne)},get handleProgress(){return n(ne)},get testId(){return n(Dt)}}),S(Ie),O(Ft=>Be=se(Ie,1,"volumeBar s-28",null,Be,Ft),[()=>({"volumeBar-vertical":n(j)})]),b(ye,Ie)};R(ke,ye=>{n(H)&&ye(Pe)})}S(Oe),O(ye=>it=se(Oe,1,"volumeBar-container s-28",null,it,ye),[()=>({vertical:n(j)})]),lt("mouseenter",Oe,function(...ye){var Ie;(Ie=n(j)?k:pc.noop)==null||Ie.apply(this,ye)}),lt("mouseleave",Oe,function(...ye){var Ie;(Ie=n(j)?We:pc.noop)==null||Ie.apply(this,ye)}),lt("wheel",Oe,Z),b(t,Oe),F(),o()}var mb=require("@vkontakte/videoplayer-shared/es2018");var Ix=Ce('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Ex=Ce('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Mm(t,e){let i=g(e,"isFullscreen",8,!1),o=Sn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ae(),d=ce(l);{var s=f=>{var p=Ix();b(f,p)},u=f=>{var p=Ex();b(f,p)};R(d,f=>{i()?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}function fc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,mb.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));qt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let f=oa(u);a.set(f),o()()},get ariaKeyShortCut(){return ms.KeyF},role:"button",children:(u,f)=>{Mm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Px=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Vm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=Px();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(),S(o),b(t,o)}var kx=Ce('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Rm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=kx();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),li(6),S(o),b(t,o)}var Ax={hash:"s-2a",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Nm(t,e){B(e,!0),Q(t,Ax);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),s=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Rm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function mc(t,e){B(e,!0);let[i,o]=Ve(),r=()=>w($,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w(h,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),f=Mt(),p=ve(),v=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,h=p.isCyrillicRelatedInterface$,x=m(()=>f.logoType!=="vk"),I=m(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=m(()=>(r()&&Ms(a(),"m")||Ms(a(),"l"))&&n(x)),N=()=>{var P,q;e.click(),(P=p.callbacks)!=null&&P.onLogoClicked?(q=p.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},L=m(()=>!s()),E=m(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");qt(t,{className:"btn-full-opacity",get disabled(){return n(L)},click:N,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(P){d(P)},children:(P,q)=>{var H=Ae(),z=ce(H);{var j=X=>{Nm(X,{get logo(){return f.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=X=>{Vm(X,{})};R(z,X=>{n(x)?X(j):X(ae,!1)})}b(P,H)},$$slots:{default:!0}}),F(),o()}var gb=require("@vkontakte/videoplayer-core/es2018");var Dm=require("@vkontakte/videoplayer-core/es2018");var Lx=Ce('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-16"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-16"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-16"></path>',1),Mx=Ce('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Vx={hash:"s-16",code:".animated.s-16{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-16{animation-name:s-16-wave1}.wave2.animated.s-16{animation-name:s-16-wave2}.wave3.animated.s-16{animation-name:s-16-wave3}@keyframes s-16-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function vc(t,e){B(e,!0),Q(t,Vx);let i=g(e,"isMobile",3,!1),o=m(()=>e.iconState===Dm.ChromecastState.CONNECTED),r=m(()=>e.iconState===Dm.ChromecastState.CONNECTING),a=m(()=>n(o)?"#2688EB":Js),l=m(()=>e.size?pn(e.size):void 0);var d=Ae(),s=ce(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,$)=>{var y=Lx();li(2),b(v,y)},$$slots:{default:!0}})},f=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,$)=>{var y=Mx(),h=ce(y);let x;var I=A(h);let T;var N=A(I);let L;var E=A(N);let P;var q=A(E);let H;O((z,j,ae,X,ne)=>{x=se(h,0,"wave2 s-16",null,x,z),T=se(I,0,"wave3 s-16",null,T,j),L=se(N,0,"wave1 s-16",null,L,ae),P=se(E,0,"s-16",null,P,X),H=se(q,0,"s-16",null,H,ne)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};R(s,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var hb=require("@vkontakte/videoplayer-shared/es2018");function gc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,hb.noop),l=ve().ui.t,d=m(()=>e.state===gb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));qt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{vc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var _b=require("@vkontakte/videoplayer-shared/es2018");var Rx=Ce('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Om(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=Rx();li(2),b(e,o)},$$slots:{default:!0}})}var rp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Nx=M('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),Dx=M('<span class="text s-22"> </span>'),Ox=M('<span class="text count s-22"> </span>'),Bx=M('<span class="icon s-22"><!></span> <!>',1),Fx={hash:"s-22",code:".icon.s-22{flex-shrink:0}.text.s-22{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-22{overflow:visible}.text.mobile.s-22{padding:0 3px 0 4px}.chevron-episodes.s-22{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function hc(t,e){var J,we,pe;B(e,!0),Q(t,Fx);let[i,o]=Ve(),r=()=>w(y,"$currentGridType$",i),a=()=>w(h,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),f=g(e,"timeCodes",19,()=>[]),p=ve(),v=(we=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?we:_b.noop,$=!!((pe=p.callbacks)!=null&&pe.onEpisodeClicked),y=p.ui.currentGridType$,h=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,N=K(void 0),L=re=>{var $e,ee,Re;if(!!(($e=p.callbacks)!=null&&$e.onEpisodeClicked)){let fe=oa(re);h.set(fe),x.set(!0),(Re=(ee=p.callbacks)==null?void 0:ee.onEpisodeClicked)==null||Re.call(ee,fe)}},E=K(null),P=m(()=>s()/u());Ne(()=>{var _e;let re=rp(n(P),u(),f());re?((_e=n(E))==null?void 0:_e.time)!==re.time&&(v(re),D(E,re,!0)):D(E,null)});let q=m(()=>{var re;return((re=n(E))==null?void 0:re.text)||""}),H=m(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),z=m(()=>`${T("tooltip_episodes")}: ${n(q)}`),j=async(re,_e,$e)=>{await go(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&_e&&!$e&&Tt(()=>{h.set(!1),re.focus()})};Ne(()=>{j(n(N),a(),l())});var ae=Ae(),X=ce(ae);{var ne=re=>{let _e=m(()=>d()?"px-0":""),$e=m(()=>!$);qt(re,{get className(){var ee;return`w-max btn-full-opacity btn-jc-l ${(ee=n(_e))!=null?ee:""}`},testId:"btn-episodes",click:L,get disabled(){return n($e)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(ee){D(N,ee,!0)},children:(ee,Re)=>{var fe=Ae(),k=ce(fe);{var We=Z=>{var ie=Nx(),De=ce(ie),Oe=C(De,!0);S(De);var it=A(De,2),U=C(it);Mr(U,{direction:"right"}),S(it),O(()=>me(Oe,n(q))),b(Z,ie)},Te=Z=>{var ie=Bx(),De=ce(ie),Oe=C(De);Om(Oe,{}),S(De);var it=A(De,2);{var U=Pe=>{var Ue=Dx(),tt=C(Ue,!0);S(Ue),O(()=>me(tt,n(q))),b(Pe,Ue)},ke=(Pe,Ue)=>{{var tt=ye=>{var Ie=Ox(),Be=C(Ie,!0);S(Ie),O(()=>me(Be,f().length)),b(ye,Ie)};R(Pe,ye=>{n(H)==="COUNT"&&ye(tt)},Ue)}};R(it,Pe=>{n(H)==="FULL"?Pe(U):Pe(ke,!1)})}b(Z,ie)};R(k,Z=>{d()?Z(We):Z(Te,!1)})}b(ee,fe)},$$slots:{default:!0}})};R(X,re=>{n(E)&&re(ne)})}b(t,ae),F(),o()}var sv=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),st=require("@vkontakte/videoplayer-shared/es2018"),gs=require("@vkontakte/videoplayer-statistics/es2018");var Qe=require("@vkontakte/videoplayer-shared/es2018"),oo=require("@vkontakte/videoplayer-shared/es2018"),Hx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",sp=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Qe.now)()]}),o())};(0,oo.addScript)(Hx,e,this.loadTimeout).then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Qe.now)()]}),window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Qe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Qe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Qe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Qe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Qe.now)()]}),!d&&(window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?ge(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var N,L;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:f,externalApi:p}=e;this.externalApi=p;let v,$=this.playerState&&ge(this.playerState.vsid);$&&(this.isVsidOriginal?v=$:v=parseInt($,36));let{isEmbed:y,immediateOrigin:h}=(0,Qe.detectEmbed)(),x=(N=y?h:window.location.href)!=null?N:window.location.href,I={...s,dl:encodeURIComponent(x),autoplay:r?1:0,player_width:i,player_height:o,...v?{request_id:v}:{},duration:f,...u};I=Object.fromEntries(Object.entries(I).filter(([E,P])=>(0,Qe.isNonNullable)(P)));let T={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(L=this.externalApi)!=null&&L.videoGetAds){let P=await this.safeExternalCall(this.externalApi.videoGetAds,I);P&&(delete T.slot,delete T.params,Object.assign(T,{json:P}))}E.init(T),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(E){Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ge(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,f,p,v;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var bb=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Bm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new ap,{startTime:f,endTime:p}=u.parse(s);l.startTime=f,l.endTime=p}else if(s.trim()!==""){let u=new Fm,{texts:f}=u.parse(s);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ap=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Fm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((f,p)=>{let v=l.indexOf(p,d);return f===-1||f>v?v:f},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new ap;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},$b=Bm;var dp=require("@vkontakte/videoplayer-shared/es2018"),Ga,Li,Hm=0,Um=!1,yb="",xb=(t,e=0,i=0)=>t<e&&t<i,lp=(t,e=0,i=0)=>t>=e&&t<=i,Ux=(t,e=0,i=0)=>t>e&&t>i,wb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>lp(t,u,f));let a=t>=Hm,l=t<Hm;if(Hm=t,l&&(Um=!1),(0,dp.isNonNullable)(Ga)&&lp(t,Ga.startTime,Ga.endTime)&&yb===e.value)return Ga;if(!(0,dp.isNonNullable)(Li)&&(r!=null&&r.length)&&!Um){Li=r.find(({startTime:u,endTime:f})=>lp(t,u,f)||a&&xb(t,u,f)),Ga=void 0,!(0,dp.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(Um=!0);return}else{if(lp(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return Ga=Li,Li=void 0,yb=e.value,Ga;(a&&Ux(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&xb(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var cp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},zx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},_c=t=>{var e,i;return(i=(e=cp[t])!=null?e:cp[zx[t]])!=null?i:void 0};var Sb=require("@vkontakte/videoplayer-shared/es2018"),dB=require("@vkontakte/videoplayer-statistics/es2018"),up=class{constructor(e,i,o,r=new Sb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var bc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(bc||{});var vs=t=>t!=null?t:0,Vs=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(vs(i==null?void 0:i.top)-vs(o==null?void 0:o.top)),left:Math.round(vs(i==null?void 0:i.left)-vs(o==null?void 0:o.left)),bottom:Math.round(vs(i==null?void 0:i.bottom)-vs(o==null?void 0:o.top)),right:Math.round(vs(i==null?void 0:i.right)-vs(o==null?void 0:o.left))}},jl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:vs(e==null?void 0:e.width),height:vs(e==null?void 0:e.height)}};var Mn="off";var Xl=t=>!!(Math.round(Math.abs(t)/90)%2);var Cb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:v,coreConfig:$,player:y,disabledControls:h,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:N,stopPlayer:L,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:P,additionalButtons:q,additionalSettingsMenuItems:H,additionalContextMenuItems:z,playPrevVideo:j,playNextVideo:ae,onVideoChanged:X,looped:ne=!1,statistics:J,saveRate:we,internalsExposure:pe,playerView:re,playerId:_e})=>{var fg,mg,vg;let $e={...$,configName:[...(fg=$.configName)!=null?fg:[],"ui"],isAudioDisabled:l,live:{...(mg=$.live)!=null?mg:{},isLiveCatchUpMode:!!r}},ee=v,Re=st.TracerFactory.createRootTracer(ee.features.tracer),fe=Re.createComponentTracer("Store"),k=y||new fi.Player($e,Re,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});pe==null||pe.expose({corePlayer:k});let We=new st.Logger,Te=new sp(We,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout,runtimeTimeout:ee.ads.runtimeTimeout,useAdmanFromNPM:ee.ads.useAdmanFromNPM,volumeMultiplier:ee.ads.volumeMultiplier,isVsidOriginal:ee.ads.isVsidOriginal}),Z=Oa.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,De=u==null?void 0:u.annotationsApi,Oe=u==null?void 0:u.slotsApi,it=u==null?void 0:u.focusManager,U=We.createComponentLog("Store"),ke,Pe,Ue={},tt=new Nu,ye=new st.Subscription,Ie="",Be=de(!1),Nt=J&&J.oneStat?ni(J.oneStat.vsid$):Lr(void 0),mt=de(ea()),Bt=de(!1),dt=()=>K_(document,fi.clientChecker.device.isIOS),wt=(vg=ie==null?void 0:ie.info.isActive$)!=null?vg:new st.ValueSubject(!1),ti=de(0),Pt=de(!1),Dt=de(!1),Ft=de([]),Y=(0,st.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Ft.update(_=>[..._,c])),Se=Lr(!1,c=>{let _=k.events.fatalError$.subscribe(()=>c(!0));return()=>_.unsubscribe()}),le=async c=>{var oe;let _=Object.values(st.InterfaceLanguage).includes(c);if(ee.downloadVKLanguages&&(_&&ee.updateBuiltinLanguages||!Jf(c))){let xe;try{xe=await(0,st.loadVKLangPack)(c,i_,o_)}catch(je){(oe=J==null?void 0:J.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),Z==null||Z.report(je,{errorType:"VKLangPack",fatal:!1})}xe&&(Zf({language:c,pack:xe,fallback:ee.defaultLanguage}),he.set(c),Me.update(je=>je+1))}Jf(c)&&he.set(c)},he=de(t),Me=de(0),rt=de(e);le(t);let ft=(c,_)=>{let V=ge(he);return em(V,c,_,ee.defaultLanguage)},ue=de("thumb");ue.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&ct()});let ze=(()=>{let c=ui([Se,ue],([_,V])=>_?"crashed":V);return{...c,is:_=>ge(c)===_}})(),Ge=de(),ct=()=>{Ge.set({muted:k.info.muted$.getValue()})},Ht=(()=>{let c=de(new Set(h));return{...c,add:_=>{c.update(V=>new Set([...V].concat(_)))},remove:_=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(_)?oe.filter(xe=>!_.includes(xe)):oe.filter(xe=>xe!==_))})},includes:_=>{let V=ge(c);return Array.isArray(_)?_.every(oe=>V.has(oe)):V.has(_)}}})(),Ut=de({width:0,height:0}),ii=null,hi=k.info.isBuffering$,Gi=Lr(hi.getValue(),c=>{let _=hi.subscribe(V=>{V&&ii===null?ii=window.setTimeout(()=>{c(hi.getValue()),ii=null},ee.loaderDelay):c(V)});return()=>{_.unsubscribe(),ii&&clearTimeout(ii)}});fe.log("create store"),U({message:"create store"});let Vt=c=>{let _=c.container,V=()=>{Jt=new MutationObserver(xe=>{let{removedNodes:je}=xe[0];je.length&&_.append(k.experimental.element$.getValue())}),Jt.observe(_,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)_.append(oe),V();else{let xe=k.experimental.element$.pipe((0,st.filter)(je=>!!je),(0,st.once)()).subscribe(je=>{_.append(je),V()});ye.add(xe)}},ci=c=>{U({message:`init video, config: ${JSON.stringify(c)}`}),x?Vt(c):(st.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,st.now)()]}),k.initVideo(c)),fe.log("init video",{isInteractive:x}),c.subtitles&&k.setExternalTextTracks(c.subtitles),ke=c,Ie=c.subtitlesForcedLanguage||""},mi=new st.Subject,ht=c=>mi.next(c),Xt=new st.Subject,$i=new st.Subject,Yi=new st.Subject,Jt=null,It={actionRewind$:Xt,actionSeek$:$i,inPiP$:wt,inFullscreen$:new st.Observable(c=>mt.subscribe(_=>c.next(_))),actionSetSubtitle$:Yi,nextMovie$:mi},Ke=new st.Subject,_i=new st.Subject,So={actionSeek$:$i,actionSubtitlesSwitched$:Ke,actionQuality$:_i,playerSize$:new st.Observable(c=>Ut.subscribe(_=>c.next(_))),inPiP$:wt,inFullscreen$:new st.Observable(c=>mt.subscribe(_=>c.next(_))),isLoaderVisible$:new st.Observable(c=>Gi.subscribe(_=>c.next(_)))};if(J){let{oneStat:c,thinOneStat:_,mediascopePixel:V,statSubscription:oe}=J;c&&(x||oe.add(c.attachTo(k)),oe.add(c.attachToUi(It)),oe.add(c.attachToAds(Te.events)),c.authorize(a).catch(xe=>{U({message:`onestat auth error ${String(xe)}`})}),V&&V.attachTo(k)),_&&(oe.add(_.attachTo(k,Te.events)),oe.add(_.attachToUi(So)),oe.add(_.attachToAds(Te.events)),_.updateContext({isMobile:ge(Be)}),_.authorize(a))}if(Z){let c=new st.Subscription,_=(V,oe)=>c.add(V.subscribe(oe));if(_(k.events.managedError$,V=>{Z.logIError(V)}),_(k.events.fatalError$,V=>{Z.logIError(V,!0)}),J){let{oneStat:V}=J;V&&_(V.experimental.error$,oe=>{Z.logIError(oe)})}Z.sentrySubscription.add(c)}let Ro=()=>{if(fi.clientChecker.device.isIOS&&Pe)try{q_(Pe)}catch(c){U({message:`exitIosSafariFullscreen failed: ${c}`})}};ye.add(k.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),Fa(ie)&&ie.updateVideoElement(),x&&c.setAttribute("pip","false"),re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ro(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(k.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(k.events.started$.subscribe(async()=>{var _,V;Fa(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=k.info.muted$.getValue();(_=s==null?void 0:s.onStarted)==null||_.call(s),(V=Ue.onStarted)==null||V.call(Ue,c)})).add(k.events.willSeek$.subscribe(({from:c,to:_})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,_)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(k.info.position$.subscribe(c=>{var V;let _=k.info.duration$.getValue();isFinite(_)&&_>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,_,c),Te.setPosition(c,_))})).add(k.events.fatalError$.subscribe(c=>{var _;(_=s==null?void 0:s.onCrashed)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var _;(_=s==null?void 0:s.onRecoverableError)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{Pt.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Dt.set(c)})).add(k.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&Ht.add(Qd),Ht.add("PLAY_BUTTON")):Ht.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var _;(_=s==null?void 0:s.onLiveTime)==null||_.call(s,c)})).add(k.info.isStalled$.subscribe(c=>{var _;(_=s==null?void 0:s.onStalledChanged)==null||_.call(s,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onLiveEnded)==null?void 0:_.call(s))})).add(Te.events.loadStarted$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:_.call(c)})).add(Te.events.loadEnded$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:_.call(c)})).add(Te.events.loadError$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:_.call(c)})).add(Te.events.init$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:_.call(c)})).add(Te.events.ready$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:_.call(c)})).add(Te.events.started$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onStarted)==null?void 0:V.call(_,c)})).add(Te.events.timeRemained$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onTimeRemained)==null?void 0:V.call(_,c)})).add(Te.events.ended$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onCompleted)==null?void 0:V.call(_,c)})).add(Te.events.empty$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:_.call(c)})).add(Te.events.clicked$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClicked)==null?void 0:V.call(_,c)})).add(Te.events.closed$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClosed)==null?void 0:V.call(_,c)})).add(Te.events.error$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onError)==null?void 0:V.call(_,c)})).add(Te.events.paused$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:_.call(c)})).add(Te.events.resumed$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:_.call(c)}));let No=new st.Subscription,St=()=>{var je,Et,Wt;let{debugLog:c}=ee,_,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:jt}=c;_=c.tag,V=(je=jt==null?void 0:jt[0])!=null?je:V,oe=(Wt=(Et=jt==null?void 0:jt[1])!=null?Et:jt==null?void 0:jt[0])!=null?Wt:oe}let xe=_?`: ${_}`:"";No.add(k.events.log$.subscribe(jt=>{console.debug(`%c sdk${xe} `,`background:${V};`,`sdk component: ${jt.component}`,jt.message)})).add(We.log$.subscribe(jt=>{console.debug(`%c ui${xe} `,`background:${oe};`,`ui component: ${jt.component}.`,jt.message)}))},zt=()=>{No.unsubscribe()},W=(c,_)=>{fe.log("start camera manual rotation",{mx:c,my:_}),k.startCameraManualRotation(c,_)},kt=(c=!1)=>{fe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},ri=(c,_,V)=>{fe.log("move camera focus px",{xpx:c,ypx:_,dt:V}),k.moveCameraFocusPX(c,_,V)},ut=()=>{k.holdCamera()},Ct=()=>{k.releaseCamera()},Gt=Lr(k.info.position$.getValue(),c=>{let _,V,oe=()=>{let xe=k.info.playbackState$.getValue(),je=k.info.isLive$.getValue(),Et=k.info.duration$.getValue(),Wt=k.info.position$.getValue();if(xe&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(xe)){let jt=je?Wt-Et:k.getExactTime();jt!==V&&c(jt),V=jt}_=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(_)}),nt=ni(k.info.playbackState$),Bi=ni(k.info.isBuffering$),Fi=ui([nt,Bi],([c,_])=>_?"buffering":c),en=ni(k.info.currentBuffer$),Do=ni(k.info.isEnded$),ro=ni(k.info.isLive$),Ai=ee.features.playbackRate?ni(k.info.canChangePlaybackSpeed$):Lr(!1),Rr=ni(k.info.liveBufferTime$),ho=ni(k.info.volume$),_o=ni(k.info.muted$),Pi=Du(k.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),tn=Du(k.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),Oo=ni(k.info.autoQualityLimitingAvailable$),Vn=ni(k.info.availableQualities$),br=ni(k.info.availableQualitiesFps$),$r=ni(k.info.chromecastState$),_s=ni(k.info.chromecastDeviceName$),is=ni(k.info.currentFormat$),os=ni(k.info.throughputEstimation$),Zn=ni(k.info.videoBitrate$),Nr=ni(k.info.intrinsicVideoSize$),on=ni(k.info.duration$),Rn=ni(k.info.isAudioAvailable$),yr=()=>{ii&&clearTimeout(ii),ii=null},Bo=ui([on,ro],([c,_])=>_?-c:c),Jn=ui([nt],([c])=>c===fi.PlaybackState.PLAYING),er=ni(k.info.atLiveEdge$),Dr=ni(k.info.atLiveDurationEdge$),tr=ni(k.info.position$),so=ui([tr,on],([c,_])=>isFinite(c)&&isFinite(_)&&!!_),Or=ui([$r],([c])=>c===fi.ChromecastState.CONNECTED),ir=ni(k.info.availableVideoStreams$),mn=ee.features.audioLanguages?ni(k.info.availableAudioStreams$):Lr([]),bo=ni(k.info.currentVideoStream$),xr=ni(k.info.currentAudioStream$),or=c=>{c.language&&Gf(c.language),k.setVideoStream(c)},vt=(c,_)=>{k.setAudioStream(c),an(_)&&(c.language&&Gf(c.language),ee.features.userVideoPrefs&&i&&Xf(ee.userSalt,String(i),{audioTrackId:c.id}))},si=c=>{let _;if(c.length===1&&(_=c.at(0)),_!=null||(_=c.find(oe=>"isDefault"in oe&&oe.isDefault)),ee.features.userVideoPrefs&&i){let oe=Uu(ee.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let xe=c.find(je=>je.id===oe.audioTrackId);_=xe!=null?xe:_}}let V=k_();return V&&(_!=null||(_=c.find(({language:oe})=>V===oe))),_!=null||(_=c.at(0)),_},Br=c=>{fe.log("change audio stream",{id:c});let _=k.info.availableAudioStreams$.getValue().find(V=>V.id===c);_&&vt(_,!0)},nr=!1;ye.add(k.info.availableAudioStreams$.subscribe(c=>{if(!nr&&c.length){let _=si(c);_&&(k.setAudioStream(_),nr=!0)}})),mn.subscribe(c=>{var _;(_=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||_.call(s,c.map(({label:V="",id:oe="",language:xe=""})=>({label:V,language:xe,id:oe})))}),xr.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onAudioStreamChanged)==null?void 0:_.call(s,c.id))});let Fr=!1;ye.add(k.info.availableVideoStreams$.subscribe(c=>{if(!Fr&&c.length){let _=si(c);_&&(k.setVideoStream(_),Fr=!0)}}));let Fo=de(void 0),Nn=ni(k.info.isAutoQualityEnabled$,c=>c&&Fo.set(void 0)),vn=ni(k.info.currentQuality$,()=>Fo.set(void 0)),nn=ui([Fo,vn],([c,_])=>c!=null?c:_),gn=ui(is,c=>c!==fi.VideoFormat.MPEG),wr=ui([Vn,br,Nn,nn,gn],([c,_,V,oe,xe])=>{let je=[];xe&&je.push({value:"auto",displayValue:ft("auto_quality_option"),selected:V});let Et=c.filter(Wt=>!(0,st.isInvariantQuality)(Wt));for(let Wt of Et){let jt=_[Wt];je.push({value:Wt,displayValue:`${Wt}${jt?bb(jt):""}`,selected:V?!1:Wt===oe})}return je}),Ho=ni(k.info.currentPlaybackRate$),Uo=ui([Ho,er,Dr],([c,_,V])=>{let oe=V||x?1:ee.controls.playbackRateMin,xe=_?1:ee.controls.playbackRateMax,je=ee.controls.playbackRateStep,Et=[];for(let Wt=oe;Wt<=xe;Wt+=je)Et.push({value:Wt,displayValue:Wt===1?ft("playback_rate_1"):ft("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Et}),hn=()=>({displayValue:ft("subtitles_off"),value:Mn,language:""}),Sr=de(hn()),yi=ui([Sr,Me],([c],_)=>{c.value===Mn?_(hn()):_(c)}),_n=ee.features.subtitles?ni(k.info.availableTextTracks$):Lr([]),Dn=__(),rr=ui([_n,yi],([c,_],V)=>{var je;let oe=[],xe=c.find(({id:Et})=>Et===_.value);if(xe!=null&&xe.url){let[,Et]=(je=Dn.find(xe.url))!=null?je:[];if(Et){V(Et);return}tt.download(xe.url).then(Wt=>{if(!Wt||tt.isDestroyed())return;let jt=new $b,zs=xe.language;if(zs){let S$=!!xe.isAuto,C$=jt.parse(Wt,zs);oe.push({lang:zs,subtitles:C$,isAuto:S$,id:xe.id})}Dn.add(xe.url,oe),ge(yi).value===_.value&&V(oe)}).catch(Wt=>{var jt;(jt=J==null?void 0:J.oneStat)==null||jt.logError({errorType:"Subtitles download",fatal:!1}),Z==null||Z.report(Wt,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Cr=ui([Ho,Jn,yi],([c,_,V],oe)=>{let Et;if(k.info.isLive$.getValue()&&_&&V.value!==Mn){let jt=()=>{let zs=1e3/(3*c);Et=setTimeout(jt,zs),oe(Date.now())};return jt(),()=>clearTimeout(Et)}}),On=ui([_n,yi],([c,_])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:xe,id:je}of c){let Et=oe&&_c(oe);oe&&Et&&V.push({displayValue:xe?ft("subtitles_auto",{language:Et}):Et,value:je,selected:(_==null?void 0:_.value)===je,isAuto:xe,language:oe})}return V.length?(V.unshift({...hn(),selected:(_==null?void 0:_.value)===Mn}),V):[]}),rn={available:[],prev:[]},$t=()=>{var _,V;let c=k.experimental.getCurrentTime$.getValue();return(V=(_=c==null?void 0:c())!=null?_:Pe==null?void 0:Pe.currentTime)!=null?V:0},xt=ui([Gt,yi,rr,Cr],([c,_,V,oe])=>{var je;let xe=k.info.isLive$.getValue();if(xe&&rn.prev!==V){let Et=V.find(({id:jt})=>jt===_.value),Wt=rn.prev.find(({id:jt})=>jt===_.value);if(Et){let jt={...Et,subtitles:[...(je=Wt==null?void 0:Wt.subtitles)!=null?je:[],...Et.subtitles]};rn.available=[jt],rn.prev=V}}if(_&&_.value!==Mn){let Et=xe?$t():c,Wt=xe?rn.available:V;return wb(Et,_,Wt,xe)}}),ao=ui([xt],([c])=>c!=null&&c.texts?c.texts:[]);ye.add(yi.subscribe(c=>{var _,V;if(c.value===Mn)(_=s==null?void 0:s.onSubtitleOff)==null||_.call(s);else{let oe=Object.entries(cp).find(([xe,je])=>je===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,oe?oe[0]:"",c.value)}}));let lo=de(!0),sn=ui([en,Bo,tr,Rr],([c,_,V,oe])=>{var Wt;let xe=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!oe)return xe/_;let Et=-V+oe-_;return(xe-Et)/_}),Hi=ni(k.info.availableSources$),ji=ui([Hi],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),co=()=>{var V,oe,xe;let c=Object.keys(((oe=(V=k.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[fi.VideoFormat.MPEG])||{}),_=(0,st.getHighestQuality)(c)||st.VideoQuality.Q_144P;return(xe=ke.sources[fi.VideoFormat.MPEG])==null?void 0:xe[_]},Bn=()=>{var _;let c=co();if(c)fe.log("download video",{url:c}),v_(c,((_=ke==null?void 0:ke.meta)==null?void 0:_.title)||"video");else{let V="There is no URL for download video";fe.log("download video",{message:V}),U({message:V})}},Hr=()=>{U({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?sr(Tr(),!1):Co(!c,!1)},Mi=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!ge(Qt.ui.settingsSubMenu.visible$)){let _=ge(Qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&_){let oe=jl(_),xe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:xe,name:"settings"})}}fe.log("close settings menu")},bs=async(c,_=()=>Promise.resolve())=>{var xe;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),await _();let V=ge(Qt.ui.settingsMenu.ref$),oe=ml();if((xe=s==null?void 0:s.uiInfo)!=null&&xe.onSettingsMenu&&V&&oe){let Et=jl(V),Wt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Et,position:Wt,name:"settings"})}fe.log("open settings menu",{wasOpenedByKeyboard:c})},ns=(c,_=!1)=>{var je;Qt.ui.settingsSubMenu.visible$.set(!1);let V=ge(Qt.ui.settingsMenu.ref$),oe=ml(),xe=ge(Qt.ui.settingsMenu.visible$);if((je=s==null?void 0:s.uiInfo)!=null&&je.onSettingsMenu&&V&&oe)if(xe&&!_){let Wt=jl(V),jt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:jt,name:"settings"})}else{let Wt=jl(c),jt={top:0,left:0,bottom:0,right:0},zs=ge(Qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:jt,name:zs})}fe.log("close settings sub menu")},rs=(c,_)=>{var oe;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(_),Qt.ui.settingsSubMenu.name$.set(c);let V=ml();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&_&&V){let je=jl(_),Et=Vs(_,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:je,position:Et})}fe.log("open settings sub menu",{name:c})},Tr=()=>{var _;let c=Math.max(ee.volumeMinRestore,(_=Ou())!=null?_:0);return c===0?ee.volumeDefault:c},an=c=>{let _=ee.features.savePreferredStatesOnUserActionOnly;return!_||_&&!c},sr=(c,_)=>{let V=c===0?Tr():c,oe=k.info.muted$.getValue();U({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let xe=!l||ze.is("ads");oe&&c>0&&xe&&(oe=!1,an(_)&&qf(!1)),k.setVolume(c,oe),Te.setVolume(c),an(_)&&Uf(V)},Co=(c,_)=>{let V=k.info.volume$.getValue();U({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=ze.is("ads");if(k.setMuted(c,oe),Te.setVolume(c?0:V),an(_)&&(!oe||!c)&&qf(c),!c&&V===0){let xe=Tr();k.setVolume(xe),an(_)&&Uf(xe),Te.setVolume(xe)}},To=de(!1),ar=c=>{var _,V;fe.log("set looped",{isLooped:c}),To.set(c),k.setLooped(c),(V=(_=s==null?void 0:s.uiInfo)==null?void 0:_.onLoopedChanged)==null||V.call(_,c)};ar(ne);let He=()=>{var c,_;(_=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||_.call(c)},At=(c,_=!1)=>{var V;U({message:`set autoplayNextEnabled, value: ${c}`}),fe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),M_(c),_&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},xi=c=>{U({message:`set timerNextVideoRunning, value: ${c}`}),fe.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},zo=(c=!0)=>{var V;let _=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{_=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onPrevVideoClick callback failed to execute"})}X(!0),_&&j()},uo=(c=!0)=>{var V;let _=!0;if(c&&(s!=null&&s.onNextVideoClick))try{_=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onNextVideoClick callback failed to execute"})}X(!1),_&&ae()},Io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},po=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Wo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Fn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},ln=()=>{k.prepare()},$o=()=>{(0,st.assertNonNullable)(Qt);let c=ge(Qt.ui.controls.disabledControls$),_=ge(Qt.playerPhase),V={playerPhase:_,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(U({message:"toggle play"}),_==="ads"){V.action="play",fe.log("toggle adman play",V),Te.togglePlay();return}let oe=()=>{var je;U({message:"toggle play, call player.play"}),V.action="play",k.play(),(je=s==null?void 0:s.onPlay)==null||je.call(s)},xe=()=>{var je;U({message:"toggle play, call player.pause"}),V.action="pause",k.pause(),(je=s==null?void 0:s.onPause)==null||je.call(s)};if(k.info.isEnded$.getValue()){if(U({message:"toggle play, video ended, seek to 0"}),Xt.next(),$i.next(gs.SeekAction.REWIND),x){N==null||N();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?oe():xe();fe.log("toggle play",V)},Xi=(c,{changeReason:_="default",appliesTo:V="to-video",byUser:oe=!1}={},xe)=>{U({message:`set quality, quality: ${c}`}),fe.log("set quality",{quality:c}),oe&&_i.next(c),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:je}=ee.features;Bu(),c!=="auto"?(je?(Fu({type:"exact_quality",quality:c,videoId:i},V),k.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):zf(i,c),Fo.set(c),k.setQuality(c)):je&&_==="default"&&(Ir("auto_quality",V,xe),ge(Pi)&&Hn(!1,void 0,xe),ge(tn)&&Un(!1,void 0,xe))},Hn=(c,_="as-default",V)=>{U({message:`set trafficSavingEnabled, value: ${c}`}),fe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;ee.features.qualityDetailsSubMenuEnabled?(zn(oe,_,V),jd(!1)):(k.setPredefinedQualityLimits(oe),an(V)&&jd(c))},Un=(c,_="as-default",V)=>{U({message:`set highQualityEnabled, value: ${c}`}),fe.log("set high quality enabled",{highQualityEnabled:c}),zn(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,_,V)},zn=(c,_,V)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(ge(Oo)&&!ge(Nn)&&Xi("auto",{appliesTo:_,changeReason:"limit-changed"},V),Ir(c,_,V)),k.setPredefinedQualityLimits(c)},Ir=(c,_,V)=>{an(V)&&(Fu({type:c,videoId:i},_),_==="as-default"&&Fu({type:c,videoId:i},"to-video"))},lr=(c,_=!0)=>{fe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),ee.features.saveRate&&we&&!k.info.isLive$.getValue()&&_&&A_(c)},$s=()=>{let c=ge(Ai),_=ge(Uo),V=_.findIndex(({selected:xe})=>xe);if(V===_.length-1||!c)return _[V];let oe=_[V+1];return lr(oe.value),oe},Je=()=>{let c=ge(Ai),_=ge(Uo),V=_.findIndex(({selected:xe})=>xe);if(V===0||!c)return _[V];let oe=_[V-1];return lr(oe.value),oe},Yt=(c={...hn(),selected:!1},_)=>{fe.log("set subtitles",{...c}),c.value!==Mn&&Yi.next(c.isAuto?c.value+"_auto":c.value),Ke.next({enabled:c.value!==Mn,lang:c.language,auto:!!c.isAuto}),Sr.set(c),an(_)&&(jf(c.value===Mn?void 0:c.language),ee.features.userVideoPrefs&&i&&Xf(ee.userSalt,String(i),{subtitleTrackId:c.value===Mn?void 0:c.value}))},Ci=c=>{fe.log("toggle subtitles");let _=ge(yi);(_==null?void 0:_.value)===Mn?Ko(c):Ur(c)},yo=(c,_)=>{fe.log("change subtitle",{enabled:c}),c?Ko(!0,_):Ur(!0)},Ko=(c,_)=>{fe.log("subtitle on");let V=ge(On),oe=ge(he),xe=Ie!=null?Ie:oe,je;_&&(je=V.find(Et=>Et.value===_)),je!=null||(je=V.filter(Et=>Et.value!==Mn).find(Et=>Et.language===xe)),Yt(je!=null?je:V[1],c)},Ur=c=>{fe.log("subtitle off"),Yt(void 0,c)};ye.add(k.info.availableTextTracks$.subscribe(c=>{var V;function _(){let oe=[];for(let{language:xe,isAuto:je,id:Et}of c){let Wt=xe&&_c(xe);xe&&Wt&&oe.push({id:Et,language:xe,title:je?ft("subtitles_auto",{language:Wt}):Wt})}return oe}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,_())}));let Eo=de(!0),dr=c=>{Eo.set(c)},Wn=(c,_,V=!0)=>{var oe;if(U({message:`seek to time, time: ${c}`}),fe.log("seek to time",{time:c,action:_,forcePrecise:V}),$i.next(_),k.info.isLive$.getValue()){let xe=k.info.duration$.getValue(),je=Math.min(0,xe+c);k.seekTime(je,V)}else{if(T!=null&&T.getValue())return;k.info.isEnded$.getValue()&&(U({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),k.seekTime(cg(c),V)}},ca=c=>{U({message:`seek to episode start time: ${c}`}),fe.log("seek to episode start time",{time:c}),Wn(c,gs.SeekAction.EPISODE,!0)},Bs=(c,_,V=!1)=>{U({message:`seek to percent, percent: ${c}`}),fe.log("seek to percent",{percent:c,action:_});let oe=ge(Bo)*c;Wn(oe,_,V)},Fs=c=>{U({message:`seek external, time: ${c}`}),fe.log("seek external",{time:c}),$i.next(gs.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},bn=c=>{var oe,xe;let _=(oe=c.max)!=null?oe:"none",V=(xe=c.min)!=null?xe:"none";U({message:`set auto quality limitation. Max: ${_}. Min: ${V}`}),fe.log("set auto quality limits",{max:_,min:V}),k.setAutoQualityLimits(c)},at=c=>{U({message:`seek external to episode start time: ${c}`}),fe.log("seek external to episode start time",{time:c}),Wn(c,gs.SeekAction.EPISODE,!0)},di=c=>{U({message:`set playback rate to: ${c}`}),fe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Vi=de(!1),$n=de(!1),zr=ui([Bo],([c])=>!!p&&c>=ee.suitableDurationForUsingRichSeek&&ee.features.useRichSeek&&!x),yn=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),be=ui([ti],([c])=>{let _=Xl(c);return yn?!_:_});ye.add(ze.subscribe(c=>{c!=="video"&&Vi.set(!1)}));let yt=de(void 0),Ot=de(!1),ei=c=>{U({message:`start scrubbing, progress: ${c}`}),fe.log("start scrubbing",{progress:c}),Ot.set(!0),Ti(c)},Ti=c=>{yt.set(c)},Ii,ki,wi=()=>{yt.set(void 0),Ot.set(!1)},ss=()=>{clearTimeout(ki),clearTimeout(Ii),Ii=window.setTimeout(()=>{wi()},500),Pe==null||Pe.removeEventListener("seeked",ss)},Hs=(c,_=!1)=>{U({message:`complete scrubbing, progress: ${c}`}),fe.log("complete scrubbing",{progress:c}),Bs(c,gs.SeekAction.SLIDER,_),ge(Qt.ui.isMobile)&&ge(Qt.state.currentFormat$)===fi.VideoFormat.HLS?(Pe==null||Pe.addEventListener("seeked",ss),ki=window.setTimeout(()=>{ss()},300)):wi()},dl=ui([Gt,Bo,yt],([c,_,V],oe)=>{oe((0,st.isNonNullable)(V)?V*_:c)}),ua=de(!1),pa=()=>{ua.set(!0)},as=()=>{ua.set(!1)},ys=ui([Ut],([{width:c}],_)=>{let V=fb(c);_(V)}),fa=q.filter(c=>g_(c)),ma=ui([ys,Be],([c,_])=>_?fa.filter(V=>!V.hideOnMobile):fa.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),xn=de(q.filter(c=>h_(c))),xs=ui([xn,ys],([c,_])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(_))})),cl=ui([xs,ma],([c,_])=>[...ee.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...ee.features.additionalButtons?_.map((V,oe)=>{var xe;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(xe=V.ariaLabel)!=null?xe:V.tooltip,tooltipText:V.tooltip}}):[]]),cr=de(H),pd=ui([cr],([c])=>ee.features.additionalSettingsMenuItems?c.map(_=>_.type==="SWITCH"?{..._,onClick:_.onChangeEnabled}:_):[]),ul=(c,_)=>{let V=ge(xn).map(oe=>oe.id!==c?oe:{...oe,..._});xn.set(V)},fd=c=>{let _=ge(xn);if(_.some(V=>V.id===c.id)){U({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),xn.set(_)},va=c=>{let _=ge(xn);if(!_.some(V=>V.id===c)){U({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),xn.set(_)},md=c=>{$i.next(gs.SeekAction.LIVE),U({message:"live switch to low latency "+c}),fe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},pl=(c,_)=>{let V=ge(cr).map(oe=>oe.id!==c?oe:{...oe,..._});cr.set(V)},fl=c=>{let _=ge(cr);if(_.some(V=>V.id===c.id)){U({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),cr.set(_)},ga=c=>{let _=ge(cr);if(!_.some(V=>V.id===c)){U({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),cr.set(_)},ot=de(z),pt=ui([ot],([c])=>ee.features.additionalContextMenuItems?c:[]),Zi=(c,_)=>{let V=ge(ot).map(oe=>oe.id!==c?oe:{...oe,..._});ot.set(V)},Po=c=>{let _=ge(ot);if(_.some(V=>V.id===c.id)){U({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),ot.set(_)},Ji=c=>{let _=ge(ot);if(!_.some(V=>V.id===c)){U({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),ot.set(_)},vi=ui([Be,Se],([c,_],V)=>{V(c&&_)}),Ui=()=>{$i.next(gs.SeekAction.LIVE),U({message:"switch to active live"}),fe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},Us=()=>{fe.log("skip adman"),Te.skip()},vd=(c=!0)=>{var oe;(0,st.assertNonNullable)(Qt),U({message:`switch from ads to video, callPlay: ${c}`}),fe.log("switch from ads to video",{callPlay:c}),ue.set("video"),c&&k.play(),l&&Co(!0,!0);let _=(oe=ge(Ge))==null?void 0:oe.muted,V=!k.info.muted$.getValue();_!==void 0&&!V&&Co(_,!0),Ge.set(void 0)},jc=()=>{(0,st.assertNonNullable)(Qt),U({message:"switch from video to ads"}),fe.log("switch from video to ads"),Qt.actions.internal.pause(),Ro(),ue.set("ads")},Op=c=>{(0,st.assertNonNullable)(Qt);let _=c?"LiveWaitingStart":"thumb";fe.log("set live waiting start",{state:c,playerPhase:_}),ue.set(_)},Xc=c=>{(0,st.assertNonNullable)(Qt);let _=c?"LiveWaitingRecover":"thumb";fe.log("set live waiting recover",{state:c,playerPhase:_}),ue.set(_)},Bp=c=>{(0,st.assertNonNullable)(Qt);let _=c?"LiveWaitingRecord":"thumb";fe.log("set live waiting record",{state:c,playerPhase:_}),ue.set(_)},Zc=()=>((0,st.assertNonNullable)(Qt),fe.log("get debug text data"),f_(k,ke,Qt,Re.getTraceId())),Jc=()=>((0,st.assertNonNullable)(Qt),JSON.stringify(Re.getFinishedSpans())),eu=()=>((0,st.assertNonNullable)(Qt),m_(k,ke,Qt)),ml=()=>Pe,tu=()=>{U({message:"toggle chromecast"}),fe.log("toggle chromecast"),k.toggleChromecast()},ha=c=>{var V;if((0,st.assertNonNullable)(Qt),k.info.isEnded$.getValue())return;let _=!c;if(ge(Qt.playerPhase)==="ads"){U({message:`pause ads, internalCall: ${_}`}),fe.log("pause ads",{internalCall:_}),Te.pause();return}U({message:`pause video, internalCall: ${_}`}),fe.log("pause video",{internalCall:_}),_&&((V=s==null?void 0:s.onPause)==null||V.call(s)),k.pause()},_a=c=>{var V;(0,st.assertNonNullable)(Qt);let _=!c;if(ge(Qt.playerPhase)==="ads"){U({message:`play ads, internalCall: ${_}`}),fe.log("play ads",{internalCall:_}),Te.play();return}U({message:`play video, internalCall: ${_}`}),fe.log("play video",{internalCall:_}),_&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),k.play()},Fp=c=>{(0,st.assertNonNullable)(Qt);let _=!c;if(ge(Qt.playerPhase)==="ads"){U({message:"player cannot be stopped during ads via external method"});return}U({message:`player will be stopped, internalCall: ${_}`}),L==null||L()},gd=(c,_)=>{(0,st.assertNonNullable)(Qt),U({message:`first start, show ads: ${c}, internalCall: ${!_}`}),fe.log("first start",{showAds:c,external:_}),c?ue.set("ads"):(ue.set("video"),_?k.play():Qt.actions.internal.togglePlay())},hd=()=>(U({message:"getting time codes"}),f),iu=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let _=k.info.position$.getValue();return c.find(V=>V.time>_)},Hp=c=>{let _=c;_||(_=iu());let V=k.info.position$.getValue();fe.log("seek to next episode",{currentTime:V,..._}),_&&(U({message:"seek to next episode"}),Wn(_.time,gs.SeekAction.EPISODE,!0))},Fe=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let _=k.info.position$.getValue(),V=c.findIndex(xe=>xe.time>_),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},gi=c=>{let _=c;_||(_=Fe());let V=k.info.position$.getValue();fe.log("seek to prev episode",{currentTime:V,..._}),_&&(U({message:"seek to prev episode"}),Wn(_.time,gs.SeekAction.EPISODE,!0))},qo=()=>(U({message:"getting preview thumbs data"}),fe.log("get preview thumbs data",{...p}),p),Er=async()=>{let c=ie==null?void 0:ie.isActive(),_="none";ie!=null&&ie.isActive()?(_="exit",await(ie==null?void 0:ie.exit())):(_="request",await(ie==null?void 0:ie.request())),fe.log("toggle picture in picture",{isActive:c,action:_})},wn=(c=-90)=>{fe.log("rotate video",{alphaDiff:c}),ti.update(_=>_+c)},ou=de([]);I==null||I.subscribe(c=>{let _=[];for(let V=0;V<c.length;V++){let{range:[oe,xe],subjects:je}=c[V];V===0&&oe!==0&&_.push({time:0,text:"",interactive:!1,completed:!0}),_.push({time:oe/1e3,text:"",interactive:!0,completed:ee.features.interactiveTimeOpenUri?!je.length||je.every(Et=>Et.isRemoved):!je.length}),xe!==1/0&&_.push({time:xe/1e3,text:"",interactive:!1,completed:!0})}ou.set(_)});let g$=de(!1);T==null||T.subscribe(c=>{c&&ge(Ot)&&wi()});let cg=c=>{if(!x)return c;let _=ge(ou),V=ge(Bo),xe=ge(tr)/V,je=_.find(Et=>Et.interactive&&!Et.completed&&Et.time>xe);return typeof(je==null?void 0:je.time)=="number"?Math.min(c,je.time-.05):c},h$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},_$=()=>{fe.log("destroy store"),clearTimeout(ki),clearTimeout(Ii),ye.unsubscribe(),No.unsubscribe(),k.destroy(),Te.destroy(),J==null||J.destroy(),Z==null||Z.destroy(),Y.unsubscribe(),Jt==null||Jt.disconnect(),Jt=null,tt.destroy()},b$=ui([er,ze,Ai],([c,_,V])=>v.features.doubleForwardAvailable&&!c&&_==="video"&&V),Up=de(!1),ug=2,nu=null,pg=c=>{if(!ge(Jn)&&c)return;let _=k.info.currentPlaybackRate$.getValue();c?_!==ug&&(nu=_,lr(ug,!1),Up.set(!0)):(nu&&lr(nu,!1),Up.set(!1),nu=null)};ze.subscribe(c=>{c!=="video"&&pg(!1)});let $$=()=>{ha(!1),Vi.set(!0)},y$=()=>{_a(!1),Vi.set(!1)},zp=!1,x$=()=>{$n.set(!0),zp=k.info.playbackState$.getValue()===fi.PlaybackState.PLAYING,ha(!1)},w$=()=>{$n.set(!1),!ge(Vi)&&zp&&_a(!1),zp=!1};k.events.playing$.subscribe(()=>{ge(Vi)&&ha(!1)});let Qt={interfaceLanguage$:he,isCyrillicRelatedInterface$:rt,initVideo:ci,videoId:i,isClip:o,playerPhase:ze,vsid:Nt,state:{positionExact$:Gt,positionWithScrubbing$:dl,duration$:Bo,playbackState$:nt,playbackStateRealistic$:Fi,isPlaying$:Jn,isLoaderVisible:Gi,bufferedProgress$:sn,isLive$:ro,canChangePlaybackSpeed$:Ai,isActiveLive$:er,isOldestAvailableLive$:Dr,isRewindableLive$:so,isEnded$:Do,muted$:_o,volume$:ho,trafficSavingEnabled$:Pi,highQualityEnabled$:tn,autoQualityLimitingAvailable$:Oo,availableVideoStreams$:ir,availableAudioStreams$:mn,videoStream$:bo,audioStream$:xr,currentQuality$:nn,isAutoQualityEnabled$:Nn,availableQualities$:wr,currentPlaybackRate$:Ho,availablePlaybackRates$:Uo,currentSubtitle$:yi,availableTextTracks$:_n,availableSubtitlesList$:On,currentSubtitleCaptions$:ao,isAutoSubtitleCaptionVisible$:lo,chromecastState$:$r,chromecastDeviceName$:_s,chromecastConnected$:Or,currentFormat$:is,throughputEstimation$:os,videoBitrate$:Zn,videoSize$:Nr,errorLog$:Ft,crashed$:Se,isAudioAvailable$:Rn,isAudioDisabled:!!l,canDownload:ee.features.download&&!!d,availableSources$:Hi,hasMpegSources$:ji,isInteractive:x,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!ge(ou).length,interactiveEpisodes$:ou,isInteractiveTime$:T?ni(T):de(!1),isInteractiveExpectation$:g$,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:P,looped$:To,loadedMetadata$:Pt,isAutoQualityAvailable$:gn,previewTrackActive:Vi,previewTrackDragInProgress:$n},ui:{t:ft,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:q.length?q.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Ht},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:Bt,rotateAlpha:ti,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:Ut,isMobile:Be,mobileNotReportControlHidden$:vi,icon3DVideoVisible:de(!1),scrubbingInProgress:Ot,volumeChangingInProgress:ua,is3DVideo:Dt,currentGridType$:ys,additionalButtonsDeprecated$:ma,additionalDesktopControlPanelRightButtons$:cl,additionalSettingsMenuItems$:pd,additionalContextMenuItems$:pt,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:Eo,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:Up,doubleForwardAvailable$:b$,previewTrackNotificationVisible:de(!1),previewTrackActive:Vi,previewTrackDragInProgress:$n,previewTrackAvailable:zr,isPreviewTrackHorizontallyAligned:be},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:De,slotsApi:Oe,focusManager:it},actions:{internal:{preload:ln,firstStart:c=>gd(c,!1),play:()=>_a(!1),pause:()=>ha(!1),togglePlay:$o,toggleMuted:Hr,openSettingsMenu:bs,closeSettingsMenu:Mi,openSettingsSubMenu:rs,closeSettingsSubMenu:ns,setVolume:c=>sr(c,!1),setMuted:c=>Co(c,!1),startVolumeChanging:pa,stopVolumeChanging:as,setVideoStream:or,setAudioStream:c=>vt(c,!1),setQuality:(c,_)=>Xi(c,_,!1),setTrafficSavingEnabled:(c,_)=>Hn(c,_,!1),setHighQualityEnabled:(c,_)=>Un(c,_,!1),setPlaybackRate:lr,incrementPlaybackRate:$s,decrementPlaybackRate:Je,setSubtitle:c=>Yt(c,!1),toggleSubtitle:()=>Ci(!1),togglePictureInPicture:Er,startScrubbing:ei,progressScrubbing:Ti,completeScrubbing:Hs,toggleChromecast:tu,switchToActiveLive:Ui,switchFromAdsToVideo:vd,switchFromVideoToAds:jc,skipAd:Us,setLiveWaitingStart:Op,setLiveWaitingRecover:Xc,setLiveWaitingRecord:Bp,getDebugTextData:Zc,getTraceTextData:Jc,getDebugPanelData:eu,getVideoElement:ml,seekTime:(c,_,V)=>Wn(c,_,V),clearDelayedBufferingCheckTimeout:yr,seekEpisodeStartTime:ca,seekToPercent:Bs,getNextEpisode:iu,seekToNextEpisode:Hp,getPrevEpisode:Fe,seekToPrevEpisode:gi,startLogging:St,stopLogging:zt,startCameraManualRotation:W,stopCameraManualRotation:kt,moveCameraFocusPX:ri,holdCamera:ut,releaseCamera:Ct,getVideoEpisodes:hd,getPreviewThumbsData:qo,downloadVideo:Bn,addLanguage:Zf,setLanguage:le,nextMovie:ht,videoRotate:wn,correctSeekTimeToInteractive:cg,replayInteractive:N,setLooped:ar,reportProblem:He,setAutoplayNextEnabled:At,setTimerNextVideoRunning:xi,prevVideoClick:zo,nextVideoClick:uo,nextVideoAnnouncementShow:Io,nextVideoAnnouncementClick:po,nextVideoAnnouncementAuto:Wo,nextVideoAnnouncementCancel:Fn,checkFullscreenSupport:dt,changeDoubleForwardOn:pg,closePreviewTrack:y$,previewTrackOpened:$$,previewTrackDragStarted:x$,previewTrackDragFinished:w$},external:{firstStart:c=>gd(c,!0),play:()=>_a(!0),pause:()=>ha(!0),stop:()=>Fp(!0),seekTime:c=>Fs(c),seekEpisodeStartTime:c=>at(c),setPlaybackRate:c=>di(c),setAutoQualityLimits:c=>bn(c),setMuted:c=>Co(c,!0),toggleSubtitle:()=>Ci(!0),changeSubtitle:yo,setVolume:c=>sr(c,!0),returnFocusToEpisodes:h$,updateAdditionalSettingsItem:pl,addAdditionalSettingsItem:fl,removeAdditionalSettingsItem:ga,updateAdditionalContextItem:Zi,addAdditionalContextItem:Po,removeAdditionalContextItem:Ji,updateAdditionalButton:ul,addAdditionalButton:fd,removeAdditionalButton:va,setLiveLowLatency:md,hideControls:()=>dr(!1),showControls:()=>dr(!0),setQuality:c=>Xi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Hn(c,"to-video",!0),setHighQualityEnabled:c=>Un(c,"to-video",!0),changeAudioStream:Br}},callbacks:s,setUiCallbacks:c=>{Ue={...c}},getAdmanWrapper:()=>Te,getLogger:()=>We,getPlayer:()=>k,destroy:_$};return Qt};function jn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Vs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Wx=["disabledControls$","additionalButtons"],Kx=["interactiveTimeIndicator"],Jl=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Wx.includes(r)){let l=o||Kx.includes(r);a.set(jn(t,i,r,l))}}};var pp=async(t,e,i)=>{await go(),e&&i&&(i.focus(),t.set(!1))};var qx=Ce('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function zm(t){Ze(t,{children:(e,i)=>{var o=qx();b(e,o)},$$slots:{default:!0}})}function Wm(t,e){B(e,!0);let[i,o]=Ve(),r=()=>w(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,$=K(void 0);Ne(()=>{n($)&&Tt(()=>{v.set(n($))})});let y=T=>{let N=oa(T),L=ob(n($));p.set(L),u.set(N),s.set(!r())},h=()=>{f.set(!0)},x=()=>{f.set(!1)},I=m(()=>r()?"opened":"");qt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:h,blur:x,get ariaExpanded(){return r()},get ref(){return n($)},set ref(T){D($,T,!0)},children:(T,N)=>{zm(T,{})},$$slots:{default:!0}}),F(),o()}var Qx=t=>{t.stopPropagation()},Gx=M("<div><!> <div></div> <div></div></div>"),Yx={hash:"s-27",code:'.interactive-episode-icon-animated.s-27{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-27{height:28px;width:28px}.invisible.s-27{opacity:0;visibility:hidden}.fullscreen.s-27:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-27{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-27{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-27{right:16px;top:40px}}@keyframes s-27-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-27{animation:s-27-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-27{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-27{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-27{display:none}'};function $c(t,e){var Z;B(e,!0),Q(t,Yx);let[i,o]=Ve(),r=()=>w(x,"$isMobile",i),a=()=>w(L,"$areControlsVisible",i),l=()=>w(P,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w(h,"$interactiveControlsOpacity$",i),u=()=>w(N,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>w(I,"$isFullscreen",i),p=g(e,"ref",15,void 0),v=K(void 0),$=ve(),y=wo(),{interactiveControlsOpacity$:h}=y,x=$.ui.isMobile,I=$.ui.isFullscreen,T=$.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,L=$.ui.controlsVisible,E=(Z=$.callbacks)==null?void 0:Z.onInteractiveTimeIndicatorClick,P=$.ui.currentGridType$,q=m(()=>!r()&&a()),H=m(()=>Ms(l(),"s")),z=m(()=>!d()||!!s()||n(q)),j=K(!1);Ne(()=>{D(j,n(z),!0)});let ae=()=>{D(j,!0)},X=()=>{var ie;ne(),(ie=n(v))==null||ie.addEventListener("animationiteration",ae,{once:!0})},ne=()=>{var ie;D(j,!1),(ie=n(v))==null||ie.removeEventListener("animationiteration",ae)},J=ie=>{N.set(ie)},we=m(()=>u()&&!n(z));Ne(()=>{u()?X():ne()});let pe=()=>{n(z)||(N.set(!0),E==null||E())};un(()=>{N.clearTimeout(),ne()});let re=()=>{N.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var $e=Gx();let ee;$e.__mousemove=[Qx],$e.__click=pe;var Re=C($e);Mo(Re,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(ie){p(ie)},children:(ie,De)=>{uc(ie,{completed:!0})},$$slots:{default:!0}});var fe=A(Re,2);let k;Xe(fe,ie=>p(ie),()=>p());var We=A(fe,2);let Te;Xe(We,ie=>D(v,ie),()=>n(v)),S($e),O((ie,De,Oe)=>{ee=se($e,1,"interactive-episode-icon-animated s-27",null,ee,ie),k=se(fe,1,"ref-block s-27",null,k,De),Te=se(We,1,"pulse s-27",null,Te,Oe)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(H)}),()=>({hidden:n(z)}),()=>({paused:n(j)})]),lt("mouseleave",$e,re),b(t,$e),F(),o()}Ye(["mousemove","click"]);function fp(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Ae();let f=m(()=>e.buttonComponent);var p=ce(u);Di(p,()=>n(f),(v,$)=>{$(v,Xr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Xx=Ce('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function la(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=m(()=>`${pn(e.size)}${n(o)}`),a=m(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=Xx();b(l,s)},$$slots:{default:!0}}),F()}var Zx=M('<div class="icon-background-mobile s-24"><!></div>'),Jx={hash:"s-24",code:".icon-background-mobile.s-24{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function Ya(t,e){B(e,!0),Q(t,Jx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ve().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);qt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var v=Ae(),$=ce(v);{var y=x=>{var I=Zx(),T=C(I);let N=m(()=>e.type==="prev");la(T,{get size(){return"32"},get reversed(){return n(N)}}),S(I),b(x,I)},h=x=>{let I=m(()=>e.type==="prev");la(x,{get size(){return"24"},get reversed(){return n(I)}})};R($,x=>{o()?x(y):x(h,!1)})}b(f,v)},$$slots:{default:!0}}),F()}var e2=Ce('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function yc(t,e){B(e,!0);let i=m(()=>pn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=e2();b(o,a)},$$slots:{default:!0}}),F()}var Tb=require("@vkontakte/videoplayer-shared/es2018");var t2=M('<div class="icon-background-mobile s-25"></div>'),i2=M("<!> <div><!></div>",1),o2={hash:"s-25",code:".mobile.s-25{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-25{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ed(t,e){B(e,!0),Q(t,o2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Tb.noop),d=G("tooltip_restart"),s=m(()=>`${o()?"btn-m--play":""} ${a()}`);qt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ms.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var p=i2(),v=ce(p);{var $=T=>{var N=t2();b(T,N)};R(v,T=>{o()&&T($)})}var y=A(v,2);let h;var x=C(y);let I=m(()=>o()?"48":"24");yc(x,{get size(){return n(I)}}),S(y),O(T=>h=se(y,1,"s-25",null,h,T),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var n2=Ce('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Ns(t,e){B(e,!0);let i=m(()=>pn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=n2();b(o,a)},$$slots:{default:!0}}),F()}var Ib=require("@vkontakte/videoplayer-shared/es2018");var r2=M('<div class="icon-background-mobile s-21"><!></div>'),s2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function td(t,e){B(e,!0),Q(t,s2);let[i,o]=Ve(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=wo(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),f=g(e,"className",3,""),p=g(e,"click",3,Ib.noop),$=ve().ui.t,{toggle:y}=a,h=m(()=>y),x=m(()=>r()!==null),I=m(()=>n(x)?r():s()),T=m(()=>n(I)?$("tooltip_pause"):$("tooltip_play")),N=m(()=>n(I)?Ns:An),L=m(()=>`${d()?"btn-m--play":""} ${f()}`),E=m(()=>n(x)?n(h):p());qt(t,{get className(){return n(L)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return ms.KeyK},get ref(){return l()},set ref(P){l(P)},children:(P,q)=>{var H=Ae();let z=m(()=>n(N));var j=ce(H);{var ae=ne=>{var J=r2(),we=C(J);Di(we,()=>n(z),(pe,re)=>{re(pe,{get size(){return"48"}})}),S(J),b(ne,J)},X=ne=>{var J=Ae(),we=ce(J);Di(we,()=>n(z),(pe,re)=>{re(pe,{get size(){return"24"}})}),b(ne,J)};R(j,ne=>{d()?ne(ae):ne(X,!1)})}b(P,H)},$$slots:{default:!0}}),F(),o()}var a2=Ce('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Km(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=a2();b(e,o)},$$slots:{default:!0}})}function xc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");qt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Km(d,{})},$$slots:{default:!0}}),F()}var l2=M('<span class="gutter s-26"><span><!></span></span>'),d2={hash:"s-26",code:".gutter.s-26{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-26{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function wc(t,e){B(e,!0),Q(t,d2);let[i,o]=Ve(),r=()=>w(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",$="#000",y=m(()=>r()?"true":"false");qt(t,{click:f,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(h){a(h)},children:(h,x)=>{var I=l2(),T=C(I);let N;var L=C(T);{var E=q=>{An(q,{get size(){return v},fill:$})},P=q=>{Ns(q,{get size(){return v},fill:$})};R(L,q=>{r()?q(E):q(P,!1)})}S(T),S(I),O(q=>N=se(T,1,"toggler s-26",null,N,q),[()=>({enabled:r()})]),b(h,I)},$$slots:{default:!0}}),F(),o()}var c2=Ce('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function qm(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=c2();li(),b(e,o)},$$slots:{default:!0}})}function Sc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");qt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{qm(d,{})},$$slots:{default:!0}}),F()}var u2=Ce('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),p2=Ce('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function Qm(t,e){let i=g(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=p2(),d=A(ce(l));{var s=u=>{var f=u2();b(u,f)};R(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Cc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=ve().ui.t,s=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");qt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{let v=m(()=>!!a());Qm(f,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var Gm=require("@vkontakte/videoplayer-core/es2018");function Tc(t,e){B(e,!0);let[i,o]=Ve(),r=()=>w(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ve(),u=s.state.playbackState$,f=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=m(()=>()=>{if(!l()){f();return}r()===Gm.PlaybackState.PAUSED&&p()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),y=m(()=>l()?"btn-live":"btn-live-offset"),h=m(()=>l()&&r()===Gm.PlaybackState.PLAYING);qt(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(h)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{tc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var Ym=require("@vkontakte/videoplayer-shared/es2018");var f2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),m2=M('<img class="icon" aria-hidden="true"/>');function ja(t,e){"use strict";let i=K(!1),o=()=>{D(i,!0)};var r=Ae(),a=ce(r);{var l=s=>{var u=f2();b(s,u)},d=s=>{var u=m2();O(()=>Le(u,"src",e.icon)),lt("error",u,o),ka(u),b(s,u)};R(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function jm(t,e){B(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Ym.noop),r=g(e,"ref",15),a=m(()=>o()===Ym.noop),l=m(()=>n(a)||i()),d=m(()=>n(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let f=m(()=>{var p;return(p=e.testId)!=null?p:e.id});qt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(p,v)=>{ja(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Eb=t=>!!t.buttonComponent;var Ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var mp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(jn(t,i,r,o))};var vp=require("@vkontakte/videoplayer-shared/es2018"),Pb=10,kb=40,Xm=.2,g2=.5,h2=65,_2=114,b2=4,Ab=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?h2:_2),r=K(!1),a=K(0),l=K(0),d=m(()=>n(o)+Pb-kb-b2),s=m(()=>(0,vp.interpolate)(n(a),[Xm,1],[0,-n(d)])),u=m(()=>(0,vp.interpolate)(n(a),[Xm,1],[0,kb])),f=m(()=>(0,vp.interpolate)(n(a),[Xm,1],[0,n(o)+Pb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:h=>{var x;D(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),D(r,!0)},onPointerMove:h=>{if(!n(r))return;let x=Math.max(Math.min(h.clientY-n(l),0),-n(d));D(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{D(r,!1),D(a,n(a)>=g2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{D(a,0)}}};var $2=t=>t;function hs(t,{delay:e=0,duration:i=400,easing:o=$2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var y2=M('<span class="root s-2b"> </span>'),x2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function Zm(t,e){Q(t,x2);var i=y2(),o=C(i,!0);S(i),O(()=>me(o,e.time)),b(t,i)}var w2=M('<div class="tooltip-wrapper s-15"><div><!></div></div>'),S2={hash:"s-15",code:'.tooltip-wrapper.s-15{display:block;position:relative}.tooltip.s-15{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-15:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-15{opacity:1;visibility:visible}'};function Jm(t,e){Q(t,S2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function f(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=m(()=>f(r()));var v=w2(),$=C(v);let y;var h=C($);oi(h,()=>{var x;return(x=e.children)!=null?x:gt}),S($),Xe($,x=>D(u,x),()=>n(u)),S(v),Xe(v,x=>D(s,x),()=>n(s)),O(x=>{qe(v,`transform: translate(${n(p)}px, ${a()}px);`),y=se($,1,"tooltip s-15",null,y,x),qe($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var Lb=t=>Math.abs(t)/90%4===1;var C2=M('<div class="preview s-14"></div>'),T2=M('<div class="time s-14"> </div>'),I2=M('<div><!> <div class="episode s-14"><!></div> <!></div>'),E2={hash:"s-14",code:".timeline-preview.s-14{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-14{bottom:72px}.preview.s-14{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-14{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-14,.time.s-14{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-14{color:var(--white)}"};function ev(t,e){B(e,!0),Q(t,E2);let[i,o]=Ve(),r=()=>w(y,"$rotateAlpha",i),a=()=>w(h,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),f=g(e,"progress",3,0),p=g(e,"duration",3,0),v=g(e,"isInteractive",3,!1),$=ve(),y=$.ui.rotateAlpha,h=$.ui.playerSize,x=K(0),I=K(0),T=K(""),N=K(0),L=K(0),E=K(0),P=K(0),q=m(()=>rp(f(),p(),u())),H=m(()=>Xl(r())),z=m(()=>Lb(r())),j=m(ne),ae=m(()=>(n(z)?1:-1)*(n(x)/2-n(I)/2)),X=m(()=>n(ae)*-1);Ne(()=>{(Z=>{D(x,Z.width,!0),D(I,Z.height,!0)})(we())}),Ne(()=>{(Z=>{D(T,Z.imgSrc,!0),D(N,Z.imgWidth,!0),D(L,Z.imgHeight,!0),D(E,Z.imgOffsetX,!0),D(P,Z.imgOffsetY,!0)})(pe(f()))});function ne(){var Oe;let Z=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=J(),De=30;return(Oe=n(q))!=null&&Oe.text&&(De+=16),(ie||n(H))&&(De+=18,De+=50),Math.min(Math.max(a().height-De,0),Z)}function J(){let Z=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,De=ie>Z;return{width:Z,height:ie,isHorizontal:!De,isVertical:De}}function we(){let{height:Z,isHorizontal:ie,isVertical:De,width:Oe}=J();return ie&&(Z=Z/Oe*n(j),Oe=n(j)),De&&(Oe=Oe/Z*n(j),Z=n(j)),{width:Oe,height:Z}}function pe(Z){let ie;e.previewThumbsData.isUV?ie=Math.floor(p()*Z/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Z)));let De=Math.floor(ie/e.previewThumbsData.countPerImage),Oe=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),it=ie%e.previewThumbsData.countPerRow,U=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(U=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&U++);let ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=n(x)*ke,Ue=n(I)*U,tt=-it*n(x),ye=-Oe*n(I);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Pe,imgHeight:Ue,imgOffsetX:tt,imgOffsetY:ye}}var re=I2();let _e;var $e=C(re);{var ee=Z=>{var ie=C2();O(()=>qe(ie,`width: ${n(x)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(N)}px ${n(L)}px; background-position: ${n(E)}px ${n(P)}px;
|
|
61
|
+
transform: rotate(${r()}deg) ${n(H)?`translate(${n(ae)}px, ${n(X)}px)`:""};
|
|
62
|
+
`)),b(Z,ie)};R($e,Z=>{n(T)&&Z(ee)})}var Re=A($e,2),fe=C(Re);{var k=Z=>{var ie=Ae(),De=ce(ie);{var Oe=U=>{var ke=fs();O(Pe=>me(ke,Pe),[()=>G("tooltip_episode_unfinished")]),b(U,ke)},it=U=>{var ke=fs();O(()=>me(ke,n(q).text||"")),b(U,ke)};R(De,U=>{v()&&n(q).completed===!1?U(Oe):U(it,!1)})}b(Z,ie)};R(fe,Z=>{n(q)&&Z(k)})}S(Re);var We=A(Re,2);{var Te=Z=>{var ie=T2(),De=C(ie,!0);S(ie),O(()=>me(De,d())),b(Z,ie)};R(We,Z=>{v()||Z(Te)})}S(re),O(Z=>{_e=se(re,1,"timeline-preview s-14",null,_e,Z),qe(re,`width: ${n(H)?n(I):n(x)}px;`)},[()=>({mobile:s()})]),b(t,re),F(),o()}var P2=M('<span class="time s-g"> </span>'),k2=M("<!> <!>",1),A2={hash:"s-g",code:".time.s-g{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function tv(t,e){var le,he,Me,rt,ft;B(e,!0),Q(t,A2);let[i,o]=Ve(),r=()=>w(X,"$interactiveEpisodes$",i),a=()=>w(P,"$duration$",i),l=()=>w(E,"$position$",i),d=()=>w(we,"$isInteractiveExpectation$",i),s=()=>w(J,"$isInteractiveTime$",i),u=()=>w($e,"$previewTrackActive",i),f=()=>w(q,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(z,"$isMobile",i),$=()=>w(H,"$isActiveLive$",i),y=()=>w(L,"$bufferedProgress$",i),h=g(e,"showTimeline",3,!1),x=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),T=ve(),N=Mt(),L=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,P=T.state.duration$,q=T.state.isLive$,H=T.state.isActiveLive$,z=T.ui.isMobile,j=N.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),X=T.state.interactiveEpisodes$,ne=T.state.isInteractive,J=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,re=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,$e=T.ui.previewTrackActive,ee=(Me=(he=T.callbacks)==null?void 0:he.uiInfo)==null?void 0:Me.onTimelineMouseEnter,Re=(ft=(rt=T.callbacks)==null?void 0:rt.uiInfo)==null?void 0:ft.onTimelineMouseLeave,fe=T.ui.t,k=N.features.interactiveResponsiveUi,We=m(()=>ne?r():j),Te=m(()=>Jo(a())),Z=m(()=>Jo(l())),ie=m(()=>l()/a()),De=m(()=>d()||s()),Oe=K(!1),it=K(""),U=K(0),ke=K(0),Pe=K(0),Ue=m(()=>({containerWidth:n(ke),translateXPx:n(U),translateYPx:ne&&ae?-36:-16,active:n(Oe)&&h()&&!n(De)&&!k&&!u(),pointer:!N.features.timelinePreview||!ae||f()})),tt=fe("aria_timeline"),ye=m(()=>fe("aria_timeline_value",{position:n(Z),duration:n(Te)}));function Ie(ue){return!pe||!ne?ue:pe(ue*a())/a()}function Be(ue,ze){var Ge;(Ge=e.onSliderPointerDown)==null||Ge.call(e,ze),T.actions.internal.startScrubbing(Ie(ue))}function Nt(ue){s()||T.actions.internal.progressScrubbing(Ie(ue))}function mt(ue){var ze;T.actions.internal.completeScrubbing(Ie(ue)),D(Oe,!1),(ze=e.onSliderPointerUp)==null||ze.call(e)}function Bt(ue,ze,Ge){var ct;(ct=e.onSliderPointerEnter)==null||ct.call(e,ue),ti(ue,ze,Ge),D(Oe,!0)}function dt(ue,ze,Ge,ct){var Ht;(Ht=e.onSliderMove)==null||Ht.call(e,ct,ue),ti(ue,ze,Ge),D(Oe,!0)}function wt(){var ue;D(Oe,!1),(ue=e.onSliderLeave)==null||ue.call(e)}function ti(ue,ze,Ge){D(Pe,Ie(ue),!0),D(U,ze,!0),Ge&&D(ke,Ge,!0),D(it,Pt(ue),!0)}function Pt(ue){let ze=Jo((f()?1-ue:ue)*a());return f()?`-${ze}`:ze}let Dt=m(()=>p().has("TIMELINE"));var Ft=k2(),Y=ce(Ft);Jm(Y,Xr(()=>n(Ue),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ue,ze)=>{var Ge=Ae(),ct=ce(Ge);{var Ht=ii=>{ev(ii,{get time(){return n(it)},get isMobile(){return v()},get videoEpisodes(){return n(We)},get previewThumbsData(){return ae},get progress(){return n(Pe)},get duration(){return a()},get isInteractive(){return ne}})},Ut=ii=>{var hi=P2(),Gi=C(hi,!0);S(hi),O(()=>me(Gi,n(it))),b(ii,hi)};R(ct,ii=>{N.features.timelinePreview&&ae&&!f()?ii(Ht):ii(Ut,!1)})}b(ue,Ge)},$$slots:{default:!0}}));var Se=A(Y,2);Qa(Se,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return v()},get ariaLabel(){return tt},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(ye)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(We)},onPointerDown:Be,onHandleMove:Nt,onPointerMove:dt,onPointerUp:mt,onPointerEnter:Bt,onPointerLeave:wt,get onMouseEnter(){return ee},get onMouseLeave(){return Re},get onDisabledClick(){return re},get isInteractive(){return ne},get disabled(){return n(Dt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:mt,get ref(){return I()},set ref(ue){I(ue)}}),b(t,Ft),F(),o()}var L2={hash:"s-f",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Ic(t,e){B(e,!0),Q(t,L2);let[i,o]=Ve(),r=()=>w(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),s=d.ui.isMobile,u=d.ui.t,f=m(()=>Jo(l())),p=m(()=>Jo(a())),v=m(()=>a()/l()),$=m(()=>u("aria_timeline_value",{position:n(p),duration:n(f)})),y=m(()=>Math.round(n(v)*100));Qa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var M2=M("<div><!></div>"),V2=M("<div></div>"),R2={hash:"s-d",code:".timeline.s-d{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-d{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-d{padding:0}.timeline-stub.s-d{min-width:20px;width:100%}.timeline-stub.mobile.s-d{height:8px}"};function Xa(t,e){B(e,!0),Q(t,R2);let[i,o]=Ve(),r=()=>w(x,"$isLive$",i),a=()=>w(N,"$isMobile",i),l=()=>w(L,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=g(e,"isAds",3,!1),f=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),v=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=ve(),h=Mt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,N=y.ui.isMobile,L=de(!1),E=m(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var P=Ae(),q=ce(P);{var H=j=>{var ae=M2();let X;var ne=C(ae);{var J=pe=>{Ic(pe,{get position(){return d()},get duration(){return s()}})},we=pe=>{tv(pe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(re){$(re)}})};R(ne,pe=>{u()?pe(J):pe(we,!1)})}S(ae),ks(ae,()=>Ul(f()&&h.features.usePerformanceFix,L,h.disableInvisibleComponentsTimeout)),O(pe=>X=se(ae,1,"timeline s-d",null,X,pe),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(j,ae)},z=j=>{var ae=V2();let X;O(ne=>X=se(ae,1,"timeline-stub s-d",null,X,ne),[()=>({mobile:a()})]),b(j,ae)};R(q,j=>{n(E)?j(H):j(z,!1)})}b(t,P),F(),o()}var Mb=require("@vkontakte/videoplayer-shared/es2018");var N2=(t,e,i,o,r,a,l)=>{D(e,!0),D(i,t.clientX,!0),D(o,n(r),!0),a(l())},D2=M("<div></div>"),O2=M('<div><div class="track s-2c"></div></div>'),B2={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function ov(t,e){B(e,!0),Q(t,B2);let[i,o]=Ve(),r=()=>w(N,"$rotateAlpha",i),a=()=>w(h,"$position$",i),l=()=>w(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:f=0,links:p=[],frameHeight:v=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:h}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,N=d.ui.rotateAlpha,L=K(void 0),E=K(!1),P=K(0),q=K(0),H=K(0),z=K(0),j=m(()=>v<=$),ae=m(()=>Xl(r())),X=m(()=>n(j)?!n(ae):n(ae)),ne=114,J=65,we=3,pe=m(()=>n(X)?ne:J),re=m(()=>n(j)?ne:J),_e=m(()=>n(j)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),$e=m(()=>f*n(pe)),ee=K(0);Ne(()=>{D(z,Math.ceil(-n(H)/n(pe))-1),D(H,-n($e)*a()/l())});let Re=()=>{T(fe(),!0)},fe=()=>l()*-n(H)/n($e)/l(),k=!1,We=ye=>{if(!n(E))return!1;let Ie=ye.clientX-n(P);D(H,n(q)+Ie),D(H,Math.max(Math.min(n(H),0),-n($e)),!0),Math.abs(Ie)>1&&(k=!0),I(fe())},Te=ye=>{n(E)&&(D(E,!1),!k&&ye&&D(H,-(ye.offsetX-n(ee)/2)),k=!1,Re())},Z=()=>{n(E)&&Te()},ie=m(()=>s/u),De=(ye,Ie)=>{if(ye!==p.length-1)return u;let Be=0,Nt=Ie*u;for(let mt=1;mt<=u;mt++)ye*s+Be+Nt<f&&Be++;return Be},Oe=m(()=>Math.floor(n(z)/s)),it=m(()=>(0,Mb.getRangeAroundIndex)(3,n(Oe),p.length-1)),U=(ye,Ie,Be)=>{let Nt=s*n(pe);return ye*Nt+Ie*n(pe)*u+n(ee)/2-we/2+Be*n(pe)},ke=m(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(_e)}`].join(";"));var Pe=O2();let Ue;var tt=C(Pe);tt.__pointerdown=[N2,E,P,q,H,x,fe],tt.__pointermove=We,tt.__pointerup=Te,bi(tt,20,()=>n(it),ye=>ye,(ye,Ie)=>{var Be=Ae(),Nt=ce(Be);bi(Nt,16,()=>Array.from({length:n(ie)},(mt,Bt)=>Bt),mt=>mt,(mt,Bt)=>{var dt=Ae(),wt=ce(dt);bi(wt,16,()=>Array.from({length:De(Ie,Bt)},(ti,Pt)=>Pt),ti=>ti,(ti,Pt)=>{var Dt=D2();O((Ft,Y)=>{qe(Dt,Ft),se(Dt,1,Y,"s-2c")},[()=>`--row-index: ${Bt}; --column-index: ${Pt}; left: ${U(Ie,Bt,Pt)}px; background-image: url(${p[Ie]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ti,Dt)}),b(mt,dt)}),b(ye,Be)}),S(tt),S(Pe),Xe(Pe,ye=>D(L,ye),()=>n(L)),O(ye=>{Ue=se(Pe,1,"root s-2c",null,Ue,ye),qe(Pe,n(ke)),qe(tt,`transform: translateX(${n(H)}px); width: ${n($e)}px;`)},[()=>({"is-vertical-video":!n(j),"vertically-rotated":n(ae)})]),lt("mouseleave",tt,Z),Pn(Pe,"clientWidth",ye=>D(ee,ye)),b(t,Pe),F(),o()}Ye(["pointerdown","pointermove","pointerup"]);var F2=M('<div class="notification s-2d"><span class="description s-2d"> </span></div>'),H2={hash:"s-2d",code:".notification.s-2d{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2d{font-size:14px;line-height:18px}"};function nv(t,e){B(e,!1),Q(t,H2);let i=340,{ui:{t:o}}=ve();xo();var r=F2(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>me(l,d),[()=>o("preview_track_close_tooltip")],Sn),jr(3,r,()=>hs,()=>({duration:i})),b(t,r),F()}var Vb=require("@vkontakte/videoplayer-shared/es2018"),U2=M('<div class="preview-track-close tooltip s-29"><!></div>'),z2=M('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),W2=M('<div class="wrapper-preview-track s-29"><!></div>'),K2=M('<div class="enriched-timeline s-29"><!> <!> <!></div>'),q2={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function rv(t,e){B(e,!0),Q(t,q2);let[i,o]=Ve(),r=()=>w(h,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),f=ve(),p=200,{positionWithScrubbing$:v,isRewindableLive$:$,duration$:y}=f.state,{playerSize:h,previewTrackActive:x}=f.ui,{countPerImage:I=0,links:T=[],frequency:N=0}=f.actions.internal.getPreviewThumbsData()||{},L=m(()=>r().width>100),E=K(!B_()),P=()=>{n(E)&&(O_(),D(E,!1))},q=pe=>{let re=Math.floor(a()*pe/N),_e=Math.floor(re/I),$e=(0,Vb.getRangeAroundIndex)(3,_e,T.length-1);for(let ee of $e){let Re=new Image;Re.src=T[ee]}},H=(pe,re)=>{q(re),!l()&&e.onTimelineMove(pe)};var z=K2(),j=C(z);{var ae=pe=>{var re=z2(),_e=C(re);let $e=m(()=>Jo(d()));Zm(_e,{get time(){return n($e)}});var ee=A(_e,2),Re=C(ee);Ls(Re,{onClick:()=>f.actions.internal.closePreviewTrack()}),S(ee);var fe=A(ee,2);{var k=We=>{var Te=U2(),Z=C(Te);nv(Z,{}),S(Te),b(We,Te)};R(fe,We=>{n(E)&&We(k)})}S(re),lt("mouseleave",ee,P),jr(3,re,()=>hs,()=>({duration:p})),b(pe,re)};R(j,pe=>{l()&&pe(ae)})}var X=A(j,2);let ne=m(()=>!n(L));Xa(X,{get isHidden(){return n(ne)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:q,get ref(){return u()},set ref(pe){u(pe)}});var J=A(X,2);{var we=pe=>{var re=W2(),_e=C(re);ov(_e,{}),S(re),O(()=>qe(re,`height: ${e.animatedPreviewTrackHeight}px;`)),b(pe,re)};R(J,pe=>{e.previewTrackAvailable&&pe(we)})}S(z),O(()=>qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var G2=M('<div><!> <div class="controls s-1d" data-testid="player_controls"><div class="controls-left s-1d"><!> <!> <!></div> <div class="controls-right s-1d"></div></div></div> <!>',1),Y2={hash:"s-1d",code:'.wrapper-bottom.s-1d{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-1d:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1d>:where(.s-1d){pointer-events:auto}.controls.s-1d{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-1d,.controls-right.s-1d{align-content:center;display:flex}.controls-left.s-1d{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1d >:not(:first-child),.controls-right.s-1d >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1d{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1d{transition:none}'};function av(t,e){var fl,ga;B(e,!0),Q(t,Y2);let[i,o]=Ve(),r=()=>w(Ro,"$disabledControls$",i),a=()=>w(nt,"$adPlaybackState",i),l=()=>w(Ut,"$playbackState$",i),d=()=>w(So,"$currentSubtitle$",i),s=()=>w(Gi,"$isEnded$",i),u=()=>w(en,"$currentGridType$",i),f=()=>w(Vt,"$isLive$",i),p=()=>w(Ke,"$chromecastState$",i),v=()=>w(ht,"$isPictureInPictureActive",i),$=()=>w(Xt,"$pictureInPictureType$",i),y=()=>w(_i,"$availableSubtitlesList$",i),h=()=>w(zt,"$contextMenuOpenedByKeyboard$",i),x=()=>w(St,"$showContextMenuBtn$",i),I=()=>w(mi,"$isRewindableLive$",i),T=()=>w(ci,"$isActiveLive$",i),N=()=>w(os,"$graphIsOpened$",i),L=()=>w(No,"$contextMenuVisible$",i),E=()=>w(Bi,"$isFullscreen",i),P=()=>w(ro,"$autoplayNextEnabled",i),q=()=>w(n(lo),"$prevButton",i),H=()=>w(n(sn),"$replayButton",i),z=()=>w(n(Hi),"$playButton",i),j=()=>w(n(ji),"$nextButton",i),ae=()=>w(n(co),"$playPrevChapterButton",i),X=()=>w(n(Bn),"$seekToInteractiveButton",i),ne=()=>w(n(Hr),"$interactiveGraphButton",i),J=()=>w(n(Mi),"$liveButton",i),we=()=>w(n(bs),"$time",i),pe=()=>w(n(ns),"$episodes",i),re=()=>w(n(rs),"$vkLogo",i),_e=()=>w(n(Tr),"$volume",i),$e=()=>w(n(an),"$subtitles",i),ee=()=>w(n(sr),"$settings",i),Re=()=>w(n(Co),"$context",i),fe=()=>w(n(To),"$fullscreen",i),k=()=>w(n(ar),"$chromecast",i),We=()=>w(Do,"$additionalDesktopControlPanelRightButtons$",i),Te=()=>w(Fi,"$playerSize",i),Z=()=>w(tn,"$isInteractiveTime$",i),ie=()=>w(di,"$previewTrackActive",i),De=()=>w($i,"$settingsMenuVisible",i),Oe=()=>w(po,"$settingButtonRef$",i),it=()=>w(W,"$startedByKeyboard$",i),U=()=>w(ii,"$isAudioAvailable$",i),ke=()=>w(Ft,"$fakeIsPlaying$",i),Pe=()=>w(is,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>w(zr,"$isPreviewTrackHorizontallyAligned$",i),tt=()=>w($n,"$previewTrackAvailable",i),ye=()=>w(Vi,"$previewTrackDragInProgress",i),Ie=()=>w(Gt,"$adPosition",i),Be=()=>w(Ht,"$position$",i),Nt=()=>w(Ct,"$adDuration",i),mt=()=>w(ct,"$duration$",i),Bt=g(e,"playerControlsWrapperRef",15,void 0),dt=g(e,"playerControlsRef",15,void 0),wt=g(e,"isAds",3,!1),ti=g(e,"logoTargetUrl",3,""),Pt=g(e,"isOneVideoPlaylist",3,!1),Dt=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ft}=wo(),Y=ve(),Se=wo(),le=Mt(),he=Y.actions.internal.toggleMuted,Me=Y.actions.internal.togglePlay,rt=Y.actions.internal.pause,ft=Y.actions.internal.toggleSubtitle,ue=Y.actions.internal.checkFullscreenSupport,ze=(fl=Y.callbacks)==null?void 0:fl.onAudioDoesNotExistHint,Ge=(ga=Y.callbacks)==null?void 0:ga.onAudioDisabledHint,ct=Y.state.duration$,Ht=Y.state.positionWithScrubbing$,Ut=Y.state.playbackState$,ii=Y.state.isAudioAvailable$,hi=Y.state.isAudioDisabled,Gi=Y.state.isEnded$,Vt=Y.state.isLive$,ci=Y.state.isActiveLive$,mi=Y.state.isRewindableLive$,{isActive$:ht,type$:Xt}=Se.pictureInPicture$,$i=Y.ui.settingsMenu.visible$,Yi=Y.ui.settingsMenu.openedByBtnKeyboard$,Jt=Y.ui.controls,It=Y.actions.internal.getVideoEpisodes(),Ke=Y.state.chromecastState$,_i=Y.state.availableSubtitlesList$,So=Y.state.currentSubtitle$,Ro=Jt.disabledControls$,No=Y.ui.contextMenu.visible$,St=Y.ui.contextMenu.showContextMenuBtn$,zt=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,kt=Y.ui.controlBlocks,ri=Y.ui.previewTrackNotificationVisible,ut=Y.ui.t,Ct=Y.ads.duration,Gt=Y.ads.position,nt=Y.ads.playbackState,Bi=Y.ui.isFullscreen,Fi=Y.ui.playerSize,en=Y.ui.currentGridType$,Do=Y.ui.additionalDesktopControlPanelRightButtons$,ro=Y.ui.autoplayNextEnabled$,Ai=Y.actions.internal.getVideoElement,Rr=Y.actions.internal.replayInteractive,ho=Y.actions.internal.prevVideoClick,_o=Y.actions.internal.nextVideoClick,Pi=Y.state.isInteractive,tn=Y.state.isInteractiveTime$,Oo=Y.state.showInteractiveGraph,Vn=Y.state.showSeekToInteractive,br=Y.state.showPlayPrevChapter,$r=Y.state.showInteractiveTimeIndicator,_s=Y.state.playPrevChapterDisabledTooltip,is=Se.seekToInteractiveDisabledTooltip$,os=Se.graphIsOpened$,Zn=le.features.interactiveResponsiveUi,Nr=m(()=>r().has("EPISODE_BUTTON")),on=m(()=>r().has("GRAPH_BUTTON")),Rn=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),yr=m(()=>r().has("PLAY_BUTTON")),Bo=m(()=>r().has("REPLAY_BUTTON")),Jn=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),er=()=>Y.actions.internal.toggleChromecast(),Dr=m(()=>wt()?a()==="playing":l()===Za.PlaybackState.PLAYING),tr=m(()=>d().value!=="off"),so=m(()=>s()&&!wt()||Pi),Or=m(()=>Zn?n(so)&&io(u(),"m"):n(so)),ir=m(()=>!s()||Pi||wt()),mn=m(()=>io(u(),"m")),bo=m(()=>e.showNextPrevButtons&&io(u(),"m")&&!wt()&&e.nextButtonActive),xr=m(()=>e.showNextPrevButtons&&io(u(),"m")&&!wt()&&e.prevButtonActive),or=m(()=>!wt()&&!!f()),vt=m(()=>p()!==Za.ChromecastState.NOT_AVAILABLE&&!(v()&&$()===1)&&io(u(),"m")&&!Pi),si=m(()=>e.showAutoplayNext&&!Pt()&&io(u(),"s")),Br=m(()=>y().length>0&&io(u(),"m")),nr=m(()=>h()||x()),Fr=m(()=>io(u(),"s")&&!wt()),Fo=m(()=>!e.logoHidden&&!wt()),Nn=m(()=>le.features.fullscreen&&ue()&&(e.logoHidden||io(u(),Zn?"xs":"s"))&&!(v()&&$()===1)&&(Pi?Dt():!0)),vn=m(()=>(!f()||wt())&&!(le.features.interactiveHideTime&&Pi)),nn=m(()=>Oo&&io(u(),"m")),gn=m(()=>Zn?Vn&&io(u(),"s"):Vn),wr=m(()=>Zn?br&&io(u(),"s"):br),Ho=m(()=>!wt()&&!f()&&!!(It!=null&&It.length)&&n(mn)&&!n(Nr)),Uo=m(()=>!I()||!!T()),hn=m(()=>N()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Sr=m(()=>L()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),yi=(ot,pt)=>ot?pt&&pt===Za.PlaybackState.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),_n=m(()=>yi(n(Uo),l())),Dn=m(()=>le.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),rr=m(()=>n(tr)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Cr=m(()=>E()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),On=m(()=>p()===Za.ChromecastState.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),rn=m(()=>P()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),$t=K(0),xt=ai({}),ao=ai({}),lo=m(()=>Jt.prevButton),sn=m(()=>Jt.replayButton),Hi=m(()=>Jt.playButton),ji=m(()=>Jt.nextButton),co=m(()=>Jt.playPrevChapterButton),Bn=m(()=>Jt.seekToInteractiveButton),Hr=m(()=>Jt.interactiveGraphButton),Mi=m(()=>Jt.liveButton),bs=m(()=>Jt.time),ns=m(()=>Jt.episodes),rs=m(()=>Jt.vkLogo),Tr=m(()=>Jt.volume),an=m(()=>Jt.subtitles),sr=m(()=>Jt.settings),Co=m(()=>Jt.context),To=m(()=>Jt.fullscreen),ar=m(()=>Jt.chromecast),He=m(()=>({prevButton:q()?q().right-q().left:0,replayButton:H()?H().right-H().left:0,playButton:z()?z().right-z().left:0,nextButton:j()?j().right-j().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:ne()?ne().right-ne().left:0,liveButton:J()?J().right-J().left:0,time:we()?we().right-we().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:re()?re().right-re().left:0,volume:_e()?_e().right-_e().left:0,subtitles:$e()?$e().right-$e().left:0,settings:ee()?ee().right-ee().left:0,context:Re()?Re().right-Re().left:0,fullscreen:fe()?fe().right-fe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:We().length?We().reduce(ot=>[...ot,40],[]):[]})),At=K(0);Ne(()=>{(!n(At)||n(At)<n(He).time)&&Tt(()=>D(At,n(He).time,!0))});let xi=K(!1);Ne(()=>{let ot=0;n(Ho)&&(io(u(),"xl")?ot=n(He).time:ot=60);let pt=n(He).prevButton+n(He).playButton+n(He).nextButton+n(He).seekToInteractiveButton+n(He).interactiveGraphButton+n(He).liveButton+n(At)+ot;D(xi,n(vn)&&n($t)>=pt,!0)});let zo=m(()=>n(xi)&&io(u(),"m")),uo=(0,sv.debounceFn)(Jl,260),Io=(0,sv.debounceFn)(mp,260);Ne(()=>{Te(),Z(),ie(),uo(Ai(),Jt,xt,e.showControls),Io(Ai(),kt,ao,e.showControls)}),Ne(()=>{ao.bottom=Bt()});let po=de();Ne(()=>{De(),Oe()&&Tt(()=>Wl(Oe(),De(),Yi))});let Wo;Ne(()=>{it(),Tt(()=>pp(W,it(),Wo))});function Fn(){na({isAudioDisabled:hi,isAudioAvailable:U(),isAds:wt(),audioIsNotExistHintCallback:ze,audioDisabledHintCallback:Ge})&&he()}let ln=Pi?Rr:Me,$o=m(()=>ke()!==null),Xi=m(()=>n($o)?ke():n(Dr)),Hn=m(()=>n(Xi)?ut("tooltip_pause"):ut("tooltip_play")),Un=ut("tooltip_episodes"),zn=m(()=>{var ot,pt,Zi,Po;return n(xr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Rs.prevButton,buttonComponent:Ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ho.bind(null,!0)},tooltipEnabled:!((pt=(ot=Y.callbacks)==null?void 0:ot.uiInfo)!=null&&pt.onPrevButtonMouseEnter)&&!((Po=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&Po.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,vi,Ui;(Ui=(vi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onPrevButtonMouseEnter)==null||Ui.call(vi,jn(Ai(),xt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,vi,Ui;(Ui=(vi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onPrevButtonMouseLeave)==null||Ui.call(vi,jn(Ai(),xt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ir=m(()=>n(Or)?{id:"replayButton",type:"desktop-control-panel-left",weight:Rs.replayButton,buttonComponent:ed,buttonComponentProps:{disabled:n(Bo),click:ln},tooltipText:ut("tooltip_restart"),disabled:n(Bo)}:void 0),lr=m(()=>n(ir)?{id:"playButton",type:"desktop-control-panel-left",weight:Rs.playButton,buttonComponent:td,buttonComponentProps:{disabled:n(yr),isPlaying:n(Dr),click:Me},tooltipText:n(Hn),disabled:n(yr)}:void 0),$s=m(()=>{var ot,pt,Zi,Po;return n(bo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Rs.nextButton,buttonComponent:Ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:_o.bind(null,!0)},tooltipEnabled:!((pt=(ot=Y.callbacks)==null?void 0:ot.uiInfo)!=null&&pt.onNextButtonMouseEnter)&&!((Po=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&Po.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,vi,Ui;(Ui=(vi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onNextButtonMouseEnter)==null||Ui.call(vi,jn(Ai(),xt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,vi,Ui;(Ui=(vi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onNextButtonMouseLeave)==null||Ui.call(vi,jn(Ai(),xt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Je=m(()=>Pi&&n(wr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Rs.playPrevChapterButton,buttonComponent:xc,buttonComponentProps:{disabled:n(Jn),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(_s),disabled:n(Jn)}:void 0),Yt=m(()=>Pi&&n(gn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Rs.seekToInteractiveButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(Rn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:n(Rn),disabledTooltipContent:ut(Pe())}:void 0),Ci=m(()=>Pi&&n(nn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Rs.interactiveGraphButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(on),click:os.toggle,graphIsOpened:N()},tooltipText:n(hn)}:void 0),yo=m(()=>n(or)?{id:"liveButton",type:"desktop-control-panel-left",weight:Rs.liveButton,buttonComponent:Tc,buttonComponentProps:{isLiveActive:n(Uo),ariaLabel:n(_n)},tooltipText:n(_n),disabled:n(Uo)&&l()===Za.PlaybackState.PLAYING}:void 0),Ko=m(()=>[n(zn),n(Ir),n(lr),n($s),n(Je),n(Yt),n(Ci),n(yo)].filter(ot=>!!ot).sort(Ua)),Ur=m(()=>n(Fo)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ds.vkLogo,buttonComponent:mc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:rt},tooltipText:n(Dn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Eo=m(()=>n(si)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ds.autoplayNext,buttonComponent:wc,tooltipText:n(rn)}:void 0),dr=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ds.volume,buttonComponent:Lm,buttonComponentProps:{click:Fn,isAds:wt()}})),Wn=m(()=>n(Br)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ds.subtitles,buttonComponent:Em,buttonComponentProps:{isSubtitlesEnabled:n(tr),click:ft},tooltipText:n(rr)}:void 0),ca=m(()=>n(Fr)?{id:"settings",type:"desktop-control-panel-right",weight:Ds.settings,buttonComponent:Yl,buttonComponentProps:{ref$:po},tooltipText:De()?void 0:ut("tooltip_settings_off")}:void 0),Bs=m(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ds.context,buttonComponent:Wm,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:n(nr)?"":"out-of-view",tooltipText:n(Sr)}:void 0),Fs=m(()=>n(Nn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ds.fullscreen,buttonComponent:fc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Cr)}:void 0),bn=m(()=>n(vt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ds.chromecast,buttonComponent:gc,buttonComponentProps:{state:p(),click:er},tooltipText:n(On)}:void 0),at=m(()=>[n(Ur),n(Eo),n(dr),n(Wn),n(ca),n(Bs),n(Fs),n(bn),...We()].filter(ot=>!!ot).sort(Ua)),di=Y.ui.previewTrackActive,Vi=Y.ui.previewTrackDragInProgress,$n=Y.ui.previewTrackAvailable,zr=Y.ui.isPreviewTrackHorizontallyAligned,yn=m(()=>Ab({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>xt.timeline,isHorizontal:Ue()})),be=m(()=>n(yn).progressBarY),yt=m(()=>n(yn).controlsY),Ot=m(()=>n(yn).onPointerDown),ei=m(()=>n(yn).onPointerMove),Ti=m(()=>n(yn).onPointerUp),Ii=m(()=>n(yn).calculatedHeight),ki=m(()=>n(yn).closePreviewTrack);Ne(()=>{ie()?ri.set(!1):n(ki)()});let wi;Lt(()=>()=>wi&&clearTimeout(wi));let ss=ot=>{ie()||!tt()||(n(Ot)(ot),wi=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},Hs=()=>{ie()||n(Ti)(),wi&&clearTimeout(wi),ye()&&Y.actions.internal.previewTrackDragFinished()},dl=ot=>{n(ei)(ot),!ie()&&tt()&&!ie()&&ri.set(!0)},ua=()=>{ri.set(!1)};var pa=G2(),as=ce(pa);let ys;var fa=C(as);{var ma=ot=>{let pt=m(()=>n(be)()),Zi=m(()=>n(Ii)());rv(ot,{get animatedOffsetY(){return n(pt)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return wt()},onTimelineMove:dl,onTimelinePointerDown:ss,onTimelinePointerUp:Hs,onTimelinePointerLeave:ua,get previewTrackAvailable(){return tt()},get timelineRef(){return xt.timeline},set timelineRef(Po){xt.timeline=Po}})};R(fa,ot=>{e.showControls&&ot(ma)})}var xn=A(fa,2),xs=C(xn),cl=C(xs);bi(cl,17,()=>n(Ko),ot=>ot.id,(ot,pt)=>{fp(ot,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipEnabled(){return n(pt).tooltipEnabled},get mouseEnter(){return n(pt).mouseEnter},get mouseLeave(){return n(pt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(Zi){xt[n(pt).id]=Zi}})});var cr=A(cl,2);{var pd=ot=>{let pt=m(()=>!e.showControls),Zi=m(()=>wt()?Ie():Be()),Po=m(()=>wt()?Nt():mt());cc(ot,{get isHidden(){return n(pt)},isMobile:!1,get showDuration(){return n(zo)},get position(){return n(Zi)},get duration(){return n(Po)},get ref(){return xt.time},set ref(Ji){xt.time=Ji}})};R(cr,ot=>{n(vn)&&ot(pd)})}var ul=A(cr,2);let fd=m(()=>!n(Ho));Mo(ul,{className:"w-max",get disabled(){return n(fd)},get tooltipContent(){return Un},get tooltipVisible(){return e.showControls},get ref(){return xt.episodes},set ref(ot){xt.episodes=ot},children:(ot,pt)=>{var Zi=Ae(),Po=ce(Zi);{var Ji=vi=>{hc(vi,{get position(){return Be()},get duration(){return mt()},get timeCodes(){return It}})};R(Po,vi=>{n(Ho)&&vi(Ji)})}b(ot,Zi)},$$slots:{default:!0}}),S(xs);var va=A(xs,2);bi(va,21,()=>n(at),ot=>ot.id,(ot,pt)=>{var Zi=Ae(),Po=ce(Zi);{var Ji=Ui=>{fp(Ui,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(Us){xt[n(pt).id]=Us}})},vi=Ui=>{let Us=m(()=>!!n(pt).disabled);jm(Ui,{get id(){return n(pt).id},get testId(){return n(pt).testId},get icon(){return n(pt).icon},get ariaLabel(){return n(pt).ariaLabel},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(Us)},get onClick(){return n(pt).onClick},get disableMouseupTooltipShow(){return n(pt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return xt[n(pt).id]},set ref(vd){xt[n(pt).id]=vd}})};R(Po,Ui=>{Eb(n(pt))?Ui(Ji):Ui(vi,!1)})}b(ot,Zi)}),S(va),S(xn),Xe(xn,ot=>dt(ot),()=>dt()),S(as),Xe(as,ot=>Bt(ot),()=>Bt());var md=A(as,2);{var pl=ot=>{$c(ot,{get ref(){return xt.interactiveTimeIndicator},set ref(pt){xt.interactiveTimeIndicator=pt}})};R(md,ot=>{$r&&ot(pl)})}O((ot,pt)=>{ys=se(as,1,"wrapper-bottom s-1d",null,ys,ot),qe(xn,pt),xn.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ye()}),()=>`transform: translateY(${n(yt)()}px);`]),Pn(xs,"clientWidth",ot=>D($t,ot)),b(t,pa),F(),o()}var id=require("@vkontakte/videoplayer-core/es2018");var lv=require("@vkontakte/videoplayer-shared/es2018");var j2=M('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),X2=M('<img class="icon s-20" aria-hidden="true"/>'),Z2={hash:"s-20",code:".icon.s-20{height:24px!important;width:24px!important}.inner.s-20{background-color:var(--white);height:16px;width:16px}"};function dv(t,e){Q(t,Z2);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,lv.noop),r=m(()=>o()===lv.noop),a=m(()=>n(r)||i()),l=K(!1),d=()=>{D(l,!0)},s=m(()=>n(r)?"btn-full-opacity":"");qt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,f)=>{var p=Ae(),v=ce(p);{var $=h=>{var x=j2();b(h,x)},y=h=>{var x=X2();O(()=>Le(x,"src",e.iconUrl)),lt("error",x,d),ka(x),b(h,x)};R(v,h=>{n(l)?h($):h(y,!1)})}b(u,p)},$$slots:{default:!0}})}var J2=Ce('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function cv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=J2();b(e,o)},$$slots:{default:!0}})}var Rb=require("@vkontakte/videoplayer-shared/es2018");function gp(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Rb.noop),r=g(e,"ref",15,void 0),l=ve().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");qt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,f)=>{var p=Ae(),v=ce(p);{var $=h=>{cv(h,{})},y=h=>{aa(h,{get size(){return"24"}})};R(v,h=>{i()?h($):h(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var ew=Ce('<path d="M11.64 12.37 9.07 9.8h1.03a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),tw=Ce('<path d="m6.36 9.63 2.57 2.57H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),iw=Ce('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function uv(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=iw(),d=A(ce(l));{var s=f=>{var p=ew();b(f,p)},u=f=>{var p=tw();b(f,p)};R(d,f=>{i()?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}var Nb=require("@vkontakte/videoplayer-shared/es2018");function pv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Nb.noop),a=G("menu_pip");qt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{uv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var fv=require("@vkontakte/videoplayer-shared/es2018");var ow=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},nw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},rw=M("<div><!></div>"),sw=M("<div><!></div>"),aw=M("<div><!></div>"),lw=M("<!> <!> <!>",1),dw=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),cw=M('<div class="wrapper-middle s-1c"><!></div>'),uw=M("<div><!></div> <!> <div><!></div>",1),pw=M('<div aria-hidden="true">·</div> <!>',1),fw=M('<!> <!> <div><div><div class="controls mobile s-1c" data-testid="bottom-controls"><div class="controls-group contain s-1c"><!> <!> <!> <!></div> <div class="controls-group s-1c"><!> <!> <!></div></div> <!></div></div> <!>',1),mw={hash:"s-1c",code:".wrapper-bottom.s-1c{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-1c>:where(.s-1c){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-1c{height:9px;padding:0 4px 4px}.wrapper-middle.s-1c{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-1c,.wrapper-top-right.s-1c{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-1c{right:8px;top:4px}.wrapper-top-left.s-1c{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-1c,.wrapper-middle-left-second.s-1c,.wrapper-middle-right.s-1c{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-1c{left:12px}.wrapper-middle-left-second.s-1c{left:64px}.wrapper-middle-right.s-1c{right:12px}.controls.s-1c{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-1c,.controls-group.s-1c{display:flex}.controls-group.contain.s-1c{min-width:0}.controls-group.s-1c >:not(:first-child){margin-left:8px}.hidden.s-1c{opacity:0;visibility:hidden}.controls-hidden.s-1c{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1c{transition:none}.overlay-mobile.s-1c{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-1c,.wrapper-top-right.fullscreen.s-1c{top:16px}.controls-wrapper.fullscreen.s-1c{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-1c{left:44px;top:12px}.wrapper-top-right.fullscreen.s-1c{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-1c{left:44px}.wrapper-middle-left-second.fullscreen.s-1c{left:96px}.wrapper-middle-right.fullscreen.s-1c{right:44px}.controls-wrapper.fullscreen.s-1c{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function mv(t,e){var To,ar;B(e,!0),Q(t,mw);let[i,o]=Ve(),r=()=>w(Fi,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(Jt,"$disabledControls$",i),l=()=>w(Pt,"$playbackState$",i),d=()=>w(Ro,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(St,"$playerSize",i),f=()=>w(ft,"$scrubbingInProgress",i),p=()=>w($i,"$chromecastState$",i),v=()=>w(ze,"$isPictureInPictureActive",i),$=()=>w(Ge,"$pictureInPictureType$",i),y=()=>w(ue,"$mobileNotReportControlHidden$",i),h=()=>w(mi,"$chromecastHidden",i),x=()=>w(dt,"$playerPhase",i),I=()=>w(Vt,"$pipHidden",i),T=()=>w(Ke,"$currentGridType$",i),N=()=>w(hi,"$vkLogoHidden",i),L=()=>w(ii,"$volumeHidden",i),E=()=>w(Se,"$isLive$",i),P=()=>w(ct,"$settingsMenuVisible",i),q=()=>w(rt,"$isRewindableLive$",i),H=()=>w(Me,"$isActiveLive$",i),z=()=>w(Dt,"$isAudioAvailable$",i),j=()=>w(he,"$muted$",i),ae=()=>w(le,"$volume$",i),X=()=>w(ut,"$isInteractiveTime$",i),ne=()=>w(gn,"$settingButtonRef$",i),J=()=>w(It,"$startedByKeyboard$",i),we=()=>w(No,"$isFullscreen",i),pe=()=>w(zt,"$additionalButtons$",i),re=()=>w(Gi,"$autoplayNextToggleHidden",i),_e=()=>w(Yi,"$crashed$",i),$e=()=>w(ci,"$settingsHidden",i),ee=()=>w(en,"$graphIsOpened$",i),Re=()=>w(So,"$adPosition",i),fe=()=>w(_i,"$adDuration",i),k=()=>w(ti,"$position$",i),We=()=>w(wt,"$duration$",i),Te=g(e,"playerControlsWrapperRef",15,void 0),Z=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),De=g(e,"logoTargetUrl",3,""),Oe=g(e,"isOneVideoPlaylist",3,!1),it=g(e,"customFullscreenSupported",3,!0),U=ve(),ke=wo(),Pe=Mt(),Ue=U.actions.internal.toggleMuted,tt=U.actions.internal.togglePlay,ye=U.actions.internal.pause,Ie=U.actions.internal.prevVideoClick,Be=U.actions.internal.nextVideoClick,Nt=U.actions.internal.checkFullscreenSupport,mt=(To=U.callbacks)==null?void 0:To.onAudioDoesNotExistHint,Bt=(ar=U.callbacks)==null?void 0:ar.onAudioDisabledHint,dt=U.playerPhase,wt=U.state.duration$,ti=U.state.positionWithScrubbing$,Pt=U.state.playbackState$,Dt=U.state.isAudioAvailable$,Ft=U.state.isAudioDisabled,Y=U.state.isEnded$,Se=U.state.isLive$,le=U.state.volume$,he=U.state.muted$,Me=U.state.isActiveLive$,rt=U.state.isRewindableLive$,ft=U.ui.scrubbingInProgress,ue=U.ui.mobileNotReportControlHidden$,{isActive$:ze,type$:Ge}=ke.pictureInPicture$,ct=U.ui.settingsMenu.visible$,Ht=U.ui.settingsMenu.openedByBtnKeyboard$,Ut=U.ui.controls,{volume:ii,vkLogo:hi,autoplayNextToggle:Gi,pip:Vt,settings:ci,chromecast:mi}=U.ui.hiddenControls,ht=U.actions.internal.getVideoEpisodes(),Xt=U.webApi.pictureInPictureApi,$i=U.state.chromecastState$,Yi=U.state.crashed$,Jt=Ut.disabledControls$,It=U.ui.startedByKeyboard$,Ke=U.ui.currentGridType$,_i=U.ads.duration,So=U.ads.position,Ro=U.ads.playbackState,No=U.ui.isFullscreen,St=U.ui.playerSize,zt=U.ui.additionalButtonsDeprecated$,W=U.actions.internal.getVideoElement,kt=U.actions.internal.replayInteractive,ri=U.state.isInteractive,ut=U.state.isInteractiveTime$,Ct=U.state.showInteractiveGraph,Gt=U.state.showSeekToInteractive,nt=U.state.showPlayPrevChapter,Bi=U.state.showInteractiveTimeIndicator,Fi=ke.seekToInteractiveDisabledTooltip$,en=ke.graphIsOpened$,Do=U.ui.controlBlocks,ro=m(()=>G(U.state.playPrevChapterDisabledTooltip)),Ai=m(()=>G(r())),Rr=m(()=>a().has("EPISODE_BUTTON")),ho=m(()=>a().has("GRAPH_BUTTON")),_o=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Pi=m(()=>a().has("PLAY_BUTTON")),tn=m(()=>a().has("REPLAY_BUTTON")),Oo=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Vn=m(()=>l()===id.PlaybackState.PLAYING),br=m(()=>d()==="paused"),$r=m(()=>s()&&!ie()&&!ri),_s=m(()=>!s()||ie()),is=m(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),os=m(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Zn=m(()=>u().width>300),Nr=m(()=>u().width>400),on=m(f),Rn=m(()=>p()!==id.ChromecastState.NOT_AVAILABLE&&!(v()&&$()===1)&&!y()&&!ri&&!h()),yr=m(()=>x()==="LiveWaitingStart"),Bo=m(()=>!!Xt&&p()!==id.ChromecastState.CONNECTED&&!y()&&($()===1&&n(yr)||!n(yr))&&!n(on)&&!ri&&!I()),Jn=K(!1);Lt(()=>{let He=Xt==null?void 0:Xt.info.isActive$.subscribe(At=>D(Jn,At,!0));return()=>He==null?void 0:He.unsubscribe()});let er=m(()=>!n(on)&&io(T(),"s")),Dr=m(()=>!e.logoHidden&&u().width>350&&!N()),tr=m(()=>Pe.features.fullscreen&&Nt()&&!(v()&&$()===1)&&(ri?it():!0)&&!n(on)&&!n(Jn)),so=m(()=>!L()&&!n(on)),Or=m(()=>(!E()||ie())&&u().width>260&&!n(on)&&!(Pe.features.interactiveHideTime&&ri)),ir=m(()=>P()||e.showControls),mn=m(()=>!ie()&&!E()&&!!(ht!=null&&ht.length)&&n(Zn)&&!n(Rr)&&!n(on)),bo=m(()=>!q()||!!H()),xr=m(()=>Ct&&io(T(),"m")),or=m(()=>!z()||j()||ae()===0),vt=ai({}),si=ai({}),Br=(0,fv.debounceFn)(Jl,260),nr=(0,fv.debounceFn)(mp,260);Ne(()=>{u(),X(),Br(W(),Ut,vt,e.showControls),nr(W(),Do,si,e.showControls)});let Fr=()=>U.actions.internal.toggleChromecast();async function Fo(){Xt!=null&&Xt.isActive()?await(Xt==null?void 0:Xt.exit()):await(Xt==null?void 0:Xt.request())}function Nn(){na({isAudioDisabled:Ft,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:mt,isAds:ie()})&&Ue()}let vn=K(""),nn=(He,At)=>{if(!He){D(vn,G("tooltip_live"),!0);return}At&&At===id.PlaybackState.PAUSED&&D(vn,G("tooltip_play"),!0)};Ne(()=>{nn(n(bo),l())});let gn=de();Ne(()=>{ne()&&Wl(ne(),P(),Ht)}),Ne(()=>{pp(It,J(),vt.playButton)});var wr=fw(),Ho=ce(wr);{var Uo=He=>{var At=dw(),xi=ce(At);let zo;var uo=A(xi,2);let Io;Xe(uo,at=>si.topLeft=at,()=>si==null?void 0:si.topLeft);var po=A(uo,2);let Wo;var Fn=C(po);bi(Fn,1,pe,({iconUrl:at,ariaLabel:di,testId:Vi,onClick:$n,tooltip:zr})=>at,(at,di)=>{let Vi=()=>n(di).iconUrl,$n=()=>n(di).ariaLabel,zr=()=>n(di).testId,yn=()=>n(di).onClick,be=()=>n(di).tooltip,yt=m(()=>{var Ot;return(Ot=$n())!=null?Ot:be()});dv(at,{get iconUrl(){return Vi()},get ariaLabel(){return n(yt)},get testId(){return zr()},get onClick(){return yn()}})});var ln=A(Fn,2);{var $o=at=>{wc(at,{get ref(){return vt.autoplayNextToggle},set ref(di){vt.autoplayNextToggle=di}})};R(ln,at=>{e.showAutoplayNext&&!Oe()&&!re()&&at($o)})}var Xi=A(ln,2);{var Hn=at=>{gc(at,{isMobile:!0,click:Fr,get state(){return p()},get ref(){return vt.chromecast},set ref(di){vt.chromecast=di}})};R(Xi,at=>{n(Rn)&&at(Hn)})}var Un=A(Xi,2);{var zn=at=>{pv(at,{click:Fo,get isPictureInPictureActive(){return v()},get ref(){return vt.pip},set ref(di){vt.pip=di}})};R(Un,at=>{n(Bo)&&at(zn)})}var Ir=A(Un,2);{var lr=at=>{Yl(at,{get ref$(){return gn}})};R(Ir,at=>{_e()&&!$e()&&at(lr)})}var $s=A(Ir,2);{var Je=at=>{mc(at,{get click(){return ye},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(di){vt.vkLogo=di}})};R($s,at=>{n(Dr)&&at(Je)})}S(po),Xe(po,at=>si.topRight=at,()=>si==null?void 0:si.topRight);var Yt=A(po,2);let Ci;var yo=C(Yt);{var Ko=at=>{let di=m(()=>Ie.bind(null,!0));Ya(at,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(Vi){vt.prevButton=Vi}})};R(yo,at=>{n(is)&&at(Ko)})}var Ur=A(yo,2);{var Eo=at=>{td(at,{get disabled(){return n(Pi)},get click(){return tt},isMobile:!0,get isPlaying(){return n(Vn)},get ref(){return vt.playButton},set ref(di){vt.playButton=di}})};R(Ur,at=>{n(_s)&&at(Eo)})}var dr=A(Ur,2);{var Wn=at=>{ed(at,{get disabled(){return n(tn)},get click(){return tt},isMobile:!0,get ref(){return vt.replayButton},set ref(di){vt.replayButton=di}})};R(dr,at=>{n($r)&&at(Wn)})}var ca=A(dr,2);{var Bs=at=>{let di=m(()=>Be.bind(null,!0));Ya(at,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(Vi){vt.nextButton=Vi}})};R(ca,at=>{n(os)&&at(Bs)})}S(Yt),Xe(Yt,at=>si.middle=at,()=>si==null?void 0:si.middle);var Fs=A(Yt,2);{var bn=at=>{var di=lw(),Vi=ce(di);{var $n=Ot=>{var ei=rw();let Ti;ei.__click=[ow,Oo,e,ro];var Ii=C(ei);let ki=m(()=>!e.showControls);xc(Ii,{get hidden(){return n(ki)},get disabled(){return n(Oo)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(wi){vt.playPrevChapterButton=wi}}),S(ei),O(wi=>Ti=se(ei,1,"wrapper-middle-left s-1c",null,Ti,wi),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(Ot,ei)};R(Vi,Ot=>{nt&&Ot($n)})}var zr=A(Vi,2);{var yn=Ot=>{var ei=sw();let Ti;var Ii=C(ei);let ki=m(()=>!e.showControls&&!ee());Cc(Ii,{get hidden(){return n(ki)},get disabled(){return n(ho)},get click(){return en.toggle},get graphIsOpened(){return ee()},get ref(){return vt.interactiveGraphButton},set ref(wi){vt.interactiveGraphButton=wi}}),S(ei),O(wi=>Ti=se(ei,1,Hd(nt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1c",Ti,wi),[()=>({fullscreen:we(),hidden:!e.showControls&&!ee()})]),b(Ot,ei)};R(zr,Ot=>{n(xr)&&Ot(yn)})}var be=A(zr,2);{var yt=Ot=>{var ei=aw();let Ti;ei.__click=[nw,_o,e,Ai];var Ii=C(ei);let ki=m(()=>!e.showControls);Sc(Ii,{get hidden(){return n(ki)},get disabled(){return n(_o)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(wi){vt.seekToInteractiveButton=wi}}),S(ei),O(wi=>Ti=se(ei,1,"wrapper-middle-right s-1c",null,Ti,wi),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(Ot,ei)};R(be,Ot=>{Gt&&Ot(yt)})}b(at,di)};R(Fs,at=>{ri&&!f()&&at(bn)})}O((at,di,Vi,$n)=>{zo=se(xi,1,"overlay-mobile s-1c",null,zo,at),Io=se(uo,1,"wrapper-top-left s-1c",null,Io,di),Wo=se(po,1,"wrapper-top-right s-1c",null,Wo,Vi),Ci=se(Yt,1,"wrapper-middle s-1c",null,Ci,$n)},[()=>({hidden:!n(ir)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(He,At)};R(Ho,He=>{ie()||He(Uo)})}var hn=A(Ho,2);{var Sr=He=>{var At=uw(),xi=ce(At);let zo;var uo=C(xi);gp(uo,{get muted(){return j()},click:Nn,get ref(){return vt.volume},set ref($o){vt.volume=$o}}),S(xi);var Io=A(xi,2);{var po=$o=>{var Xi=cw(),Hn=C(Xi);let Un=m(()=>!n(br));td(Hn,{get disabled(){return n(Pi)},get click(){return tt},isMobile:!0,get isPlaying(){return n(Un)},get ref(){return vt.playButton},set ref(zn){vt.playButton=zn}}),S(Xi),b($o,Xi)};R(Io,$o=>{n(br)&&$o(po)})}var Wo=A(Io,2);let Fn;var ln=C(Wo);Ic(ln,{get position(){return Re()},get duration(){return fe()}}),S(Wo),O(($o,Xi)=>{zo=se(xi,1,"wrapper-top-right s-1c",null,zo,$o),Fn=se(Wo,1,"wrapper-bottom ads-timeline-mobile s-1c",null,Fn,Xi)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(He,At)};R(hn,He=>{ie()&&d()!=="inactive"&&He(Sr)})}var yi=A(hn,2);let _n;var Dn=C(yi);let rr;var Cr=C(Dn),On=C(Cr),rn=C(On);{var $t=He=>{Mo(He,{get disabled(){return n(tn)},get ref(){return vt.replayButton},set ref(At){vt.replayButton=At},children:(At,xi)=>{ed(At,{get disabled(){return n(tn)},get click(){return kt}})},$$slots:{default:!0}})};R(rn,He=>{ri&&He($t)})}var xt=A(rn,2);{var ao=He=>{Mo(He,{get ref(){return vt.liveButton},set ref(At){vt.liveButton=At},children:(At,xi)=>{Tc(At,{get isLiveActive(){return n(bo)},isMobile:!0,get ariaLabel(){return n(vn)}})},$$slots:{default:!0}})};R(xt,He=>{!ie()&&E()&&He(ao)})}var lo=A(xt,2);{var sn=He=>{let At=m(()=>ie()?Re():k()),xi=m(()=>ie()?fe():We()),zo=m(()=>!e.showControls);cc(He,{get showDuration(){return n(Nr)},get position(){return n(At)},get duration(){return n(xi)},isMobile:!0,get isHidden(){return n(zo)},get ref(){return vt.time},set ref(uo){vt.time=uo}})};R(lo,He=>{n(Or)&&He(sn)})}var Hi=A(lo,2);let ji=m(()=>!n(mn));Mo(Hi,{className:"w-max",get disabled(){return n(ji)},get ref(){return vt.episodes},set ref(He){vt.episodes=He},children:(He,At)=>{var xi=Ae(),zo=ce(xi);{var uo=Io=>{var po=pw(),Wo=A(ce(po),2);hc(Wo,{get position(){return k()},get duration(){return We()},get timeCodes(){return ht}}),b(Io,po)};R(zo,Io=>{n(mn)&&Io(uo)})}b(He,xi)},$$slots:{default:!0}}),S(On),Xe(On,He=>si.bottomLeft=He,()=>si==null?void 0:si.bottomLeft);var co=A(On,2),Bn=C(co);{var Hr=He=>{Mo(He,{get ref(){return vt.volume},set ref(At){vt.volume=At},children:(At,xi)=>{gp(At,{get muted(){return n(or)},click:Nn})},$$slots:{default:!0}})};R(Bn,He=>{n(so)&&He(Hr)})}var Mi=A(Bn,2);{var bs=He=>{Mo(He,{get ref(){return vt.settings},set ref(At){vt.settings=At},children:(At,xi)=>{Yl(At,{get ref$(){return gn}})},$$slots:{default:!0}})};R(Mi,He=>{n(er)&&He(bs)})}var ns=A(Mi,2);{var rs=He=>{Mo(He,{get ref(){return vt.fullscreen},set ref(At){vt.fullscreen=At},children:(At,xi)=>{fc(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};R(ns,He=>{n(tr)&&He(rs)})}S(co),Xe(co,He=>si.bottomRight=He,()=>si==null?void 0:si.bottomRight),S(Cr),Xe(Cr,He=>Z(He),()=>Z());var Tr=A(Cr,2);let an=m(()=>!e.showControls);Xa(Tr,{get isHidden(){return n(an)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return q()},get ref(){return vt.timeline},set ref(He){vt.timeline=He}}),S(Dn),Xe(Dn,He=>si.bottom=He,()=>si==null?void 0:si.bottom),S(yi),Xe(yi,He=>Te(He),()=>Te());var sr=A(yi,2);{var Co=He=>{$c(He,{get ref(){return vt.interactiveTimeIndicator},set ref(At){vt.interactiveTimeIndicator=At}})};R(sr,He=>{Bi&&He(Co)})}O((He,At)=>{_n=se(yi,1,"wrapper-bottom mobile s-1c",null,_n,He),rr=se(Dn,1,"controls-wrapper s-1c",null,rr,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,wr),F(),o()}Ye(["click"]);function Ec(t,e){B(e,!0);let[i,o]=Ve(),r=()=>w(I,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),f=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),v=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,vv.noop),h=g(e,"onDisabledSeekToInteractiveClick",3,vv.noop),I=ve().ui.isMobile,T=K(!1);Lt(()=>{let P=setTimeout(()=>D(T,!0),0);return()=>clearTimeout(P)});var N=Ae(),L=ce(N);{var E=P=>{var q=Ae(),H=ce(q);{var z=ae=>{mv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return h()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},j=ae=>{av(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};R(H,ae=>{r()?ae(z):ae(j,!1)})}b(P,q)};R(L,P=>{n(T)&&P(E)})}b(t,N),F(),o()}var vw=Ce('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Pc(t,e){B(e,!0);let i=m(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=m(()=>`${pn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=vw();b(r,l)},$$slots:{default:!0}}),F()}var gw=Ce('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function gv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=m(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=gw();b(a,d)},$$slots:{default:!0}}),F()}var hw=M('<span class="hot-key-helpers-text s-y"> </span>'),_w=M('<div data-testid="hotkey-helper-icon" class="s-y"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),bw=M("<div><!></div>"),$w={hash:"s-y",code:'.hot-key-helpers-container.s-y{align-items:center;animation:s-y-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-y{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-y{left:calc(75% - 100px)}.hot-key-helpers-text.s-y{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-y{animation:s-y-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-y-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-y-fadeOut{0%{opacity:1}to{opacity:0}}'};function hv(t,e){B(e,!0),Q(t,$w);let[i,o]=Ve(),r=()=>w(e.data,"$data",i),a=ve(),{features:l}=Mt(),d=a.ui.t,s=m(()=>!r()),u=m(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),f=m(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=m(()=>{var I;return(I=r())==null?void 0:I.type}),v=m(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var $=bw();let y;var h=C($);{var x=I=>{var T=_w(),N=ce(T),L=C(N);{var E=Z=>{let ie=m(()=>n(p)==="BACKWARD_SEEK");gv(Z,{get reversed(){return n(ie)},shadow:!0})};R(L,Z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&Z(E)})}var P=A(L,2);{var q=Z=>{Ns(Z,{get size(){return"48"},shadow:!0})};R(P,Z=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&Z(q)})}var H=A(P,2);{var z=Z=>{An(Z,{get size(){return"48"},shadow:!0})};R(H,Z=>{n(p)==="PLAY"&&!l.playbackStatusShow&&Z(z)})}var j=A(H,2);{var ae=Z=>{yc(Z,{get size(){return"48"},shadow:!0})};R(j,Z=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&Z(ae)})}var X=A(j,2);{var ne=Z=>{sa(Z,{get size(){return"48"},type:"off",shadow:!0})};R(X,Z=>{n(p)==="SUBTITLES_OFF"&&Z(ne)})}var J=A(X,2);{var we=Z=>{sa(Z,{get size(){return"48"},shadow:!0})};R(J,Z=>{n(p)==="SUBTITLES_ON"&&Z(we)})}var pe=A(J,2);{var re=Z=>{let ie=m(()=>n(p)==="RATE_DOWN");Pc(Z,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};R(pe,Z=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&Z(re)})}var _e=A(pe,2);{var $e=Z=>{let ie=m(()=>n(p)==="EPISODE_PREV");la(Z,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};R(_e,Z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&Z($e)})}var ee=A(_e,2);{var Re=Z=>{aa(Z,{get size(){return"48"},volume:0,shadow:!0})};R(ee,Z=>{n(p)==="MUTE"&&Z(Re)})}var fe=A(ee,2);{var k=Z=>{aa(Z,{get size(){return"48"},volume:1,shadow:!0})};R(fe,Z=>{n(p)==="VOLUME"&&Z(k)})}S(N);var We=A(N,2);{var Te=Z=>{var ie=hw(),De=C(ie,!0);S(ie),O(()=>me(De,n(v))),b(Z,ie)};R(We,Z=>{n(v)&&Z(Te)})}O(()=>Le(N,"data-type",n(p))),b(I,T)};R(h,I=>{!n(s)&&n(p)&&I(x)})}S($),O(I=>y=se($,1,"hot-key-helpers-container s-y",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,$),F(),o()}var yw=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},xw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},ww=M('<div tabindex="0" role="button"><div class="button-block s-q" aria-hidden="true"><div class="button-row s-q"><div class="button button-up s-q"><!></div> <div class="button button-right s-q"><!></div></div> <div class="button-row s-q"><div class="button button-left s-q"><!></div> <div class="button button-down s-q"><!></div></div></div></div>'),Sw={hash:"s-q",code:".immersive-controls.s-q{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-q{left:20px;top:50px}.button-block.s-q{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-q{display:flex;flex-direction:row;position:relative}.button.s-q{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-q svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-q svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-q svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-q svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-q svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-q:hover svg{opacity:1}"};function kc(t,e){B(e,!0),Q(t,Sw);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=G("aria_label_spherical_control");var p=ww();let v;p.__keydown=[yw,r,a,l,s,d],p.__keyup=[xw,r,u];var $=C(p),y=C($),h=C(y);h.__mousedown=a,h.__mouseup=u;var x=C(h);Mr(x,{direction:"up",useBtnColor:!0}),S(h);var I=A(h,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Mr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var N=A(y,2),L=C(N);L.__mousedown=s,L.__mouseup=u;var E=C(L);Mr(E,{direction:"up",useBtnColor:!0}),S(L);var P=A(L,2);P.__mousedown=l,P.__mouseup=u;var q=C(P);Mr(q,{direction:"up",useBtnColor:!0}),S(P),S(N),S($),S(p),O(H=>{v=se(p,1,"immersive-controls s-q",null,v,H),Le(p,"aria-label",f)},[()=>({"m-shifted":i()})]),lt("mouseleave",h,u),lt("mouseleave",I,u),lt("mouseleave",L,u),lt("mouseleave",P,u),b(t,p),F()}Ye(["keydown","keyup","mousedown","mouseup"]);var Os=require("@vkontakte/videoplayer-shared/es2018");var Db=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var hp=class{constructor(){this.flickeringTimeout=Db(1e3);this.subscriptions=new Os.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Os.ValueSubject([]);this.captionsPrepared$=new Os.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Os.filter)(()=>this.isEnabled()),(0,Os.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Cw=M('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Tw=M('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),Iw=M('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Ew=M('<div><span class="caption s-b"><!></span></div>'),Pw=M("<div><!></div>"),kw={hash:"s-b",code:".subtitles-container.s-b{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-b{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-b{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-b .subtitles-caption:where(.s-b){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-b{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-b{bottom:8%}.subtitles-container.auto.s-b .subtitles-caption:where(.s-b){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-b{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-b .caption:where(.s-b){width:100%}.caption-line.s-b{display:block;text-align:center}.subtitles-container.auto.s-b .caption-line:where(.s-b){text-align:left}.caption-segment.s-b{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function el(t,e){B(e,!0),Q(t,kw);let[i,o]=Ve(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w(h,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),f=ve(),p=Mt(),v=f.state.currentSubtitle$,$=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,h=f.ui.isFullscreen,x=f.ui.previewTrackActive,I=m(()=>!!r().isAuto),T=m(()=>!!a()),N=m(()=>e.playerSize.width*.02),L=m(()=>u()&&!l()||n(N)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(N)),E=K(null);Ne(()=>{var X,ne,J;(X=n(E))==null||X.setIsAuto(n(I)),(ne=n(E))==null||ne.setIsLive(n(T)),(J=n(E))==null||J.setCaptions(e.captions)});let P=K(ai([[]]));Lt(()=>{D(E,new hp().subscribe(),!0);let X=n(E).captionsPrepared$.subscribe(ne=>{D(P,ne,!0)});return()=>{var ne;(ne=n(E))==null||ne.destroy(),X.unsubscribe()}}),Lt(()=>{if(n(I)){let X=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else $.set(!1)});let q=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=Pw();let z;var j=C(H);{var ae=X=>{var ne=Ew();let J;var we=C(ne),pe=C(we);{var re=$e=>{var ee=Cw(),Re=C(ee),fe=C(Re,!0);S(Re),S(ee),O(k=>{var We;qe(Re,`font-size: ${(We=n(L))!=null?We:""}px`),me(fe,k)},[()=>G("subtitles_auto_caption")]),b($e,ee)},_e=($e,ee)=>{{var Re=k=>{var We=Ae(),Te=ce(We);bi(Te,17,()=>n(P),Bd,(Z,ie)=>{var De=Tw(),Oe=C(De);bi(Oe,21,()=>n(ie),({value:it,timeAppeared:U})=>U,(it,U)=>{let ke=()=>n(U).value,Pe=()=>n(U).timeAppeared;var Ue=Ae(),tt=ce(Ue);{var ye=Ie=>{var Be=fs();O(()=>me(Be,ke())),b(Ie,Be)};R(tt,Ie=>{(!Pe()||Pe()<=e.position)&&Ie(ye)})}b(it,Ue)}),S(Oe),S(De),O(()=>{var it;return qe(Oe,`font-size: ${(it=n(L))!=null?it:""}px`)}),b(Z,De)}),b(k,We)},fe=k=>{var We=Ae(),Te=ce(We);bi(Te,17,()=>e.captions,({value:Z})=>Z,(Z,ie)=>{let De=()=>n(ie).value;var Oe=Iw(),it=C(Oe),U=C(it,!0);S(it),S(Oe),O(()=>{var ke;qe(it,`font-size: ${(ke=n(L))!=null?ke:""}px`),me(U,De())}),b(Z,Oe)}),b(k,We)};R($e,k=>{var We;n(I)&&((We=n(P))!=null&&We.length)?k(Re):k(fe,!1)},ee)}};R(pe,$e=>{n(I)&&s()?$e(re):$e(_e,!1)})}S(we),S(ne),O($e=>{var ee;J=se(ne,1,"subtitles-caption s-b",null,J,$e),qe(ne,`--subtitles-caption-margin: ${(ee=n(q))!=null?ee:""}%`)},[()=>({mobile:u()})]),b(X,ne)};R(j,X=>{var ne;(e.captions.length||(ne=n(P))!=null&&ne.length)&&X(ae)})}S(H),O(X=>z=se(H,1,"subtitles-container s-b",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,H),F(),o()}var Ob=require("@vkontakte/videoplayer-core/es2018");var Aw=M('<div class="text s-p"> </div>'),Lw=M('<div><div class="icon_wrapper s-p"><!></div> <!></div>'),Mw={hash:"s-p",code:".wrapper.s-p{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-p{background-size:cover}.icon_wrapper.s-p{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-p{margin-top:20px}"};function Ac(t,e){B(e,!0),Q(t,Mw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Mt();var r=Lw();let a;r.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},r.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)},r.__dblclick=function(...f){var p;(p=e.onDblClick)==null||p.apply(this,f)};var l=C(r),d=C(l);vc(d,{get size(){return"48"},get iconState(){return Ob.ChromecastState.CONNECTED}}),S(l);var s=A(l,2);{var u=f=>{var p=Aw(),v=C(p);S(p),O(()=>{var $;return me(v,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(f,p)};R(s,f=>{i()&&f(u)})}S(r),O(f=>{a=se(r,1,"wrapper s-p",null,a,f),qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}Ye(["contextmenu","click","dblclick"]);var Vw=Ce('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function _v(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Vw();b(e,o)},$$slots:{default:!0}})}var Rw=M('<div class="container s-5"><!></div>'),Nw={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function tl(t){Q(t,Nw);var e=Rw(),i=C(e);_v(i,{}),S(e),b(t,e)}var Dw=M('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),Ow=M('<div data-testid="unstarted-thumb"><!></div>'),Bw={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function il(t,e){B(e,!0),Q(t,Bw);let i=g(e,"iconVisible",3,!0),o=ve(),r=Mt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var h;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(h=e.startVideo)==null||h.call(e))},s=$=>{var y,h;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(h=e.onClick)==null||h.call(e,$)};var u=Ow();let f;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=C(u);{var v=$=>{var y=Dw();y.__keydown=d;var h=A(C(y),2);An(h,{get size(){return"48"}}),S(y),O(()=>Le(y,"aria-label",l)),b($,y)};R(p,$=>{i()&&$(v)})}return S(u),O($=>{f=se(u,1,"container s-a",null,f,$),qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}Ye(["click","contextmenu","keydown"]);var Fw=M('<span class="text s-x"> </span>'),Hw=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Uw=M('<a target="_blank" class="link s-x"><!></a>'),zw=M('<div data-testid="video_title"><!></div>'),Ww={hash:"s-x",code:".title.s-x{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-x,.title.s-x{color:var(--white)}.link.s-x{pointer-events:auto;text-decoration:none}.link.s-x:hover{text-decoration:underline}.text.s-x{pointer-events:auto}.size-sm.s-x{font-size:14px;font-weight:500;line-height:18px}.hidden.s-x{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function bv(t,e){var y;B(e,!0),Q(t,Ww);let i=h=>{var x=Fw(),I=C(x,!0);S(x),Xe(x,T=>l(T),()=>l()),O(()=>me(I,o())),lt("mouseenter",x,function(...T){var N;(N=e.onMouseEnter)==null||N.apply(this,T)}),lt("mouseleave",x,function(...T){var N;(N=e.onMouseLeave)==null||N.apply(this,T)}),b(h,x)},o=g(e,"title",3,""),r=g(e,"isHidden",3,!1),a=g(e,"size",3,"md"),l=g(e,"ref",15),d=K(void 0);Lt(()=>{var x;requestAnimationFrame(()=>{var I;(I=e.onVisibilityChanged)==null||I.call(e,!0)});function h(I){var T;I.propertyName==="transform"&&((T=e.onVisibilityChanged)==null||T.call(e,!r()))}return(x=n(d))==null||x.addEventListener("transitionend",h),()=>{var I;return(I=n(d))==null?void 0:I.removeEventListener("transitionend",h)}});let s=(y=e.getVideoDeeplink)==null?void 0:y.call(e);var u=zw();let f;var p=C(u);{var v=h=>{var x=Uw();x.__click=[Hw,e];var I=C(x);i(I),S(x),O(()=>Le(x,"href",s||"")),b(h,x)},$=h=>{i(h)};R(p,h=>{s||e.onTitleClicked?h(v):h($,!1)})}S(u),Xe(u,h=>D(d,h),()=>n(d)),O(h=>f=se(u,1,`title size-${a()}`,"s-x",f,h),[()=>({hidden:r()})]),b(t,u),F()}Ye(["click"]);var Bb=require("@vkontakte/videoplayer-shared/es2018");var Kw=M('<div class="timer__cell cell s-19"><span class="cell__value s-19"> </span> <span class="cell__unit s-19"> </span></div> <span class="timer__points s-19"> </span>',1),qw=M('<div class="timer__cell cell s-19"><span class="cell__value s-19"> </span> <span class="cell__unit s-19"> </span></div> <span class="timer__points s-19"> </span>',1),Qw=M('<div class="timer__cell cell s-19"><span class="cell__value s-19"> </span> <span class="cell__unit s-19"> </span></div> <span class="timer__points s-19"> </span>',1),Gw=M('<div class="timer__cell cell s-19"><span class="cell__value s-19"> </span> <span class="cell__unit s-19"> </span></div>'),Yw=M("<div><!> <!> <!> <!></div>"),jw={hash:"s-19",code:".timer__container.s-19{align-items:flex-start;display:flex;justify-content:center}.cell.s-19{align-items:center;display:flex;flex-direction:column}.cell__value.s-19{font-size:48px;font-weight:600;line-height:1.2}.small.s-19 .cell__value:where(.s-19){font-size:24px}.cell__unit.s-19{font-size:14px;font-weight:400;line-height:1.2}.small.s-19 .cell__unit:where(.s-19){font-size:12px}.timer__points.s-19{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-19 .timer__points:where(.s-19){font-size:20px}"};function $v(t,e){B(e,!0),Q(t,jw);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),p=H=>`${(e.isSmallSize?s:d)*f(H)}px`,v=H=>{let z=Math.floor(H/86400);z&&(H-=z*86400,D(i,u(z),!0));let j=Math.floor(H/3600);D(o,u(j),!0);let ae=Math.floor(H/60)%60;D(r,u(ae),!0);let X=H%60;D(a,u(X),!0)},$=()=>{let H=Math.floor(Date.now()/1e3),z=e.startTime-H;v(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Lt(()=>{l=requestAnimationFrame($)}),un(()=>{cancelAnimationFrame(l)});var y=Yw();let h;var x=C(y);{var I=H=>{var z=Kw(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var J=A(X,2),we=C(J,!0);S(J),S(j);var pe=A(j,2),re=C(pe,!0);S(pe),O((_e,$e,ee)=>{ae=qe(j,"",ae,{width:_e}),me(ne,n(i)),me(we,$e),me(re,ee)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(H,z)};R(x,H=>{n(i)&&H(I)})}var T=A(x,2);{var N=H=>{var z=qw(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var J=A(X,2),we=C(J,!0);S(J),S(j);var pe=A(j,2),re=C(pe,!0);S(pe),O((_e,$e,ee)=>{ae=qe(j,"",ae,{width:_e}),me(ne,n(o)),me(we,$e),me(re,ee)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(H,z)};R(T,H=>{n(o)&&H(N)})}var L=A(T,2);{var E=H=>{var z=Qw(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var J=A(X,2),we=C(J,!0);S(J),S(j);var pe=A(j,2),re=C(pe,!0);S(pe),O((_e,$e,ee)=>{ae=qe(j,"",ae,{width:_e}),me(ne,n(r)),me(we,$e),me(re,ee)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(H,z)};R(L,H=>{n(r)&&H(E)})}var P=A(L,2);{var q=H=>{var z=Gw();let j;var ae=C(z),X=C(ae,!0);S(ae);var ne=A(ae,2),J=C(ne,!0);S(ne),S(z),O((we,pe)=>{j=qe(z,"",j,{width:we}),me(X,n(a)),me(J,pe)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),b(H,z)};R(P,H=>{n(a)&&H(q)})}S(y),O(H=>h=se(y,1,"timer__container s-19",null,h,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var Xw=M('<div class="waiting s-r"><span> </span></div>'),Zw=M('<div class="upcoming-timer timer s-r"><span> </span> <!></div>'),Jw=M('<div class="waiting-container s-r"><!></div>'),eS={hash:"s-r",code:'.waiting-container.s-r{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-r,.waiting-container.s-r:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-r:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-r{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-r{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-r{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-r{font-size:15px}.medium.s-r{font-size:17px}'};function Lc(t,e){B(e,!0),Q(t,eS);let i=g(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=m(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),f=m(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Bb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Ne(()=>{n(s),n(d),n(o),p==null||p()}),un(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=Jw();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var $=C(v);{var y=x=>{var I=Xw(),T=C(I);let N;var L=C(T,!0);S(T),S(I),Xe(I,E=>D(r,E),()=>n(r)),O((E,P)=>{N=se(T,1,"waiting__title s-r",null,N,E),me(L,P)},[()=>({medium:n(f),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(x,I)},h=x=>{var I=Zw(),T=C(I);let N;var L=C(T,!0);S(T);var E=A(T,2);let P=m(()=>n(u)||n(f)),q=m(()=>i()||0);$v(E,{get isSmallSize(){return n(P)},get startTime(){return n(q)},onTimerOver:()=>D(o,!0)}),S(I),Xe(I,H=>D(a,H),()=>n(a)),O((H,z)=>{N=se(T,1,"timer__title s-r",null,N,H),me(L,z)},[()=>({medium:n(f),small:n(u)}),()=>G("waiting_live_timer_title")]),b(x,I)};R($,x=>{n(o)?x(y):x(h,!1)})}S(v),O(()=>qe(v,`background-image: url(${e.thumbUrl})`)),Pn(v,"clientWidth",x=>D(d,x)),Pn(v,"clientHeight",x=>D(s,x)),b(t,v),F()}Ye(["contextmenu","click"]);var tS=M('<div class="waiting-container s-o"><div class="waiting-caption s-o"><!> <p class="waiting-title s-o"> </p></div></div>'),iS={hash:"s-o",code:'.waiting-container.s-o{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-o,.waiting-container.s-o:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-o:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-o{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-o{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ol(t,e){B(e,!0),Q(t,iS);let i=g(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=m(()=>o[e.kind]||"");var a=tS();a.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},a.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)};var l=C(a),d=C(l);Wa(d,{style:"position: static; transform: translate(0, 0)"});var s=A(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{qe(a,`background-image: url('${i()}')`),me(u,n(r))}),b(t,a),F()}Ye(["contextmenu","click"]);var oS=Ce('<path d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path>');function yv(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=oS();b(e,o)},$$slots:{default:!0}})}var nS=M('<div class="select-icon s-1x"><!></div>'),rS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Mc(t){Q(t,rS);var e=nS(),i=C(e);yv(i,{}),S(e),b(t,e)}var sS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},aS=(t,e)=>{Kl(t,()=>e.item.selectItem(e.item.value))},lS=M("<p> </p>"),dS=M('<p class="sublabel s-1u"> </p>'),cS=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),uS={hash:"s-1u",code:".menu-item-value.s-1u{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1u{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1u,.sublabel.s-1u{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1u{opacity:.5}"};function xv(t,e){B(e,!0),Q(t,uS);let i=g(e,"isMobile",3,!1);var o=cS();let r;o.__click=[sS,e],o.__keydown=[aS,e];var a=C(o);{var l=y=>{Mc(y,{})};R(a,y=>{e.item.selected&&y(l)})}var d=A(a,2);let s;var u=C(d);{var f=y=>{var h=Ae(),x=ce(h);Di(x,()=>e.item.valueComponent,(I,T)=>{T(I,Xr(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),b(y,h)},p=y=>{var h=lS();let x;var I=C(h,!0);S(h),O(T=>{var N;x=se(h,1,"label s-1u",null,x,T),me(I,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),b(y,h)};R(u,y=>{e.item.valueComponent?y(f):y(p,!1)})}var v=A(u,2);{var $=y=>{var h=dS(),x=C(h,!0);S(h),O(()=>me(x,e.item.sublabel)),b(y,h)};R(v,y=>{e.item.sublabel&&y($)})}S(d),S(o),O((y,h,x)=>{var I;r=se(o,1,"item",null,r,y),Le(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Le(o,"aria-label",h),Le(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1u",null,s,x),Le(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,h;return(h=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?h:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}Ye(["click","keydown"]);var pS=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function wv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>h=>Zu(h,n(r)));var l=pS();let d;l.__click=function(...h){var x;(x=n(r))==null||x.apply(this,h)},l.__keydown=function(...h){var x;(x=n(a))==null||x.apply(this,h)};var s=C(l);{var u=h=>{Mc(h,{})};R(s,h=>{e.item.selected&&h(u)})}var f=A(s,2);let p;var v=C(f);{var $=h=>{var x=Ae();let I=m(()=>e.item.valueComponent);var T=ce(x);Di(T,()=>n(I),(N,L)=>{L(N,Xr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(h,x)},y=h=>{var x=fs();O(()=>me(x,e.item.label)),b(h,x)};R(v,h=>{e.item.valueComponent?h($):h(y,!1)})}S(f),S(l),Xe(l,h=>o(o()[e.item.id]=h,!0),()=>{var h;return(h=o())==null?void 0:h[e.item.id]}),O((h,x)=>{var I;d=se(l,1,"item",null,d,h),Le(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Le(l,"data-testid",e.item.id),p=se(f,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}Ye(["click","keydown"]);var ts={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var mS=(t,e)=>{tb(t,e.returnFromSubMenu,e.closeSettingsMenu)},vS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},gS=(t,e)=>{nc(t)&&(Vr(t),e.returnFromSubMenu())},hS=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),_S={hash:"s-1l",code:".sub-menu.s-1l{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1l .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1l{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1l{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1l .items:where(.s-1l) .item.header:where(.s-1l){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1l .title:where(.s-1l){margin-left:8px}.sub-menu.s-1l .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1l .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1l .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1l .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1l .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1l .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1l .item .sublabel{font-size:12px;line-height:14px}.item.s-1l:not(.mobile) p:where(.s-1l),.sub-menu.s-1l .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Cv(t,e){B(e,!0),Q(t,_S);let[i,o]=Ve(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=g(e,"listRef",15);Lt(()=>{let X=e.items.findIndex(ne=>ne.selected);u().children[X+1].focus()});let f=ve(),p=f.ui.isFullscreen,v=f.ui.playerSize,$=K(void 0),y=K(0),h=K(0),x=m(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(h)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,n(y)));var T=hS();let N;var L=C(T);let E;L.__keydown=[mS,e];var P=C(L);let q;P.__click=[vS,e],P.__keydown=[gS,e];var H=C(P);Mr(H,{direction:"left"});var z=A(H,2),j=C(z,!0);S(z),S(P),Xe(P,X=>D($,X),()=>n($));var ae=A(P,2);bi(ae,17,()=>e.items,Bd,(X,ne)=>{var J=Ae(),we=ce(J);{var pe=_e=>{xv(_e,{get item(){return n(ne)},get isMobile(){return l()}})},re=(_e,$e)=>{{var ee=Re=>{wv(Re,{get isMobile(){return l()},get item(){return n(ne)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(_e,Re=>{n(ne).type==="OPEN_SUB_MENU"&&Re(ee)},$e)}};R(we,_e=>{n(ne).type==="SELECT_VALUE"?_e(pe):_e(re,!1)})}b(X,J)}),S(L),Xe(L,X=>u(X),()=>u()),S(T),O((X,ne,J)=>{N=se(T,1,"sub-menu menu s-1l",null,N,X),Le(T,"data-testid",`${e.id}-sub-menu`),qe(T,`min-width: ${n(I)}px`),E=se(L,1,"items s-1l",null,E,ne),qe(L,n(x)),q=se(P,1,"item header back s-1l",null,q,J),Le(P,"aria-label",s()),me(j,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Pn(P,"clientWidth",X=>D(y,X)),Pn(P,"clientHeight",X=>D(h,X)),b(t,T),F(),o()}Ye(["keydown","click"]);var Hb=require("@vkontakte/videoplayer-shared/es2018");var bS=(t,e)=>Zu(t,e()),$S=(t,e)=>{t.stopPropagation(),e()()},yS=M('<div class="value s-1n"> </div>'),xS=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),wS={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Tv(t,e){B(e,!0),Q(t,wS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Hb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=xS();let s;d.__click=[$S,o],d.__keydown=[bS,o];var u=C(d),f=C(u);{var p=T=>{ja(T,{get icon(){return e.icon}})},v=T=>{var N=Ae();let L=m(()=>e.icon);var E=ce(N);Di(E,()=>n(L),(P,q)=>{q(P,Xr(a))}),b(T,N)};R(f,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var $=A(u,2),y=C($,!0);S($);var h=A($,2);{var x=T=>{var N=Ae();let L=m(r);var E=ce(N);Di(E,()=>n(L),(P,q)=>{q(P,{})}),b(T,N)},I=T=>{var N=yS(),L=C(N,!0);S(N),O(()=>me(L,e.value)),b(T,N)};R(h,T=>{r()?T(x):T(I,!1)})}S(d),Xe(d,T=>l(T),()=>l()),O(T=>{s=se(d,1,"item",null,s,T),Le(d,"aria-label",e.ariaLabel),Le(d,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}Ye(["click","keydown"]);var Iv=require("@vkontakte/videoplayer-shared/es2018");var SS=(t,e)=>{Kl(t,()=>e())},CS=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),TS=M('<img class="icon" aria-hidden="true"/>'),IS=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),ES={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Ev(t,e){B(e,!0),Q(t,ES);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Iv.noop),r=g(e,"closeSettings",3,Iv.noop),a=K(!1),l=()=>{D(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=IS();let u;s.__click=d,s.__keydown=[SS,d];var f=C(s),p=C(f);{var v=x=>{var I=Ae(),T=ce(I);{var N=E=>{var P=CS();b(E,P)},L=E=>{var P=TS();O(()=>Le(P,"src",e.icon)),lt("error",P,l),ka(P),b(E,P)};R(T,E=>{n(a)?E(N):E(L,!1)})}b(x,I)},$=x=>{var I=Ae();let T=m(()=>e.icon);var N=ce(I);Di(N,()=>n(T),(L,E)=>{E(L,{})}),b(x,I)};R(p,x=>{typeof e.icon=="string"?x(v):x($,!1)})}S(f);var y=A(f,2),h=C(y,!0);S(y),S(s),O(x=>{var I;u=se(s,1,"item",null,u,x),Le(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Le(s,"data-testid",e.id),me(h,e.label)},[()=>({mobile:i()})]),b(t,s),F()}Ye(["click","keydown"]);var Ub=require("@vkontakte/videoplayer-shared/es2018");var PS=M('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),kS={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Pv(t,e){Q(t,kS);let i=g(e,"enabled",3,!1);var o=PS(),r=C(o);let a;li(2),S(o),O(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),b(t,o)}var AS=(t,e,i)=>{ib(t,e(),o=>i()(o))},LS=(t,e,i)=>{t.stopPropagation(),e()(!i())},MS=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),VS=M('<li role="menuitem" tabindex="0"><!></li>');function kv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Ub.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=VS();let s;d.__click=[LS,o,r],d.__keydown=[AS,r,o];var u=C(d);qa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,p)=>{var v=MS();let $;var y=C(v),h=C(y);{var x=E=>{ja(E,{get icon(){return e.icon}})},I=E=>{var P=Ae();let q=m(()=>e.icon);var H=ce(P);Di(H,()=>n(q),(z,j)=>{j(z,{})}),b(E,P)};R(h,E=>{typeof e.icon=="string"?E(x):E(I,!1)})}S(y);var T=A(y,2),N=C(T,!0);S(T);var L=A(T,2);Pv(L,{get enabled(){return r()}}),S(v),O(E=>{$=se(v,1,"switch-wrapper",null,$,E),me(N,e.label)},[()=>({mobile:i()})]),b(f,v)},$$slots:{default:!0}}),S(d),O(f=>{var p;s=se(d,1,"item switch-item",null,s,f),Le(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Le(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}Ye(["click","keydown"]);var Rc=require("@vkontakte/videoplayer-shared/es2018");var zb=()=>{let t=K(ai([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{D(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{D(t,[],!0)}}};var Wb=require("@vkontakte/videoplayer-shared/es2018");var RS=M('<div class="quality-icon s-1q"><!></div>'),NS=M('<div class="quality-label s-1q"><span> </span> <!></div>'),DS={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function nl(t,e){B(e,!0),Q(t,DS);let i=g(e,"isSubCase",3,!1),o=m(()=>e.quality?(0,Wb.getVideoQualityLabel)(e.quality):""),r=m(()=>op(e.quality));var a=NS(),l=C(a);let d;var s=C(l,!0);S(l);var u=A(l,2);{var f=p=>{var v=RS();let $=m(()=>n(r));var y=C(v);Di(y,()=>n($),(h,x)=>{x(h,{})}),S(v),O(()=>Le(v,"data-testid",`${n(o)}-icon`)),b(p,v)};R(u,p=>{n(r)&&!e.isMobile&&p(f)})}S(a),O(p=>{d=se(l,1,"s-1q",null,d,p),me(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var Gb=require("@vkontakte/videoplayer-shared/es2018");var Av=require("@vkontakte/videoplayer-core/es2018");var Kb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},qb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Kb({quality:t,availableQualities:e});return i?t===Av.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},Qb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Av.VideoQuality.INVARIANT?i:`${i}${Kb({quality:t,availableQualities:e})}`:"...";var OS=M('<div class="menu-item-value-wrapper s-1t"><!></div>'),BS={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function od(t,e){B(e,!0),Q(t,BS);let[i,o]=Ve(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(f,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,p=" · ",v=m(()=>e.prefix+(e.selected&&r()!==Gb.VideoQuality.INVARIANT?p:"")),$=m(()=>Qb({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=OS(),h=C(y);let x=m(()=>e.selected?r():void 0);nl(h,{get quality(){return n(x)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),S(y),b(t,y),F(),o()}var FS=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},HS={br:!0,span:!0},Lv=(t,e={})=>{var d,s,u,f,p,v,$;if(!t)return t;let i={...HS,...e},o=Object.keys(i);if(!o.length)return t;let r=FS(o),a=[],l=0;for(let y of t.matchAll(r)){let h=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+h.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Lv(y.groups.childrenhtml,i):"",N=(v=y.groups)!=null&&v.childrenhtml?h.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>T||""):h;a.push(t.slice(l,I),N),l=I+h.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Vc(t,e){B(e,!1);let i=g(e,"message",8),o=Lv(i());xo();var r=Ae(),a=ce(r);{var l=d=>{var s=Ae(),u=ce(s);Fd(u,()=>o),b(d,s)};R(a,d=>{o&&d(l)})}b(t,r),F()}var US=M('<p class="quality-applies sublabel s-1s"><!></p>'),zS={hash:"s-1s",code:".quality-applies.s-1s{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Mv(t,e){B(e,!1),Q(t,zS),xo();var i=US(),o=C(i);let r=Sn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Vc(o,{get message(){return n(r)}}),S(i),b(t,i),F()}var jb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:G("other_quality"),selected:o,valueComponent:od,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Vv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?od:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Xb=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Mv,bottomBordered:!0,children:"quality-appliance"}),Rv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("high_quality_description")}),Nv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"quality-traffic-saving",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:G("traffic_saving_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var _p=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),bp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=_c(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=_p(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=_p(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=_p(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=_p(t,e);return G("audio_stream_display_unknown",{index:a})};var WS={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Vv,selected:e&&!o&&!r||!1}),a.push({handler:Nv,selected:o},{handler:Rv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[Xb(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),jb(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:nl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Vv,selected:((i=Hu())==null?void 0:i.type)==="auto_quality"},{handler:Nv,selected:((o=Hu())==null?void 0:o.type)==="traffic_saving"},{handler:Rv,selected:((r=Hu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:bp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Mn?"sub_off":void 0}))})},Zb=({subMenuId:t,context:e})=>t?[WS[t](e)]:[];var KS=Ce('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Dv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=KS();b(e,o)},$$slots:{default:!0}})}var qS=Ce('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Ov(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=qS();b(e,o)},$$slots:{default:!0}})}var QS=Ce('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Bv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=QS();b(e,o)},$$slots:{default:!0}})}var GS=Ce('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Fv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=GS();b(e,o)},$$slots:{default:!0}})}var YS=Ce('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"></path>');function Hv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=YS();b(e,o)},$$slots:{default:!0}})}var jS=Ce('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function $p(t){Ze(t,{children:(e,i)=>{var o=jS();b(e,o)},$$slots:{default:!0}})}var XS=Ce('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function Uv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=XS();b(e,o)},$$slots:{default:!0}})}var ZS=M('<div class="menu-item-value-wrapper s-1w"><!></div>'),JS={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function zv(t,e){B(e,!0),Q(t,JS);let[i,o]=Ve(),r=()=>w(u,"$currentQuality$",i),a=()=>w(f,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,f=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,$=m(()=>qb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=ZS(),h=C(y);nl(h,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),S(y),b(t,y),F(),o()}var tC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:dc,label:G("menu_quality"),value:e,valueComponent:zv,weight:ts["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ts["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Dv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=bp(t,e);return{id:"audio-tracks-settings",weight:ts["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:Ov,label:G("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:ts["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Bv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ts["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:sa,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ts.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:Fv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ts.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:Hv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ts["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:$p,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ts["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:$p,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ts["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:Uv,isHiddenFor:["desktop"]})},Jb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>tC[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ua)};var oC=(t,e)=>{Xu(t,e)},nC=M('<div><div> </div> <div class="close s-s"></div></div>'),rC=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),sC=M("<div><!> <!></div>"),aC={hash:"s-s",code:'.settings-menu-container.mobile.s-s{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-s ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-s .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-s .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-s .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-s .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-s .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-s .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-s{line-height:40px}.settings-menu.desktop.s-s{min-width:300px}.settings-menu-container.s-s .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-s .menu.mobile.hidden{display:none}.settings-menu-container.s-s .menu .item:not(.switch-item),.settings-menu-container.s-s .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-s .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-s .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-s .item:not(.switch-item),.settings-menu.s-s .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-s .item.mobile:not(.switch-item),.settings-menu.s-s .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-s .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-s .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-s .item.header.mobile:where(.s-s){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-s .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-s .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-s .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-s .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-s .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-s{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-s:after,.close.s-s:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-s:before{transform:rotate(45deg)}.close.s-s:after{transform:rotate(-45deg)}'};function Nc(t,e){B(e,!0),Q(t,aC);let[i,o]=Ve(),r=()=>w(Oe,"$settingsMenuVisible",i),a=()=>w(it,"$settingsMenuOpenedByKeyboard",i),l=()=>w(Be,"$debugPanelVisible",i),d=()=>w(ke,"$isMobile",i),s=()=>w(Ie,"$playerSize",i),u=()=>w(De,"$hasMpegSources$",i),f=()=>w(Pe,"$mobileNotReportControlHidden$",i),p=()=>w(ee,"$autoQualityLimitingAvailable$",i),v=()=>w(Z,"$availableSubtitlesList$",i),$=()=>w(Ue,"$isLiveWithPlaybackSpeed",i),y=()=>w(re,"$availableAudioStreams$",i),h=()=>w(We,"$availablePlaybackRates$",i),x=()=>w(pe,"$currentAudioStream$",i),I=()=>w(k,"$currentPlaybackRate$",i),T=()=>w(tt,"$trafficSavingEnabled",i),N=()=>w(_e,"$currentQuality$",i),L=()=>w(Re,"$isAutoQualityEnabled$",i),E=()=>w(Te,"$currentSubtitle$",i),P=()=>w(mt,"$additionalSettingsMenuItems$",i),q=()=>w(fe,"$isAutoQualityAvailable$",i),H=()=>w($e,"$availableQualities$",i),z=()=>w(ye,"$highQualityEnabled",i),j=g(e,"ref",15,void 0),ae=g(e,"playerControlsHeight",3,0),X=ai({}),ne=ai({}),J=ve(),we=Mt(),pe=J.state.audioStream$,re=J.state.availableAudioStreams$,_e=J.state.currentQuality$,$e=J.state.availableQualities$,ee=J.state.autoQualityLimitingAvailable$,Re=J.state.isAutoQualityEnabled$,fe=J.state.isAutoQualityAvailable$,k=J.state.currentPlaybackRate$,We=J.state.availablePlaybackRates$,Te=J.state.currentSubtitle$,Z=J.state.availableSubtitlesList$,ie=J.state.canDownload,De=J.state.hasMpegSources$,Oe=J.ui.settingsMenu.visible$,it=J.ui.settingsMenu.openedByBtnKeyboard$,U=J.ui.settingsMenu.ref$,ke=J.ui.isMobile,Pe=J.ui.mobileNotReportControlHidden$,Ue=J.state.canChangePlaybackSpeed$,tt=J.state.trafficSavingEnabled$,ye=J.state.highQualityEnabled$,Ie=J.ui.playerSize,Be=J.ui.debugPanelVisible,Nt=J.state.isInteractiveTime$,mt=J.ui.additionalSettingsMenuItems$,Bt=J.ui.t,dt=J.actions.internal.downloadVideo,wt=J.actions.internal.closeSettingsMenu,ti=J.actions.internal.openSettingsSubMenu,Pt=J.actions.internal.closeSettingsSubMenu,Dt=K(!1),Ft=K(void 0),Y=zb();Ne(()=>{!r()&&Y.current&&(Pt(ne[Y.current]),Y.popAllSubMenus())}),Ne(()=>{r()||D(Ft,void 0)}),Ne(()=>{!Y.current&&n(Ft)&&eb(X,n(Ft))}),Ne(()=>{j()&&U.set(j())});async function Se(St){var W;Y.pushSubMenu(St),await go(),ti(St,ne[St]);let zt=(W=j())==null?void 0:W.firstElementChild;zt&&lm(zt)}function le(St){var zt;St==null||St.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),wt(),D(Dt,!1)}function he(St,zt){J.actions.internal.setQuality(St,{appliesTo:zt,byUser:!0}),le()}function Me(St){J.actions.internal.setAudioStream(St),le()}function rt(St,zt){J.actions.internal.setTrafficSavingEnabled(St,zt),we.features.qualityDetailsSubMenuEnabled&&le()}function ft(St,zt){J.actions.internal.setHighQualityEnabled(St,zt),le()}function ue(St){J.actions.internal.setPlaybackRate(St),le()}function ze(St){J.actions.internal.setSubtitle(St),le()}function Ge(){dt()}function ct(){(0,Rc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Ht(){zl(J.actions.internal.getDebugTextData())}let Ut=()=>{let St=J.actions.internal.getTraceTextData(),zt=new Blob([...St],{type:"application/json"}),W=window.URL.createObjectURL(zt);Na(W,"vk_player_trace_info","json")};function ii(){Be.set(!l())}function hi(){D(Dt,!0)}function Gi(){D(Dt,!1)}function Vt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let ci=m(()=>ie&&u()&&!f()),mi=m(()=>we.features.trafficSaving&&!f()&&p()&&!we.features.qualityDetailsSubMenuEnabled),ht=m(()=>v().length>0&&!f()),Xt=m(()=>!!$()&&!f()),$i=m(()=>we.features.audioLanguages&&y().length>=2&&!f()),Yi=m(()=>!f());Lt(()=>Nt.subscribe(St=>{St&&!d()&&!n(Dt)&&!a()&&le()}));let Jt=m(()=>{let St=[n(Yi)&&"quality-settings",n($i)&&"audio-tracks-settings",n(Xt)&&"playback-rate-settings",n(ht)&&"subtitles-settings",n(mi)&&"traffic-saving-switch",n(ci)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(zt=>!!zt);return Jb({items:St,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:h(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:ue,trafficSavingEnabled:T(),toggleTrafficSaving:rt,currentQuality:N()||Rc.VideoQuality.INVARIANT,isAutoQualityEnabled:L()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ge,onCopyDataClick:Ht,onReportProblemClick:ct,onSaveTraceDataClick:Ut,toggleShowDebugInfo:ii},additionalSettingsMenuItems:P()})}),It=m(()=>Zb({subMenuId:Y.current,context:{availablePlaybackRates:h(),selectPlaybackRate:ue,trafficSavingEnabled:T(),toggleTrafficSaving:rt,currentQuality:N()||Rc.VideoQuality.INVARIANT,isAutoQualityEnabled:L()||!1,isAutoQualityAvailable:q()||!1,availableQualities:H(),highQualityEnabled:z(),toggleHighQuality:ft,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:wt,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Me,selectQuality:he,selectSubtitle:ze}}));var Ke=sC();let _i;var So=C(Ke);{var Ro=St=>{var zt=rC();let W;zt.__keydown=[oC,wt];var kt=C(zt);{var ri=Gt=>{var nt=nC();let Bi;var Fi=C(nt),en=C(Fi,!0);S(Fi);var Do=A(Fi,2);Do.__click=le,S(nt),O((ro,Ai)=>{Bi=se(nt,1,"item header s-s",null,Bi,ro),me(en,Ai)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),b(Gt,nt)};R(kt,Gt=>{d()&&Gt(ri)})}var ut=A(kt,2);let Ct;bi(ut,21,()=>n(Jt),Gt=>Gt.id,(Gt,nt)=>{var Bi=Ae(),Fi=ce(Bi);{var en=ro=>{Tv(ro,{get isMobile(){return d()},get id(){return n(nt).id},get icon(){return n(nt).icon},get iconProps(){return n(nt).iconProps},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get value(){return n(nt).value},get valueComponent(){return n(nt).valueComponent},onClick:()=>{Se(n(nt).children),D(Ft,n(nt).id,!0)},get ref(){return X[n(nt).id]},set ref(Ai){X[n(nt).id]=Ai}})},Do=(ro,Ai)=>{{var Rr=_o=>{let Pi=m(()=>`${n(nt).id}-menu-item`);Ev(_o,{get isMobile(){return d()},get id(){return n(Pi)},get onClick(){return n(nt).onClick},get icon(){return n(nt).icon},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},closeSettings:le})},ho=(_o,Pi)=>{{var tn=Oo=>{let Vn=m(()=>`${n(nt).id}-menu-item`);kv(Oo,{get isMobile(){return d()},get id(){return n(Vn)},get onClick(){return n(nt).onClick},get icon(){return n(nt).icon},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get enabled(){return n(nt).enabled},get tooltipText(){return n(nt).tooltipText},get maxTooltipWidth(){return n(nt).maxTooltipWidth}})};R(_o,Oo=>{n(nt).type==="SWITCH"&&Oo(tn)},Pi)}};R(ro,_o=>{n(nt).type==="CLICK"?_o(Rr):_o(ho,!1)},Ai)}};R(Fi,ro=>{n(nt).type==="OPEN_SUB_MENU"?ro(en):ro(Do,!1)})}b(Gt,Bi)}),S(ut),Xe(ut,Gt=>j(Gt),()=>j()),S(zt),O((Gt,nt,Bi)=>{W=se(zt,1,"settings-menu menu s-s",null,W,Gt),Ct=se(ut,1,"items",null,Ct,nt),qe(ut,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),Vt]),lt("mouseenter",zt,hi),lt("mouseleave",zt,Gi),b(St,zt)};R(So,St=>{r()&&St(Ro)})}var No=A(So,2);bi(No,17,()=>n(It),St=>St.id,(St,zt)=>{let W=m(()=>{var kt;return(kt=n(zt).minWidth)!=null?kt:137});Cv(St,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(zt).id},get title(){return n(zt).title},get closeSettingsMenu(){return wt},openSubMenuList:Se,get items(){return n(zt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return ne[n(zt).id]},set listRef(kt){ne[n(zt).id]=kt}})}),S(Ke),O(St=>_i=se(Ke,1,"settings-menu-container s-s",null,_i,St),[()=>({mobile:d(),hidden:!r()})]),b(t,Ke),F(),o()}Ye(["keydown","click"]);var lC=M('<button class="btn s-1g"> </button>'),dC={hash:"s-1g",code:"button.btn.s-1g{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Wv(t,e){Q(t,dC);var i=lC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),O(()=>me(o,e.label)),b(t,i)}Ye(["click"]);var cC=M('<div class="container s-t"><div class="notification s-t"><div><p class="description s-t"><!></p> <!></div> <!></div></div>'),uC={hash:"s-t",code:".container.s-t{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-t{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-t{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Dc(t,e){B(e,!0),Q(t,uC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=cC(),d=C(l),s=C(d),u=C(s),f=C(u);Vc(f,{get message(){return a}}),S(u);var p=A(u,2);{var v=y=>{let h=m(()=>r("slow_video_notification_button"));Wv(y,{get label(){return n(h)},get onClick(){return e.onSelectAutoQuality}})};R(p,y=>{o||y(v)})}S(s);var $=A(s,2);Ls($,{get onClick(){return e.onClose}}),S(d),S(l),jr(3,d,()=>hs,()=>({duration:i})),b(t,l),F()}var Oc=require("@vkontakte/videoplayer-shared/es2018"),rl="annotation",yp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;e.setAttribute("slot",rl),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Vs(a,this.shadowRootContainer);o.forEach($=>{let y=l==null?void 0:l[$],h=y?ge(y):null,x=d==null?void 0:d[$];h&&(x==null||x.set((0,Oc.isIntersecting)(h,v)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new Oc.Subscription;o.forEach(p=>{l&&u.add(l[p].subscribe(v=>{let $=d==null?void 0:d[p];v&&v.isDisplayed?$==null||$.set((0,Oc.isIntersecting)(v,Vs(a,this.shadowRootContainer))):$==null||$.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(p=>{var v,$;($=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var pC=M('<div class="container s-4"><!></div>'),fC={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Bc(t,e){B(e,!0),Q(t,fC);let i=g(e,"reversed",3,!1);var o=Ae(),r=ce(o);Es(r,()=>e.Icon,a=>{var l=pC(),d=C(l);Di(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),O(()=>qe(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var Kv=require("@vkontakte/videoplayer-core/es2018"),mC=M('<div class="container s-11"><!></div>'),vC={hash:"s-11",code:".container.s-11{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function qv(t,e){B(e,!0),Q(t,vC);let[i,o]=Ve(),r=()=>w(s,"$playbackState$",i),a=()=>w(f,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:p}}=ve(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:$}=Mt(),y=0,h=K(null),x=K(!1);Ne(()=>{r()===Kv.PlaybackState.PLAYING?D(h,An,!0):r()===Kv.PlaybackState.PAUSED?D(h,Ns,!0):D(h,null)}),Ne(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,D(h,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Ne(()=>{d()&&!n(x)&&(D(x,!0),D(h,null))});var I=Ae(),T=ce(I);{var N=L=>{var E=mC(),P=C(E);Bc(P,{get duration(){return $},get Icon(){return n(h)}}),S(E),b(L,E)};R(T,L=>{n(h)&&v&&L(N)})}b(t,I),F(),o()}var gC=M('<div><div data-testid="video-container"></div></div>'),hC={hash:"s-c",code:".video-container.s-c,.video-wrapper.s-c{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-c{background:var(--black)}.video-container.s-c,.video-wrapper.s-c{z-index:var(--video-container-z-index)}.video-container.s-c{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-c{transition:none}.nocursor.s-c{cursor:none}"};function sl(t,e){B(e,!0),Q(t,hC);let[i,o]=Ve(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(f,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w($,"$isPlaying$",i),u=g(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:$,chromecastConnected$:y}}=ve(),{isSmoothVideoRotate:h}=Mt(),x=m(()=>u()&&r()%180?a().height/a().width:1);var I=gC();let T;I.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},I.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},I.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},I.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)},I.__dblclick=function(...E){var P;(P=e.onDblClick)==null||P.apply(this,E)};var N=C(I);let L;Xe(N,E=>u(E),()=>u()),S(I),O((E,P)=>{T=se(I,1,"video-wrapper s-c",null,T,E),L=se(N,1,"video-container s-c",null,L,P),qe(N,`transform: rotate(${r()}deg) scale(${n(x)})`),Le(N,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!h})]),b(t,I),F(),o()}Ye(["contextmenu","mousedown","mouseup","click","dblclick"]);var _C=M('<div><span class="text s-12"> </span> <!></div>'),bC={hash:"s-12",code:".root.s-12{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-12,.root.visible.s-12{transform:translateX(-50%)}.root.visible.s-12{opacity:1;visibility:visible}.text.s-12{font-size:13px;font-weight:600;line-height:16px}"};function Qv(t,e){B(e,!0),Q(t,bC);let{ui:{t:i}}=ve();var o=_C();let r;var a=C(o),l=C(a,!0);S(a);var d=A(a,2);Pc(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=se(o,1,"root s-12",null,r,s),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var $C=M('<div class="container s-13" role="button" data-testid="preview-track-overlay"><div class="icon s-13"><!></div></div>'),yC={hash:"s-13",code:".container.s-13{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-13,.icon.s-13{align-items:center;display:flex;justify-content:center}.icon.s-13{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-13:hover .icon:where(.s-13){transform:scale(1.15)}"};function Gv(t,e){B(e,!1),Q(t,yC);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};xo();var l=$C();l.__click=a;var d=C(l),s=C(d);return An(s,{get size(){return"32"}}),S(d),S(l),jr(3,l,()=>hs,()=>({duration:r})),b(t,l),Lf(e,"handleClick",a),F({handleClick:a})}Ye(["click"]);var xC=M('<div class="container s-10"><div class="notification s-10"><span class="text s-10"> </span></div></div>'),wC={hash:"s-10",code:".container.s-10{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-10{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-10{font-size:14px;font-weight:500;line-height:18px}"};function Yv(t,e){B(e,!1),Q(t,wC);let{ui:{t:i}}=ve();xo();var o=xC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),O(d=>me(l,d),[()=>i("preview_track_notification_text")],Sn),jr(3,r,()=>hs,()=>({duration:340})),b(t,o),F()}var SC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},CC=M("<div><!></div>"),TC=M('<div class="spherical-video-icon s-8"><!></div>'),IC=M("<div><!></div>"),EC=M('<div class="settings-menu s-8"><!></div>'),PC=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),kC=M("<!> <!> <!>",1),AC=M('<div class="blocked s-8"></div>'),LC=M('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),MC={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Xv(t,e){B(e,!0),Q(t,MC);let[i,o]=Ve(),r=()=>w(si,"$notificationsToShow$",i),a=()=>w(ci,"$playerPhase",i),l=()=>w(So,"$isLoaderVisible",i),d=()=>w(hi,"$adPlaybackState",i),s=()=>w(ri,"$crashed",i),u=()=>w(ro,"$isInteractiveTime$",i),f=()=>w($i,"$settingsMenuVisible",i),p=()=>w(Ai,"$isInteractiveExpectation$",i),v=()=>w(Xt,"$controlsVisible",i),$=()=>w(ho,"$touched",i),y=()=>w(tr,"$graphIsOpened$",i),h=()=>w(mi,"$isFullscreen",i),x=()=>w(is,"$autoplayNextEnabled$",i),I=()=>w(zt,"$postrollPassed",i),T=()=>w(Ro,"$isEnded$",i),N=()=>w(wr,"$cursorInside",i),L=()=>w(Zn,"$isControlsAvailable",i),E=()=>w(on,"$doubleForwardOn$",i),P=()=>w(er,"$fakeIsPlaying$",i),q=()=>w(Nn,"$bottomNoSmooth",i),H=()=>w(Oo,"$interactiveTimeIndicator",i),z=()=>w(Bi,"$playerSize",i),j=()=>w(Fi,"$is3DVideo",i),ae=()=>w(Rn,"$doubleForwardAvailable$",i),X=()=>w(Ke,"$contextMenuVisible$",i),ne=()=>w(ii,"$playbackState$",i),J=()=>w(_o,"$hotKeyMapData",i),we=()=>w(Jt,"$scrubbingInProgress",i),pe=()=>w(It,"$volumeChangingInProgress",i),re=()=>w(No,"$chromecastConnected$",i),_e=()=>w(nn,"$controlsTimeoutActive",i),$e=()=>w(Yi,"$settingsMenuOpenedByKeyboard",i),ee=()=>w(Yt,"$contextMenuOpenedByKeyboard$",i),Re=()=>w(Ko,"$contextMenuOpenedByHotKey$",i),fe=()=>w(Ci,"$contextMenuButtonRef$",i),k=()=>w(Ur,"$contextMenuLastActiveElem$",i),We=()=>w(ht,"$isFullscreenOpenedByKeyboard",i),Te=()=>w(Ut,"$language$",i),Z=()=>w(dr,"$previewTrackActive$",i),ie=()=>w(en,"$icon3DVideoVisible",i),De=()=>w(St,"$chromecastDeviceName$",i),Oe=()=>w(Gt,"$currentSubtitle$",i),it=()=>w(nt,"$currentSubtitleCaptions$",i),U=()=>w(Gi,"$position$",i),ke=()=>w(Vt,"$duration$",i),Pe=()=>w(W,"$isLive$",i),Ue=()=>w(kt,"$isPlaying$",i),tt=()=>w(br,"$contextMenuPosition$",i),ye=()=>w(yr,"$previewTrackNotificationVisible$",i),Ie=()=>w(Pi,"$showHotKeyMap",i),Be=()=>w(_i,"$debugPanelVisible",i),Nt=()=>w(os,"$userActionsDisabled$",i),mt=g(e,"videoContainer",15),Bt=g(e,"adsSlotId",3,void 0),dt=g(e,"adsParams",3,void 0),wt=g(e,"adsAutoplayParam",3,void 0),ti=g(e,"duration",3,void 0),Pt=g(e,"logoTargetUrl",3,""),Dt=g(e,"showNextPrevButtons",3,!1),Ft=g(e,"nextButtonActive",3,!1),Y=g(e,"prevButtonActive",3,!1),Se=g(e,"endScreenVideoTitle",3,void 0),le=g(e,"endScreenVideoThumb",3,void 0),he=g(e,"isOneVideoPlaylist",3,!1),Me=g(e,"shadowRootContainer",3,void 0),rt=g(e,"outerContainerRef",3,void 0),ft=g(e,"playerStarted",3,!1),ue=g(e,"fullScreenTarget",3,void 0),ze=g(e,"showMiniTimer",3,!1),Ge=g(e,"showEndScreen",3,!0),ct=g(e,"keyboardControls",15),Ht=e.store.getLogger().createComponentLog("Root component"),Ut=e.store.interfaceLanguage$,ii=e.store.state.playbackState$,hi=e.store.ads.playbackState,Gi=e.store.state.positionWithScrubbing$,Vt=e.store.state.duration$,ci=e.store.playerPhase,mi=e.store.ui.isFullscreen,ht=e.store.ui.isFullscreenOpenedByKeyboard,Xt=e.store.ui.controlsVisible,$i=e.store.ui.settingsMenu.visible$,Yi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,It=e.store.ui.volumeChangingInProgress,Ke=e.store.ui.contextMenu.visible$,_i=e.store.ui.debugPanelVisible,So=e.store.state.isLoaderVisible,Ro=e.store.state.isEnded$,No=e.store.state.chromecastConnected$,St=e.store.state.chromecastDeviceName$,zt=e.store.ads.postrollPassed,W=e.store.state.isLive$,kt=e.store.state.isPlaying$,ri=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,Ct=e.store.webApi.pictureInPictureApi,Gt=e.store.state.currentSubtitle$,nt=e.store.state.currentSubtitleCaptions$,Bi=e.store.ui.playerSize,Fi=e.store.ui.is3DVideo,en=e.store.ui.icon3DVideoVisible,Do=e.store.state.isInteractive,ro=e.store.state.isInteractiveTime$,Ai=e.store.state.isInteractiveExpectation$,Rr=e.store.state.hasInteractiveBranches,ho=e.store.ui.touched,_o=e.store.ui.modals.hotKeyMap.data,Pi=e.store.ui.modals.hotKeyMap.show,tn=e.store.ui.overlayContainer$,Oo=e.store.ui.controls.interactiveTimeIndicator,Vn=e.store.state.showInteractiveTimeIndicator,br=e.store.ui.contextMenu.position$,$r=e.store.actions.internal.setQuality,_s=e.store.actions.internal.closeSettingsMenu,is=e.store.ui.autoplayNextEnabled$,os=e.store.ui.userActionsDisabled,Zn=e.store.ui.isControlsAvailable,Nr=e.store.ui.videoTitleInfo,on=e.store.ui.doubleForwardOn$,Rn=e.store.ui.doubleForwardAvailable$,yr=e.store.ui.previewTrackNotificationVisible,Bo=e.store.actions.internal.getVideoElement,Jn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:er,notifications$:Dr,graphIsOpened$:tr}=wo(),so=K(void 0),Or=K(void 0),ir=K(void 0),mn=K(void 0),bo,xr,or;_o.set(G_());let{closeNotification:vt,notificationsToShow$:si}=Dr,Br=m(()=>!!r().slow_video),nr=()=>vt("slow_video"),Fr=m(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),Fo=K(void 0),Nn=de(!1),vn,nn=de(!1),gn=de(),wr=de(!1),Ho=K(!1),Uo=K(!1),hn=K(!1),Sr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),yi=m(()=>u()&&!f()&&!(n(Ho)||n(Uo))&&!(n(hn)&&!p())),_n=!0,Dn=m(()=>e.uiConfig.features.thumbTimer&&ze()&&a()==="video"&&!v()&&!s()&&!Do&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),rr=e.uiConfig.titleShowBehaviour,Cr=m(()=>!["video","thumb"].includes(a())||rr==="never"||y()?!1:rr==="fullscreen"?h():!0),On=m(()=>rr==="always"||a()==="thumb"?!1:!v()),rn=K(!1),$t=m(()=>(Ge()||e.showAutoplayNext&&x())&&!!Se()&&!!le()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(rn)),xt=m(()=>N()&&!(v()||n($t))&&!u()&&L()&&!E()),ao=K(!1),lo=m(()=>P()!==null),{toggle:sn}=er,Hi=!1,ji=null;Ct==null||Ct.setContext(wd());let co=()=>{e.autoplay&&!Do&&e.uiConfig.controls.showOnStartupAtAutoplay&&Mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:co});let Bn=()=>{window.clearTimeout(bo),nn.set(!1)},Hr=()=>{window.clearTimeout(xr),gn.set(null)},Mi=be=>{Bn(),nn.set(!0),bo=window.setTimeout(()=>nn.set(!1),be);let yt=be-100;vn=window.setTimeout(()=>{q()&&Nn.set(!1)},yt>0?yt:be)},bs=(be,yt)=>{Hr(),gn.set(yt),xr=window.setTimeout(()=>gn.set(null),be)},ns=Fi.subscribe(be=>{en.set(be),be&&(window.clearTimeout(or),or=window.setTimeout(()=>en.set(!1),e.uiConfig.controls.hide360IconTimeout))}),rs=async()=>{var yt,Ot,ei,Ti;let be=ea();if(be){let Ii=Zd(),ki=sr();be=Ii===ki||Ii===Me()}if(be){Mi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ct==null?void 0:Ct.exit())}catch(Ii){Ht({message:String(Ii)})}}mi.set(be),e.store.getAdmanWrapper().setFullscreen(be),h()?(Ot=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||Ot.call(yt):(Ti=(ei=e.store.callbacks)==null?void 0:ei.onFullscreenExit)==null||Ti.call(ei)},Tr=be=>{let{width:yt,height:Ot}=be.target;Bi.set({width:yt,height:Ot})},an=()=>{let{width:be,height:yt}=n(so).getBoundingClientRect();Bi.set({width:be,height:yt})};Lt(()=>{var yt;return Yu(rs),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(n(so))),Fa(Ct)&&(Ct==null||Ct.assignPlayerContainer(n(so)),Ct==null||Ct.setExternalEventHandlers({resize:Tr,leavepictureinpicture:an})),e.interactiveContainer&&((yt=mt().parentElement)==null||yt.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(bo),window.clearTimeout(vn),window.clearTimeout(xr),window.clearTimeout(or),ns(),Ct==null||Ct.dispose().catch(Ot=>{Ht({message:String(Ot)})}),ju(rs)}});let sr=()=>{let be=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!rt()?n(so):rt(),yt=be.getRootNode(),Ot=yt instanceof ShadowRoot?yt.host:yt,ei=ue()instanceof HTMLElement&&ue().contains(Ot);return e.uiConfig.allowChangingFullscreenTarget&&ue()&&ei?ue():be},Co=()=>{Ke.set(!1)},To=()=>{_s(),Co()},ar=async()=>{if(!Jn()){Ht({message:"fullscreen disabled"});return}Co(),ea()?(await Gu(document),Ht({message:"exit fullscreen"})):(Ht({message:"request fullscreen"}),await Qu(sr()))},He=be=>{y()||(be.preventDefault(),Ke.set(!0),br.set({left:be.clientX,top:be.clientY}))};function At(){wr.set(!0),Do||Mi(e.uiConfig.controls.hideTimeoutCursor)}function xi(be){var Ti,Ii;let{relatedTarget:yt}=be,ei=!!(yt&&((Ti=n(ir))!=null&&Ti.contains(yt)))&&((Ii=ct())==null?void 0:Ii.isFocused());!Do&&!ei&&(Nn.set(!0),Mi(e.uiConfig.controls.hideTimeoutCursor))}function zo(){wr.set(!1),D(Uo,!1),D(Ho,!1),Hi=!1,e.store.actions.internal.releaseCamera(),Mi(e.uiConfig.controls.hideTimeout),E()&&Xi()}function uo(be){return be?be.offsetTop+uo(be.offsetParent):0}function Io(be){return be?be.offsetLeft+Io(be.offsetParent):0}function po(be){if(H()&&Vn){let yt=be.currentTarget,Ot=uo(yt),ei=Io(yt),Ti=be.pageX-ei,Ii=be.pageY-Ot,{left:ki,bottom:wi,right:ss}=H(),Hs=ss-ki;return Ti>=ki-Hs&&Ii<=wi+Hs}}function Wo(be){if(n(so)){let yt=uo(be.currentTarget),Ot=z().height,ei=be.pageY-yt;if(po(be)){D(Uo,!1);return}ei<40?D(Uo,!0):ei>Ot-40?D(Ho,!0):(D(Uo,!1),f()||D(Ho,!1))}}function Fn(be){Wo(be),!n(yi)&&!E()&&Mi(e.uiConfig.controls.hideTimeoutCursor),j()&&Hi&&ji&&e.store.actions.internal.moveCameraFocusPX(ji.clientX-be.clientX,ji.clientY-be.clientY,be.timeStamp-ji.timeStamp),ji=be}let ln=null,$o=()=>{ln=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Bn()},e.uiConfig.doubleForwardActivationTime)},Xi=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),ln&&clearTimeout(ln),ln=null},Hn=be=>{be.preventDefault(),be.button===0&&(Hi=!0,e.store.actions.internal.holdCamera(),ae()&&$o()),!Hi&&Mi(e.uiConfig.controls.hideTimeoutCursor)},Un=be=>{be.preventDefault(),be.button===0&&(ji=be,Hi=!1,e.store.actions.internal.releaseCamera()),!E()&&Mi(e.uiConfig.controls.hideTimeoutCursor)},zn=be=>{be.preventDefault(),_n&&(Ht({message:"double click on video"}),ar(),Mi(e.uiConfig.controls.hideTimeoutCursor))},Ir=be=>{var yt;if(be.preventDefault(),E()){Xi();return}if(ln&&Xi(),X()||f()){To();return}if(!(T()&&!Rr)){if(n(lo))return sn();if((yt=ct())==null||yt.focus(),!ft()){e.firstStart(),Mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Mi(e.uiConfig.controls.hideTimeoutCursor)}},lr=be=>{To(),ho.set(!0),Mi(e.uiConfig.controls.hideTimeout),be&&bs(e.uiConfig.controls.hideHotKeyHelpers,be)},$s=()=>{var be,yt;To(),(be=e.store.callbacks)!=null&&be.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(J()):Pi.update(Ot=>!Ot)},Je=()=>{ho.set(!0)},Yt=e.store.ui.contextMenu.openedByBtnKeyboard$,Ci=e.store.ui.contextMenu.btnRef$,yo=K(void 0),Ko=e.store.ui.contextMenu.openedByHotKey$,Ur=e.store.ui.contextMenu.lastActiveElem$,Eo=K(!1),dr=e.store.ui.previewTrackActive;Ne(()=>{tn.set(n(Fo))}),Ne(()=>{D(hn,n(Sr)&&ne()!==jv.PlaybackState.PLAYING,!0),n(Sr)||Tt(()=>D(Sr,!0))}),Ne(()=>{var yt,Ot;let be=(n(hn)||T()||f()||we()||pe()||re()||_e()||n(Eo))&&!n(yi)&&(a()==="video"||a()==="ads")&&!s()&&L();Xt.set(be),!be&&!_e()&&((yt=n(ir))!=null&&yt.contains(ip()))&&((Ot=ct())==null||Ot.focus())}),Ne(()=>{!we()&&n(ao)&&!u()&&Mi(e.uiConfig.controls.hideTimeoutCursor),Tt(()=>D(ao,we(),!0))}),Ne(()=>{n(mn),f(),$e(),Tt(()=>rc(n(mn),f(),$e()))}),Ne(()=>{n(yo),X(),ee(),Re(),Tt(()=>{let be=ee()||Re();rc(n(yo),X(),be)})}),Ne(()=>{let be=fe();be&&(X(),Tt(()=>Wl(be,X(),Yt)))}),Ne(()=>{let be=k();be&&(X(),Tt(()=>J_(be,X(),Ko)))}),Ne(()=>{var be;!We()&&h()&&(Tt(()=>ht.set(!1)),(be=ct())==null||be.focus())}),Ne(()=>{y()&&To()});let Wn=K(void 0),ca=be=>{Nr.set(jn(Bo(),{title:n(Wn)},"title",be))},Bs=(be,yt)=>{var Ii,ki;let Ot=(ki=(Ii=e.store.callbacks)==null?void 0:Ii.uiInfo)==null?void 0:ki.onUpcomingLiveViewStateChanged;if(!Ot)return;let ei=!!yt,Ti={...jn(n(so),{upcomingLiveScreen:yt},"upcomingLiveScreen",ei),...be};Ot(Ti)};var Fs=LC();lt("blur",Ta,To);var bn=ce(Fs);bn.__mousemove=Fn;var at=C(bn);let di=m(()=>a()==="ads"),Vi=m(()=>n(lo)?sn:void 0);Xe(gm(at,{startDoubleForwardActivationTimer:$o,stopDoubleForward:Xi,toggleFullscreen:ar,hideContextMenu:To,showHotKeyHelpers:lr,showKeyMap:$s,get isAds(){return n(di)},get fakePlayButtonHandler(){return n(Vi)},get nextButtonActive(){return Ft()},get prevButtonActive(){return Y()},children:(be,yt)=>{var Ot=kC(),ei=ce(Ot);sl(ei,{get hideCursor(){return n(xt)},onClick:Ir,onContextMenu:He,onMouseDown:Hn,onMouseUp:Un,onDblClick:zn,get videoContainer(){return mt()},set videoContainer(ki){mt(ki)}});var Ti=A(ei,2);La(Ti,()=>"slot",!1,(ki,wi)=>{to(ki,()=>({name:rl}))});var Ii=A(Ti,2);Es(Ii,Te,ki=>{var wi=PC(),ss=ce(wi);let Hs=m(()=>a()!=="thumb"||s()||Do&&e.autoplay);il(ss,{get hidden(){return n(Hs)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:He,onClick:Co});var dl=A(ss,2);{var ua=Fe=>{Gv(Fe,{})};R(dl,Fe=>{Z()&&Fe(ua)})}var pa=A(dl,2);qv(pa,{});var as=A(pa,2);Qv(as,{get isVisible(){return E()}});var ys=A(as,2);{var fa=Fe=>{let gi=m(()=>{var qo;return(qo=e.live)==null?void 0:qo.startTime});Lc(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:Bs,onContextMenu:He,onClick:Co})};R(ys,Fe=>{a()==="LiveWaitingStart"&&Fe(fa)})}var ma=A(ys,2);{var xn=Fe=>{ol(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:He,onClick:Co})};R(ma,Fe=>{a()==="LiveWaitingRecover"&&Fe(xn)})}var xs=A(ma,2);{var cl=Fe=>{ol(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:He,onClick:Co})};R(xs,Fe=>{a()==="LiveWaitingRecord"&&Fe(cl)})}var cr=A(xs,2);{var pd=Fe=>{var gi=CC();let qo;var Er=C(gi);ec(Er,{get adsSlotId(){return Bt()},get adsParams(){return dt()},get adsAutoplayParam(){return wt()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),S(gi),O(wn=>qo=se(gi,1,"ads-container s-8",null,qo,wn),[()=>({hidden:a()!=="ads"})]),b(Fe,gi)};R(cr,Fe=>{e.showAds&&ft()&&Fe(pd)})}var ul=A(cr,2);{var fd=Fe=>{let gi=m(()=>!Ge()&&e.showAutoplayNext&&x());fm(Fe,{get title(){return Se()},get thumb(){return le()},get isHide(){return n(gi)},clickCloseIcon:()=>D(rn,!0)})};R(ul,Fe=>{n($t)&&Se()&&le()&&Fe(fd)})}var va=A(ul,2);{var md=Fe=>{let gi=m(()=>h()?"md":"sm"),qo=m(()=>{var Er;return(Er=e.store.callbacks)==null?void 0:Er.onTitleClicked});bv(Fe,{get title(){return e.title},get getVideoDeeplink(){return e.getVideoDeeplink},get isHidden(){return n(On)},onVisibilityChanged:ca,onMouseEnter:()=>{D(Eo,!0)},onMouseLeave:()=>{D(Eo,!1)},get size(){return n(gi)},get onTitleClicked(){return n(qo)},get ref(){return n(Wn)},set ref(Er){D(Wn,Er,!0)}})};R(va,Fe=>{n(Cr)&&Fe(md)})}var pl=A(va,2);{var fl=Fe=>{let gi=m(()=>a()==="video"&&v());kc(Fe,{get isShifted(){return n(gi)}})};R(pl,Fe=>{j()&&Fe(fl)})}var ga=A(pl,2);{var ot=Fe=>{var gi=TC(),qo=C(gi);Xd(qo,{}),S(gi),b(Fe,gi)};R(ga,Fe=>{ie()&&Fe(ot)})}var pt=A(ga,2);{var Zi=Fe=>{Ac(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()},onClick:Ir,onContextMenu:He,onDblClick:zn})};R(pt,Fe=>{re()&&Fe(Zi)})}var Po=A(pt,2);{var Ji=Fe=>{el(Fe,{get shifted(){return v()},get captions(){return it()},get position(){return U()},get playerSize(){return z()}})};R(Po,Fe=>{Oe().value!=="off"&&Fe(Ji)})}var vi=A(Po,2);{var Ui=Fe=>{var gi=IC();gi.__contextmenu=He,gi.__click=[SC,X,Ke,f,$i,To];var qo=C(gi);tl(qo,{}),S(gi),b(Fe,gi)};R(vi,Fe=>{s()&&Fe(Ui)})}var Us=A(vi,2);{var vd=Fe=>{let gi=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),qo=m(()=>a()==="ads"),Er=m(()=>e.canRewindLive&&ke()!==0);Ec(Fe,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return q()},get showControls(){return v()},get isAds(){return n(qo)},get canRewindLive(){return n(Er)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Dt()},get nextButtonActive(){return Ft()},get prevButtonActive(){return Y()},get isOneVideoPlaylist(){return he()},customFullscreenSupported:_n,toggleFullscreen:ar,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Or)},set playerControlsWrapperRef(wn){D(Or,wn,!0)},get playerControlsRef(){return n(ir)},set playerControlsRef(wn){D(ir,wn,!0)}})};R(Us,Fe=>{ft()&&Fe(vd)})}var jc=A(Us,2);{var Op=Fe=>{var gi=EC(),qo=C(gi);let Er=m(()=>{var wn;return(wn=n(ir))==null?void 0:wn.clientHeight});Nc(qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Er)},returnFocus:()=>{var wn;return(wn=ct())==null?void 0:wn.focus()},get ref(){return n(mn)},set ref(wn){D(mn,wn,!0)}}),S(gi),b(Fe,gi)};R(jc,Fe=>{!re()&&a()!=="ads"&&Fe(Op)})}var Xc=A(jc,2);let Bp=m(()=>!n(Dn));oc(Xc,{get isLive(){return Pe()},get isHidden(){return n(Bp)},get isPlaying(){return Ue()},get position(){return U()},get duration(){return ke()}});var Zc=A(Xc,2);hv(Zc,{get data(){return gn}});var Jc=A(Zc,2);um(Jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=ct())==null?void 0:Fe.focus()},get visible(){return X()},get playerContainerRef(){return n(so)},get position(){return tt()},get menuElementRef(){return n(yo)},set menuElementRef(Fe){D(yo,Fe,!0)}});var eu=A(Jc,2);{var ml=Fe=>{Dc(Fe,{onClose:nr,onSelectAutoQuality:()=>{$r("auto"),nr()}})};R(eu,Fe=>{n(Br)&&Fe(ml)})}var tu=A(eu,2);{var ha=Fe=>{Yv(Fe,{})};R(tu,Fe=>{ye()&&Fe(ha)})}var _a=A(tu,2);{var Fp=Fe=>{Wa(Fe,{})};R(_a,Fe=>{n(Fr)&&Fe(Fp)})}var gd=A(_a,2);{var hd=Fe=>{bm(Fe,{})};R(gd,Fe=>{Ie()&&Fe(hd)})}var iu=A(gd,2);{var Hp=Fe=>{ac(Fe,{})};R(iu,Fe=>{Be()&&Fe(Hp)})}b(ki,wi)}),b(be,Ot)},$$slots:{default:!0}}),be=>ct(be),()=>ct());var $n=A(at,2);Xe($n,be=>D(Fo,be),()=>n(Fo)),S(bn),Xe(bn,be=>D(so,be),()=>n(so));var zr=A(bn,2);{var yn=be=>{var yt=AC();b(be,yt)};R(zr,be=>{Nt()&&be(yn)})}lt("mouseenter",bn,At),lt("mouseleave",bn,zo),lt("click",bn,Je,!0),lt("focusin",bn,xi,!0),b(t,Fs),F(),o()}Ye(["mousemove","contextmenu","click"]);var da=require("@vkontakte/videoplayer-core/es2018"),s$=require("@vkontakte/videoplayer-shared/es2018");var VC=M('<div></div> <div class="info s-l"><div class="triangles-wrapper s-l"><div></div> <div></div> <div></div></div> <p class="step-caption s-l"> </p></div>',1),RC=M("<div><!></div>"),NC={hash:"s-l",code:".double-click-area.s-l{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-l{left:0}.double-click-area.right.s-l{right:0}.semicircle.s-l{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-l{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-l{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-l{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-l,.triangles-wrapper.s-l{display:flex;justify-content:center}.triangles-wrapper.s-l{margin-bottom:10px;position:relative}.triangle.s-l{animation:s-l-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-l:nth-child(3),.triangle.right.s-l:first-child{animation-delay:0s}.triangle.left.s-l:nth-child(2),.triangle.right.s-l:nth-child(2){animation-delay:.1s}.triangle.left.s-l:first-child,.triangle.right.s-l:nth-child(3){animation-delay:.2s}@keyframes s-l-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-l{border-right:8px solid var(--white)}.triangle.right.s-l{border-left:8px solid var(--white)}.triangle.s-l:not(:last-child){margin-right:5px}.step-caption.s-l{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function xp(t,e){B(e,!0),Q(t,NC);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ai(i())),d=p=>{p.stopPropagation(),a+=1,D(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(D(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,D(o,!1)},300)};un(()=>{window.clearTimeout(r)});var s=RC();s.__click=d;var u=C(s);{var f=p=>{var v=VC(),$=ce(v),y=A($,2),h=C(y),x=C(h),I=A(x,2),T=A(I,2);S(h);var N=A(h,2),L=C(N,!0);S(N),S(y),O(E=>{var P,q,H,z;se($,1,`semicircle ${(P=e.side)!=null?P:""}`,"s-l"),se(x,1,`triangle ${(q=e.side)!=null?q:""}`,"s-l"),se(I,1,`triangle ${(H=e.side)!=null?H:""}`,"s-l"),se(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-l"),me(L,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};R(u,p=>{n(o)&&p(f)})}S(s),O(()=>{var p;return se(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-l")}),b(t,s),F()}Ye(["click"]);var DC=(t,e,i)=>{e(!1),i()},OC=M('<div class="overlay s-n"></div> <div class="next-video s-n"><div class="top s-n"><div class="caption s-n"> </div> <!></div> <div class="row s-n"><div class="column s-n"><div class="thumb s-n"><div></div> <!></div></div> <div class="column s-n"><div class="title s-n"> </div></div></div></div>',1),BC={hash:"s-n",code:".overlay.s-n{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-n{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-n{display:flex;justify-content:space-between}.caption.s-n{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-n{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-n{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-n{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-n,.thumb-overlay.s-n{height:100%;width:100%}.thumb-overlay.s-n{position:absolute}.thumb-overlay.withOpacity.s-n{background:var(--black);opacity:.3}.title.s-n{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Zv(t,e){B(e,!0),Q(t,BC);let[i,o]=Ve(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},h=()=>{e.clickCloseIcon(),$()};Lt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var x=Ae(),I=ce(x);{var T=N=>{var L=OC(),E=A(ce(L),2),P=C(E),q=C(P),H=C(q,!0);S(q);var z=A(q,2);Ls(z,{onClick:h}),S(P);var j=A(P,2);j.__click=[DC,u,p];var ae=C(j),X=C(ae),ne=C(X);let J;var we=A(ne,2);{var pe=ee=>{lc(ee,{get isRunning(){return a()},onTimerEnded:y})};R(we,ee=>{r()&&ee(pe)})}S(X),S(ae);var re=A(ae,2),_e=C(re),$e=C(_e,!0);S(_e),S(re),S(j),S(E),O((ee,Re)=>{me(H,ee),qe(X,`background-image: url('${e.thumb}')`),J=se(ne,1,"thumb-overlay s-n",null,J,Re),me($e,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(N,L)};R(I,N=>{e.isHide||N(T)})}b(t,x),F(),o()}Ye(["click"]);var t$=require("@vkontakte/videoplayer-core/es2018");var i$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{t$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),un(()=>{i==null||i(),clearTimeout(o)})};var o$=require("@vkontakte/videoplayer-core/es2018");var wp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var n$=require("@vkontakte/videoplayer-core/es2018"),r$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),f=()=>n$.clientChecker.device.isIOS&&ge(l)===o$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=$=>{if(p(),!f()||!$)return;let y=u();if(!y)return;let h=new wp(y),x=ge(d),I=ge(a),T=ge(r);for(let E of x)I.some(q=>q.value===E.id)&&h.attach(E,T.value===E.id);let N=d.subscribe(E=>{for(let P of E)h.updateSrc(P)}),L=()=>{let E=h.getCurrentShowingId();o(ge(a).find(P=>P.value===E))};y.textTracks.addEventListener("change",L),s=()=>{N(),h.detachAll(),y.textTracks.removeEventListener("change",L)}};Lt(()=>i.subscribe(v)),un(p)};var FC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},HC=M("<!> <!>",1),UC=M("<div><!></div>"),zC=M('<div class="spherical-video-icon s-9"><!></div>'),WC=M("<div><!></div>"),KC=M('<div class="settings-mobile s-9"><!></div>'),qC=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),QC=M('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),GC={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function Jv(t,e){var On,rn;B(e,!0),Q(t,GC);let[i,o]=Ve(),r=()=>w(Me,"$playerPhase",i),a=()=>w(hi,"$isLoaderVisible",i),l=()=>w(Se,"$adPlaybackState",i),d=()=>w(Jt,"$crashed",i),s=()=>w(is,"$notificationsToShow$",i),u=()=>w(Y,"$playbackState$",i),f=()=>w(Pt,"$graphIsOpened$",i),p=()=>w(ze,"$interactiveHideMobileControls",i),v=()=>w(Gi,"$isEnded$",i),$=()=>w(ut,"$isInteractiveExpectation$",i),y=()=>w(ft,"$controlsVisible",i),h=()=>w(nt,"$touched",i),x=()=>w(Fi,"$autoplayNextEnabled$",i),I=()=>w(mi,"$postrollPassed",i),T=()=>w(Nr,"$bottomNoSmooth",i),N=()=>w(_i,"$videoSize",i),L=()=>w(St,"$playerSize",i),E=()=>w(rt,"$isFullscreen",i),P=()=>w(le,"$position$",i),q=()=>w(he,"$duration$",i),H=()=>w(en,"$loadedMetadata",i),z=()=>w(Ge,"$settingsMenuVisible",i),j=()=>w(Ht,"$scrubbingInProgress",i),ae=()=>w(Ut,"$volumeChangingInProgress",i),X=()=>w(Vt,"$chromecastConnected$",i),ne=()=>w(ue,"$isControlsAvailable",i),J=()=>w(ri,"$isInteractiveTime$",i),we=()=>w($i,"$isActiveLive",i),pe=()=>w(ct,"$settingsMenuOpenedByKeyboard",i),re=()=>w(Ft,"$language$",i),_e=()=>w(Gt,"$disabledControls$",i),$e=()=>w(zt,"$is3DVideo",i),ee=()=>w(W,"$icon3DVideoVisible",i),Re=()=>w(ci,"$chromecastDeviceName$",i),fe=()=>w(So,"$currentSubtitle$",i),k=()=>w(Ro,"$currentSubtitleCaptions$",i),We=()=>w(No,"$realDuration$",i),Te=()=>w(ht,"$isLive$",i),Z=()=>w(Xt,"$isPlaying$",i),ie=()=>w(ii,"$debugPanelVisible",i),De=g(e,"videoContainer",15),Oe=g(e,"adsSlotId",3,void 0),it=g(e,"adsParams",3,void 0),U=g(e,"adsAutoplayParam",3,void 0),ke=g(e,"duration",3,void 0),Pe=g(e,"logoTargetUrl",3,""),Ue=g(e,"showNextPrevButtons",3,!1),tt=g(e,"nextButtonActive",3,!1),ye=g(e,"prevButtonActive",3,!1),Ie=g(e,"endScreenVideoTitle",3,void 0),Be=g(e,"endScreenVideoThumb",3,void 0),Nt=g(e,"isOneVideoPlaylist",3,!1),mt=g(e,"showMiniTimer",3,!1),Bt=g(e,"fullScreenTarget",3,void 0),dt=g(e,"playerStarted",3,!1),wt=g(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Pt}=wo(),Dt=e.store.getLogger().createComponentLog("Root component"),Ft=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,Se=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,he=e.store.state.duration$,Me=e.store.playerPhase,rt=e.store.ui.isFullscreen,ft=e.store.ui.controlsVisible,ue=e.store.ui.isControlsAvailable,ze=e.store.ui.interactiveHideMobileControls,Ge=e.store.ui.settingsMenu.visible$,ct=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ht=e.store.ui.scrubbingInProgress,Ut=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,hi=e.store.state.isLoaderVisible,Gi=e.store.state.isEnded$,Vt=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,mi=e.store.ads.postrollPassed,ht=e.store.state.isLive$,Xt=e.store.state.isPlaying$,$i=e.store.state.isActiveLive$,Yi=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,It=e.store.webApi.annotationsApi,Ke=e.store.webApi.pictureInPictureApi,_i=e.store.state.videoSize$,So=e.store.state.currentSubtitle$,Ro=e.store.state.currentSubtitleCaptions$,No=e.store.state.duration$,St=e.store.ui.playerSize,zt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,ri=e.store.state.isInteractiveTime$,ut=e.store.state.isInteractiveExpectation$,Ct=e.store.state.hasInteractiveBranches,Gt=e.store.ui.controls.disabledControls$,nt=e.store.ui.touched,Bi=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,en=e.store.state.loadedMetadata$,Do=e.store.actions.internal.closeSettingsMenu,ro=(On=e.store.callbacks)==null?void 0:On.onDisabledPlayPrevChapterClick,Ai=(rn=e.store.callbacks)==null?void 0:rn.onDisabledSeekToInteractiveClick,Rr=e.store.actions.internal.setQuality,ho=K(void 0),_o=K(void 0),Pi=K(void 0),tn=K(void 0),Oo,Vn,br=m(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),$r=K(void 0),{closeNotification:_s,notificationsToShow$:is}=ti,os=m(()=>!!s().slow_video),Zn=()=>_s("slow_video"),Nr=de(!1),on,Rn=K(!1),yr=m(()=>u()!==da.PlaybackState.PLAYING),Bo=K(!1),Jn=m(()=>f()||p()||!n(Rn)&&(v()&&!!Ct||n(yr)&&$())),er=K(!0),Dr=m(()=>e.uiConfig.features.thumbTimer&&mt()&&r()==="video"&&!y()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!h()||!e.uiConfig.hideThumbTimerAfterTouch)),tr=K(!1),so=m(()=>(wt()||e.showAutoplayNext&&x())&&!!Ie()&&!!Be()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(tr)),Or=K(!1);Ke==null||Ke.setContext(wd());let ir=$t=>{$t&&!kt&&bo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:ir});let mn=()=>{clearTimeout(Oo),D(Rn,!1),p()&&ze.set(!1)},bo=$t=>{mn(),D(Rn,!0),Oo=setTimeout(()=>D(Rn,!1),$t);let xt=$t-100;on=setTimeout(()=>{T()&&Nr.set(!1)},xt>0?xt:$t)},xr=zt.subscribe($t=>{W.set($t),$t&&(clearTimeout(Vn),Vn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),or=async($t=ea())=>{var xt,ao,lo,sn,Hi,ji;if($t&&!da.clientChecker.device.isIOS){let co=Zd(),Bn=Fo(),Hr=da.clientChecker.browser.isSamsungBrowser&&co===e.shadowRootContainer;$t=co===Bn||Hr}if($t){bo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ke==null?void 0:Ke.exit())}catch(co){Dt({message:String(co)})}try{let co=(xt=N())!=null&&xt.width&&((ao=N())!=null&&ao.height)?N():L();await Q_(co)}catch(co){Dt({message:String(co)})}}rt.set($t),e.store.getAdmanWrapper().setFullscreen($t),E()?(sn=(lo=e.store.callbacks)==null?void 0:lo.onFullscreenEnter)==null||sn.call(lo):(ji=(Hi=e.store.callbacks)==null?void 0:Hi.onFullscreenExit)==null||ji.call(Hi)},vt=$t=>{let xt=$t,{width:ao,height:lo}=xt.target;St.set({width:ao,height:lo})},si=()=>{let{width:$t,height:xt}=n(ho).getBoundingClientRect();St.set({width:$t,height:xt})};Lt(()=>{var $t;return Yu(or),e.uiConfig.features.annotationsInside&&(It==null||It.init(n(ho))),Fa(Ke)&&(Ke==null||Ke.assignPlayerContainer(n(ho)),Ke==null||Ke.setExternalEventHandlers({resize:vt,leavepictureinpicture:si})),D(er,!da.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&(($t=De().parentElement)==null||$t.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(Oo),clearTimeout(on),clearTimeout(Vn),xr(),Ke==null||Ke.dispose().catch(xt=>{Dt({message:String(xt)})}),ju(or)}});let Br=K(!0),nr=K(!0),Fr=$t=>{let xt=P()+($t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(D(Br,!1),xt=0):xt>=q()&&(D(nr,!1),xt=q()),D(Bo,!0),e.seekTime(xt)},Fo=()=>da.clientChecker.device.isIOS?n(ho):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,Nn=async()=>{try{if(ea())await Gu(document),Dt({message:"exit fullscreen"});else{if(Dt({message:"request fullscreen"}),da.clientChecker.device.isIOS&&!H())return;await Qu(Fo())}}catch($t){Dt({message:String($t)})}},vn=()=>{Do()},nn=$t=>{if($t.preventDefault(),z()){vn();return}if(!dt()){e.firstStart(),bo(e.uiConfig.controls.hideTimeoutCursor);return}D(Bo,!1),y()?mn():bo(e.uiConfig.controls.hideTimeoutMobile)},gn=()=>{nt.set(!0)},wr=()=>{kt||(Nr.set(!0),bo(e.uiConfig.controls.hideTimeoutCursor))},Ho=$t=>{ro&&(ro($t),bo(e.uiConfig.controls.hideTimeoutMobile))},Uo=$t=>{Ai&&(Ai($t),bo(e.uiConfig.controls.hideTimeoutMobile))};Ne(()=>{Bi.set(n($r))}),Ne(()=>{ft.set((n(yr)||z()||j()||ae()||X()||!n(so)&&(v()||n(Rn)&&!n(Bo)))&&!n(Jn)&&r()==="video"&&!d()&&ne())}),Ne(()=>{!j()&&n(Or)&&!J()&&bo(e.uiConfig.controls.hideTimeoutMobile),D(Or,j(),!0)}),Ne(()=>{D(Br,P()>0),D(nr,!we()&&P()<q(),!0)}),Ne(()=>{rc(n(tn),z(),pe(),!0)});let hn=G("aria_label_video_player");i$({fullScreenChangeHandler:or,getFullscreenTarget:Fo}),r$({store:e.store,getFullscreenTarget:Fo});let Sr=($t,xt)=>{var Hi,ji;let ao=(ji=(Hi=e.store.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:ji.onUpcomingLiveViewStateChanged;if(!ao)return;let lo=!!xt,sn={...jn(n(ho),{upcomingLiveScreen:xt},"upcomingLiveScreen",lo),...$t};ao(sn)};var yi=QC();lt("blur",Ta,vn);var _n=C(yi);sl(_n,{onClick:nn,get videoContainer(){return De()},set videoContainer($t){De($t)}});var Dn=A(_n,2);La(Dn,()=>"slot",!1,($t,xt)=>{to($t,()=>({name:rl}))});var rr=A(Dn,2);Es(rr,re,$t=>{var xt=qC(),ao=ce(xt);let lo=m(()=>r()!=="thumb"||d()||kt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);il(ao,{get hidden(){return n(lo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var sn=A(ao,2);{var Hi=Je=>{var Yt=HC(),Ci=ce(Yt);{var yo=Eo=>{let dr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);xp(Eo,{side:"left",get seekStep(){return n(dr)},handleSingleFirstClick:nn,handleSecondClick:()=>Fr("backward")})};R(Ci,Eo=>{n(Br)&&Eo(yo)})}var Ko=A(Ci,2);{var Ur=Eo=>{let dr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);xp(Eo,{side:"right",get seekStep(){return n(dr)},handleSingleFirstClick:nn,handleSecondClick:()=>Fr("forward")})};R(Ko,Eo=>{n(nr)&&Eo(Ur)})}b(Je,Yt)};R(sn,Je=>{e.canRewindLive&&Yi&&!_e().has("TIMELINE")&&Je(Hi)})}var ji=A(sn,2);{var co=Je=>{let Yt=m(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});Lc(Je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Yt)},onUpcomingLiveViewStateChanged:Sr})};R(ji,Je=>{r()==="LiveWaitingStart"&&Je(co)})}var Bn=A(ji,2);{var Hr=Je=>{ol(Je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Bn,Je=>{r()==="LiveWaitingRecover"&&Je(Hr)})}var Mi=A(Bn,2);{var bs=Je=>{ol(Je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Mi,Je=>{r()==="LiveWaitingRecord"&&Je(bs)})}var ns=A(Mi,2);{var rs=Je=>{var Yt=UC();let Ci;var yo=C(Yt);ec(yo,{get adsSlotId(){return Oe()},get adsParams(){return it()},get adsAutoplayParam(){return U()},get duration(){return ke()},get adsExternalApi(){return e.adsExternalApi}}),S(Yt),O(Ko=>Ci=se(Yt,1,"ads-container s-9",null,Ci,Ko),[()=>({hidden:r()!=="ads"})]),b(Je,Yt)};R(ns,Je=>{e.showAds&&dt()&&Je(rs)})}var Tr=A(ns,2);{var an=Je=>{let Yt=m(()=>!wt()&&e.showAutoplayNext&&x());Zv(Je,{get title(){return Ie()},get thumb(){return Be()},get isHide(){return n(Yt)},clickCloseIcon:()=>D(tr,!0)})};R(Tr,Je=>{n(so)&&Ie()&&Be()&&Je(an)})}var sr=A(Tr,2);{var Co=Je=>{kc(Je,{})};R(sr,Je=>{$e()&&Je(Co)})}var To=A(sr,2);{var ar=Je=>{var Yt=zC(),Ci=C(Yt);Xd(Ci,{}),S(Yt),b(Je,Yt)};R(To,Je=>{ee()&&Je(ar)})}var He=A(To,2);{var At=Je=>{Ac(Je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Re()},onClick:nn})};R(He,Je=>{X()&&Je(At)})}var xi=A(He,2);{var zo=Je=>{el(Je,{get shifted(){return y()},get captions(){return k()},get position(){return P()},get playerSize(){return L()},isMobile:!0})};R(xi,Je=>{fe().value!=="off"&&Je(zo)})}var uo=A(xi,2);{var Io=Je=>{var Yt=WC();Yt.__click=[FC,z,Ge,vn];var Ci=C(Yt);tl(Ci,{}),S(Yt),b(Je,Yt)};R(uo,Je=>{d()&&Je(Io)})}var po=A(uo,2);{var Wo=Je=>{let Yt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=m(()=>r()==="ads"),yo=m(()=>e.canRewindLive&&We()!==0);Ec(Je,{get bottomHidden(){return n(Yt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Ci)},get canRewindLive(){return n(yo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return tt()},get prevButtonActive(){return ye()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(er)},get endScreenShown(){return n(so)},toggleFullscreen:Nn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ho,onDisabledSeekToInteractiveClick:Uo,get playerControlsWrapperRef(){return n(_o)},set playerControlsWrapperRef(Ko){D(_o,Ko,!0)},get playerControlsRef(){return n(Pi)},set playerControlsRef(Ko){D(Pi,Ko,!0)}})};R(po,Je=>{dt()&&Je(Wo)})}var Fn=A(po,2);{var ln=Je=>{var Yt=KC(),Ci=C(Yt);Nc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return s$.noop},get ref(){return n(tn)},set ref(yo){D(tn,yo,!0)}}),S(Yt),b(Je,Yt)};R(Fn,Je=>{z()&&Je(ln)})}var $o=A(Fn,2);let Xi=m(()=>!n(Dr));oc($o,{get isLive(){return Te()},get isHidden(){return n(Xi)},get isPlaying(){return Z()},get position(){return P()},get duration(){return q()}});var Hn=A($o,2);{var Un=Je=>{Wa(Je,{})};R(Hn,Je=>{n(br)&&Je(Un)})}var zn=A(Hn,2);{var Ir=Je=>{ac(Je,{})};R(zn,Je=>{ie()&&Je(Ir)})}var lr=A(zn,2);{var $s=Je=>{Dc(Je,{onClose:Zn,onSelectAutoQuality:()=>{Rr("auto"),Zn()}})};R(lr,Je=>{n(os)&&Je($s)})}b($t,xt)});var Cr=A(rr,2);Xe(Cr,$t=>D($r,$t),()=>n($r)),S(yi),Xe(yi,$t=>D(ho,$t),()=>n(ho)),O(()=>Le(yi,"aria-label",hn)),lt("click",yi,gn,!0),lt("focusin",yi,wr,!0),b(t,yi),F(),o()}Ye(["click"]);function Sp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var a$=require("@vkontakte/videoplayer-shared/es2018");var YC=M('<div class="time-container s-7"><!></div>'),jC=M('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),XC={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function eg(t,e){B(e,!0),Q(t,XC);let[i,o]=Ve(),r=()=>w(J,"$scrubbingInProgress",i),a=()=>w(X,"$playerSize",i),l=()=>w(P,"$isPlaying$",i),d=()=>w(L,"$duration$",i),s=()=>w(z,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),f=()=>w(N,"$crashed$",i),p=()=>w(q,"$currentSubtitle$",i),v=()=>w(H,"$currentSubtitleCaptions$",i),$=()=>w(E,"$positionExact$",i),y=()=>w(j,"$isLive$",i),h=()=>w(ae,"$isRewindableLive$",i),x=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:T,state:{crashed$:N,duration$:L,positionExact$:E,isPlaying$:P,currentSubtitle$:q,currentSubtitleCaptions$:H,positionWithScrubbing$:z,isLive$:j,isRewindableLive$:ae},ui:{playerSize:X,controls:ne,scrubbingInProgress:J},actions:{internal:{getVideoElement:we}}}=ve(),pe=8,re=K(!1),_e=ai({}),$e=K(!1),ee=m(()=>!r()&&!n($e)),Re=()=>{D(re,!0)},fe=()=>{D(re,!1)},k=(0,a$.debounceFn)(Jl,260);Ne(()=>{a(),k(we(),ne,_e,n(re))});let We=m(()=>l()?Jo(d()-s()):Jo(isFinite(d())?d():x()));var Te=jC(),Z=C(Te);sl(Z,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Ie){I(Ie)}});var ie=A(Z,2);La(ie,()=>"slot",!1,(Ie,Be)=>{to(Ie,()=>({name:rl}))});var De=A(ie,2);let Oe=m(()=>u()!=="thumb"||f());il(De,{get hidden(){return n(Oe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var it=A(De,2);{var U=Ie=>{el(Ie,{shifted:!1,get captions(){return v()},get position(){return $()},get playerSize(){return a()}})};R(it,Ie=>{p().value!=="off"&&n(ee)&&Ie(U)})}var ke=A(it,2);{var Pe=Ie=>{var Be=YC(),Nt=C(Be);ic(Nt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),S(Be),b(Ie,Be)};R(ke,Ie=>{n(ee)&&Ie(Pe)})}var Ue=A(ke,2);let tt;var ye=C(Ue);Xa(ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return h()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:pe,tooltipRightOffset:pe,get ref(){return _e.timeline},set ref(Ie){_e.timeline=Ie}}),S(Ue),S(Te),O(Ie=>tt=se(Ue,1,"timeline s-7",null,tt,Ie),[()=>({visible:n(re)})]),lt("mouseenter",Te,Re),lt("mouseleave",Te,fe),lt("mouseenter",Ue,()=>D($e,!0)),lt("mouseleave",Ue,()=>D($e,!1)),b(t,Te),F(),o()}var ZC=M("<div><!></div>"),JC={hash:"s-1",code:'.vk-vp-root.s-1{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function tg(t,e){B(e,!0),Q(t,JC);let[i,o]=Ve(),r=()=>w(dt,"$isLive$",i),a=()=>w(It,"$availableSubtitlesList$",i),l=()=>w(Ke,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),f=g(e,"videoConfig",7),p=g(e,"uiConfig",7),v=g(e,"title",7),$=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),h=g(e,"interactiveController",7),x=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),T=g(e,"live",7),N=g(e,"preload",7),L=g(e,"autoplay",7),E=g(e,"volume",7,void 0),P=g(e,"muted",7,void 0),q=g(e,"fromTime",7),H=g(e,"canRewindLive",7),z=g(e,"showAds",7),j=g(e,"adsSlotId",7,void 0),ae=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),ne=g(e,"duration",7,void 0),J=g(e,"logoClickable",7),we=g(e,"logoHidden",7),pe=g(e,"isMobile",7),re=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),$e=g(e,"prevButtonActive",7,!1),ee=g(e,"endScreenVideoTitle",7,void 0),Re=g(e,"endScreenVideoThumb",7,void 0),fe=g(e,"isOneVideoPlaylist",7,!1),k=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Te=g(e,"outerContainerRef",7),Z=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),De=g(e,"showMiniTimer",7,!1),Oe=g(e,"saveRate",7),it=g(e,"seekToInteractive",7,al.noop),U=g(e,"playPrevChapter",7,al.noop),ke=g(e,"volumeMultiplier",7),Pe=g(e,"showAutoplayNext",7),Ue=g(e,"showEndScreen",7,!0),tt=g(e,"keyboardControls",15,void 0),{subscribers:ye,stores:Ie}=u();t_(p());let Be=Mt(),Nt=p().logoLink,mt=s().ui.debugPanelVisible,Bt=s().ui.playerSize,dt=s().state.isLive$,ti=s().state.isInteractive&&nd.clientChecker.device.isAndroid,Pt=K(void 0),Dt=null,Ft=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),p_(s(),Ie),Ne(()=>{var W,kt;s().ui.isMobile.set(pe()),(kt=(W=f().callbacks)==null?void 0:W.onDomReady)==null||kt.call(W)});let Y=(W=!1)=>{D(Ft,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Se=()=>{if(Be.features.qualityDetailsSubMenuEnabled){let W=R_(s().videoId);if(W)switch(W.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(W.quality);break}}else{N_(s().videoId),Qf()&&s().actions.internal.setTrafficSavingEnabled(!0);let kt=Wf(s().videoId);kt&&s().actions.internal.setQuality(kt)}};function le(W){var Gt,nt,Bi;let kt=d()||W;kt&&s().initVideo({container:n(Pt),sources:kt,failoverHosts:ie(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ke()});let ri=al.safeStorage.get(Kd)==="true";mt.set(ri),q()>0&&s().actions.external.seekTime(q());let ut=pe()?Be.volumeDefault:(nt=(Gt=E())!=null?Gt:Ou())!=null?nt:Be.volumeDefault,Ct=(Bi=P())!=null?Bi:P_();if(s().actions.external.setVolume(ut),s().actions.external.setMuted(Ct),s().getAdmanWrapper().setInitialVolume(Ct?0:ut),Se(),Be.features.saveRate&&Oe()){let Fi=L_();Fi&&!r()&&s().actions.internal.setPlaybackRate(Fi)}if(Pe()){let Fi=V_();Fi&&s().actions.internal.setAutoplayNextEnabled(Fi)}s().ui.isAutoplay.set(L()),L()&&Y(),N()&&Be.features.preload&&s().actions.internal.preload()}let he=W=>{if(window.ResizeObserver){let kt,ri;Dt=new ResizeObserver((0,al.throttleFn)(ut=>{let Ct=ut[0];if(Ct.contentBoxSize){let Gt=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;kt=Gt.inlineSize,ri=Gt.blockSize}else Ct.contentRect&&(kt=Ct.contentRect.width,ri=Ct.contentRect.height);Bt.set({width:kt,height:ri})},300)),Dt.observe(W)}W.clientWidth&&W.clientHeight&&Bt.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&s().actions.external.stop()};Lt(()=>{var ri,ut,Ct,Gt;ti&&document.addEventListener("visibilitychange",Me),Be.debugLog&&s().actions.internal.startLogging(),he(n(Pt));let W=ye.map(nt=>nt.init({store:s(),microStores:Ie,config:f(),interactiveController:h(),uiConfig:p()})),kt=()=>{ti&&document.removeEventListener("visibilitychange",Me),Dt==null||Dt.disconnect(),W.forEach(nt=>nt.unsubscribe()),s().destroy()};return((ri=T())==null?void 0:ri.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),kt):((ut=T())==null?void 0:ut.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),kt):(((Ct=T())==null?void 0:Ct.status)==="finished"||((Gt=T())==null?void 0:Gt.status)==="postlive")&&!(d()&&(0,nd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),kt):(le(),kt)});function rt(){n(Ft)?s().actions.external.play():Y(!0)}function ft(){s().actions.external.pause()}function ue(W){s().actions.external.setMuted(W)}function ze(){s().actions.external.toggleSubtitle()}function Ge(W,kt){s().actions.external.changeSubtitle(W,kt)}function ct(W){s().actions.external.changeAudioStream(W)}function Ht(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Ut(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function ii(W){pe()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function hi(W){s().actions.internal.seekTime(W,l$.SeekAction.UNKNOWN)}function Gi(W){s().actions.external.seekEpisodeStartTime(W)}function Vt(){s().actions.external.returnFocusToEpisodes()}function ci(W){s().actions.external.setPlaybackRate(W)}function mi(W){s().actions.external.setAutoQualityLimits(W)}function ht(){s().actions.external.setQuality("auto")}function Xt(W){s().actions.external.setTrafficSavingEnabled(W)}function $i(W){s().actions.external.setHighQualityEnabled(W)}let Yi=Sp(Be.view),Jt=f().playerView==="preview",It=s().state.availableSubtitlesList$;if(Be.features.initSubtitles){let W=!1;Ne(()=>{var kt;if(!W&&a().length){W=!0;let ri;if(Be.features.userVideoPrefs&&s().videoId){let Ct=Uu(Be.userSalt,String(s().videoId));Ct!=null&&Ct.subtitleTrackId&&(ri=a().find(Gt=>Gt.value===Ct.subtitleTrackId))}let ut=(kt=I())!=null?kt:Yf();ut&&(ri=a().find(Ct=>Ct.language===ut)),s().actions.internal.setSubtitle(ri)}})}let Ke=s().ui.isPreviewTrackHorizontallyAligned;var _i=ZC();let So;var Ro=C(_i);{var No=W=>{Jv(W,{get store(){return s()},get uiConfig(){return Be},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return ae()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return Z()},get showMiniTimer(){return De()},get playerStarted(){return n(Ft)},get seekToInteractive(){return it()},get playPrevChapter(){return U()},firstStart:Y,seekTime:hi,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Pt)},set videoContainer(kt){D(Pt,kt,!0)}})},St=W=>{var kt=Ae(),ri=ce(kt);{var ut=Gt=>{eg(Gt,{get thumbUrl(){return $()},get outsideDuration(){return ne()},get canRewindLive(){return H()},get videoContainer(){return n(Pt)},set videoContainer(nt){D(Pt,nt,!0)}})},Ct=Gt=>{Xv(Gt,{get store(){return s()},get uiConfig(){return Be},get title(){return v()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return ae()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return Z()},get showMiniTimer(){return De()},get playerStarted(){return n(Ft)},get seekToInteractive(){return it()},get playPrevChapter(){return U()},firstStart:Y,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Pt)},set videoContainer(nt){D(Pt,nt,!0)},get keyboardControls(){return tt()},set keyboardControls(nt){tt(nt)}})};R(ri,Gt=>{Jt?Gt(ut):Gt(Ct,!1)})}b(W,kt)};R(Ro,W=>{pe()?W(No):W(St,!1)})}S(_i),O(W=>{So=se(_i,1,"vk-vp-root s-1",null,So,W),qe(_i,Yi)},[()=>({"root--miui-browser":nd.clientChecker.device.isMobile&&nd.clientChecker.browser.isMiuiBrowser,"visible-outside":Jt,"preview-track-horizontally-alinged":l()})]),b(t,_i);var zt=F({initVideo:le,play:rt,pause:ft,setMuted:ue,toggleSubtitle:ze,changeSubtitle:Ge,changeAudioStream:ct,hideControls:Ht,showControls:Ut,setVolume:ii,seekTime:hi,seekEpisodeStartTime:Gi,returnFocusToEpisodes:Vt,setPlaybackRate:ci,setAutoQualityLimits:mi,setAutoQuality:ht,toggleTrafficSaving:Xt,toggleHighQuality:$i,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return f()},set videoConfig(W){f(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return $()},set thumbUrl(W){$(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return h()},set interactiveController(W){h(W)},get subtitles(){return x()},set subtitles(W){x(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return N()},set preload(W){N(W)},get autoplay(){return L()},set autoplay(W){L(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return P()},set muted(W){P(W)},get fromTime(){return q()},set fromTime(W){q(W)},get canRewindLive(){return H()},set canRewindLive(W){H(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return j()},set adsSlotId(W){j(W)},get adsParams(){return ae()},set adsParams(W){ae(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return ne()},set duration(W){ne(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return pe()},set isMobile(W){pe(W)},get showNextPrevButtons(){return re()},set showNextPrevButtons(W){re(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return $e()},set prevButtonActive(W){$e(W)},get endScreenVideoTitle(){return ee()},set endScreenVideoTitle(W){ee(W)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(W){Re(W)},get isOneVideoPlaylist(){return fe()},set isOneVideoPlaylist(W){fe(W)},get supportLink(){return k()},set supportLink(W){k(W)},get shadowRootContainer(){return We()},set shadowRootContainer(W){We(W)},get outerContainerRef(){return Te()},set outerContainerRef(W){Te(W)},get fullScreenTarget(){return Z()},set fullScreenTarget(W){Z(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return De()},set showMiniTimer(W){De(W)},get saveRate(){return Oe()},set saveRate(W){Oe(W)},get showAutoplayNext(){return Pe()},set showAutoplayNext(W){Pe(W)},get seekToInteractive(){return it()},set seekToInteractive(W){it(W)},get playPrevChapter(){return U()},set playPrevChapter(W){U(W)},get volumeMultiplier(){return ke()},set volumeMultiplier(W){ke(W)},get showEndScreen(){return Ue()},set showEndScreen(W){Ue(W)},get keyboardControls(){return tt()},set keyboardControls(W){tt(W)}});return o(),zt}var eT=Ce('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function ig(t,e){let i=g(e,"isWhite",3,!1),o=m(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=eT();li(9),b(r,l)},$$slots:{default:!0}})}var tT=M('<div class="title s-2"> </div>'),iT=M('<div class="playerStub s-2"><!> <!></div>'),oT={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function og(t,e){Q(t,oT);var i=iT(),o=C(i);{var r=d=>{var s=tT(),u=C(s,!0);S(s),O(()=>me(u,e.title)),b(d,s)};R(o,d=>{e.title&&d(r)})}var a=A(o,2);{var l=d=>{let s=m(()=>!!e.thumbUrl);ig(d,{get isWhite(){return n(s)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var nT=M('<div class="playerError s-3"><!></div>'),rT={hash:"s-3",code:".playerError.s-3{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function ng(t){Q(t,rT);var e=nT(),i=C(e);tl(i,{}),S(e),b(t,e)}var Np=require("@vkontakte/videoplayer-shared/es2018"),Oi=require("@vkontakte/videoplayer-shared/es2018"),Yc=require("@vkontakte/videoplayer-core/es2018"),cd=require("@vkontakte/videoplayer-statistics/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),Cp=class{constructor(){this.subscription=new Tp.Subscription,this.logger=new Tp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=ge(e.state.currentPlaybackRate$),r=ge(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var sd=require("@vkontakte/videoplayer-shared/es2018");var sT=Ce('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),aT=M('<div><div><!></div> <span class="title s-6"> </span></div>'),lT={hash:"s-6",code:".player-pip-dummy.s-6{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function rg(t,e){B(e,!0),Q(t,lT);let[i,o]=Ve(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(f,"$isMobile$",i),l=ve(),d=Mt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,p=l.ui.t,v=m(()=>r()&&p("pip_dummy_title")),$=Sp(d.view);var y=aT();let h;var x=C(y);let I;var T=C(x);Ze(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,P)=>{var q=sT();li(),b(E,q)},$$slots:{default:!0}}),S(x);var N=A(x,2),L=C(N,!0);S(N),S(y),O((E,P)=>{h=se(y,1,"player-pip-dummy s-6",null,h,E),qe(y,$),I=se(x,1,"dummy-image s-6",null,I,P),me(L,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var dT=Object.defineProperty,cT=(t,e,i)=>e in t?dT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rd=(t,e,i)=>cT(t,typeof e!="symbol"?e+"":e,i),uT=460,pT=280,Fc=class{constructor({enabled:e=!0}={enabled:!0}){rd(this,"playerDomElement"),rd(this,"playerParentShadowRoot"),rd(this,"playerDummyElement"),rd(this,"svelteContext"),rd(this,"pipWindow"),rd(this,"info",{isActive$:new sd.ValueSubject(!1),isEnabled$:new sd.ValueSubject(!1),type:1}),this.info.isEnabled$=new sd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,sd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:uT,height:pT,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
63
|
+
`),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Gr(rg,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Aa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function d$(t){return t instanceof Fc}var Ip=class{static getLatestSupportedVersion(e){let i=new Ba(e),o=new Fc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Hc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var c$="Inner error. Unexpectedly root annotation container null reference exception",u$="Annotation with such name already exists",p$="Annotation with such name does not exist";var ad=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ld=require("@vkontakte/videoplayer-shared/es2018"),fT="1",mT=100,Ep=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ld.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ld.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},mT);this.subscriptions.add((0,ld.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ad(c$);if(this.annotations.has(e))throw new ad(u$);i.style.zIndex=(o=i.style.zIndex)!=null?o:fT,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new ad(p$);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var ll=require("@vkontakte/videoplayer-shared/es2018"),fn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ll.assertNonNullable)(e),(0,ll.assertNonNullable)(i),(0,ll.assertNonNullable)(r),r.interactiveData&&(0,ll.assertNonNullable)(o),this.subscription=new ll.Subscription,this.subscription}};var Uc=class extends fn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var zc=class extends fn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:f}=a.ui,p=ge(f),v=()=>p&&ge(u);return o.add(u.subscribe($=>{if(!p)return;let y=ge(l);ge(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||v())})),o.add(l.subscribe($=>{if($===null)return;let y=ge(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var Wc=class extends fn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var f$=require("@vkontakte/videoplayer-shared/es2018"),sg=de(!1),Pp=null,Kc=class extends fn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...sg,set:(i,o=!1)=>{i!==ge(sg)&&(this.clearTimeout(),sg.set(i),!i&&Pp&&(Pp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{ge(l)&&p&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,f$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:$})=>{var y,h;if(!(!p||!($!=null&&$.isDisplayed))){if(!v)return this.state$.set(!1);f.tooltipHelpHintActive&&Pp===null&&(Pp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(h=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||h.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var kp=require("@vkontakte/videoplayer-shared/es2018");var qc=class extends fn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(null),toggle:kp.noop};this.checkIfShouldHide=i=>Ms(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ge(l)))return;let s=ge(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:p}=r.ui.controls,v=ge(u),$=ge(f);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),p.remove(Df),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),p.add(Df),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,kp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}})),o}};var ag=require("@vkontakte/videoplayer-shared/es2018"),Qc=class extends fn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new ag.ValueSubject(!1),isEnabled$:new ag.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Lp=require("@vkontakte/videoplayer-shared/es2018");var Ap=require("@vkontakte/videoplayer-shared/es2018"),m$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?vT({maxCount:t}):void 0,e!==0?gT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},vT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},gT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Ap.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Gc=class extends fn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=m$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Lp.filterChanged)(),(0,Lp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var v$=()=>[Uc,zc,Wc,Kc,qc,Qc,Gc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var dd=require("@vkontakte/videoplayer-shared/es2018");var Mp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Vp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Mp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var hT=M('<div class="root s-0"><!></div>'),_T={hash:"s-0",code:".root.s-0{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function lg(t,e){B(e,!0),Q(t,_T);let i=null,o=K(null);Ne(()=>(n(o)&&(i=window.setTimeout(()=>{D(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&D(o,s?"prev":"next",!0)}var a=Ae(),l=ce(a);{var d=s=>{var u=Ae(),f=ce(u);Es(f,()=>n(o),p=>{var v=hT(),$=C(v);let y=m(()=>n(o)==="prev");Bc($,{get duration(){return e.animationDuration},get Icon(){return la},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};R(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var bT=Object.defineProperty,$T=(t,e,i)=>e in t?bT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zt=(t,e,i)=>$T(t,typeof e!="symbol"?e+"":e,i),yT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Oi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Yc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),dg=ai({animationDuration:0,playbackStatusShow:!1}),Rp=class extends HTMLElement{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"sveltePersistentLayerComponent"),Zt(this,"svelteErrorComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"stateContainer"),Zt(this,"shadowRootContainer"),Zt(this,"playerId"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"focusManager"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"postponedInitParams",null),Zt(this,"internalsExposure",null),Zt(this,"shadowDOMCallbacksDisabled",!1),Zt(this,"fatalError$",new Np.ValueSubject(null)),Zt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:f,statVKAppId:p,refreshStatAuthToken:v,autoplay:$,isMobile:y,isTouch:h,refDomain:x,deviceId:I,interactiveData:T}=Hc(this.videoConfig,i),N=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,L=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;L&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:P=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new cd.OneStat({movieId:E,albumId:d,place:s,trackCode:f,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:h!=null?h:y,clip:P,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...N&&(!this.isInited||L)&&{projectId:Number(N)}},{refreshAuthToken:v,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),dd.devNull.create("ui"),this.logger=new Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.interactiveSubscription=new Oi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Gr(ng,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Gr(og,l),this.sveltePersistentLayerComponent=Gr(lg,{target:this.playerContainer,props:dg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;dg.animationDuration=e,dg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),dd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Hc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new cd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,f,p,v,$;if(!this.videoConfig)return;let{albumId:y,statPlace:h,statAuthToken:x,preload:I,autoplay:T,volume:N,muted:L,fromTime:E,canRewindLive:P,supportLink:q,showAds:H,adsSlotId:z,adsParams:j={},adsAutoplayParam:ae,interfaceLanguage:X,isCyrillicRelatedInterface:ne,logoClickable:J,logoHidden:we,isMobile:pe,isTouch:re,isAudioDisabled:_e,isLiveCatchUpMode:$e,fullScreenTarget:ee,failoverHosts:Re,canDownload:fe,callbacks:k,interactiveData:We,showThumbTimer:Te,additionalButtons:Z=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:De=[],repeat:Oe,loop:it,saveRate:U,volumeMultiplier:ke,showEndScreen:Pe,showAutoplayNext:Ue,mediascopePixels:tt}=Hc(this.videoConfig,i),{sources:ye,title:Ie,thumbUrl:Be,unitedVideoId:Nt,isClip:mt=!1,duration:Bt,adsParams:dt={},videoEpisodes:wt,previewThumbsData:ti,subtitles:Pt,subtitlesForcedLanguage:Dt,live:Ft,adsExternalApi:Y}=e;if(!ye&&!Ft){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=k.onCrashed)==null||r.call(k,ci.message);return}let Se={...j,...dt},le=this.getNextVideoInfo(),he={sources:ye,title:Ie,thumbUrl:Be,subtitles:Pt,subtitlesForcedLanguage:Dt,unitedVideoId:Nt,isClip:mt,live:Ft,albumId:y,statPlace:h,autoplay:T,muted:L,volume:N,fromTime:E,canRewindLive:P,showAds:H,adsSlotId:z,adsParams:Se,adsAutoplayParam:ae,duration:Bt,logoClickable:J,logoHidden:we,isTouch:re!=null?re:pe,repeat:Oe,loop:it,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(he)}`});let rt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),ft=(rt==null?void 0:rt.oneStat)||this.createOneStat(e,i),ue=this.createThinOneStat(e,i),ze;tt&&(ze=new cd.MediascopePixel({pixels:tt})),(ft||ue)&&(this.statistics=new up(ft,ue,ze,rt==null?void 0:rt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:Ra,env:Ru},{movieId:Nt,albumId:y,place:h,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:pe,clip:mt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry={...this.sentry,...Oa.getInstance()};let ct=!!We,Ht=[],Ut="tooltip_interactive_go_back_disabled_first";if(ct&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),mi=this.interactiveController.getHistoryState();ci&&Ht.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ht.push("SEEK_TO_INTERACTIVE_BUTTON"),mi.hasPrevChapter$.getValue()||(Ht.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(mi.isGoBackLimited$.getValue()?Ut="tooltip_interactive_go_back_disabled_limit":Ut="tooltip_interactive_go_back_disabled"))}let ii=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let mi=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!mi?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},hi=Oe&&this.videoConfig.videos.length===1;this.store=Cb({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:ne,videoId:Nt,isClip:mt,isLiveCatchUpMode:$e,isAudioDisabled:_e,statAuthToken:x,callbacks:k,webApi:Me,videoEpisodes:wt,previewThumbsData:ti,canDownload:fe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ht,isInteractive:ct,saveRate:U,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ii,playPrevChapterDisabledTooltip:Ut,hasInteractiveBranches:!!(($=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?Z:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var mi;return(mi=this.sveltePersistentLayerComponent)==null?void 0:mi.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?it:hi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Gi}=this.microStoresRoot=v$(),Vt=()=>{var ci,mi,ht,Xt,$i,Yi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(Gi.interactiveControlsOpacity$.subscribe(It=>{var Ke;It!==null&&((Ke=this==null?void 0:this.interactiveController)==null||Ke.setDisabledControls(It))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ke.call(k,!!It)})),this.subscription.add(new Oi.Observable(It=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>It.next(Ke)))}).pipe((0,Oi.skip)(1)).subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.volume$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onVolumeChange)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.muted$.subscribe(It=>{var Ke,_i,So,Ro;if(It)(Ke=k==null?void 0:k.onMute)==null||Ke.call(k);else{let No=(So=((_i=this.store)==null?void 0:_i.state.volume$)&&ge(this.store.state.volume$))!=null?So:0;(Ro=k==null?void 0:k.onUnmute)==null||Ro.call(k,No)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ke.call(k,It)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(It=>{var Ke;let _i=(Ke=this.store)==null?void 0:Ke.ui.controls.disabledControls$;_i&&(It&&!_i.includes(qd)&&_i.add(qd),It||_i.remove(qd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async It=>{var Ke;if(!Yc.clientChecker.browser.isSamsungBrowser||!It||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ke=this.videoConfig)==null?void 0:Ke.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(It=>{var Ke;return(Ke=k==null?void 0:k.onVSIDChanged)==null?void 0:Ke.call(k,It)})),this.initMediaSession(),D(Xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ie,thumbUrl:Be,subtitles:Pt,subtitlesForcedLanguage:Dt,live:Ft,preload:I,autoplay:T,muted:L,volume:N,fromTime:E,canRewindLive:P,supportLink:q,showAds:H,adsSlotId:z,adsParams:Se,adsAutoplayParam:ae,duration:Bt,logoClickable:J,logoHidden:we,isMobile:re!=null?re:pe,failoverHosts:Re,fullScreenTarget:ee,saveRate:U,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:Pe,showAutoplayNext:Ue,adsExternalApi:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let Jt={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Gr(tg,Jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ht=(mi=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:mi.onInited)==null||ht.call(mi)),(Xt=this.internalsExposure)==null||Xt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Yi=($i=this.videoConfig)==null?void 0:$i.callbacks)!=null&&Yi.onDevNullLog)?dd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):dd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Yc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),Vt())}):Vt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Oi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?ge(s):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:p,historyApi:v,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:p,historyApi:v,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:h}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(h.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(f==null?void 0:f.title)||I.config.title};let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var N,L,E,P,q,H;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Qd)),I==="action-choice-canceled"){let j=ge(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(L=this.videoConfig)!=null&&L.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(P=this.videoConfig)==null?void 0:(q=P.callbacks).onDisabledInteractiveClick)==null||H.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(Qd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var N,L,E;T.length&&((E=(L=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:L.onInteractiveHistoryChanged)==null||E.call(L,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,N,L;(L=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveChapterChanged)==null||L.call(N,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,N,L;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(L=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveTimeIndicatorClick)==null||L.call(N)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,f,p,v,$,y,h,x,I,T,N,L,E,P,q,H,z,j,ae;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let X=new Error("empty videos");this.fatalError$.next(X),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,X.message);return}else this.fatalError$.next(null);if(this.videoConfig=Hc(yT,(0,Oi.cloneDeepWith)(e,X=>X instanceof HTMLElement?X:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=e_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Oi.InternalsExposure("ui",this.playerId))),dd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Np.now)()]}),(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Oi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(x=(h=this.uiConfig.features.dpip)!=null?h:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(N=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(L=this.videoConfig).autoplay&&(L.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((q=this.uiConfig.showLogo)!=null?q:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((j=this.videoConfig.videos)!=null&&j[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let X={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ip.getLatestSupportedVersion(X):this.pictureInPictureApi=new Ba(X)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cp:void 0,this.slotsApi=this.uiConfig.features.slots?new yp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ep(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Vp(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),d$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ae=this.slotsApi)==null||ae.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Xn)&&(n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive(),n(Xn).endScreenVideoTitle=o.nextVideoTitle,n(Xn).endScreenVideoThumb=o.nextVideoThumb,n(Xn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Xn)&&(n(Xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=ge(this.store.state.positionExact$),l=ge(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Oi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Aa(e)}};var ud=require("@vkontakte/videoplayer-shared/es2018"),Dp=require("@vkontakte/videoplayer-core/es2018"),xT=()=>{window.customElements.define("vk-video-player",Rp)};
|