@vkontakte/videoplayer 1.1.81 → 1.1.82-dev.ba996fd4.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 CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.81
3
- * Wed, 28 Jan 2026 07:48:45 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-81/doc/
2
+ * @vkontakte/videoplayer v1.1.82-dev.ba996fd4.0
3
+ * Thu, 29 Jan 2026 19:30:56 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-82/doc/
5
5
  */
6
- "use strict";var B$=Object.create;var yd=Object.defineProperty,H$=Object.defineProperties,F$=Object.getOwnPropertyDescriptor,U$=Object.getOwnPropertyDescriptors,z$=Object.getOwnPropertyNames,Ig=Object.getOwnPropertySymbols,W$=Object.getPrototypeOf,Eg=Object.prototype.hasOwnProperty,K$=Object.prototype.propertyIsEnumerable;var kg=t=>{throw TypeError(t)};var Jp=(t,e,i)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Pe=(t,e)=>{for(var i in e||(e={}))Eg.call(e,i)&&Jp(t,i,e[i]);if(Ig)for(var i of Ig(e))K$.call(e,i)&&Jp(t,i,e[i]);return t},Yt=(t,e)=>H$(t,U$(e));var q$=(t,e)=>{for(var i in e)yd(t,i,{get:e[i],enumerable:!0})},Pg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of z$(e))!Eg.call(t,r)&&r!==i&&yd(t,r,{get:()=>e[r],enumerable:!(o=F$(e,r))||o.enumerable});return t};var Ag=(t,e,i)=>(i=t!=null?B$(W$(t)):{},Pg(e||!t||!t.__esModule?yd(i,"default",{value:t,enumerable:!0}):i,t)),Q$=t=>Pg(yd({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>Jp(t,typeof e!="symbol"?e+"":e,i),ef=(t,e,i)=>e.has(t)||kg("Cannot "+i);var Ri=(t,e,i)=>(ef(t,e,"read from private field"),i?i.call(t):e.get(t)),Zs=(t,e,i)=>e.has(t)?kg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),yl=(t,e,i,o)=>(ef(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Lg=(t,e,i)=>(ef(t,e,"access private method"),i);var gt=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())});var zT={};q$(zT,{ControlButtonType:()=>xc,GridTypes:()=>ss,InterfaceLanguage:()=>hd.InterfaceLanguage,MenuItemType:()=>Zl,PlayerPhase:()=>as,VERSION:()=>Fa,VKNumericLanguage:()=>hd.VKNumericLanguage,VideoFormat:()=>Wp.VideoFormat,VideoQuality:()=>Wp.VideoQuality,loadVKLangPack:()=>hd.loadVKLangPack,registerPlayerWebComponent:()=>UT});module.exports=Q$(zT);var Js="[",ea="[!",Ca="]",fs={};var oo=Symbol(),Xn=Symbol("filename"),Mg=Symbol("hmr"),Vg="http://www.w3.org/1999/xhtml",cu="http://www.w3.org/2000/svg";var tf="@attach";var uu=!0;var Ng,Og,Rg=(Og=(Ng=globalThis.process)==null?void 0:Ng.env)==null?void 0:Og.NODE_ENV,Ae=Rg&&!Rg.toLowerCase().startsWith("prod");var ur=Array.isArray,Dg=Array.prototype.indexOf,xd=Array.from,of=Object.keys,vo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,pu=Object.getOwnPropertyDescriptors,nf=Object.prototype,Bg=Array.prototype,Ta=Object.getPrototypeOf,rf=Object.isExtensible;function ta(t){return typeof t=="function"}var ht=()=>{};function Hg(t){return t()}function ia(t){for(var e=0;e<t.length;e++)t[e]()}var Yo=Symbol("$state"),xl=Symbol("legacy props"),Fg=Symbol(""),fu=Symbol("proxy path"),mu=1,wl=3,pr=8;function vu(t){return t===this.v}function Sl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ug(t,e){return t!==e}function Cl(t){return!Sl(t,this.v)}function zg(){if(Ae){let t=new Error(`derived_references_self
6
+ "use strict";var H$=Object.create;var yd=Object.defineProperty,F$=Object.defineProperties,U$=Object.getOwnPropertyDescriptor,z$=Object.getOwnPropertyDescriptors,W$=Object.getOwnPropertyNames,Ig=Object.getOwnPropertySymbols,K$=Object.getPrototypeOf,Eg=Object.prototype.hasOwnProperty,q$=Object.prototype.propertyIsEnumerable;var Pg=t=>{throw TypeError(t)};var Jp=(t,e,i)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ke=(t,e)=>{for(var i in e||(e={}))Eg.call(e,i)&&Jp(t,i,e[i]);if(Ig)for(var i of Ig(e))q$.call(e,i)&&Jp(t,i,e[i]);return t},Gt=(t,e)=>F$(t,z$(e));var Q$=(t,e)=>{for(var i in e)yd(t,i,{get:e[i],enumerable:!0})},kg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of W$(e))!Eg.call(t,r)&&r!==i&&yd(t,r,{get:()=>e[r],enumerable:!(o=U$(e,r))||o.enumerable});return t};var Ag=(t,e,i)=>(i=t!=null?H$(K$(t)):{},kg(e||!t||!t.__esModule?yd(i,"default",{value:t,enumerable:!0}):i,t)),G$=t=>kg(yd({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>Jp(t,typeof e!="symbol"?e+"":e,i),ef=(t,e,i)=>e.has(t)||Pg("Cannot "+i);var Ri=(t,e,i)=>(ef(t,e,"read from private field"),i?i.call(t):e.get(t)),Js=(t,e,i)=>e.has(t)?Pg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(ef(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Lg=(t,e,i)=>(ef(t,e,"access private method"),i);var ht=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())});var WT={};Q$(WT,{ControlButtonType:()=>xc,GridTypes:()=>ss,InterfaceLanguage:()=>hd.InterfaceLanguage,MenuItemType:()=>Zl,PlayerPhase:()=>as,VERSION:()=>Ua,VKNumericLanguage:()=>hd.VKNumericLanguage,VideoFormat:()=>Wp.VideoFormat,VideoQuality:()=>Wp.VideoQuality,loadVKLangPack:()=>hd.loadVKLangPack,registerPlayerWebComponent:()=>zT});module.exports=G$(WT);var ea="[",ta="[!",Ta="]",fs={};var oo=Symbol(),Xn=Symbol("filename"),Mg=Symbol("hmr"),Vg="http://www.w3.org/1999/xhtml",cu="http://www.w3.org/2000/svg";var tf="@attach";var uu=!0;var Ng,Dg,Rg=(Dg=(Ng=globalThis.process)==null?void 0:Ng.env)==null?void 0:Dg.NODE_ENV,Ae=Rg&&!Rg.toLowerCase().startsWith("prod");var ur=Array.isArray,Og=Array.prototype.indexOf,xd=Array.from,of=Object.keys,vo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,pu=Object.getOwnPropertyDescriptors,nf=Object.prototype,Bg=Array.prototype,Ia=Object.getPrototypeOf,rf=Object.isExtensible;function ia(t){return typeof t=="function"}var _t=()=>{};function Hg(t){return t()}function oa(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),wl=Symbol("legacy props"),Fg=Symbol(""),fu=Symbol("proxy path"),mu=1,Sl=3,pr=8;function vu(t){return t===this.v}function Cl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ug(t,e){return t!==e}function Tl(t){return!Cl(t,this.v)}function zg(){if(Ae){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
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 Wg(t){if(Ae){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
@@ -19,45 +19,45 @@ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else th
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
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 Zg(t){if(Ae){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 Jg(){if(Ae){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 eh(){if(Ae){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 th(){if(Ae){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 ms=!1,vs=!1;function ih(){ms=!0}var wd=null;function Ps(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
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 Jg(){if(Ae){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 eh(){if(Ae){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 th(){if(Ae){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 ms=!1,vs=!1;function ih(){ms=!0}var wd=null;function ks(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
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;vo(e,"stack",{value:r.join(`
25
- `)}),vo(e,"name",{value:`${t}Error`})}return e}function Zr(t,e){return t.label=e,gu(t.v,e),t}function gu(t,e){var i;return(i=t==null?void 0:t[fu])==null||i.call(t,e),t}function Tl(t){if(Ae){let e=new Error(`lifecycle_outside_component
25
+ `)}),vo(e,"name",{value:`${t}Error`})}return e}function Zr(t,e){return t.label=e,gu(t.v,e),t}function gu(t,e){var i;return(i=t==null?void 0:t[fu])==null||i.call(t,e),t}function Il(t){if(Ae){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 Wt=null;function Sd(t){Wt=t}var fr=null;function Cd(t){fr=t}function Il(t){return lf("getContext").get(t)}function El(t,e){return lf("setContext").set(t,e),e}function Td(){return lf("getAllContexts")}function B(t,e=!1,i){var o=Wt={p:Wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ms&&!e&&(Wt.l={s:null,u:null,r1:[],r2:Mr(!1)}),Mo(()=>{o.d=!0}),Ae&&(Wt.function=i,fr=i)}function H(t){var l,d;let e=Wt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=yt,o=Ht;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];go(a.effect),Yi(a.reaction),Vo(a.fn)}}finally{go(i),Yi(o)}}Wt=e.p,Ae&&(fr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function gs(){return!ms||Wt!==null&&Wt.l===null}function lf(t){var e;return Wt===null&&Tl(t),(e=Wt.c)!=null?e:Wt.c=new Map(Y$(Wt)||void 0)}function Y$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var j$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ci(t){if(typeof t!="object"||t===null||Yo in t)return t;let e=Ta(t);if(e!==nf&&e!==Bg)return t;var i=new Map,o=ur(t),r=q(0),a=Ae&&vs?Ps("CreatedAt"):null,l=Ht,d=m=>{var p=Ht;Yi(l);var v=m();return Yi(p),v};o&&i.set("length",q(t.length,a));var s="";function u(m){s=m,Zr(r,`${s} version`);for(let[p,v]of i)Zr(v,Ia(s,p))}return new Proxy(t,{defineProperty(m,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Jg();var b=i.get(p);return b===void 0?b=d(()=>{var y=q(v.value,a);return i.set(p,y),Ae&&typeof p=="string"&&Zr(y,Ia(s,p)),y}):R(b,v.value,!0),!0},deleteProperty(m,p){var v=i.get(p);if(v===void 0){if(p in m){let g=d(()=>q(oo,a));i.set(p,g),df(r),Ae&&Zr(g,Ia(s,p))}}else{if(o&&typeof p=="string"){var b=i.get("length"),y=Number(p);Number.isInteger(y)&&y<b.v&&R(b,y)}R(v,oo),df(r)}return!0},get(m,p,v){var w;if(p===Yo)return t;if(Ae&&p===fu)return u;var b=i.get(p),y=p in m;if(b===void 0&&(!y||(w=Go(m,p))!=null&&w.writable)&&(b=d(()=>{var I=ci(y?m[p]:oo),C=q(I,a);return Ae&&Zr(C,Ia(s,p)),C}),i.set(p,b)),b!==void 0){var g=n(b);return g===oo?void 0:g}return Reflect.get(m,p,v)},getOwnPropertyDescriptor(m,p){var v=Reflect.getOwnPropertyDescriptor(m,p);if(v&&"value"in v){var b=i.get(p);b&&(v.value=n(b))}else if(v===void 0){var y=i.get(p),g=y==null?void 0:y.v;if(y!==void 0&&g!==oo)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return v},has(m,p){var g;if(p===Yo)return!0;var v=i.get(p),b=v!==void 0&&v.v!==oo||Reflect.has(m,p);if(v!==void 0||yt!==null&&(!b||(g=Go(m,p))!=null&&g.writable)){v===void 0&&(v=d(()=>{var w=b?ci(m[p]):oo,I=q(w,a);return Ae&&Zr(I,Ia(s,p)),I}),i.set(p,v));var y=n(v);if(y===oo)return!1}return b},set(m,p,v,b){var k;var y=i.get(p),g=p in m;if(o&&p==="length")for(var w=v;w<y.v;w+=1){var I=i.get(w+"");I!==void 0?R(I,oo):w in m&&(I=d(()=>q(oo,a)),i.set(w+"",I),Ae&&Zr(I,Ia(s,w)))}if(y===void 0)(!g||(k=Go(m,p))!=null&&k.writable)&&(y=d(()=>q(void 0,a)),R(y,ci(v)),i.set(p,y),Ae&&Zr(y,Ia(s,p)));else{g=y.v!==oo;var C=d(()=>ci(v));R(y,C)}var N=Reflect.getOwnPropertyDescriptor(m,p);if(N!=null&&N.set&&N.set.call(b,v),!g){if(o&&typeof p=="string"){var A=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=A.v&&R(A,E+1)}df(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var g=i.get(y);return g===void 0||g.v!==oo});for(var[v,b]of i)b.v!==oo&&!(v in m)&&p.push(v);return p},setPrototypeOf(){eh()}})}function Ia(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:j$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function df(t,e=1){R(t,t.v+e)}function kl(t){try{if(t!==null&&typeof t=="object"&&Yo in t)return t[Yo]}catch(e){}return t}function cf(t,e){return Object.is(kl(t),kl(e))}function Jr(t){var e=2050,i=Ht!==null&&(Ht.f&2)!==0?Ht:null;yt===null||i!==null&&(i.f&256)!==0?e|=256:yt.f|=1048576;let o={ctx:Wt,deps:null,effects:null,equals:vu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:yt};return Ae&&vs&&(o.created=Ps("CreatedAt")),o}function f(t){let e=Jr(t);return bu(e),e}function Pn(t){let e=Jr(t);return e.equals=Cl,e}function hu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ji(e[i])}}var uf=[];function X$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function mf(t){var e,i=yt;if(go(X$(t)),Ae){let o=Ea;pf(new Set);try{uf.includes(t)&&zg(),uf.push(t),hu(t),e=_u(t)}finally{go(i),pf(o),uf.pop()}}else try{hu(t),e=_u(t)}finally{go(i)}return e}function vf(t){var e=mf(t);if(t.equals(e)||(t.v=e,t.wv=Id()),!As){var i=(Ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;An(t,i)}}var Ea=new Set,Pl=new Map;function pf(t){Ea=t}function Mr(t,e){var i={f:0,v:t,reactions:null,equals:vu,rv:0,wv:0};return Ae&&vs&&(i.created=e!=null?e:Ps("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function q(t,e){let i=Mr(t,e);return bu(i),i}function hs(t,e=!1,i=!0){var r,a;let o=Mr(t);return e||(o.equals=Cl),ms&&i&&Wt!==null&&Wt.l!==null&&((a=(r=Wt.l).s)!=null?a:r.s=[]).push(o),o}function R(t,e,i=!1){var r;Ht!==null&&(!gr||(Ht.f&262144)!==0)&&gs()&&(Ht.f&262162)!==0&&!((r=Xo)!=null&&r[1].includes(t)&&Xo[0]===Ht)&&th();let o=i?ci(e):e;return Ae&&gu(o,t.label),Al(t,o)}function Al(t,e){if(!t.equals(e)){var i=t.v;if(As?Pl.set(t,e):Pl.set(t,i),t.v=e,Ae&&vs&&(t.updated=Ps("UpdatedAt"),yt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&mf(t),An(t,(t.f&256)===0?1024:4096)),t.wv=Id(),nh(t,2048),gs()&&yt!==null&&(yt.f&1024)!==0&&(yt.f&96)===0&&(vr===null?rh([t]):vr.push(t)),Ae&&Ea.size>0){let o=Array.from(Ea);for(let r of o)(r.f&1024)!==0&&An(r,4096),Pa(r)&&Ll(r);Ea.clear()}}return e}function nh(t,e){var i=t.reactions;if(i!==null)for(var o=gs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===yt)){if(Ae&&(d&262144)!==0){Ea.add(l);continue}An(l,e),(d&1280)!==0&&((d&2)!==0?nh(l,4096):kd(l))}}}var Ml="font-weight: bold",Vl="font-weight: normal";function sh(t,e,i){Ae?console.warn(`%c[svelte] hydration_attribute_changed
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 Wt=null;function Sd(t){Wt=t}var fr=null;function Cd(t){fr=t}function El(t){return lf("getContext").get(t)}function Pl(t,e){return lf("setContext").set(t,e),e}function Td(){return lf("getAllContexts")}function B(t,e=!1,i){var o=Wt={p:Wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ms&&!e&&(Wt.l={s:null,u:null,r1:[],r2:Mr(!1)}),Mo(()=>{o.d=!0}),Ae&&(Wt.function=i,fr=i)}function H(t){var l,d;let e=Wt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=xt,o=Ht;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];go(a.effect),Yi(a.reaction),Vo(a.fn)}}finally{go(i),Yi(o)}}Wt=e.p,Ae&&(fr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function gs(){return!ms||Wt!==null&&Wt.l===null}function lf(t){var e;return Wt===null&&Il(t),(e=Wt.c)!=null?e:Wt.c=new Map(j$(Wt)||void 0)}function j$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var X$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ui(t){if(typeof t!="object"||t===null||jo in t)return t;let e=Ia(t);if(e!==nf&&e!==Bg)return t;var i=new Map,o=ur(t),r=q(0),a=Ae&&vs?ks("CreatedAt"):null,l=Ht,d=m=>{var p=Ht;Yi(l);var v=m();return Yi(p),v};o&&i.set("length",q(t.length,a));var s="";function u(m){s=m,Zr(r,`${s} version`);for(let[p,v]of i)Zr(v,Ea(s,p))}return new Proxy(t,{defineProperty(m,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Jg();var b=i.get(p);return b===void 0?b=d(()=>{var y=q(v.value,a);return i.set(p,y),Ae&&typeof p=="string"&&Zr(y,Ea(s,p)),y}):N(b,v.value,!0),!0},deleteProperty(m,p){var v=i.get(p);if(v===void 0){if(p in m){let _=d(()=>q(oo,a));i.set(p,_),df(r),Ae&&Zr(_,Ea(s,p))}}else{if(o&&typeof p=="string"){var b=i.get("length"),y=Number(p);Number.isInteger(y)&&y<b.v&&N(b,y)}N(v,oo),df(r)}return!0},get(m,p,v){var x;if(p===jo)return t;if(Ae&&p===fu)return u;var b=i.get(p),y=p in m;if(b===void 0&&(!y||(x=Yo(m,p))!=null&&x.writable)&&(b=d(()=>{var I=ui(y?m[p]:oo),T=q(I,a);return Ae&&Zr(T,Ea(s,p)),T}),i.set(p,b)),b!==void 0){var _=n(b);return _===oo?void 0:_}return Reflect.get(m,p,v)},getOwnPropertyDescriptor(m,p){var v=Reflect.getOwnPropertyDescriptor(m,p);if(v&&"value"in v){var b=i.get(p);b&&(v.value=n(b))}else if(v===void 0){var y=i.get(p),_=y==null?void 0:y.v;if(y!==void 0&&_!==oo)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return v},has(m,p){var _;if(p===jo)return!0;var v=i.get(p),b=v!==void 0&&v.v!==oo||Reflect.has(m,p);if(v!==void 0||xt!==null&&(!b||(_=Yo(m,p))!=null&&_.writable)){v===void 0&&(v=d(()=>{var x=b?ui(m[p]):oo,I=q(x,a);return Ae&&Zr(I,Ea(s,p)),I}),i.set(p,v));var y=n(v);if(y===oo)return!1}return b},set(m,p,v,b){var E;var y=i.get(p),_=p in m;if(o&&p==="length")for(var x=v;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?N(I,oo):x in m&&(I=d(()=>q(oo,a)),i.set(x+"",I),Ae&&Zr(I,Ea(s,x)))}if(y===void 0)(!_||(E=Yo(m,p))!=null&&E.writable)&&(y=d(()=>q(void 0,a)),N(y,ui(v)),i.set(p,y),Ae&&Zr(y,Ea(s,p)));else{_=y.v!==oo;var T=d(()=>ui(v));N(y,T)}var R=Reflect.getOwnPropertyDescriptor(m,p);if(R!=null&&R.set&&R.set.call(b,v),!_){if(o&&typeof p=="string"){var A=i.get("length"),P=Number(p);Number.isInteger(P)&&P>=A.v&&N(A,P+1)}df(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var _=i.get(y);return _===void 0||_.v!==oo});for(var[v,b]of i)b.v!==oo&&!(v in m)&&p.push(v);return p},setPrototypeOf(){eh()}})}function Ea(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:X$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function df(t,e=1){N(t,t.v+e)}function kl(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function cf(t,e){return Object.is(kl(t),kl(e))}function Jr(t){var e=2050,i=Ht!==null&&(Ht.f&2)!==0?Ht:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Wt,deps:null,effects:null,equals:vu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Ae&&vs&&(o.created=ks("CreatedAt")),o}function f(t){let e=Jr(t);return bu(e),e}function kn(t){let e=Jr(t);return e.equals=Tl,e}function hu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ji(e[i])}}var uf=[];function Z$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function mf(t){var e,i=xt;if(go(Z$(t)),Ae){let o=Pa;pf(new Set);try{uf.includes(t)&&zg(),uf.push(t),hu(t),e=_u(t)}finally{go(i),pf(o),uf.pop()}}else try{hu(t),e=_u(t)}finally{go(i)}return e}function vf(t){var e=mf(t);if(t.equals(e)||(t.v=e,t.wv=Id()),!As){var i=(Ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;An(t,i)}}var Pa=new Set,Al=new Map;function pf(t){Pa=t}function Mr(t,e){var i={f:0,v:t,reactions:null,equals:vu,rv:0,wv:0};return Ae&&vs&&(i.created=e!=null?e:ks("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function q(t,e){let i=Mr(t,e);return bu(i),i}function hs(t,e=!1,i=!0){var r,a;let o=Mr(t);return e||(o.equals=Tl),ms&&i&&Wt!==null&&Wt.l!==null&&((a=(r=Wt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Ht!==null&&(!gr||(Ht.f&262144)!==0)&&gs()&&(Ht.f&262162)!==0&&!((r=Zo)!=null&&r[1].includes(t)&&Zo[0]===Ht)&&th();let o=i?ui(e):e;return Ae&&gu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(As?Al.set(t,e):Al.set(t,i),t.v=e,Ae&&vs&&(t.updated=ks("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&mf(t),An(t,(t.f&256)===0?1024:4096)),t.wv=Id(),nh(t,2048),gs()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(vr===null?rh([t]):vr.push(t)),Ae&&Pa.size>0){let o=Array.from(Pa);for(let r of o)(r.f&1024)!==0&&An(r,4096),Aa(r)&&Ml(r);Pa.clear()}}return e}function nh(t,e){var i=t.reactions;if(i!==null)for(var o=gs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(Ae&&(d&262144)!==0){Pa.add(l);continue}An(l,e),(d&1280)!==0&&((d&2)!==0?nh(l,4096):Pd(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function sh(t,e,i){Ae?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`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ah(t){Ae?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function ah(t){Ae?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`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_html_changed")}function oa(t){Ae?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function na(t){Ae?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`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_mismatch")}function lh(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function lh(){Ae?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`,Ml,Vl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function dh(){Ae?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",Ml,Vl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $u(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function dh(){Ae?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",Vl,Rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function $u(t){Ae?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`,Ml,Vl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var it=!1;function ho(t){it=t}var xt;function Ii(t){if(t===null)throw oa(),fs;return xt=t}function Xi(){return Ii(Zo(xt))}function S(t){if(it){if(Zo(xt)!==null)throw oa(),fs;xt=t}}function ui(t=1){if(it){for(var e=t,i=xt;e--;)i=Zo(i);xt=i}}function Aa(){for(var t=0,e=xt;;){if(e.nodeType===pr){var i=e.data;if(i===Ca){if(t===0)return e;t-=1}else(i===Js||i===ea)&&(t+=1)}var o=Zo(e);e.remove(),e=o}}function yu(t){if(!t||t.nodeType!==pr)throw oa(),fs;return t.data}function ch(){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(kl(this[s])===a){$u("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(kl(this[s])===a){$u("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(kl(this[s])===a){$u("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var La,uh,Pd,ph,fh;function xu(){if(La===void 0){La=window,uh=document,Pd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ph=Go(e,"firstChild").get,fh=Go(e,"nextSibling").get,rf(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),rf(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,ch())}}function Ln(t=""){return document.createTextNode(t)}function Ei(t){return ph.call(t)}function Zo(t){return fh.call(t)}function T(t,e){if(!it)return Ei(t);var i=Ei(xt);if(i===null)i=xt.appendChild(Ln());else if(e&&i.nodeType!==wl){var o=Ln();return i==null||i.before(o),Ii(o),o}return Ii(i),i}function ue(t,e){var r,a;if(!it){var i=Ei(t);return i.nodeType===8&&i.data===""?Zo(i):i}if(e&&((r=xt)==null?void 0:r.nodeType)!==wl){var o=Ln();return(a=xt)==null||a.before(o),Ii(o),o}return xt}function P(t,e=1,i=!1){let o=it?xt:t;for(var r;e--;)r=o,o=Zo(o);if(!it)return o;if(i&&(o==null?void 0:o.nodeType)!==wl){var a=Ln();return o===null?r==null||r.after(a):o.before(a),Ii(a),a}return Ii(o),o}function Ad(t){t.textContent=""}function _f(t){yt===null&&Ht===null&&qg(t),Ht!==null&&(Ht.f&256)!==0&&yt===null&&Kg(),As&&Wg(t)}function Z$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ma(t,e,i,o=!0){var s;var r=yt;if(Ae)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Wt,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(Ae&&(a.component_function=fr),i)try{Ll(a),a.f|=32768}catch(u){throw ji(a),u}else e!==null&&kd(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&&Z$(a,r),Ht!==null&&(Ht.f&2)!==0)){var d=Ht;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Mo(t){let e=Ma(8,null,!1);return An(e,1024),e.teardown=t,e}function De(t){var r;_f("$effect");var e=yt!==null&&(yt.f&32)!==0&&Wt!==null&&!Wt.m;if(Ae&&vo(t,"name",{value:"$effect"}),e){var i=Wt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:yt,reaction:Ht})}else{var o=Vo(t);return o}}function Vd(t){return _f("$effect.pre"),Ae&&vo(t,"name",{value:"$effect.pre"}),Jo(t)}function Cu(t){let e=Ma(64,t,!0);return()=>{ji(e)}}function vh(t){let e=Ma(64,t,!0);return(i={})=>new Promise(o=>{i.outro?tr(e,()=>{ji(e),o(void 0)}):(ji(e),o(void 0))})}function Vo(t){return Ma(4,t,!1)}function Jo(t){return Ma(8,t,!0)}function O(t,e=[],i=Jr){if(Ae)return Jo(()=>{var r=yt,a=()=>t(...l.map(n));vo(r.fn,"name",{value:"{expression}"}),vo(a,"name",{value:"{expression}"});let l=e.map(i);Zi(a)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return Ma(24|e,t,!0)}function Ni(t,e=!0){return Ma(40,t,!0,e)}function bf(t){var e=t.teardown;if(e!==null){let i=As,o=Ht;gf(!0),Yi(null);try{e.call(null)}finally{gf(i),Yi(o)}}}function $f(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:ji(i,e),i=o}}function gh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ji(e),e=i}}function ji(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(yf(t.nodes_start,t.nodes_end),i=!0),$f(t,e&&!i),Rd(t,0),An(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();bf(t);var r=t.parent;r!==null&&r.first!==null&&xf(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function yf(t,e){for(;t!==null;){var i=t===e?null:Zo(t);t.remove(),t=i}}function xf(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 tr(t,e){var i=[];Tu(t,i,!0),wf(i,()=>{ji(t),e&&e()})}function wf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Tu(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;Tu(o,e,a?i:!1),o=r}}}function Vs(t){hh(t,!0)}function hh(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;hh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Nd=[],Sf=[];function _h(){var t=Nd;Nd=[],ia(t)}function J$(){var t=Sf;Sf=[],ia(t)}function Mn(t){Nd.length===0&&queueMicrotask(_h),Nd.push(t)}function bh(){Nd.length>0&&_h(),Sf.length>0&&J$()}function yh(t){var e=yt;if(Ae&&t instanceof Error&&e1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Od(t,e)}function Od(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var $h=new WeakSet;function e1(t,e){var l,d;if($h.has(t))return;$h.add(t);let i=Go(t,"message");if(!(i&&!i.configurable)){for(var o=Pd?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Vl,Rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function ho(t){tt=t}var wt;function Ci(t){if(t===null)throw na(),fs;return wt=t}function Xi(){return Ci(Jo(wt))}function S(t){if(tt){if(Jo(wt)!==null)throw na(),fs;wt=t}}function pi(t=1){if(tt){for(var e=t,i=wt;e--;)i=Jo(i);wt=i}}function La(){for(var t=0,e=wt;;){if(e.nodeType===pr){var i=e.data;if(i===Ta){if(t===0)return e;t-=1}else(i===ea||i===ta)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function yu(t){if(!t||t.nodeType!==pr)throw na(),fs;return t.data}function ch(){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(kl(this[s])===a){$u("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(kl(this[s])===a){$u("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(kl(this[s])===a){$u("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ma,uh,kd,ph,fh;function xu(){if(Ma===void 0){Ma=window,uh=document,kd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ph=Yo(e,"firstChild").get,fh=Yo(e,"nextSibling").get,rf(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),rf(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,ch())}}function Ln(t=""){return document.createTextNode(t)}function Ii(t){return ph.call(t)}function Jo(t){return fh.call(t)}function C(t,e){if(!tt)return Ii(t);var i=Ii(wt);if(i===null)i=wt.appendChild(Ln());else if(e&&i.nodeType!==Sl){var o=Ln();return i==null||i.before(o),Ci(o),o}return Ci(i),i}function ue(t,e){var r,a;if(!tt){var i=Ii(t);return i.nodeType===8&&i.data===""?Jo(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==Sl){var o=Ln();return(a=wt)==null||a.before(o),Ci(o),o}return wt}function k(t,e=1,i=!1){let o=tt?wt:t;for(var r;e--;)r=o,o=Jo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=Ln();return o===null?r==null||r.after(a):o.before(a),Ci(a),a}return Ci(o),o}function Ad(t){t.textContent=""}function _f(t){xt===null&&Ht===null&&qg(t),Ht!==null&&(Ht.f&256)!==0&&xt===null&&Kg(),As&&Wg(t)}function J$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Va(t,e,i,o=!0){var s;var r=xt;if(Ae)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Wt,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(Ae&&(a.component_function=fr),i)try{Ml(a),a.f|=32768}catch(u){throw ji(a),u}else e!==null&&Pd(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&&J$(a,r),Ht!==null&&(Ht.f&2)!==0)){var d=Ht;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Mo(t){let e=Va(8,null,!1);return An(e,1024),e.teardown=t,e}function Oe(t){var r;_f("$effect");var e=xt!==null&&(xt.f&32)!==0&&Wt!==null&&!Wt.m;if(Ae&&vo(t,"name",{value:"$effect"}),e){var i=Wt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Ht})}else{var o=Vo(t);return o}}function Vd(t){return _f("$effect.pre"),Ae&&vo(t,"name",{value:"$effect.pre"}),en(t)}function Cu(t){let e=Va(64,t,!0);return()=>{ji(e)}}function vh(t){let e=Va(64,t,!0);return(i={})=>new Promise(o=>{i.outro?tr(e,()=>{ji(e),o(void 0)}):(ji(e),o(void 0))})}function Vo(t){return Va(4,t,!1)}function en(t){return Va(8,t,!0)}function O(t,e=[],i=Jr){if(Ae)return en(()=>{var r=xt,a=()=>t(...l.map(n));vo(r.fn,"name",{value:"{expression}"}),vo(a,"name",{value:"{expression}"});let l=e.map(i);Zi(a)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return Va(24|e,t,!0)}function Ni(t,e=!0){return Va(40,t,!0,e)}function bf(t){var e=t.teardown;if(e!==null){let i=As,o=Ht;gf(!0),Yi(null);try{e.call(null)}finally{gf(i),Yi(o)}}}function $f(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:ji(i,e),i=o}}function gh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ji(e),e=i}}function ji(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(yf(t.nodes_start,t.nodes_end),i=!0),$f(t,e&&!i),Rd(t,0),An(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();bf(t);var r=t.parent;r!==null&&r.first!==null&&xf(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function yf(t,e){for(;t!==null;){var i=t===e?null:Jo(t);t.remove(),t=i}}function xf(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 tr(t,e){var i=[];Tu(t,i,!0),wf(i,()=>{ji(t),e&&e()})}function wf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Tu(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;Tu(o,e,a?i:!1),o=r}}}function Vs(t){hh(t,!0)}function hh(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;hh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Nd=[],Sf=[];function _h(){var t=Nd;Nd=[],oa(t)}function e1(){var t=Sf;Sf=[],oa(t)}function Mn(t){Nd.length===0&&queueMicrotask(_h),Nd.push(t)}function bh(){Nd.length>0&&_h(),Sf.length>0&&e1()}function yh(t){var e=xt;if(Ae&&t instanceof Error&&t1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Dd(t,e)}function Dd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var $h=new WeakSet;function t1(t,e){var l,d;if($h.has(t))return;$h.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=kd?" ":" ",r=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
39
39
  ${o}in ${(d=a.function)==null?void 0:d[Xn].split("/").pop()}`,a=a.p;vo(t,"message",{value:t.message+`
40
40
  ${r}
41
41
  `}),t.stack&&vo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
- `)})}}var Va=!1,Rl=null,Ra=!1,As=!1;function gf(t){As=t}var Dd=[],Bd=[],Ht=null,gr=!1;function Yi(t){Ht=t}var yt=null;function go(t){yt=t}var Xo=null;function bu(t){Ht!==null&&Ht.f&2097152&&(Xo===null?Xo=[Ht,[t]]:Xo[1].push(t))}var Vn=null,hr=0,vr=null;function rh(t){vr=t}var Sh=1,Eu=0,Ls=!1,ku=null;function Id(){return++Sh}function Pa(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&&yt!==null&&!Ls,s=i.length;if(l||d){var u=t,m=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&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Pa(a)&&vf(a),a.wv>t.wv)return!0}(!o||yt!==null&&!Ls)&&An(t,1024)}return!1}function Ch(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]===Ht||((a.f&2)!==0?Ch(a,e,!1):e===a&&(i?An(a,2048):(a.f&1024)!==0&&An(a,4096),kd(a)))}}function _u(t){var b,y;var e=Vn,i=hr,o=vr,r=Ht,a=Ls,l=Xo,d=Wt,s=gr,u=t.f;Vn=null,hr=0,vr=null,Ls=(u&256)!==0&&(gr||!Ra||Ht===null),Ht=(u&96)===0?t:null,Xo=null,Sd(t.ctx),gr=!1,Eu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(Vn!==null){var v;if(Rd(t,hr),p!==null&&hr>0)for(p.length=hr+Vn.length,v=0;v<Vn.length;v++)p[hr+v]=Vn[v];else t.deps=p=Vn;if(!Ls||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Rd(t,hr),p.length=hr);if(gs()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)Ch(vr[v],t);return r!==null&&r!==t&&(Eu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(g){yh(g)}finally{Vn=e,hr=i,vr=o,Ht=r,Ls=a,Xo=l,Sd(d),gr=s,t.f^=2097152}}function t1(t,e){let i=e.reactions;if(i!==null){var o=Dg.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&&(Vn===null||!Vn.includes(e))&&(An(e,4096),(e.f&768)===0&&(e.f^=512),hu(e),Rd(e,0))}function Rd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)t1(t,i[o])}function Ll(t){var e=t.f;if((e&16384)===0){An(t,1024);var i=yt,o=Ra;if(yt=t,Ra=!0,Ae){var r=fr;Cd(t.component_function)}try{(e&16)!==0?gh(t):$f(t),bf(t);var a=_u(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Sh,Ae&&vs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);Ae&&Bd.push(t)}finally{Ra=o,yt=i,Ae&&Cd(r)}}}function xh(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function i1(){try{Qg()}catch(t){if(Ae&&vo(t,"stack",{value:""}),Rl!==null)if(Ae)try{Od(t,Rl)}catch(e){throw xh(),e}else Od(t,Rl);else throw Ae&&xh(),t}}function Tf(){var t=Ra;try{var e=0;for(Ra=!0;Dd.length>0;){e++>1e3&&i1();var i=Dd,o=i.length;Dd=[];for(var r=0;r<o;r++){var a=n1(i[r]);o1(a)}Pl.clear()}}finally{Va=!1,Ra=t,Rl=null,Ae&&(Bd=[])}}function o1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Pa(o)&&(Ll(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?xf(o):o.fn=null))}}function kd(t){Va||(Va=!0,queueMicrotask(Tf));for(var e=Rl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Dd.push(e)}function n1(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:Pa(i)&&Ll(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 Nl(t){var e;for(t&&(Va=!0,Tf(),Va=!0,e=t());;){if(bh(),Dd.length===0)return Va=!1,Rl=null,Ae&&(Bd=[]),e;Va=!0,Tf()}}function _o(){return gt(this,null,function*(){yield Promise.resolve(),Nl()})}function n(t){var e=t.f,i=(e&2)!==0;if(ku!==null&&ku.add(t),Ht!==null&&!gr){if(!(Xo!=null&&Xo[1].includes(t))||Xo[0]!==Ht){var o=Ht.deps;t.rv<Eu&&(t.rv=Eu,Vn===null&&o!==null&&o[hr]===t?hr++:Vn===null?Vn=[t]:(!Ls||!Vn.includes(t))&&Vn.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,Pa(r)&&vf(r)),Ae&&vs&&!gr&&wd!==null&&Ht!==null&&wd.reaction===Ht)if(t.trace)t.trace();else{var l=Ps("TracedAt");if(l){var d=wd.entries.get(t);d===void 0&&(d={traces:[]},wd.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 As&&Pl.has(t)?Pl.get(t):t.v}function Et(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var r1=-7169;function An(t,e){t.f=t.f&r1|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Yo in i&&Pu(i)}}}function Pu(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{Pu(t[o],e)}catch(r){}let i=Ta(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=pu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function If(t,e){if(e){let i=document.body;t.autofocus=!0,Mn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Ht,i=yt;Yi(null),go(null);try{return t()}finally{Yi(e),go(i)}}var Ef=new Set,Lu=new Set;function Na(t){if(!it)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 kf(t,e,i,o={}){function r(a){if(o.capture||Ol.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Mn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function dt(t,e,i,o,r){var a={capture:o,passive:r},l=kf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,a)})}function Ye(t){for(var e=0;e<t.length;e++)Ef.add(t[e]);for(var i of Lu)i(t)}function Ol(t){var C;var e=this,i=e.ownerDocument,o=t.type,r=((C=t.composedPath)==null?void 0:C.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){vo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ht,p=yt;Yi(null),go(null);try{for(var v,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+o];if(g!=null&&(!a.disabled||t.target===a))if(ur(g)){var[w,...I]=g;w.apply(a,[t,...I])}else g.call(a,t)}catch(N){v?b.push(N):v=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let N of b)queueMicrotask(()=>{throw N});throw v}}finally{t.__root=e,delete t.currentTarget,Yi(m),go(p)}}}var a1;function Th(){a1=void 0}function Dl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ro(t,e){var i=yt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(it)return Ro(xt,null),xt;r===void 0&&(r=Dl(a?t:"<!>"+t),i||(r=Ei(r)));var l=o||Pd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ei(l),s=l.lastChild;Ro(d,s)}else Ro(l,l);return l}}function c1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return Ro(xt,null),xt;if(!l){var d=Dl(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 m=Ei(u),p=u.lastChild;Ro(m,p)}else Ro(u,u);return u}}function Ie(t,e){return c1(t,e,"svg")}function _s(t=""){if(!it){var e=Ln(t+"");return Ro(e,e),e}var i=xt;return i.nodeType!==wl&&(i.before(i=Ln()),Ii(i)),Ro(i,i),i}function Le(){if(it)return Ro(xt,null),xt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ln();return t.append(e,i),Ro(e,i),t}function $(t,e){if(it){yt.nodes_end=xt,Xi();return}t!==null&&t.before(e)}var u1=/\r/g;function Eh(t){t=t.replace(u1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function kh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var p1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ph(t){return p1.includes(t)}var f1=["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 m1={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 Ah(t){var e;return t=t.toLowerCase(),(e=m1[t])!=null?e:t}var Lk=[...f1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var v1=["touchstart","touchmove"];function Lh(t){return v1.includes(t)}var g1=["$state","$state.raw","$derived","$derived.by"],Mk=[...g1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var h1=["textarea","script","style","title"];function Mh(t){return h1.includes(t)}function Mu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Fd=!0;function Vu(t){Fd=t}function ve(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 is(t,e){return Vh(t,e)}function Af(t,e){var l;xu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=xt;try{for(var a=Ei(i);a&&(a.nodeType!==pr||a.data!==Js);)a=Zo(a);if(!a)throw fs;ho(!0),Ii(a),Xi();let d=Vh(t,Yt(Pe({},e),{anchor:a}));if(xt===null||xt.nodeType!==pr||xt.data!==Ca)throw oa(),fs;return ho(!1),d}catch(d){if(d===fs)return e.recover===!1&&Gg(),xu(),Ad(i),ho(!1),is(t,e);throw d}finally{ho(o),Ii(r),Th()}}var Bl=new Map;function Vh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){xu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var b=p[v];if(!d.has(b)){d.add(b);var y=Lh(b);e.addEventListener(b,Ol,{passive:y});var g=Bl.get(b);g===void 0?(document.addEventListener(b,Ol,{passive:y}),Bl.set(b,1)):Bl.set(b,g+1)}}};s(xd(Ef)),Lu.add(s);var u=void 0,m=vh(()=>{var p=i!=null?i:e.appendChild(Ln());return Ni(()=>{if(a){B({});var v=Wt;v.c=a}r&&(o.$$events=r),it&&Ro(p,null),Fd=l,u=t(p,o)||{},Fd=!0,it&&(yt.nodes_end=xt),a&&H()}),()=>{var y;for(var v of d){e.removeEventListener(v,Ol);var b=Bl.get(v);--b===0?(document.removeEventListener(v,Ol),Bl.delete(v)):Bl.set(v,b)}Lu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return Pf.set(u,m),u}var Pf=new WeakMap;function Oa(t,e){let i=Pf.get(t);return i?(Pf.delete(t),i(e)):(Ae&&lh(),Promise.resolve())}function si(t,e,...i){var o=t,r=ht,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),Ae&&r==null&&Yg(),a=Ni(()=>r(o,...i)))},65536),it&&(o=xt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Zg(e)},set:o=>{i=o}})}};y1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var y1;function Dt(t){Wt===null&&Tl("onMount"),ms&&Wt.l!==null?$1(Wt).m.push(t):De(()=>{let e=Et(t);if(typeof e=="function")return e})}function fn(t){Wt===null&&Tl("onDestroy"),Dt(()=>()=>Et(t))}function $1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Rh=new Map;function Nh(t,e){var i=Rh.get(t);i||(i=new Set,Rh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){it&&i===0&&Xi();var r=t,a=null,l=null,d=oo,s=i>0?65536:0,u=!1;let m=(v,b=!0)=>{u=!0,p(b,v)},p=(v,b)=>{if(d===(d=v))return;let y=!1;if(it&&o!==-1){if(i===0){let w=yu(r);w===Js?o=0:w===ea?o=1/0:(o=parseInt(w.substring(1)),o!==o&&(o=d?1/0:-1))}let g=o>i;!!d===g&&(r=Aa(),Ii(r),ho(!1),y=!0,o=-1)}d?(a?Vs(a):b&&(a=Ni(()=>b(r))),l&&tr(l,()=>{l=null})):(l?Vs(l):b&&(l=Ni(()=>b(r,[i+1,o]))),a&&tr(a,()=>{a=null})),y&&ho(!0)};Zi(()=>{u=!1,e(m),u||p(null,null)},s),it&&(r=xt)}function Rs(t,e,i){it&&Xi();var o=t,r=oo,a,l=gs()?Ug:Sl;Zi(()=>{l(r,r=e())&&(a&&tr(a),a=Ni(()=>i(o)))}),it&&(o=xt)}var ra=null;function Vf(t){ra=t}function Ud(t,e){return e}function S1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Tu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ad(s),s.append(i),o.clear(),na(t,e[0].prev,e[a-1].next)}wf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),na(t,m.prev,m.next)),ji(m.e,!d)}})}function wi(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=it?Ii(Ei(u)):u.appendChild(Ln())}it&&Xi();var m=null,p=!1,v=Pn(()=>{var b=i();return ur(b)?b:b==null?[]:xd(b)});Zi(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let g=!1;if(it){var w=yu(l)===ea;w!==(y===0)&&(l=Aa(),Ii(l),ho(!1),g=!0)}if(it){for(var I=null,C,N=0;N<y;N++){if(xt.nodeType===pr&&xt.data===Ca){l=xt,g=!0,ho(!1);break}var A=b[N],E=o(A,N);C=Bh(xt,d,I,null,A,E,N,r,e,i),d.items.set(E,C),I=C}y>0&&Ii(Aa())}it||C1(b,d,l,r,e,o,i),a!==null&&(y===0?m?Vs(m):m=Ni(()=>a(l)):m!==null&&tr(m,()=>{m=null})),g&&ho(!0),n(v)}),it&&(l=xt)}function C1(t,e,i,o,r,a,l){var J,Ce,me,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,b,y=null,g,w=[],I=[],C,N,A,E;if(d)for(E=0;E<u;E+=1)C=t[E],N=a(C,E),A=m.get(N),A!==void 0&&((J=A.a)==null||J.measure(),(g!=null?g:g=new Set).add(A));for(E=0;E<u;E+=1){if(C=t[E],N=a(C,E),A=m.get(N),A===void 0){var k=v?v.e.nodes_start:i;y=Bh(k,e,y,y===null?e.first:y.next,C,N,E,o,r,l),m.set(N,y),w=[],I=[],v=y.next;continue}if(s&&T1(A,C,E,r),(A.e.f&8192)!==0&&(Vs(A.e),d&&((Ce=A.a)==null||Ce.unfix(),(g!=null?g:g=new Set).delete(A))),A!==v){if(b!==void 0&&b.has(A)){if(w.length<I.length){var Q=I[0],F;y=Q.prev;var z=w[0],X=w[w.length-1];for(F=0;F<w.length;F+=1)Oh(w[F],Q,i);for(F=0;F<I.length;F+=1)b.delete(I[F]);na(e,z.prev,X.next),na(e,y,z),na(e,X,Q),v=Q,y=X,E-=1,w=[],I=[]}else b.delete(A),Oh(A,v,i),na(e,A.prev,A.next),na(e,A,y===null?e.first:y.next),na(e,y,A),y=A;continue}for(w=[],I=[];v!==null&&v.k!==N;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}w.push(A),y=A,v=A.next}if(v!==null||b!==void 0){for(var se=b===void 0?[]:xd(b);v!==null;)(v.e.f&8192)===0&&se.push(v),v=v.next;var Z=se.length;if(Z>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<Z;E+=1)(me=se[E].a)==null||me.measure();for(E=0;E<Z;E+=1)(ee=se[E].a)==null||ee.fix()}S1(e,se,oe,m)}}d&&Mn(()=>{var be;if(g!==void 0)for(A of g)(be=A.a)==null||be.apply()}),yt.first=e.first&&e.first.e,yt.last=y&&y.e}function T1(t,e,i,o){(o&1)!==0&&Al(t.v,e),(o&2)!==0?Al(t.i,i):t.i=i}function Bh(t,e,i,o,r,a,l,d,s,u){var m=ra,p=(s&1)!==0,v=(s&16)===0,b=p?v?hs(r,!1,!1):Mr(r):r,y=(s&2)===0?l:Mr(l);Ae&&p&&(b.trace=()=>{var w=typeof y=="number"?l:y.v;u()[w]});var g={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};ra=g;try{return g.e=Ni(()=>d(t,b,y,u),it),g.e.prev=i&&i.e,g.e.next=o&&o.e,i===null?e.first=g:(i.next=g,i.e.next=g.e),o!==null&&(o.prev=g,o.e.prev=g.e),g}finally{ra=m}}function Oh(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 na(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 I1(t,e,i){var a,l;if(!e||e===Eh(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[Xn]&&(o=`in ${fr[Xn]}`),ah(Mu(o))}function zd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var b;var d=yt;if(l===(l=(b=e())!=null?b:"")){it&&Xi();return}if(d.nodes_start!==null&&(yf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var s=xt.data,u=Xi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Zo(u);if(u===null)throw oa(),fs;Ae&&!r&&I1(u.parentNode,s,l),Ro(xt,m),a=Ii(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Dl(p);if((i||o)&&(v=Ei(v)),Ro(Ei(v),v.lastChild),i||o)for(;Ei(v);)a.before(Ei(v));else a.before(v)}})}function Oi(t,e,i){it&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(tr(a),a=null),r&&(a=Ni(()=>i(o,r))))},65536),it&&(o=xt)}function Da(t,e,i,o,r,a){var y;let l=it;it&&Xi();var d=Ae&&a&&((y=Wt)==null?void 0:y.function[Xn]),s,u,m=null;it&&xt.nodeType===mu&&(m=xt,Xi());var p=it?xt:t,v,b=ra;Zi(()=>{let g=e()||null;var w=r?r():i||g==="svg"?cu:null;if(g!==s){var I=ra;Vf(b),v&&(g===null?tr(v,()=>{v=null,u=null}):g===u?Vs(v):(ji(v),Vu(!1))),g&&g!==u&&(v=Ni(()=>{if(m=it?m:w?document.createElementNS(w,g):document.createElement(g),Ae&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Ro(m,m),o){it&&Mh(g)&&m.append(document.createComment(""));var C=it?Ei(m):m.appendChild(Ln());it&&(C===null?ho(!1):Ii(C)),o(m,C)}yt.nodes_end=m,p.before(m)})),s=g,s&&(u=s),Vu(!0),Vf(I)}},65536),l&&(ho(!0),Ii(p))}var Nf;function Hh(t){return Nf=t.target,new Rf(t)}var Ns,Vr,Rf=class{constructor(e){Zs(this,Ns);Zs(this,Vr);var a,l;var i=new Map,o=(d,s)=>{var u=hs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(Yt(Pe({},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===xl?!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 R((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});yl(this,Vr,(e.hydrate?Af:is)(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)&&Nl(),yl(this,Ns,r.$$events);for(let d of Object.keys(Ri(this,Vr)))d==="$set"||d==="$destroy"||d==="$on"||vo(this,d,{get(){return Ri(this,Vr)[d]},set(s){Ri(this,Vr)[d]=s},enumerable:!0});Ri(this,Vr).$set=d=>{Object.assign(r,d)},Ri(this,Vr).$destroy=()=>{Oa(Ri(this,Vr))}}$set(e){Ri(this,Vr).$set(e)}$on(e,i){Ri(this,Ns)[e]=Ri(this,Ns)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Ns)[e].push(o),()=>{Ri(this,Ns)[e]=Ri(this,Ns)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Vr).$destroy()}};Ns=new WeakMap,Vr=new WeakMap;function G(t,e){Mn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Nf)==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),Ae&&Nh(e.hash,d)}})}function Os(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Ni(()=>{Vo(()=>i(t))})))})}function Fh(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=Fh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Uh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Fh(t))&&(o&&(o+=" "),o+=e);return o}function Wd(t){return typeof t=="object"?Uh(t):t!=null?t:""}var zh=[...`
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||zh.includes(o[l-1]))&&(d===o.length||zh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Wh(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 Of(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function qh(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(Of)),r&&s.push(...Object.keys(r).map(Of));var u=0,m=-1;let g=t.length;for(var p=0;p<g;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===":"&&m===-1)m=p;else if(v===";"||p===g-1){if(m!==-1){var b=Of(t.substring(u,m).trim());if(!s.includes(b)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Wh(o)),r&&(i+=Wh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,a){var l=t.__className;if(it||l!==i||l===void 0){var d=Kh(i,o,a);(!it||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 Df(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 Ke(t,e,i,o){var r=t.__style;if(it||r!==e){var a=qh(e,o);(!it||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Df(t,i==null?void 0:i[0],o[0]),Df(t,i==null?void 0:i[1],o[1],"important")):Df(t,i,o));return o}function Kd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return dh();for(var o of t.options)o.selected=e.includes(Qh(o));return}for(o of t.options){var r=Qh(o);if(cf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Bf(t){var e=new MutationObserver(()=>{Kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function Qh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Fl=Symbol("style"),jh=Symbol("is custom element"),Xh=Symbol("is html");function Zh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ve(t,e,i,o){var r=e_(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||R1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Fg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&t_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Jh(t,e,i,o,r=!1){var A;var a=e_(t),l=a[jh],d=!a[Xh];let s=it&&l;s&&ho(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Wd(i.class):(o||i[Hl])&&(i.class=null),i[Fl]&&((A=i.style)!=null||(i.style=null));var v=t_(t);for(let E in i){let k=i[E];if(m&&E==="value"&&k==null){t.value=t.__value="",u[E]=k;continue}if(E==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,b,k,o,e==null?void 0:e[Hl],i[Hl]),u[E]=k,u[Hl]=i[Hl];continue}if(E==="style"){Ke(t,k,e==null?void 0:e[Fl],i[Fl]),u[E]=k,u[Fl]=i[Fl];continue}var y=u[E];if(!(k===y&&!(k===void 0&&t.hasAttribute(E)))){u[E]=k;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){let Q={},F="$$"+E,z=E.slice(2);var w=Ph(z);if(kh(z)&&(z=z.slice(0,-7),Q.capture=!0),!w&&y){if(k!=null)continue;t.removeEventListener(z,u[F],Q),u[F]=null}if(k!=null)if(w)t[`__${z}`]=k,Ye([z]);else{let X=function(se){u[E].call(this,se)};var N=X;u[F]=kf(z,t,X,Q)}else w&&(t[`__${z}`]=void 0)}else if(E==="style")Ve(t,E,k);else if(E==="autofocus")If(t,!!k);else if(!l&&(E==="__value"||E==="value"&&k!=null))t.value=t.__value=k;else if(E==="selected"&&m)Zh(t,k);else{var I=E;d||(I=Ah(I));var C=I==="defaultValue"||I==="defaultChecked";if(k==null&&!l&&!C)if(a[E]=null,I==="value"||I==="checked"){let Q=t,F=e===void 0;if(I==="value"){let z=Q.defaultValue;Q.removeAttribute(I),Q.defaultValue=z,Q.value=Q.__value=F?z:null}else{let z=Q.defaultChecked;Q.removeAttribute(I),Q.defaultChecked=z,Q.checked=F?z:!1}}else t.removeAttribute(E);else C||v.includes(I)&&(l||typeof k!="string")?t[I]=k:typeof k!="function"&&Ve(t,I,k,r)}}}return s&&ho(!0),u}function no(t,e,i=[],o,r=!1,a=Jr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Zi(()=>{var v=e(...l.map(n)),b=Jh(t,d,v,o,r);m&&u&&"value"in v&&Kd(t,v.value,!1);for(let g of Object.getOwnPropertySymbols(s))v[g]||ji(s[g]);for(let g of Object.getOwnPropertySymbols(v)){var y=v[g];g.description===tf&&(!d||y!==d[g])&&(s[g]&&ji(s[g]),s[g]=Ni(()=>Os(t,()=>y))),b[g]=y}d=b}),u){var p=t;Vo(()=>{Kd(p,d.value),Bf(p)})}m=!0}function e_(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[jh]:t.nodeName.includes("-"),[Xh]:t.namespaceURI===Vg}}var Gh=new Map;function t_(t){var e=Gh.get(t.nodeName);if(e)return e;Gh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=pu(o);for(var a in i)i[a].set&&e.push(a);o=Ta(o)}return e}function R1(t,e,i){var o;Ae&&(e==="srcset"&&N1(t,i)||Hf((o=t.getAttribute(e))!=null?o:"",i)||sh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Hf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Yh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function N1(t,e){var i=Yh(t.srcset),o=Yh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Hf(i[l][0],r)||Hf(r,i[l][0])))}var O1=uu?()=>performance.now():()=>Date.now(),os={tick:t=>(uu?requestAnimationFrame:ht)(t),now:()=>O1(),tasks:new Set};function i_(){let t=os.now();os.tasks.forEach(e=>{e.c(t)||(os.tasks.delete(e),e.f())}),os.tasks.size!==0&&os.tick(i_)}function o_(t){let e;return os.tasks.size===0&&os.tick(i_),{promise:new Promise(i=>{os.tasks.add(e={c:t,f:i})}),abort(){os.tasks.delete(e)}}}function Ru(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function F1(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 n_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=F1(r.trim());e[l]=a.trim()}return e}var U1=t=>t;function ns(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,p=e.style.overflow,v,b;function y(){var k;var A=Ht,E=yt;Yi(null),go(null);try{return u!=null?u:u=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:s})}finally{Yi(A),go(E)}}var g={is_global:d,in(){var A;if(e.inert=m,!r){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||v==null||v.abort(),Ru(e,"introstart"),v=Ff(e,y(),b,1,()=>{Ru(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Ru(e,"outrostart"),b=Ff(e,y(),v,0,()=>{Ru(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},w=yt;if(((N=w.transitions)!=null?N:w.transitions=[]).push(g),r&&Fd){var I=d;if(!I){for(var C=w.parent;C&&(C.f&65536)!==0;)for(;(C=C.parent)&&(C.f&16)===0;);I=!C||(C.f&32768)!==0}I&&Vo(()=>{Et(()=>g.in())})}}function Ff(t,e,i,o,r){var a=o===1;if(ta(e)){var l,d=!1;return Mn(()=>{if(!d){var w=e({direction:a?"in":"out"});l=Ff(t,w,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:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=U1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var b=n_(u(0,1));v.push(b,b)}var y=()=>1-o,g=t.animate(v,{duration:s,fill:"forwards"});return g.onfinish=()=>{var z;g.cancel();var w=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-w,C=e.duration*Math.abs(I),N=[];if(C>0){var A=!1;if(u)for(var E=Math.ceil(C/16.666666666666668),k=0;k<=E;k+=1){var Q=w+I*p(k/E),F=n_(u(Q,1-Q));N.push(F),A||(A=F.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=g.currentTime;return w+I*p(X/C)},m&&o_(()=>{if(g.playState!=="running")return!1;var X=y();return m(X,1-X),!0})}g=t.animate(N,{duration:C,fill:"forwards"}),g.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Uf(t,e,i){var o=Go(t,e);o&&o.set&&(t[e]=i,Mo(()=>{t[e]=null}))}var sa,Ul,qd,Ou,r_,Du=class Du{constructor(e){Zs(this,Ou);Zs(this,sa,new WeakMap);Zs(this,Ul);Zs(this,qd);yl(this,qd,e)}observe(e,i){var o=Ri(this,sa).get(e)||new Set;return o.add(i),Ri(this,sa).set(e,o),Lg(this,Ou,r_).call(this).observe(e,Ri(this,qd)),()=>{var r=Ri(this,sa).get(e);r.delete(i),r.size===0&&(Ri(this,sa).delete(e),Ri(this,Ul).unobserve(e))}}};sa=new WeakMap,Ul=new WeakMap,qd=new WeakMap,Ou=new WeakSet,r_=function(){var e;return(e=Ri(this,Ul))!=null?e:yl(this,Ul,new ResizeObserver(i=>{for(var o of i){Du.entries.set(o.target,o);for(var r of Ri(this,sa).get(o.target)||[])r(o)}}))},cr(Du,"entries",new WeakMap);var zf=Du;var z1=new zf({box:"border-box"});function Rn(t,e,i){var o=z1.observe(t,()=>i(t[e]));Vo(()=>(Et(()=>i(t[e])),o))}function s_(t,e){return t===e||(t==null?void 0:t[Yo])===e}function Ze(t={},e,i,o){return Vo(()=>{var r,a;return Jo(()=>{r=a,a=(o==null?void 0:o())||[],Et(()=>{t!==i(...a)&&(e(t,...a),r&&s_(i(...r),t)&&e(null,...r))})}),()=>{Mn(()=>{a&&s_(i(...a),t)&&e(null,...a)})}}),t}function $o(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Jr(()=>{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&&Vd(()=>{a_(e,o),ia(i.b)}),De(()=>{let r=Et(()=>i.m.map(Hg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&De(()=>{a_(e,o),ia(i.a)})}function a_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Qd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ht;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var zl=[];function Rr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ht){let i=null,o=new Set;function r(d){if(Sl(t,d)&&(t=d,i)){let s=!zl.length;for(let u of o)u[1](),zl.push(u,t);if(s){for(let u=0;u<zl.length;u+=2)zl[u][0](zl[u+1]);zl.length=0}}}function a(d){r(d(t))}function l(d,s=ht){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||ht),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function hi(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 Rr(i,(l,d)=>{let s=!1,u=[],m=0,p=ht,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},b=r.map((y,g)=>Qd(y,w=>{u[g]=w,m&=~(1<<g),s&&v()},()=>{m|=1<<g}));return s=!0,v(),function(){ia(b),p(),s=!1}})}function $e(t){let e;return Qd(t,i=>e=i)(),e}var Bu=!1,Wf=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:hs(void 0),unsubscribe:ht};if(o.store!==t&&!(Wf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ht;else{var r=!0;o.unsubscribe=Qd(t,l=>{r?o.source.v=l:R(o.source,l)}),r=!1}return t&&Wf in i?$e(t):n(o.source)}function Oe(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();vo(t,Wf,{enumerable:!1,value:!0})})}return[t,e]}function Kf(t){var e=Bu;try{return Bu=!1,[t(),Bu]}finally{Bu=e}}var j1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Xg(`${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 Nn(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},j1)}var X1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(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];ta(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(ta(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===xl)return!1;for(let i of t.props)if(ta(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ta(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 rs(...t){return new Proxy({props:t},X1)}function l_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function _(t,e,i,o){var Q,F;var r=(i&1)!==0,a=!ms||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Kf(()=>t[e]):u=t[e];var m=Yo in t||xl in t,p=l&&((F=(Q=Go(t,e))==null?void 0:Q.set)!=null?F:m&&e in t&&(z=>t[e]=z))||void 0,v=o,b=!0,y=!1,g=()=>(y=!0,b&&(b=!1,d?v=Et(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&jg(e),u=g(),p&&p(u));var w;if(a)w=()=>{var z=t[e];return z===void 0?g():(b=!0,y=!1,z)};else{var I=(r?Jr:Pn)(()=>t[e]);I.f|=131072,w=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return w;if(p){var C=t.$$legacy;return function(z,X){return arguments.length>0?((!a||!X||C||s)&&p(X?w():z),z):w()}}var N=!1,A=!1,E=hs(u),k=Jr(()=>{var z=w(),X=n(E);return N?(N=!1,A=!0,X):(A=!1,E.v=z)});return l&&n(k),r||(k.equals=Cl),function(z,X){if(ku!==null&&(N=A,w(),n(E)),arguments.length>0){let se=X?n(k):a&&l?ci(z):z;if(!k.equals(se)){if(N=!0,R(E,se),y&&v!==void 0&&(v=se),l_(k))return z;Et(()=>n(k))}return z}return l_(k)?k.v:n(k)}}var Z1;typeof HTMLElement=="function"&&(Z1=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))}}connectedCallback(){return gt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=J1(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]=qf(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=Hh({component:this.$$ctor,target:this.shadowRoot||this,props:Yt(Pe({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Cu(()=>{Jo(()=>{var a;this.$$r=!0;for(let l of of(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=qf(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]=qf(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 of(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function qf(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 J1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var d_="5";var c_,u_,p_;typeof window!="undefined"&&((p_=(u_=(c_=window.__svelte)!=null?c_:window.__svelte={}).v)!=null?p_:u_.v=new Set).add(d_);var cd=require("@vkontakte/videoplayer-core/es2015"),EJ=require("@vkontakte/videoplayer-core/es2015"),fl=require("@vkontakte/videoplayer-shared/es2015"),$$=require("@vkontakte/videoplayer-statistics/es2015");var Ba=require("@vkontakte/videoplayer-shared/es2015");var ey={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ba.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:Ba.VideoQuality.Q_480P,highQualityLimit:Ba.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",disabledSlotIds:[],disabledAdditionalButtonIds:[]},f_=t=>(0,Ba.fillWithDefault)(t,ey),m_=t=>El("ui-config",t),Bt=()=>Il("ui-config");var Gd="vk_player_debug_panel_opened";var v_="videoplayer",g_="videoplayer";var bs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},h_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),__=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),b_=new Set(["ShiftRight","ShiftLeft"]);var $_=["TIMELINE"],Yd=[...$_,"GRAPH_BUTTON"],Qf=[...$_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var ss=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(ss||{}),Xd={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),y_=require("@vkontakte/videoplayer-core/es2015"),x_=require("@vkontakte/videoplayer-statistics/es2015");var Hu="prod",Fa="1.1.81";var Ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var w_=Symbol("storeContext"),S_=Symbol("microStoresContext"),C_=(t,e)=>{El(w_,t),El(S_,e),Hu==="dev"&&(window.app={store:t,microStores:e})},_e=()=>{let t=Il(w_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},yo=()=>{let t=Il(S_);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ai=(t,e)=>Uu(t,t.getValue(),e),Uu=(t,e,i)=>Rr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),T_=(t,e,i,o,r=["meta config not provided"])=>{var F,z,X,se,Z,oe,J,Ce,me;let a=t.info,{width:l,height:d}=$e(i.ui.playerSize),s=(z=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?z:0,u=(se=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?se:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Fa} (core: ${y_.VERSION}, stat: ${x_.VERSION}, shared: ${Zd.VERSION})`,v=$e(i.state.errorLog$),b=v.length?`
45
- `+v.map((ee,be)=>{var Qe;let we=`${be}) Type: ${ee.id}
43
+ `)})}}var Ra=!1,Nl=null,Na=!1,As=!1;function gf(t){As=t}var Od=[],Bd=[],Ht=null,gr=!1;function Yi(t){Ht=t}var xt=null;function go(t){xt=t}var Zo=null;function bu(t){Ht!==null&&Ht.f&2097152&&(Zo===null?Zo=[Ht,[t]]:Zo[1].push(t))}var Vn=null,hr=0,vr=null;function rh(t){vr=t}var Sh=1,Eu=0,Ls=!1,Pu=null;function Id(){return++Sh}function Aa(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&&xt!==null&&!Ls,s=i.length;if(l||d){var u=t,m=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&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Aa(a)&&vf(a),a.wv>t.wv)return!0}(!o||xt!==null&&!Ls)&&An(t,1024)}return!1}function Ch(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Ht||((a.f&2)!==0?Ch(a,e,!1):e===a&&(i?An(a,2048):(a.f&1024)!==0&&An(a,4096),Pd(a)))}}function _u(t){var b,y;var e=Vn,i=hr,o=vr,r=Ht,a=Ls,l=Zo,d=Wt,s=gr,u=t.f;Vn=null,hr=0,vr=null,Ls=(u&256)!==0&&(gr||!Na||Ht===null),Ht=(u&96)===0?t:null,Zo=null,Sd(t.ctx),gr=!1,Eu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(Vn!==null){var v;if(Rd(t,hr),p!==null&&hr>0)for(p.length=hr+Vn.length,v=0;v<Vn.length;v++)p[hr+v]=Vn[v];else t.deps=p=Vn;if(!Ls||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Rd(t,hr),p.length=hr);if(gs()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)Ch(vr[v],t);return r!==null&&r!==t&&(Eu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(_){yh(_)}finally{Vn=e,hr=i,vr=o,Ht=r,Ls=a,Zo=l,Sd(d),gr=s,t.f^=2097152}}function i1(t,e){let i=e.reactions;if(i!==null){var o=Og.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&&(Vn===null||!Vn.includes(e))&&(An(e,4096),(e.f&768)===0&&(e.f^=512),hu(e),Rd(e,0))}function Rd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)i1(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){An(t,1024);var i=xt,o=Na;if(xt=t,Na=!0,Ae){var r=fr;Cd(t.component_function)}try{(e&16)!==0?gh(t):$f(t),bf(t);var a=_u(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Sh,Ae&&vs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);Ae&&Bd.push(t)}finally{Na=o,xt=i,Ae&&Cd(r)}}}function xh(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function o1(){try{Qg()}catch(t){if(Ae&&vo(t,"stack",{value:""}),Nl!==null)if(Ae)try{Dd(t,Nl)}catch(e){throw xh(),e}else Dd(t,Nl);else throw Ae&&xh(),t}}function Tf(){var t=Na;try{var e=0;for(Na=!0;Od.length>0;){e++>1e3&&o1();var i=Od,o=i.length;Od=[];for(var r=0;r<o;r++){var a=r1(i[r]);n1(a)}Al.clear()}}finally{Ra=!1,Na=t,Nl=null,Ae&&(Bd=[])}}function n1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Aa(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?xf(o):o.fn=null))}}function Pd(t){Ra||(Ra=!0,queueMicrotask(Tf));for(var e=Nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Od.push(e)}function r1(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:Aa(i)&&Ml(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 Dl(t){var e;for(t&&(Ra=!0,Tf(),Ra=!0,e=t());;){if(bh(),Od.length===0)return Ra=!1,Nl=null,Ae&&(Bd=[]),e;Ra=!0,Tf()}}function _o(){return ht(this,null,function*(){yield Promise.resolve(),Dl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Pu!==null&&Pu.add(t),Ht!==null&&!gr){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Ht){var o=Ht.deps;t.rv<Eu&&(t.rv=Eu,Vn===null&&o!==null&&o[hr]===t?hr++:Vn===null?Vn=[t]:(!Ls||!Vn.includes(t))&&Vn.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,Aa(r)&&vf(r)),Ae&&vs&&!gr&&wd!==null&&Ht!==null&&wd.reaction===Ht)if(t.trace)t.trace();else{var l=ks("TracedAt");if(l){var d=wd.entries.get(t);d===void 0&&(d={traces:[]},wd.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 As&&Al.has(t)?Al.get(t):t.v}function kt(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var s1=-7169;function An(t,e){t.f=t.f&s1|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)ku(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&ku(i)}}}function ku(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{ku(t[o],e)}catch(r){}let i=Ia(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=pu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function If(t,e){if(e){let i=document.body;t.autofocus=!0,Mn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Ht,i=xt;Yi(null),go(null);try{return t()}finally{Yi(e),go(i)}}var Ef=new Set,Lu=new Set;function Da(t){if(!tt)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 Pf(t,e,i,o={}){function r(a){if(o.capture||Ol.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Mn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function ut(t,e,i,o,r){var a={capture:o,passive:r},l=Pf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,a)})}function Ye(t){for(var e=0;e<t.length;e++)Ef.add(t[e]);for(var i of Lu)i(t)}function Ol(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){vo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ht,p=xt;Yi(null),go(null);try{for(var v,b=[];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[x,...I]=_;x.apply(a,[t,...I])}else _.call(a,t)}catch(R){v?b.push(R):v=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of b)queueMicrotask(()=>{throw R});throw v}}finally{t.__root=e,delete t.currentTarget,Yi(m),go(p)}}}var l1;function Th(){l1=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ro(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(tt)return Ro(wt,null),wt;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=Ii(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ii(l),s=l.lastChild;Ro(d,s)}else Ro(l,l);return l}}function u1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Ro(wt,null),wt;if(!l){var d=Bl(a),s=Ii(d);if(r)for(l=document.createDocumentFragment();Ii(s);)l.appendChild(Ii(s));else l=Ii(s)}var u=l.cloneNode(!0);if(r){var m=Ii(u),p=u.lastChild;Ro(m,p)}else Ro(u,u);return u}}function Ie(t,e){return u1(t,e,"svg")}function _s(t=""){if(!tt){var e=Ln(t+"");return Ro(e,e),e}var i=wt;return i.nodeType!==Sl&&(i.before(i=Ln()),Ci(i)),Ro(i,i),i}function Me(){if(tt)return Ro(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ln();return t.append(e,i),Ro(e,i),t}function $(t,e){if(tt){xt.nodes_end=wt,Xi();return}t!==null&&t.before(e)}var p1=/\r/g;function Eh(t){t=t.replace(p1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Ph(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var f1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kh(t){return f1.includes(t)}var m1=["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 v1={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 Ah(t){var e;return t=t.toLowerCase(),(e=v1[t])!=null?e:t}var M3=[...m1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var g1=["touchstart","touchmove"];function Lh(t){return g1.includes(t)}var h1=["$state","$state.raw","$derived","$derived.by"],V3=[...h1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var _1=["textarea","script","style","title"];function Mh(t){return _1.includes(t)}function Mu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Fd=!0;function Vu(t){Fd=t}function ve(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 is(t,e){return Vh(t,e)}function Af(t,e){var l;xu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=wt;try{for(var a=Ii(i);a&&(a.nodeType!==pr||a.data!==ea);)a=Jo(a);if(!a)throw fs;ho(!0),Ci(a),Xi();let d=Vh(t,Gt(ke({},e),{anchor:a}));if(wt===null||wt.nodeType!==pr||wt.data!==Ta)throw na(),fs;return ho(!1),d}catch(d){if(d===fs)return e.recover===!1&&Gg(),xu(),Ad(i),ho(!1),is(t,e);throw d}finally{ho(o),Ci(r),Th()}}var Hl=new Map;function Vh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){xu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var b=p[v];if(!d.has(b)){d.add(b);var y=Lh(b);e.addEventListener(b,Ol,{passive:y});var _=Hl.get(b);_===void 0?(document.addEventListener(b,Ol,{passive:y}),Hl.set(b,1)):Hl.set(b,_+1)}}};s(xd(Ef)),Lu.add(s);var u=void 0,m=vh(()=>{var p=i!=null?i:e.appendChild(Ln());return Ni(()=>{if(a){B({});var v=Wt;v.c=a}r&&(o.$$events=r),tt&&Ro(p,null),Fd=l,u=t(p,o)||{},Fd=!0,tt&&(xt.nodes_end=wt),a&&H()}),()=>{var y;for(var v of d){e.removeEventListener(v,Ol);var b=Hl.get(v);--b===0?(document.removeEventListener(v,Ol),Hl.delete(v)):Hl.set(v,b)}Lu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return kf.set(u,m),u}var kf=new WeakMap;function Oa(t,e){let i=kf.get(t);return i?(kf.delete(t),i(e)):(Ae&&lh(),Promise.resolve())}function si(t,e,...i){var o=t,r=_t,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),Ae&&r==null&&Yg(),a=Ni(()=>r(o,...i)))},65536),tt&&(o=wt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Zg(e)},set:o=>{i=o}})}};x1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var x1;function Dt(t){Wt===null&&Il("onMount"),ms&&Wt.l!==null?y1(Wt).m.push(t):Oe(()=>{let e=kt(t);if(typeof e=="function")return e})}function fn(t){Wt===null&&Il("onDestroy"),Dt(()=>()=>kt(t))}function y1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Rh=new Map;function Nh(t,e){var i=Rh.get(t);i||(i=new Set,Rh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){tt&&i===0&&Xi();var r=t,a=null,l=null,d=oo,s=i>0?65536:0,u=!1;let m=(v,b=!0)=>{u=!0,p(b,v)},p=(v,b)=>{if(d===(d=v))return;let y=!1;if(tt&&o!==-1){if(i===0){let x=yu(r);x===ea?o=0:x===ta?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(r=La(),Ci(r),ho(!1),y=!0,o=-1)}d?(a?Vs(a):b&&(a=Ni(()=>b(r))),l&&tr(l,()=>{l=null})):(l?Vs(l):b&&(l=Ni(()=>b(r,[i+1,o]))),a&&tr(a,()=>{a=null})),y&&ho(!0)};Zi(()=>{u=!1,e(m),u||p(null,null)},s),tt&&(r=wt)}function Rs(t,e,i){tt&&Xi();var o=t,r=oo,a,l=gs()?Ug:Cl;Zi(()=>{l(r,r=e())&&(a&&tr(a),a=Ni(()=>i(o)))}),tt&&(o=wt)}var sa=null;function Vf(t){sa=t}function Ud(t,e){return e}function C1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Tu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ad(s),s.append(i),o.clear(),ra(t,e[0].prev,e[a-1].next)}wf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),ra(t,m.prev,m.next)),ji(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=tt?Ci(Ii(u)):u.appendChild(Ln())}tt&&Xi();var m=null,p=!1,v=kn(()=>{var b=i();return ur(b)?b:b==null?[]:xd(b)});Zi(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let _=!1;if(tt){var x=yu(l)===ta;x!==(y===0)&&(l=La(),Ci(l),ho(!1),_=!0)}if(tt){for(var I=null,T,R=0;R<y;R++){if(wt.nodeType===pr&&wt.data===Ta){l=wt,_=!0,ho(!1);break}var A=b[R],P=o(A,R);T=Bh(wt,d,I,null,A,P,R,r,e,i),d.items.set(P,T),I=T}y>0&&Ci(La())}tt||T1(b,d,l,r,e,o,i),a!==null&&(y===0?m?Vs(m):m=Ni(()=>a(l)):m!==null&&tr(m,()=>{m=null})),_&&ho(!0),n(v)}),tt&&(l=wt)}function T1(t,e,i,o,r,a,l){var J,we,me,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,b,y=null,_,x=[],I=[],T,R,A,P;if(d)for(P=0;P<u;P+=1)T=t[P],R=a(T,P),A=m.get(R),A!==void 0&&((J=A.a)==null||J.measure(),(_!=null?_:_=new Set).add(A));for(P=0;P<u;P+=1){if(T=t[P],R=a(T,P),A=m.get(R),A===void 0){var E=v?v.e.nodes_start:i;y=Bh(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),m.set(R,y),x=[],I=[],v=y.next;continue}if(s&&I1(A,T,P,r),(A.e.f&8192)!==0&&(Vs(A.e),d&&((we=A.a)==null||we.unfix(),(_!=null?_:_=new Set).delete(A))),A!==v){if(b!==void 0&&b.has(A)){if(x.length<I.length){var z=I[0],F;y=z.prev;var U=x[0],X=x[x.length-1];for(F=0;F<x.length;F+=1)Dh(x[F],z,i);for(F=0;F<I.length;F+=1)b.delete(I[F]);ra(e,U.prev,X.next),ra(e,y,U),ra(e,X,z),v=z,y=X,P-=1,x=[],I=[]}else b.delete(A),Dh(A,v,i),ra(e,A.prev,A.next),ra(e,A,y===null?e.first:y.next),ra(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||b!==void 0){for(var ae=b===void 0?[]:xd(b);v!==null;)(v.e.f&8192)===0&&ae.push(v),v=v.next;var Z=ae.length;if(Z>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<Z;P+=1)(me=ae[P].a)==null||me.measure();for(P=0;P<Z;P+=1)(ee=ae[P].a)==null||ee.fix()}C1(e,ae,re,m)}}d&&Mn(()=>{var _e;if(_!==void 0)for(A of _)(_e=A.a)==null||_e.apply()}),xt.first=e.first&&e.first.e,xt.last=y&&y.e}function I1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function Bh(t,e,i,o,r,a,l,d,s,u){var m=sa,p=(s&1)!==0,v=(s&16)===0,b=p?v?hs(r,!1,!1):Mr(r):r,y=(s&2)===0?l:Mr(l);Ae&&p&&(b.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var _={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};sa=_;try{return _.e=Ni(()=>d(t,b,y,u),tt),_.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{sa=m}}function Dh(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=Jo(a);r.before(a),a=l}}function ra(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 E1(t,e,i){var a,l;if(!e||e===Eh(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[Xn]&&(o=`in ${fr[Xn]}`),ah(Mu(o))}function zd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var b;var d=xt;if(l===(l=(b=e())!=null?b:"")){tt&&Xi();return}if(d.nodes_start!==null&&(yf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var s=wt.data,u=Xi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Jo(u);if(u===null)throw na(),fs;Ae&&!r&&E1(u.parentNode,s,l),Ro(wt,m),a=Ci(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Bl(p);if((i||o)&&(v=Ii(v)),Ro(Ii(v),v.lastChild),i||o)for(;Ii(v);)a.before(Ii(v));else a.before(v)}})}function Di(t,e,i){tt&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(tr(a),a=null),r&&(a=Ni(()=>i(o,r))))},65536),tt&&(o=wt)}function Ba(t,e,i,o,r,a){var y;let l=tt;tt&&Xi();var d=Ae&&a&&((y=Wt)==null?void 0:y.function[Xn]),s,u,m=null;tt&&wt.nodeType===mu&&(m=wt,Xi());var p=tt?wt:t,v,b=sa;Zi(()=>{let _=e()||null;var x=r?r():i||_==="svg"?cu:null;if(_!==s){var I=sa;Vf(b),v&&(_===null?tr(v,()=>{v=null,u=null}):_===u?Vs(v):(ji(v),Vu(!1))),_&&_!==u&&(v=Ni(()=>{if(m=tt?m:x?document.createElementNS(x,_):document.createElement(_),Ae&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Ro(m,m),o){tt&&Mh(_)&&m.append(document.createComment(""));var T=tt?Ii(m):m.appendChild(Ln());tt&&(T===null?ho(!1):Ci(T)),o(m,T)}xt.nodes_end=m,p.before(m)})),s=_,s&&(u=s),Vu(!0),Vf(I)}},65536),l&&(ho(!0),Ci(p))}var Nf;function Hh(t){return Nf=t.target,new Rf(t)}var Ns,Vr,Rf=class{constructor(e){Js(this,Ns);Js(this,Vr);var a,l;var i=new Map,o=(d,s)=>{var u=hs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(Gt(ke({},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===wl?!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 N((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Vr,(e.hydrate?Af:is)(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)&&Dl(),xl(this,Ns,r.$$events);for(let d of Object.keys(Ri(this,Vr)))d==="$set"||d==="$destroy"||d==="$on"||vo(this,d,{get(){return Ri(this,Vr)[d]},set(s){Ri(this,Vr)[d]=s},enumerable:!0});Ri(this,Vr).$set=d=>{Object.assign(r,d)},Ri(this,Vr).$destroy=()=>{Oa(Ri(this,Vr))}}$set(e){Ri(this,Vr).$set(e)}$on(e,i){Ri(this,Ns)[e]=Ri(this,Ns)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Ns)[e].push(o),()=>{Ri(this,Ns)[e]=Ri(this,Ns)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Vr).$destroy()}};Ns=new WeakMap,Vr=new WeakMap;function Q(t,e){Mn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Nf)==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),Ae&&Nh(e.hash,d)}})}function Ds(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Ni(()=>{Vo(()=>i(t))})))})}function Fh(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=Fh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Uh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Fh(t))&&(o&&(o+=" "),o+=e);return o}function Wd(t){return typeof t=="object"?Uh(t):t!=null?t:""}var zh=[...`
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||zh.includes(o[l-1]))&&(d===o.length||zh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Wh(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 Df(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function qh(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(Df)),r&&s.push(...Object.keys(r).map(Df));var u=0,m=-1;let _=t.length;for(var p=0;p<_;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===":"&&m===-1)m=p;else if(v===";"||p===_-1){if(m!==-1){var b=Df(t.substring(u,m).trim());if(!s.includes(b)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Wh(o)),r&&(i+=Wh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,r,a){var l=t.__className;if(tt||l!==i||l===void 0){var d=Kh(i,o,a);(!tt||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 Of(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(tt||r!==e){var a=qh(e,o);(!tt||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Of(t,i==null?void 0:i[0],o[0]),Of(t,i==null?void 0:i[1],o[1],"important")):Of(t,i,o));return o}function Kd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return dh();for(var o of t.options)o.selected=e.includes(Qh(o));return}for(o of t.options){var r=Qh(o);if(cf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Bf(t){var e=new MutationObserver(()=>{Kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function Qh(t){return"__value"in t?t.__value:t.value}var Fl=Symbol("class"),Ul=Symbol("style"),jh=Symbol("is custom element"),Xh=Symbol("is html");function Zh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Re(t,e,i,o){var r=e_(t);if(tt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||N1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Fg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&t_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Jh(t,e,i,o,r=!1){var A;var a=e_(t),l=a[jh],d=!a[Xh];let s=tt&&l;s&&ho(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Wd(i.class):(o||i[Fl])&&(i.class=null),i[Ul]&&((A=i.style)!=null||(i.style=null));var v=t_(t);for(let P in i){let E=i[P];if(m&&P==="value"&&E==null){t.value=t.__value="",u[P]=E;continue}if(P==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,b,E,o,e==null?void 0:e[Fl],i[Fl]),u[P]=E,u[Fl]=i[Fl];continue}if(P==="style"){qe(t,E,e==null?void 0:e[Ul],i[Ul]),u[P]=E,u[Ul]=i[Ul];continue}var y=u[P];if(!(E===y&&!(E===void 0&&t.hasAttribute(P)))){u[P]=E;var _=P[0]+P[1];if(_!=="$$")if(_==="on"){let z={},F="$$"+P,U=P.slice(2);var x=kh(U);if(Ph(U)&&(U=U.slice(0,-7),z.capture=!0),!x&&y){if(E!=null)continue;t.removeEventListener(U,u[F],z),u[F]=null}if(E!=null)if(x)t[`__${U}`]=E,Ye([U]);else{let X=function(ae){u[P].call(this,ae)};var R=X;u[F]=Pf(U,t,X,z)}else x&&(t[`__${U}`]=void 0)}else if(P==="style")Re(t,P,E);else if(P==="autofocus")If(t,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))t.value=t.__value=E;else if(P==="selected"&&m)Zh(t,E);else{var I=P;d||(I=Ah(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let z=t,F=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=F?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=F?U:!1}}else t.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?t[I]=E:typeof E!="function"&&Re(t,I,E,r)}}}return s&&ho(!0),u}function no(t,e,i=[],o,r=!1,a=Jr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Zi(()=>{var v=e(...l.map(n)),b=Jh(t,d,v,o,r);m&&u&&"value"in v&&Kd(t,v.value,!1);for(let _ of Object.getOwnPropertySymbols(s))v[_]||ji(s[_]);for(let _ of Object.getOwnPropertySymbols(v)){var y=v[_];_.description===tf&&(!d||y!==d[_])&&(s[_]&&ji(s[_]),s[_]=Ni(()=>Ds(t,()=>y))),b[_]=y}d=b}),u){var p=t;Vo(()=>{Kd(p,d.value),Bf(p)})}m=!0}function e_(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[jh]:t.nodeName.includes("-"),[Xh]:t.namespaceURI===Vg}}var Gh=new Map;function t_(t){var e=Gh.get(t.nodeName);if(e)return e;Gh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=pu(o);for(var a in i)i[a].set&&e.push(a);o=Ia(o)}return e}function N1(t,e,i){var o;Ae&&(e==="srcset"&&D1(t,i)||Hf((o=t.getAttribute(e))!=null?o:"",i)||sh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Hf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Yh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function D1(t,e){var i=Yh(t.srcset),o=Yh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Hf(i[l][0],r)||Hf(r,i[l][0])))}var O1=uu?()=>performance.now():()=>Date.now(),os={tick:t=>(uu?requestAnimationFrame:_t)(t),now:()=>O1(),tasks:new Set};function i_(){let t=os.now();os.tasks.forEach(e=>{e.c(t)||(os.tasks.delete(e),e.f())}),os.tasks.size!==0&&os.tick(i_)}function o_(t){let e;return os.tasks.size===0&&os.tick(i_),{promise:new Promise(i=>{os.tasks.add(e={c:t,f:i})}),abort(){os.tasks.delete(e)}}}function Ru(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function U1(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 n_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=U1(r.trim());e[l]=a.trim()}return e}var z1=t=>t;function ns(t,e,i,o){var R;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,p=e.style.overflow,v,b;function y(){var E;var A=Ht,P=xt;Yi(null),go(null);try{return u!=null?u:u=i()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{Yi(A),go(P)}}var _={is_global:d,in(){var A;if(e.inert=m,!r){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||v==null||v.abort(),Ru(e,"introstart"),v=Ff(e,y(),b,1,()=>{Ru(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Ru(e,"outrostart"),b=Ff(e,y(),v,0,()=>{Ru(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},x=xt;if(((R=x.transitions)!=null?R:x.transitions=[]).push(_),r&&Fd){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&&Vo(()=>{kt(()=>_.in())})}}function Ff(t,e,i,o,r){var a=o===1;if(ia(e)){var l,d=!1;return Mn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Ff(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:_t,deactivate:_t,reset:_t,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=z1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var b=n_(u(0,1));v.push(b,b)}var y=()=>1-o,_=t.animate(v,{duration:s,fill:"forwards"});return _.onfinish=()=>{var U;_.cancel();var x=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),R=[];if(T>0){var A=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var z=x+I*p(E/P),F=n_(u(z,1-z));R.push(F),A||(A=F.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=_.currentTime;return x+I*p(X/T)},m&&o_(()=>{if(_.playState!=="running")return!1;var X=y();return m(X,1-X),!0})}_=t.animate(R,{duration:T,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=_t)},deactivate:()=>{r=_t},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Uf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,Mo(()=>{t[e]=null}))}var aa,zl,qd,Du,r_,Ou=class Ou{constructor(e){Js(this,Du);Js(this,aa,new WeakMap);Js(this,zl);Js(this,qd);xl(this,qd,e)}observe(e,i){var o=Ri(this,aa).get(e)||new Set;return o.add(i),Ri(this,aa).set(e,o),Lg(this,Du,r_).call(this).observe(e,Ri(this,qd)),()=>{var r=Ri(this,aa).get(e);r.delete(i),r.size===0&&(Ri(this,aa).delete(e),Ri(this,zl).unobserve(e))}}};aa=new WeakMap,zl=new WeakMap,qd=new WeakMap,Du=new WeakSet,r_=function(){var e;return(e=Ri(this,zl))!=null?e:xl(this,zl,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Ri(this,aa).get(o.target)||[])r(o)}}))},cr(Ou,"entries",new WeakMap);var zf=Ou;var W1=new zf({box:"border-box"});function Rn(t,e,i){var o=W1.observe(t,()=>i(t[e]));Vo(()=>(kt(()=>i(t[e])),o))}function s_(t,e){return t===e||(t==null?void 0:t[jo])===e}function Xe(t={},e,i,o){return Vo(()=>{var r,a;return en(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&s_(i(...r),t)&&e(null,...r))})}),()=>{Mn(()=>{a&&s_(i(...a),t)&&e(null,...a)})}}),t}function $o(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Jr(()=>{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&&Vd(()=>{a_(e,o),oa(i.b)}),Oe(()=>{let r=kt(()=>i.m.map(Hg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Oe(()=>{a_(e,o),oa(i.a)})}function a_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Qd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),_t;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Rr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=_t){let i=null,o=new Set;function r(d){if(Cl(t,d)&&(t=d,i)){let s=!Wl.length;for(let u of o)u[1](),Wl.push(u,t);if(s){for(let u=0;u<Wl.length;u+=2)Wl[u][0](Wl[u+1]);Wl.length=0}}}function a(d){r(d(t))}function l(d,s=_t){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||_t),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function gi(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 Rr(i,(l,d)=>{let s=!1,u=[],m=0,p=_t,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:_t},b=r.map((y,_)=>Qd(y,x=>{u[_]=x,m&=~(1<<_),s&&v()},()=>{m|=1<<_}));return s=!0,v(),function(){oa(b),p(),s=!1}})}function ye(t){let e;return Qd(t,i=>e=i)(),e}var Bu=!1,Wf=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:hs(void 0),unsubscribe:_t};if(o.store!==t&&!(Wf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=_t;else{var r=!0;o.unsubscribe=Qd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Wf in i?ye(t):n(o.source)}function De(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();vo(t,Wf,{enumerable:!1,value:!0})})}return[t,e]}function Kf(t){var e=Bu;try{return Bu=!1,[t(),Bu]}finally{Bu=e}}var X1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Xg(`${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 Nn(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},X1)}var Z1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ia(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];ia(r)&&(r=r());let a=Yo(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(ia(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===wl)return!1;for(let i of t.props)if(ia(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ia(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 rs(...t){return new Proxy({props:t},Z1)}function l_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var z,F;var r=(i&1)!==0,a=!ms||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Kf(()=>t[e]):u=t[e];var m=jo in t||wl in t,p=l&&((F=(z=Yo(t,e))==null?void 0:z.set)!=null?F:m&&e in t&&(U=>t[e]=U))||void 0,v=o,b=!0,y=!1,_=()=>(y=!0,b&&(b=!1,d?v=kt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&jg(e),u=_(),p&&p(u));var x;if(a)x=()=>{var U=t[e];return U===void 0?_():(b=!0,y=!1,U)};else{var I=(r?Jr:kn)(()=>t[e]);I.f|=131072,x=()=>{var U=n(I);return U!==void 0&&(v=void 0),U===void 0?v:U}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(U,X){return arguments.length>0?((!a||!X||T||s)&&p(X?x():U),U):x()}}var R=!1,A=!1,P=hs(u),E=Jr(()=>{var U=x(),X=n(P);return R?(R=!1,A=!0,X):(A=!1,P.v=U)});return l&&n(E),r||(E.equals=Tl),function(U,X){if(Pu!==null&&(R=A,x(),n(P)),arguments.length>0){let ae=X?n(E):a&&l?ui(U):U;if(!E.equals(ae)){if(R=!0,N(P,ae),y&&v!==void 0&&(v=ae),l_(E))return U;kt(()=>n(E))}return U}return l_(E)?E.v:n(E)}}var J1;typeof HTMLElement=="function"&&(J1=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))}}connectedCallback(){return ht(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=ey(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]=qf(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=Hh({component:this.$$ctor,target:this.shadowRoot||this,props:Gt(ke({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Cu(()=>{en(()=>{var a;this.$$r=!0;for(let l of of(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=qf(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]=qf(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 of(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function qf(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 ey(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var d_="5";var c_,u_,p_;typeof window!="undefined"&&((p_=(u_=(c_=window.__svelte)!=null?c_:window.__svelte={}).v)!=null?p_:u_.v=new Set).add(d_);var cd=require("@vkontakte/videoplayer-core/es2015"),PJ=require("@vkontakte/videoplayer-core/es2015"),ml=require("@vkontakte/videoplayer-shared/es2015"),y$=require("@vkontakte/videoplayer-statistics/es2015");var Ha=require("@vkontakte/videoplayer-shared/es2015");var ty={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ha.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:Ha.VideoQuality.Q_480P,highQualityLimit:Ha.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",disabledSlotIds:[],disabledAdditionalButtonIds:[]},f_=t=>(0,Ha.fillWithDefault)(t,ty),m_=t=>Pl("ui-config",t),Ot=()=>El("ui-config");var Gd="vk_player_debug_panel_opened";var v_="videoplayer",g_="videoplayer";var bs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},h_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),__=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),b_=new Set(["ShiftRight","ShiftLeft"]);var $_=["TIMELINE"],Yd=[...$_,"GRAPH_BUTTON"],Qf=[...$_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var ss=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(ss||{}),Xd={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),y_=require("@vkontakte/videoplayer-core/es2015"),x_=require("@vkontakte/videoplayer-statistics/es2015");var Hu="prod",Ua="1.1.82-dev.ba996fd4.0";var za=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var w_=Symbol("storeContext"),S_=Symbol("microStoresContext"),C_=(t,e)=>{Pl(w_,t),Pl(S_,e),Hu==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=El(w_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},yo=()=>{let t=El(S_);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ai=(t,e)=>Uu(t,t.getValue(),e),Uu=(t,e,i)=>Rr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),T_=(t,e,i,o,r=["meta config not provided"])=>{var F,U,X,ae,Z,re,J,we,me;let a=t.info,{width:l,height:d}=ye(i.ui.playerSize),s=(U=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?U:0,u=(ae=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?ae:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ua} (core: ${y_.VERSION}, stat: ${x_.VERSION}, shared: ${Zd.VERSION})`,v=ye(i.state.errorLog$),b=v.length?`
45
+ `+v.map((ee,_e)=>{var Qe;let Ce=`${_e}) Type: ${ee.id}
46
46
  `,ge=`Message: ${ee.message} (${ee.thrown})
47
47
  `,pe=`Trace: ${(Qe=ee.thrown)==null?void 0:Qe.stack}
48
- `;return we+ge+pe}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",g=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),I=[];g&&I.push(`Video: ${(Z=g==null?void 0:g.codec)!=null?Z:""}`+(g!=null&&g.hdr?" (HDR)":"")),w&&I.push(`Audio: ${(oe=w==null?void 0:w.codec)!=null?oe:""}`+(w!=null&&w.language?` (${w.language})`:""));let C=a.currentQuality$.getValue(),N="";if(C){let ee=a.availableQualitiesFps$.getValue()[C];N=ee?`${ee}fps`:""}let A=a.httpConnectionType$.getValue(),E=(Ce=(J=a.currentBuffer$.getValue())==null?void 0:J.end)!=null?Ce:0,k=Math.max(E-$e(i.state.positionExact$),0),Q={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${m} ${C!=null?C:""} ${N}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${$e(i.playerPhase)} ${(me=a.playbackState$.getValue())!=null?me:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:b};return Object.entries(Q).filter(([ee,be])=>be!==void 0).map(([ee,be])=>`${ee}: ${be}`).join(`
50
- `)},I_=(t,e,i)=>{var F,z,X,se;let o=t.info,{width:r,height:a}=$e(i.ui.playerSize),l={version:Fa,viewport:`${r}x${a}`,volume:Math.round($e(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(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),b=o.liveBufferTime$.getValue();m&&p&&(v&&b?(l.buffer=m.end-b,l.nativeBuffer=p.end-b):(l.buffer=Math.max(m.end-$e(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-$e(i.state.positionExact$),0))),l.position=$e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let g=o.videoBitrate$.getValue();g&&(l.bitrate=g);let w=o.liveLatency$.getValue();w&&(l.liveLatency=w);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let N=$e(i.vsid);typeof N=="string"&&(l.vsid=N);let A=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let Q=(se=t.info.currentAudioStream$.getValue())==null?void 0:se.language;return Q&&(l.audioLanguage=Q),l},E_=(t,e)=>Ua(t,e,"mp4"),k_=t=>!t.type,P_=t=>!!t.type,A_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Fu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return gt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var _i=require("@vkontakte/videoplayer-shared/es2015"),J9=require("@vkontakte/videoplayer-core/es2015");var ty="vk_player_",L_="vk_player_prefer_traffic_saving_enabled",M_="vk_player_preferred_volume",V_="vk_player_prefer_volume_mute",Xf="vk_player_preferred_quality",Gf="vk_player_preferred_default_quality_settings",Yf="vk_player_preferred_quality_settings_by_video",R_="vk_player_preferred_stream_language",N_="vk_player_preferred_rate",O_="vk_player_preferred_autoplay_next",jf="vk_player_preferred_subtitles_language",D_="vk_player_user_video_prefs",B_=`${ty}preview_track_close_tooltip`,H_=t=>t>1?1:t<0?0:t,Zf=t=>_i.safeStorage.set(M_,H_(t).toString(10)),zu=()=>{let t=_i.safeStorage.get(M_);return(0,_i.isNullable)(t)?void 0:H_(parseFloat(t))},Jf=(t,e)=>_i.safeStorage.set(Xf,JSON.stringify({videoId:t,value:e})),Wu=()=>_i.safeStorage.remove(Xf),em=t=>{let e=_i.safeStorage.get(Xf);if((0,_i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Wu();return}return o},F_=(t,e)=>{e?_i.safeStorage.set(t,"true"):_i.safeStorage.remove(t)},tm=t=>_i.safeStorage.get(t)==="true",im=t=>F_(V_,t),U_=()=>tm(V_),Jd=t=>F_(L_,t),om=()=>tm(L_),z_=()=>_i.safeStorage.get(R_),nm=t=>_i.safeStorage.set(R_,t),rm=()=>_i.safeStorage.get(jf),sm=t=>{t?_i.safeStorage.set(jf,t):_i.safeStorage.remove(jf)},W_=t=>_i.safeStorage.set(N_,JSON.stringify({rate:t})),K_=()=>{let t=_i.safeStorage.get(N_);if((0,_i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},q_=t=>{_i.safeStorage.set(O_,String(t))},Q_=()=>tm(O_),iy=()=>{let t=m=>{_i.safeStorage.set(Gf,JSON.stringify(m))},e=()=>{try{let m=_i.safeStorage.get(Gf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=_i.safeStorage.get(Yf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{_i.safeStorage.set(Yf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return Yt(Pe({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?Yt(Pe({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{_i.safeStorage.remove(Yf)},l=()=>{_i.safeStorage.remove(Gf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Jd(!0);break;case"exact_quality":Jf(m,p.quality)}a(),l()}},u=m=>{let p=em(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}om()&&t({type:"traffic_saving",videoId:m}),Jd(!1),Wu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:rm,savePreferredSubtitlesLanguage:sm}},{getPreferredQualitySettings:G_,migrateSettingsToLegacyWay:Y_,savePreferredQualitySettings:Ku,savePreferredDefaultQualitySettings:eV,removePreferredQualitySettingsByVideo:tV,getPreferredDefaultQualitySettings:qu}=iy(),oy=3,ny=3,j_=()=>{let t=_i.safeStorage.get(D_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Qu=(t,e)=>{var r,a;let i=j_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},am=(t,e,i)=>{var l,d,s;let o=(l=j_())!=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=ry(o);_i.safeStorage.set(D_,JSON.stringify(a))};function ry(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(ny),e.reduce((o,[r])=>(o[r]=sy(t[r]),o),{})}function sy(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(oy),Object.fromEntries(e)}function X_(){_i.safeStorage.set(B_,JSON.stringify(!0))}function Z_(){let t=_i.safeStorage.get(B_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var sg=require("@vkontakte/videoplayer-core/es2015");ih();var aa="var(--btn-color, #fff)";var ay=Ie('<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),ly=Ie('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Je(t,e){var m;B(e,!0);let i=_(e,"width",19,()=>"24"),o=_(e,"height",19,()=>"24"),r=_(e,"fill",3,aa),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=ly(),d=T(l);{var s=p=>{var v=ay(),b=ue(v),y=T(b);si(y,()=>e.children),S(b),ui(),$(p,v)},u=p=>{var v=Le(),b=ue(v);si(b,()=>e.children),$(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{Ve(l,"aria-label",e.ariaLabel),Ve(l,"aria-hidden",!e.ariaLabel),Ve(l,"width",i()),Ve(l,"height",o()),Ve(l,"viewBox",a),Ve(l,"fill",r()),Ke(l,e.style),Ve(l,"data-testid",e.testId)}),$(t,l),H()}var Wl=require("@vkontakte/videoplayer-shared/es2015");var dy={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:`Видео грузится слишком медленно,
48
+ `;return Ce+ge+pe}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];_&&I.push(`Video: ${(Z=_==null?void 0:_.codec)!=null?Z:""}`+(_!=null&&_.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(re=x==null?void 0:x.codec)!=null?re:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=a.currentQuality$.getValue(),R="";if(T){let ee=a.availableQualitiesFps$.getValue()[T];R=ee?`${ee}fps`:""}let A=a.httpConnectionType$.getValue(),P=(we=(J=a.currentBuffer$.getValue())==null?void 0:J.end)!=null?we:0,E=Math.max(P-ye(i.state.positionExact$),0),z={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${m} ${T!=null?T:""} ${R}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${ye(i.playerPhase)} ${(me=a.playbackState$.getValue())!=null?me:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:b};return Object.entries(z).filter(([ee,_e])=>_e!==void 0).map(([ee,_e])=>`${ee}: ${_e}`).join(`
50
+ `)},I_=(t,e,i)=>{var F,U,X,ae;let o=t.info,{width:r,height:a}=ye(i.ui.playerSize),l={version:Ua,viewport:`${r}x${a}`,volume:Math.round(ye(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(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),b=o.liveBufferTime$.getValue();m&&p&&(v&&b?(l.buffer=m.end-b,l.nativeBuffer=p.end-b):(l.buffer=Math.max(m.end-ye(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-ye(i.state.positionExact$),0))),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);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 R=ye(i.vsid);typeof R=="string"&&(l.vsid=R);let A=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let P=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;P&&(l.audioCodec=P),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let z=(ae=t.info.currentAudioStream$.getValue())==null?void 0:ae.language;return z&&(l.audioLanguage=z),l},E_=(t,e)=>za(t,e,"mp4"),P_=t=>!t.type,k_=t=>!!t.type,A_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Fu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return ht(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var hi=require("@vkontakte/videoplayer-shared/es2015"),eV=require("@vkontakte/videoplayer-core/es2015");var iy="vk_player_",L_="vk_player_prefer_traffic_saving_enabled",M_="vk_player_preferred_volume",V_="vk_player_prefer_volume_mute",Xf="vk_player_preferred_quality",Gf="vk_player_preferred_default_quality_settings",Yf="vk_player_preferred_quality_settings_by_video",R_="vk_player_preferred_stream_language",N_="vk_player_preferred_rate",D_="vk_player_preferred_autoplay_next",jf="vk_player_preferred_subtitles_language",O_="vk_player_user_video_prefs",B_=`${iy}preview_track_close_tooltip`,H_=t=>t>1?1:t<0?0:t,Zf=t=>hi.safeStorage.set(M_,H_(t).toString(10)),zu=()=>{let t=hi.safeStorage.get(M_);return(0,hi.isNullable)(t)?void 0:H_(parseFloat(t))},Jf=(t,e)=>hi.safeStorage.set(Xf,JSON.stringify({videoId:t,value:e})),Wu=()=>hi.safeStorage.remove(Xf),em=t=>{let e=hi.safeStorage.get(Xf);if((0,hi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Wu();return}return o},F_=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},tm=t=>hi.safeStorage.get(t)==="true",im=t=>F_(V_,t),U_=()=>tm(V_),Jd=t=>F_(L_,t),om=()=>tm(L_),z_=()=>hi.safeStorage.get(R_),nm=t=>hi.safeStorage.set(R_,t),rm=()=>hi.safeStorage.get(jf),sm=t=>{t?hi.safeStorage.set(jf,t):hi.safeStorage.remove(jf)},W_=t=>hi.safeStorage.set(N_,JSON.stringify({rate:t})),K_=()=>{let t=hi.safeStorage.get(N_);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},q_=t=>{hi.safeStorage.set(D_,String(t))},Q_=()=>tm(D_),oy=()=>{let t=m=>{hi.safeStorage.set(Gf,JSON.stringify(m))},e=()=>{try{let m=hi.safeStorage.get(Gf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=hi.safeStorage.get(Yf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{hi.safeStorage.set(Yf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return Gt(ke({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?Gt(ke({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{hi.safeStorage.remove(Yf)},l=()=>{hi.safeStorage.remove(Gf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Jd(!0);break;case"exact_quality":Jf(m,p.quality)}a(),l()}},u=m=>{let p=em(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}om()&&t({type:"traffic_saving",videoId:m}),Jd(!1),Wu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:rm,savePreferredSubtitlesLanguage:sm}},{getPreferredQualitySettings:G_,migrateSettingsToLegacyWay:Y_,savePreferredQualitySettings:Ku,savePreferredDefaultQualitySettings:tV,removePreferredQualitySettingsByVideo:iV,getPreferredDefaultQualitySettings:qu}=oy(),ny=3,ry=3,j_=()=>{let t=hi.safeStorage.get(O_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Qu=(t,e)=>{var r,a;let i=j_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},am=(t,e,i)=>{var l,d,s;let o=(l=j_())!=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=sy(o);hi.safeStorage.set(O_,JSON.stringify(a))};function sy(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(ry),e.reduce((o,[r])=>(o[r]=ay(t[r]),o),{})}function ay(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(ny),Object.fromEntries(e)}function X_(){hi.safeStorage.set(B_,JSON.stringify(!0))}function Z_(){let t=hi.safeStorage.get(B_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var sg=require("@vkontakte/videoplayer-core/es2015");ih();var la="var(--btn-color, #fff)";var ly=Ie('<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),dy=Ie('<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 m;B(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,la),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=dy(),d=C(l);{var s=p=>{var v=ly(),b=ue(v),y=C(b);si(y,()=>e.children),S(b),pi(),$(p,v)},u=p=>{var v=Me(),b=ue(v);si(b,()=>e.children),$(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{Re(l,"aria-label",e.ariaLabel),Re(l,"aria-hidden",!e.ariaLabel),Re(l,"width",i()),Re(l,"height",o()),Re(l,"viewBox",a),Re(l,"fill",r()),qe(l,e.style),Re(l,"data-testid",e.testId)}),$(t,l),H()}var Kl=require("@vkontakte/videoplayer-shared/es2015");var cy={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:"Выйти из режима точной перемотки"},J_=dy;var cy={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,
52
+ попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},J_=cy;var uy={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"},eb=cy;var Ds=new Map;Ds.set(Wl.InterfaceLanguage.EN,eb);Ds.set(Wl.InterfaceLanguage.RU,J_);var tb=new Map,lm=({language:t,pack:e,fallback:i})=>{if(Ds.has(t)){let o=Ds.get(t);Ds.set(t,Pe(Pe({},o),e))}else Ds.set(t,e);tb.set(t,i)},dm=t=>Ds.has(t),cm=(t,e,i,o)=>{var l;let r=Ds.get(t),a=r==null?void 0:r[e];if((0,Wl.isNullable)(a)){let d=(l=tb.get(t))!=null?l:o,s=d?Ds.get(d):void 0;a=s==null?void 0:s[e]}return(0,Wl.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},j=(t,e)=>{let{interfaceLanguage$:i}=_e(),o=$e(i),r=Bt();return cm(o,t,e,r.defaultLanguage)};var uy=Ie('<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 ec(t,e){B(e,!1);let i=j("video360");$o(),Je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=uy();$(o,a)},$$slots:{default:!0}}),H()}var MV=require("@vkontakte/videoplayer-core/es2015");var Kl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Kl||(Kl={}));var py=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,my=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gu="?",vy="X-Sentry-Auth",gy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hy(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=py.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=my.exec(i[a]))r={filename:o[2],function:o[1]||Gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=fy.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Gu),e.push(r)}return e.length?{value:ib(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ib(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function _y(t){try{let e=hy(t);if(e)return e}catch(e){}return{value:ib(t),type:t&&t.name,stacktrace:{frames:[]}}}function by(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Yu=class{constructor(e){if(e&&e.dsn){let i=gy.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 Yt(Pe({},this.getRequestBlank()),{exception:{values:[_y(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(vy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:by(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ob(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function $y(){return window}var ju=class t extends Yu{constructor(e,i=$y()){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",Pe({},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",Pe({},e)),this}setUser(e){return this.setKeyState("user",Pe({},e)),this}clone(){let e=new t(Yt(Pe({},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:[Pe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Yt(Pe({},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=>ob(i,o))):!1}getRequestBlank(){return Pe(Yt(Pe({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(Pe({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=>ob(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 Yt(Pe({},i),{[o]:a||d?[...a||[],...d||[]]:Pe(Pe({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var za=require("@vkontakte/videoplayer-shared/es2015");var Xu=null,Wa=class{constructor(e,i,o={}){!Xu&&e.dsn&&(this.sentryClient=new ju({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new za.Subscription,this.options=e,this.context=o,Xu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Xu=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:p}=l,{errorType:v,category:b}=i;if((0,za.isNonNullable)(b)&&p.includes(b)||(0,za.isNonNullable)(v)&&m.includes(v))return;if(Math.random()<=d||(0,za.isNonNullable)(b)&&u.includes(b)||(0,za.isNonNullable)(v)&&s.includes(v)){Object.keys(i).length&&r.setTags(Pe({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Pe(Pe({},a),o));try{v&&r.captureMessage(v,i.fatal?Kl.fatal:Kl.error),r.report(e)}catch(g){console.error(g)}}}static getInstance(){return Xu}};var as=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(as||{});var Zu=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()},Ju=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),nb=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,rb=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},tc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},la=()=>!!tc(),ep=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},tp=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},sb=t=>{let e=window.screen;return(r=>gt(null,null,function*(){return 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 um=require("@vkontakte/videoplayer-core/es2015"),ab=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var ql=require("@vkontakte/videoplayer-shared/es2015");var Ka=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,ql.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ql.ValueSubject(!1),isEnabled$:new ql.ValueSubject(!1),type:0};this.info.isEnabled$=new ql.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return gt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return gt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return gt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=Pe({},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)}dispose(){return gt(this,null,function*(){this.removeEventHandlers(),yield 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 qa(t){return t instanceof Ka}var Ql=require("@vkontakte/videoplayer-shared/es2015");function fm(t,e){B(e,!1);let i=_e();Dt(()=>{i.getAdmanWrapper().startPostroll()}),$o(),H()}var lb=require("@vkontakte/videoplayer-shared/es2015");var yy=Ie('<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>'),xy=Ie('<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 Nr(t,e){B(e,!0);let i=_(e,"direction",3,"left"),o=_(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?aa:"currentColor"),u=f(()=>n(r)?"7":"16");Je(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,p)=>{var v=Le(),b=ue(v);{var y=w=>{var I=yy();$(w,I)},g=w=>{var I=xy();$(w,I)};V(b,w=>{n(r)?w(y):w(g,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var wy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Sy=L('<div class="skip s-1i"> <!></div>'),Cy=L("<div><!></div>"),Ty={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 mm(t,e){B(e,!0),G(t,Ty);let[i,o]=Oe(),r=()=>x(u,"$isMobile",i),a=_(e,"position",3,0),l=_(e,"secondsToWatchBeforeSkip",3,0),d=_(e,"skipAd",3,lb.noop),u=_e().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=Cy();let v;p.__click=[wy,m,d];var b=T(p);{var y=w=>{var I=Sy(),C=T(I),N=P(C);Nr(N,{direction:"right"}),S(I),O(A=>ve(C,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),$(w,I)},g=w=>{var I=_s();O(C=>ve(I,C),[()=>j("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(w,I)};V(b,w=>{n(m)?w(y):w(g,!1)})}S(p),O(w=>v=ne(p,1,"container s-1i",null,v,w),[()=>({"container-mobile":r(),skippable:n(m)})]),$(t,p),H(),o()}Ye(["click"]);var Iy=L('<button class="go-to-site s-1h"> </button>'),Ey={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 vm(t,e){B(e,!1),G(t,Ey),$o();var i=Iy(),o=T(i,!0);S(i),O(r=>ve(o,r),[()=>j("visit_advertiser")],Pn),$(t,i),H()}var ky=L('<div class="top-gradient-mobile s-i"></div>'),Py=L('<div class="container s-i"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ay={hash:"s-i",code:".container.s-i{height:100%;width:100%}.top-gradient-mobile.s-i{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 oc(t,e){B(e,!0),G(t,Ay);let[i,o]=Oe(),r=()=>x(F,"$canSkipAd",i),a=()=>x(Q,"$adPlaybackState",i),l=()=>x(C,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(X,"$secondsToWatchBeforeSkipAd",i),u=()=>x(I,"$isVideoEnded",i),m=_(e,"adsSlotId",3,void 0),p=_(e,"adsParams",3,void 0),v=_(e,"adsAutoplayParam",3,void 0),b=_(e,"duration",3,0),y=_(e,"adsExternalApi",3,void 0),g=_e(),w=Bt(),I=g.state.isEnded$,C=g.ui.isMobile,N=w.ads.isMobileGoToSiteButton,A=q(void 0),E=q(void 0),k=!1,Q=g.ads.playbackState,F=g.ads.canSkip,z=g.ads.position,X=g.ads.secondsToWatchBeforeSkip,se=f(()=>r()&&a()!=="inactive"),Z=f(()=>l()&&a()!=="inactive"&&N);Dt(()=>{let U=g.getAdmanWrapper();if(Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ql.now)(),m()]}),!m()){U.onAdmanLoadingError();return}let D=()=>{var Ne;let{width:xe,height:He}=$e(g.ui.playerSize),ot=$e(g.ui.isFullscreen),re=(Ne=v())!=null?Ne:$e(g.ui.isAutoplay),ce=w.ads.paramsOverride;return{width:xe,height:He,isFullscreen:ot,isAutoplay:re,adsContainer:n(A),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:ce,duration:b(),externalApi:y()}},Ge=xe=>gt(null,null,function*(){xe&&(yield _o());let He=D();yield U.initAdman(He),k=!0}),K=new AbortController,ae=()=>{K.abort()};return window.AdmanHTML?Ge(!0).catch(()=>{U.onAdmanLoadingError()}):U.loadAdman(K.signal).then(()=>Ge(!1)).catch(()=>{U.onAdmanLoadingError()}),()=>{Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ql.now)(),m()]}),!k&&ae()}});var oe=Py(),J=T(oe);{var Ce=U=>{var D=ky();$(U,D)};V(J,U=>{l()&&U(Ce)})}var me=P(J,2);Ze(me,U=>R(E,U),()=>n(E));var ee=P(me,2);{var be=U=>{mm(U,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return g.actions.internal.skipAd}})};V(ee,U=>{n(se)&&U(be)})}var we=P(ee,2);{var ge=U=>{fm(U,{})};V(we,U=>{u()&&U(ge)})}var pe=P(we,2);{var Qe=U=>{vm(U,{})};V(pe,U=>{n(Z)&&U(Qe)})}S(oe),Ze(oe,U=>R(A,U),()=>n(A)),$(t,oe),H(),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 Ly=Ie('<path fill="#fff"></path>'),My=Ie("<path></path><!>",1);function nc(t,e){let i=_(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>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";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=My(),u=ue(s),m=P(u);{var p=v=>{var b=Ly();Ve(b,"d",a),$(v,b)};V(m,v=>{i()&&v(p)})}O(()=>Ve(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`)),$(l,s)},$$slots:{default:!0}})}var Vy=L('<div class="equalizer s-b"><div class="col s-b"></div> <div class="col s-b"></div> <div class="col s-b"></div></div>'),Ry=L('<div class="live-icon s-b"><!></div>'),Ny=L('<span class="text s-b"> </span>'),Oy=L("<div><!> <!></div>"),Dy={hash:"s-b",code:".wrapper.s-b{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-b{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-b{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-b .equalizer:where(.s-b){margin-top:-2px}.equalizer.s-b .col:where(.s-b){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-b .equalizer:where(.s-b) .col:where(.s-b){animation-play-state:running}.equalizer.s-b .col:where(.s-b):first-child{animation-name:s-b-thumb-timer-equalizer-col1;left:0}.equalizer.s-b .col:where(.s-b):nth-child(2){animation-name:s-b-thumb-timer-equalizer-col2;left:3px}.equalizer.s-b .col:where(.s-b):nth-child(3){animation-name:s-b-thumb-timer-equalizer-col3;left:6px}.live-icon.s-b{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-b-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-b-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-b-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-b{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function rc(t,e){G(t,Dy);let i=_(e,"withEqualizer",3,!1),o=_(e,"isLive",3,!1),r=_(e,"isPlaying",3,!1);var a=Oy();let l;var d=T(a);{var s=v=>{var b=Vy();$(v,b)};V(d,v=>{i()&&v(s)})}var u=P(d,2);{var m=v=>{var b=Ry(),y=T(b);nc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=Ny(),y=T(b,!0);S(b),O(()=>ve(y,e.time)),$(v,b)};V(u,v=>{o()?v(m):v(p,!1)})}S(a),O(v=>l=ne(a,1,"wrapper s-b",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var Gl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var By=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Hy={hash:"s-j",code:".thumb-timer.s-j{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 sc(t,e){B(e,!0),G(t,Hy);let[i,o]=Oe(),r=()=>x(m,"$disabled",i),a=_(e,"isHidden",3,!1),l=_(e,"isLive",3,!1),d=_(e,"isPlaying",3,!1),s=Bt(),u=f(()=>en(e.duration-e.position)),m=de(!1);var p=By();let v;var b=T(p);rc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Os(p,()=>Gl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),O(y=>v=ne(p,1,"thumb-timer s-j",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),H(),o()}var Yl=t=>{if(!navigator.clipboard){db(t);return}navigator.clipboard.writeText(t).catch(()=>db(t))};function db(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 np=require("@vkontakte/videoplayer-core/es2015");var hm=require("@vkontakte/videoplayer-core/es2015");var gm="focus-hidden";var Or=t=>{t.stopPropagation(),t.preventDefault()},_m=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(gm)},Uy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},zy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Wy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ky=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},cb=t=>t.code==="Escape",qy=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ub=t=>{Wy(t)?(Or(t),zy(t.target)):Ky(t)&&(Or(t),Uy(t.target))},ua=t=>!hm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||hm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",jl=(t,e,i)=>gt(null,null,function*(){yield _o(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(yield _o(),i.set(!1),t.focus())}),pb=(t,e,i)=>gt(null,null,function*(){yield _o(),t&&!e&&$e(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>gt(null,null,function*(){if(yield _o(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(gm,!i),a==null||a.focus()}}),fb=(t,e)=>gt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ip=(t,e)=>{ub(t),_m(t.target),cb(t)&&(Or(t),e())},op=(t,e)=>gt(null,null,function*(){ac(t,["ArrowRight"])&&(Or(t),e())}),mb=(t,e,i)=>gt(null,null,function*(){if(ub(t),qy(t)){Or(t),e();return}cb(t)&&(Or(t),i())}),Xl=(t,e)=>{ac(t)&&(Or(t),e())},vb=(t,e,i)=>{if(ac(t))Or(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Or(t);return}o==="ArrowRight"&&!e&&(i(!0),Or(t))}},gb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},hb=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 Ya=require("@vkontakte/videoplayer-shared/es2015");var ls={"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 bm=require("@vkontakte/videoplayer-shared/es2015");var Gy=(t,e)=>{Xl(t,()=>e())},Yy=L('<li class="item s-1k" role="menuitem" tabindex="0"> </li>'),jy={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 $m(t,e){B(e,!0),G(t,jy);let i=_(e,"onClick",3,bm.noop),o=_(e,"closeContextMenu",3,bm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Yy();a.__click=r,a.__keydown=[Gy,r];var l=T(a,!0);S(a),O(()=>{var d;Ve(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ve(a,"data-testid",e.id),ve(l,e.label)}),$(t,a),H()}Ye(["click","keydown"]);var Ga=(t,e)=>t.weight-e.weight;var Zl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Zl||{});var Xy=(t,e)=>{ip(t,e)},Zy=t=>{t.preventDefault()},Jy=L('<ul role="menu" class="s-x"></ul>'),e0={hash:"s-x",code:"ul.s-x{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 ym(t,e){B(e,!0),G(t,e0);let[i,o]=Oe(),r=()=>x(Ce,"$playerPhase",i),a=()=>x(se,"$isLive$",i),l=()=>x(me,"$isPiPEnabled$",i),d=()=>x(X,"$chromecastState$",i),s=()=>x(ee,"$pictureInPictureApiIsActive$",i),u=()=>x(J,"$isLooped$",i),m=()=>x(Z,"$positionExact$",i),p=()=>x(Q,"$additionalContextMenuItems$",i),v=_(e,"visible",3,!1),b=_(e,"position",19,()=>({top:0,left:0})),y=_(e,"playerContainerRef",3,void 0),g=_(e,"menuElementRef",15,void 0),w=q(0),I=q(0),C=_e(),{pictureInPicture$:N}=yo(),A=Bt(),E=C.ui.contextMenu.visible$,k=C.ui.debugPanelVisible,Q=C.ui.additionalContextMenuItems$,F=C.ui.t,z=C.actions.internal.togglePictureInPicture,X=C.state.chromecastState$,se=C.state.isLive$,Z=C.state.positionExact$,oe=C.state.isInteractive,J=C.state.looped$,Ce=C.playerPhase,{isEnabled$:me,isActive$:ee}=N,be=f(()=>r()==="video"),we=f(()=>!!a()&&n(be)),ge=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),pe=f(()=>{var fe;return A.features.copyVideoLink&&((fe=C.callbacks)==null?void 0:fe.onCopyVideoLink)}),Qe=f(()=>n(pe)&&!n(ge)&&!oe&&!n(we)),U=f(()=>{var fe;return!!((fe=C.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),D=f(()=>l()&&d()!==np.ChromecastState.CONNECTED&&!oe&&n(be)&&!np.clientChecker.browser.isFirefox),Ge=f(()=>!oe&&!n(ge)&&!n(we)),K=f(()=>A.features.videoRotate&&!oe&&!n(ge)),ae=f(()=>A.showSupport&&!s()),xe=f(()=>A.features.saveTraceInfoToFile),He=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ot=(fe,Be)=>{if(!g()||!y())return;let We=g().getBoundingClientRect(),wt=y().getBoundingClientRect();R(w,fe-wt.left),R(I,Be-wt.top),n(w)+We.width>wt.width&&R(w,wt.width-We.width),n(I)+We.height>wt.height&&R(I,wt.height-We.height),R(w,Math.max(n(w),0),!0),R(I,Math.max(n(I),0),!0)};De(()=>{gt(null,null,function*(){if(g()&&y()){yield _o();let{top:Be,left:We,bottom:wt,right:Qt}=b(),Mt=We!=null?We:0,mi=Be!=null?Be:0,pi=g().getBoundingClientRect();(0,Ya.isNullable)(We)&&!(0,Ya.isNullable)(Qt)&&(Mt=Qt-pi.width),(0,Ya.isNullable)(Be)&&!(0,Ya.isNullable)(wt)&&(mi=wt-pi.height),Mt=Math.max(Mt,0),mi=Math.max(mi,0),ot(Mt,mi)}})});let re=()=>{C.actions.internal.videoRotate()},ce=()=>{(0,Ya.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),C.actions.internal.reportProblem(),C.actions.internal.pause()},Ne=()=>{let fe=C.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Be=new Blob([...fe],{type:"plain/text"}),We=window.URL.createObjectURL(Be);Ua(We,"vk_player_debug_info","txt")}else Yl(C.actions.internal.getDebugTextData())},Re=()=>{let fe=C.actions.internal.getTraceTextData(),Be=new Blob([...fe],{type:"application/json"}),We=window.URL.createObjectURL(Be);Ua(We,"vk_player_trace_info","json")},tt=()=>{k.set(!0)},Ee=()=>gt(null,null,function*(){var fe;try{z()}finally{(fe=e.returnFocus)==null||fe.call(e)}}),Te=()=>{C.actions.internal.setLooped(!u())},Fe=()=>{var fe,Be;if(n(U)){let We=(Be=(fe=C.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Be.call(fe);We&&Yl(We)}},kt=(fe=!1)=>{var Be,We;if((Be=C.callbacks)!=null&&Be.onCopyVideoLink){let wt=(We=C.callbacks)==null?void 0:We.onCopyVideoLink(fe,m());wt&&Yl(wt)}},Ct=f(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Rt=f(()=>n(pe)?{id:"copy-link",weight:ls["copy-link"],label:F("menu_copy_video_link"),onClick:()=>kt()}:void 0),ct=f(()=>n(Qe)?{id:"copy-link-timestamp",weight:ls["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>kt(!0)}:void 0),Pt=f(()=>n(U)?{id:"copy-embed-code",weight:ls["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Fe}:void 0),ti=f(()=>n(D)?{id:"pip",weight:ls.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ee}:void 0),At=f(()=>n(Ge)?{id:"video-loop",weight:ls["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Te}:void 0),Ft=f(()=>n(K)?{id:"rotate",weight:ls.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:re}:void 0),qt=f(()=>n(ae)?{id:"report",weight:ls.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:ce}:void 0),Y=f(()=>({id:"save-debug",weight:ls["save-debug"],label:n(Ct),onClick:Ne})),ke=f(()=>n(xe)?{id:"save-trace",weight:ls["save-trace"],label:F("menu_save_debug"),onClick:Re}:void 0),le=f(()=>({id:"debug-info",weight:ls["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:tt})),ye=f(()=>[n(Rt),n(ct),n(Pt),n(ti),n(At),n(Ft),n(qt),n(Y),n(ke),n(le),...p()].filter(fe=>!!fe).sort(Ga));var Me=Le(),st=ue(Me);{var Lt=fe=>{var Be=Jy();Be.__contextmenu=[Zy],Be.__keydown=[Xy,He],wi(Be,21,()=>n(ye),We=>We.id,(We,wt)=>{$m(We,{get id(){return n(wt).id},get label(){return n(wt).label},get ariaLabel(){return n(wt).ariaLabel},get onClick(){return n(wt).onClick},closeContextMenu:He})}),S(Be),Ze(Be,We=>g(We),()=>g()),O(()=>{var We,wt;return Ke(Be,`top: ${(We=n(I))!=null?We:""}px; left: ${(wt=n(w))!=null?wt:""}px;`)}),$(fe,Be)};V(st,fe=>{v()&&fe(Lt)})}$(t,Me),H(),o()}Ye(["contextmenu","keydown"]);var rp=class{constructor(e){this.value=e,this.next=null}};var Jl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new rp(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 t0=L('<div class="container s-1d"><canvas class="s-1d"></canvas></div>'),i0={hash:"s-1d",code:".container.s-1d{display:inline-block;height:16px;width:120px}canvas.s-1d{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),G(t,i0);let i=_(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Dt(()=>{n(o).width=l,n(o).height=a,R(r,n(o).getContext("2d"),!0)});function u(v,b,y,g,w){w===0&&(w=1),v.fillStyle="#fff",v.fillRect(b,y,g,w)}De(()=>{let v="";if(n(r)){let b=i()[0];for(let g=1;g<i().length;g++)i()[g]>b&&(b=i()[g]);n(r).clearRect(0,0,l,a);let y=d-1;for(let g=i().length-1;g>=0;g--){let w=y*s,I=b>0?a*(i()[g]/b):0;u(n(r),w,0,s,I),v=I+" "+v,y--}}});var m=t0(),p=T(m);Ze(p,v=>R(o,v),()=>n(o)),S(m),$(t,m),H()}var xm=require("@vkontakte/videoplayer-shared/es2015");var o0=(t,e)=>{t.stopPropagation(),xm.safeStorage.remove(Gd),e.set(!1)},n0=L('<div class="s-k"><div class="s-k">Video id</div> <span> </span></div>'),r0=L('<div class="s-k"><div class="s-k">VSID</div> <span> </span></div>'),s0=L('<div class="s-k"><div class="s-k">Provider</div> <span> </span></div>'),a0=L('<div class="s-k"><div class="s-k">Streams</div> <span> </span></div>'),l0=L('<div class="s-k"><div class="s-k">Viewport</div> <span> </span></div>'),d0=L('<div class="s-k"><div class="s-k">Video size</div> <span> </span></div>'),c0=L('<div class="s-k"><div class="s-k">CDN host</div> <span> </span></div>'),u0=L('<div class="s-k"><div class="s-k">Volume</div> <span> </span></div>'),p0=L('<div class="s-k"><div class="s-k">Position</div> <span> </span></div>'),f0=L('<div class="s-k"><div class="s-k">Buffer</div> <span> </span></div>'),m0=L('<div class="s-k"><div class="s-k">Nbuffer</div> <span> </span></div>'),v0=L('<div class="s-k"><div class="s-k">Live latency</div> <span> </span></div>'),g0=L('<div class="s-k"><div class="s-k">Segment</div> <span> </span></div>'),h0=L('<div class="s-k"><div class="s-k">Network</div> <!> <span> </span></div>'),_0=L('<div class="s-k"><div class="s-k">V bitrate</div> <!> <span> </span></div>'),b0=L('<div role="region"><button class="close s-k" title="закрыть">[x]</button> <div class="content s-k"><div class="s-k"><div class="s-k">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-k"><div class="s-k">Dropped</div> <span> </span></div> <!> <!> <div class="s-k"><div class="s-k">FPS</div> <!> <span> </span></div></div></div>'),$0={hash:"s-k",code:".container.s-k{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-k{left:16px;top:16px}button.close.s-k{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-k{padding:5px}.content.s-k>div:where(.s-k)>div:where(.s-k){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),G(t,$0);let[i,o]=Oe(),r=()=>x(d,"$isMobile",i),a=_e(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(ci(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),p=q(0),v=q(0),b=new Jl(60),y=new Jl(60),g=new Jl(60),w=q(ci([])),I=q(ci([])),C=q(ci([])),N=j("aria_label_debug_panel");Dt(()=>{xm.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(R(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),R(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{R(s,a.actions.internal.getDebugPanelData(),!0)},500),ke;return u&&(ke=window.setInterval(()=>{if(u){R(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;R(v,le-n(m)),R(m,le,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&g.push(n(s).bitrate),R(w,b.getValuesFromBottom(),!0),R(I,y.getValuesFromBottom(),!0),R(C,g.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Y),ke&&clearInterval(ke)}});var A=b0();let E;var k=T(A);k.__click=[o0,l];var Q=P(k,2),F=T(Q),z=P(T(F),2),X=T(z,!0);S(z),S(F);var se=P(F,2);{var Z=Y=>{var ke=n0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).id)),$(Y,ke)};V(se,Y=>{n(s).id&&Y(Z)})}var oe=P(se,2);{var J=Y=>{var ke=r0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).vsid)),$(Y,ke)};V(oe,Y=>{n(s).vsid&&Y(J)})}var Ce=P(oe,2);{var me=Y=>{var ke=s0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).provider)),$(Y,ke)};V(Ce,Y=>{n(s).provider&&Y(me)})}var ee=P(Ce,2);{var be=Y=>{var ke=a0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(()=>{var Me,st;return ve(ye,`Video: ${(Me=n(s).videoCodec||"")!=null?Me:""} ${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"},eb=uy;var Os=new Map;Os.set(Kl.InterfaceLanguage.EN,eb);Os.set(Kl.InterfaceLanguage.RU,J_);var tb=new Map,lm=({language:t,pack:e,fallback:i})=>{if(Os.has(t)){let o=Os.get(t);Os.set(t,ke(ke({},o),e))}else Os.set(t,e);tb.set(t,i)},dm=t=>Os.has(t),cm=(t,e,i,o)=>{var l;let r=Os.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=tb.get(t))!=null?l:o,s=d?Os.get(d):void 0;a=s==null?void 0:s[e]}return(0,Kl.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},j=(t,e)=>{let{interfaceLanguage$:i}=be(),o=ye(i),r=Ot();return cm(o,t,e,r.defaultLanguage)};var py=Ie('<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 ec(t,e){B(e,!1);let i=j("video360");$o(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=py();$(o,a)},$$slots:{default:!0}}),H()}var VV=require("@vkontakte/videoplayer-core/es2015");var ql;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ql||(ql={}));var fy=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,my=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,vy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Gu="?",gy="X-Sentry-Auth",hy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _y(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=fy.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=vy.exec(i[a]))r={filename:o[2],function:o[1]||Gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=my.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Gu),e.push(r)}return e.length?{value:ib(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ib(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function by(t){try{let e=_y(t);if(e)return e}catch(e){}return{value:ib(t),type:t&&t.name,stacktrace:{frames:[]}}}function $y(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Yu=class{constructor(e){if(e&&e.dsn){let i=hy.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 Gt(ke({},this.getRequestBlank()),{exception:{values:[by(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(gy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:$y(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ob(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function yy(){return window}var ju=class t extends Yu{constructor(e,i=yy()){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",ke({},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",ke({},e)),this}setUser(e){return this.setKeyState("user",ke({},e)),this}clone(){let e=new t(Gt(ke({},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:[ke({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Gt(ke({},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=>ob(i,o))):!1}getRequestBlank(){return ke(Gt(ke({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(ke({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=>ob(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 Gt(ke({},i),{[o]:a||d?[...a||[],...d||[]]:ke(ke({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Wa=require("@vkontakte/videoplayer-shared/es2015");var Xu=null,Ka=class{constructor(e,i,o={}){!Xu&&e.dsn&&(this.sentryClient=new ju({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Wa.Subscription,this.options=e,this.context=o,Xu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Xu=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:p}=l,{errorType:v,category:b}=i;if((0,Wa.isNonNullable)(b)&&p.includes(b)||(0,Wa.isNonNullable)(v)&&m.includes(v))return;if(Math.random()<=d||(0,Wa.isNonNullable)(b)&&u.includes(b)||(0,Wa.isNonNullable)(v)&&s.includes(v)){Object.keys(i).length&&r.setTags(ke({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(ke(ke({},a),o));try{v&&r.captureMessage(v,i.fatal?ql.fatal:ql.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return Xu}};var as=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(as||{});var Zu=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()},Ju=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),nb=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,rb=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},tc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},da=()=>!!tc(),ep=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},tp=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},sb=t=>{let e=window.screen;return(r=>ht(null,null,function*(){return 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 um=require("@vkontakte/videoplayer-core/es2015"),ab=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var Bs=require("@vkontakte/videoplayer-shared/es2015"),lb=require("@vkontakte/videoplayer-core/es2015");var qa=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,Bs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Bs.ValueSubject(!1),isEnabled$:new Bs.ValueSubject(!1),type:0};this.info.isEnabled$=new Bs.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ht(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return ht(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return ht(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),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=ke({},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)}dispose(){return ht(this,null,function*(){this.removeEventHandlers(),yield 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)}waitForSafariLeavePictureInPicture(e,i){if(lb.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,Bs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,Bs.getWindow)().setTimeout(l,1e3)}}};function Qa(t){return t instanceof qa}var Ql=require("@vkontakte/videoplayer-shared/es2015");function fm(t,e){B(e,!1);let i=be();Dt(()=>{i.getAdmanWrapper().startPostroll()}),$o(),H()}var db=require("@vkontakte/videoplayer-shared/es2015");var xy=Ie('<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>'),wy=Ie('<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 Nr(t,e){B(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?la:"currentColor"),u=f(()=>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:(m,p)=>{var v=Me(),b=ue(v);{var y=x=>{var I=xy();$(x,I)},_=x=>{var I=wy();$(x,I)};V(b,x=>{n(r)?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var Sy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Cy=L('<div class="skip s-1h"> <!></div>'),Ty=L("<div><!></div>"),Iy={hash:"s-1h",code:".container.s-1h{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-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function mm(t,e){B(e,!0),Q(t,Iy);let[i,o]=De(),r=()=>w(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,db.noop),u=be().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=Ty();let v;p.__click=[Sy,m,d];var b=C(p);{var y=x=>{var I=Cy(),T=C(I),R=k(T);Nr(R,{direction:"right"}),S(I),O(A=>ve(T,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),$(x,I)},_=x=>{var I=_s();O(T=>ve(I,T),[()=>j("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(x,I)};V(b,x=>{n(m)?x(y):x(_,!1)})}S(p),O(x=>v=oe(p,1,"container s-1h",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),$(t,p),H(),o()}Ye(["click"]);var Ey=L('<button class="go-to-site s-1f"> </button>'),Py={hash:"s-1f",code:"button.go-to-site.s-1f{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 vm(t,e){B(e,!1),Q(t,Py),$o();var i=Ey(),o=C(i,!0);S(i),O(r=>ve(o,r),[()=>j("visit_advertiser")],kn),$(t,i),H()}var ky=L('<div class="top-gradient-mobile s-t"></div>'),Ay=L('<div class="container s-t"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ly={hash:"s-t",code:".container.s-t{height:100%;width:100%}.top-gradient-mobile.s-t{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 oc(t,e){B(e,!0),Q(t,Ly);let[i,o]=De(),r=()=>w(U,"$canSkipAd",i),a=()=>w(F,"$adPlaybackState",i),l=()=>w(R,"$isMobile",i),d=()=>w(X,"$adPosition",i),s=()=>w(ae,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=h(e,"adsSlotId",3,void 0),p=h(e,"adsParams",3,void 0),v=h(e,"adsAutoplayParam",3,void 0),b=h(e,"duration",3,0),y=h(e,"adsExternalApi",3,void 0),_=h(e,"adsJson",3,void 0),x=be(),I=Ot(),T=x.state.isEnded$,R=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,P=q(void 0),E=q(void 0),z=!1,F=x.ads.playbackState,U=x.ads.canSkip,X=x.ads.position,ae=x.ads.secondsToWatchBeforeSkip,Z=f(()=>r()&&a()!=="inactive"),re=f(()=>l()&&a()!=="inactive"&&A);Dt(()=>{let D=x.getAdmanWrapper();if(Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ql.now)(),m()]}),!m()){D.onAdmanLoadingError();return}let Ge=()=>{var Le;let{width:He,height:it}=ye(x.ui.playerSize),ne=ye(x.ui.isFullscreen),ce=(Le=v())!=null?Le:ye(x.ui.isAutoplay),Ne=I.ads.paramsOverride;return{width:He,height:it,isFullscreen:ne,isAutoplay:ce,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:Ne,duration:b(),externalApi:y(),json:_()}},K=He=>ht(null,null,function*(){He&&(yield _o());let it=Ge();yield D.initAdman(it),z=!0}),se=new AbortController,xe=()=>{se.abort()};return window.AdmanHTML?K(!0).catch(()=>{D.onAdmanLoadingError()}):D.loadAdman(se.signal).then(()=>K(!1)).catch(()=>{D.onAdmanLoadingError()}),()=>{Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ql.now)(),m()]}),!z&&xe()}});var J=Ay(),we=C(J);{var me=D=>{var Ge=ky();$(D,Ge)};V(we,D=>{l()&&D(me)})}var ee=k(we,2);Xe(ee,D=>N(E,D),()=>n(E));var _e=k(ee,2);{var Ce=D=>{mm(D,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};V(_e,D=>{n(Z)&&D(Ce)})}var ge=k(_e,2);{var pe=D=>{fm(D,{})};V(ge,D=>{u()&&D(pe)})}var Qe=k(ge,2);{var G=D=>{vm(D,{})};V(Qe,D=>{n(re)&&D(G)})}S(J),Xe(J,D=>N(P,D),()=>n(P)),$(t,J),H(),o()}var tn=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 My=Ie('<path fill="#fff"></path>'),Vy=Ie("<path></path><!>",1);function nc(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>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=Vy(),u=ue(s),m=k(u);{var p=v=>{var b=My();Re(b,"d",a),$(v,b)};V(m,v=>{i()&&v(p)})}O(()=>Re(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`)),$(l,s)},$$slots:{default:!0}})}var Ry=L('<div class="equalizer s-d"><div class="col s-d"></div> <div class="col s-d"></div> <div class="col s-d"></div></div>'),Ny=L('<div class="live-icon s-d"><!></div>'),Dy=L('<span class="text s-d"> </span>'),Oy=L("<div><!> <!></div>"),By={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 rc(t,e){Q(t,By);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=Oy();let l;var d=C(a);{var s=v=>{var b=Ry();$(v,b)};V(d,v=>{i()&&v(s)})}var u=k(d,2);{var m=v=>{var b=Ny(),y=C(b);nc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=Dy(),y=C(b,!0);S(b),O(()=>ve(y,e.time)),$(v,b)};V(u,v=>{o()?v(m):v(p,!1)})}S(a),O(v=>l=oe(a,1,"wrapper s-d",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var Gl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Hy=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Fy={hash:"s-p",code:".thumb-timer.s-p{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 sc(t,e){B(e,!0),Q(t,Fy);let[i,o]=De(),r=()=>w(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Ot(),u=f(()=>tn(e.duration-e.position)),m=de(!1);var p=Hy();let v;var b=C(p);rc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Ds(p,()=>Gl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),O(y=>v=oe(p,1,"thumb-timer s-p",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),H(),o()}var Yl=t=>{if(!navigator.clipboard){cb(t);return}navigator.clipboard.writeText(t).catch(()=>cb(t))};function cb(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 np=require("@vkontakte/videoplayer-core/es2015");var hm=require("@vkontakte/videoplayer-core/es2015");var gm="focus-hidden";var Dr=t=>{t.stopPropagation(),t.preventDefault()},_m=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(gm)},zy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Wy=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"},qy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ub=t=>t.code==="Escape",Qy=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},pb=t=>{Ky(t)?(Dr(t),Wy(t.target)):qy(t)&&(Dr(t),zy(t.target))},pa=t=>!hm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||hm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",jl=(t,e,i)=>ht(null,null,function*(){yield _o(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(yield _o(),i.set(!1),t.focus())}),fb=(t,e,i)=>ht(null,null,function*(){yield _o(),t&&!e&&ye(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>ht(null,null,function*(){if(yield _o(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(gm,!i),a==null||a.focus()}}),mb=(t,e)=>ht(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ip=(t,e)=>{pb(t),_m(t.target),ub(t)&&(Dr(t),e())},op=(t,e)=>ht(null,null,function*(){ac(t,["ArrowRight"])&&(Dr(t),e())}),vb=(t,e,i)=>ht(null,null,function*(){if(pb(t),Qy(t)){Dr(t),e();return}ub(t)&&(Dr(t),i())}),Xl=(t,e)=>{ac(t)&&(Dr(t),e())},gb=(t,e,i)=>{if(ac(t))Dr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Dr(t);return}o==="ArrowRight"&&!e&&(i(!0),Dr(t))}},hb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},_b=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 ja=require("@vkontakte/videoplayer-shared/es2015");var ls={"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 bm=require("@vkontakte/videoplayer-shared/es2015");var Yy=(t,e)=>{Xl(t,()=>e())},jy=L('<li class="item s-1p" role="menuitem" tabindex="0"> </li>'),Xy={hash:"s-1p",code:".item.s-1p{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-1p:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function $m(t,e){B(e,!0),Q(t,Xy);let i=h(e,"onClick",3,bm.noop),o=h(e,"closeContextMenu",3,bm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=jy();a.__click=r,a.__keydown=[Yy,r];var l=C(a,!0);S(a),O(()=>{var d;Re(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Re(a,"data-testid",e.id),ve(l,e.label)}),$(t,a),H()}Ye(["click","keydown"]);var Ya=(t,e)=>t.weight-e.weight;var Zl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Zl||{});var Zy=(t,e)=>{ip(t,e)},Jy=t=>{t.preventDefault()},e0=L('<ul role="menu" class="s-18"></ul>'),t0={hash:"s-18",code:"ul.s-18{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 ym(t,e){B(e,!0),Q(t,t0);let[i,o]=De(),r=()=>w(we,"$playerPhase",i),a=()=>w(ae,"$isLive$",i),l=()=>w(me,"$isPiPEnabled$",i),d=()=>w(X,"$chromecastState$",i),s=()=>w(ee,"$pictureInPictureApiIsActive$",i),u=()=>w(J,"$isLooped$",i),m=()=>w(Z,"$positionExact$",i),p=()=>w(z,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),b=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),_=h(e,"menuElementRef",15,void 0),x=q(0),I=q(0),T=be(),{pictureInPicture$:R}=yo(),A=Ot(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,z=T.ui.additionalContextMenuItems$,F=T.ui.t,U=T.actions.internal.togglePictureInPicture,X=T.state.chromecastState$,ae=T.state.isLive$,Z=T.state.positionExact$,re=T.state.isInteractive,J=T.state.looped$,we=T.playerPhase,{isEnabled$:me,isActive$:ee}=R,_e=f(()=>r()==="video"),Ce=f(()=>!!a()&&n(_e)),ge=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),pe=f(()=>{var fe;return A.features.copyVideoLink&&((fe=T.callbacks)==null?void 0:fe.onCopyVideoLink)}),Qe=f(()=>n(pe)&&!n(ge)&&!re&&!n(Ce)),G=f(()=>{var fe;return!!((fe=T.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),D=f(()=>l()&&d()!==np.ChromecastState.CONNECTED&&!re&&n(_e)&&!np.clientChecker.browser.isFirefox),Ge=f(()=>!re&&!n(ge)&&!n(Ce)),K=f(()=>A.features.videoRotate&&!re&&!n(ge)),se=f(()=>A.showSupport&&!s()),xe=f(()=>A.features.saveTraceInfoToFile),He=()=>{var fe;P.set(!1),(fe=e.returnFocus)==null||fe.call(e)},it=(fe,Be)=>{if(!_()||!y())return;let We=_().getBoundingClientRect(),Ct=y().getBoundingClientRect();N(x,fe-Ct.left),N(I,Be-Ct.top),n(x)+We.width>Ct.width&&N(x,Ct.width-We.width),n(I)+We.height>Ct.height&&N(I,Ct.height-We.height),N(x,Math.max(n(x),0),!0),N(I,Math.max(n(I),0),!0)};Oe(()=>{ht(null,null,function*(){if(_()&&y()){yield _o();let{top:Be,left:We,bottom:Ct,right:Xt}=b(),It=We!=null?We:0,li=Be!=null?Be:0,fi=_().getBoundingClientRect();(0,ja.isNullable)(We)&&!(0,ja.isNullable)(Xt)&&(It=Xt-fi.width),(0,ja.isNullable)(Be)&&!(0,ja.isNullable)(Ct)&&(li=Ct-fi.height),It=Math.max(It,0),li=Math.max(li,0),it(It,li)}})});let ne=()=>{T.actions.internal.videoRotate()},ce=()=>{(0,ja.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ne=()=>{let fe=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Be=new Blob([...fe],{type:"plain/text"}),We=window.URL.createObjectURL(Be);za(We,"vk_player_debug_info","txt")}else Yl(T.actions.internal.getDebugTextData())},Le=()=>{let fe=T.actions.internal.getTraceTextData(),Be=new Blob([...fe],{type:"application/json"}),We=window.URL.createObjectURL(Be);za(We,"vk_player_trace_info","json")},et=()=>{E.set(!0)},Ee=()=>ht(null,null,function*(){var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}}),Te=()=>{T.actions.internal.setLooped(!u())},Fe=()=>{var fe,Be;if(n(G)){let We=(Be=(fe=T.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Be.call(fe);We&&Yl(We)}},At=(fe=!1)=>{var Be,We;if((Be=T.callbacks)!=null&&Be.onCopyVideoLink){let Ct=(We=T.callbacks)==null?void 0:We.onCopyVideoLink(fe,m());Ct&&Yl(Ct)}},Tt=f(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Rt=f(()=>n(pe)?{id:"copy-link",weight:ls["copy-link"],label:F("menu_copy_video_link"),onClick:()=>At()}:void 0),pt=f(()=>n(Qe)?{id:"copy-link-timestamp",weight:ls["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>At(!0)}:void 0),Lt=f(()=>n(G)?{id:"copy-embed-code",weight:ls["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Fe}:void 0),ti=f(()=>n(D)?{id:"pip",weight:ls.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ee}:void 0),Mt=f(()=>n(Ge)?{id:"video-loop",weight:ls["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Te}:void 0),Ft=f(()=>n(K)?{id:"rotate",weight:ls.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ne}:void 0),qt=f(()=>n(se)?{id:"report",weight:ls.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:ce}:void 0),Y=f(()=>({id:"save-debug",weight:ls["save-debug"],label:n(Tt),onClick:Ne})),Pe=f(()=>n(xe)?{id:"save-trace",weight:ls["save-trace"],label:F("menu_save_debug"),onClick:Le}:void 0),le=f(()=>({id:"debug-info",weight:ls["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:et})),$e=f(()=>[n(Rt),n(pt),n(Lt),n(ti),n(Mt),n(Ft),n(qt),n(Y),n(Pe),n(le),...p()].filter(fe=>!!fe).sort(Ya));var Ve=Me(),dt=ue(Ve);{var St=fe=>{var Be=e0();Be.__contextmenu=[Jy],Be.__keydown=[Zy,He],yi(Be,21,()=>n($e),We=>We.id,(We,Ct)=>{$m(We,{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:He})}),S(Be),Xe(Be,We=>_(We),()=>_()),O(()=>{var We,Ct;return qe(Be,`top: ${(We=n(I))!=null?We:""}px; left: ${(Ct=n(x))!=null?Ct:""}px;`)}),$(fe,Be)};V(dt,fe=>{v()&&fe(St)})}$(t,Ve),H(),o()}Ye(["contextmenu","keydown"]);var rp=class{constructor(e){this.value=e,this.next=null}};var Jl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new rp(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 i0=L('<div class="container s-1g"><canvas class="s-1g"></canvas></div>'),o0={hash:"s-1g",code:".container.s-1g{display:inline-block;height:16px;width:120px}canvas.s-1g{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),Q(t,o0);let i=h(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Dt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(v,b,y,_,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(b,y,_,x)}Oe(()=>{let v="";if(n(r)){let b=i()[0];for(let _=1;_<i().length;_++)i()[_]>b&&(b=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let x=y*s,I=b>0?a*(i()[_]/b):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=i0(),p=C(m);Xe(p,v=>N(o,v),()=>n(o)),S(m),$(t,m),H()}var xm=require("@vkontakte/videoplayer-shared/es2015");var n0=(t,e)=>{t.stopPropagation(),xm.safeStorage.remove(Gd),e.set(!1)},r0=L('<div class="s-o"><div class="s-o">Video id</div> <span> </span></div>'),s0=L('<div class="s-o"><div class="s-o">VSID</div> <span> </span></div>'),a0=L('<div class="s-o"><div class="s-o">Provider</div> <span> </span></div>'),l0=L('<div class="s-o"><div class="s-o">Streams</div> <span> </span></div>'),d0=L('<div class="s-o"><div class="s-o">Viewport</div> <span> </span></div>'),c0=L('<div class="s-o"><div class="s-o">Video size</div> <span> </span></div>'),u0=L('<div class="s-o"><div class="s-o">CDN host</div> <span> </span></div>'),p0=L('<div class="s-o"><div class="s-o">Volume</div> <span> </span></div>'),f0=L('<div class="s-o"><div class="s-o">Position</div> <span> </span></div>'),m0=L('<div class="s-o"><div class="s-o">Buffer</div> <span> </span></div>'),v0=L('<div class="s-o"><div class="s-o">Nbuffer</div> <span> </span></div>'),g0=L('<div class="s-o"><div class="s-o">Live latency</div> <span> </span></div>'),h0=L('<div class="s-o"><div class="s-o">Segment</div> <span> </span></div>'),_0=L('<div class="s-o"><div class="s-o">Network</div> <!> <span> </span></div>'),b0=L('<div class="s-o"><div class="s-o">V bitrate</div> <!> <span> </span></div>'),$0=L('<div role="region"><button class="close s-o" title="закрыть">[x]</button> <div class="content s-o"><div class="s-o"><div class="s-o">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-o"><div class="s-o">Dropped</div> <span> </span></div> <!> <!> <div class="s-o"><div class="s-o">FPS</div> <!> <span> </span></div></div></div>'),y0={hash:"s-o",code:".container.s-o{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-o{left:16px;top:16px}button.close.s-o{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-o{padding:5px}.content.s-o>div:where(.s-o)>div:where(.s-o){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),Q(t,y0);let[i,o]=De(),r=()=>w(d,"$isMobile",i),a=be(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(ui(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),p=q(0),v=q(0),b=new Jl(60),y=new Jl(60),_=new Jl(60),x=q(ui([])),I=q(ui([])),T=q(ui([])),R=j("aria_label_debug_panel");Dt(()=>{xm.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),Pe;return u&&(Pe=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;N(v,le-n(m)),N(m,le,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),N(x,b.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(T,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Y),Pe&&clearInterval(Pe)}});var A=$0();let P;var E=C(A);E.__click=[n0,l];var z=k(E,2),F=C(z),U=k(C(F),2),X=C(U,!0);S(U),S(F);var ae=k(F,2);{var Z=Y=>{var Pe=r0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).id)),$(Y,Pe)};V(ae,Y=>{n(s).id&&Y(Z)})}var re=k(ae,2);{var J=Y=>{var Pe=s0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).vsid)),$(Y,Pe)};V(re,Y=>{n(s).vsid&&Y(J)})}var we=k(re,2);{var me=Y=>{var Pe=a0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).provider)),$(Y,Pe)};V(we,Y=>{n(s).provider&&Y(me)})}var ee=k(we,2);{var _e=Y=>{var Pe=l0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Ve,dt;return ve($e,`Video: ${(Ve=n(s).videoCodec||"")!=null?Ve:""} ${n(s).hdr?"(HDR)":""}
57
57
  &
58
- Audio: ${(st=n(s).audioCodec||"")!=null?st:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Y,ke)};V(ee,Y=>{(n(s).videoCodec||n(s).audioCodec)&&Y(be)})}var we=P(ee,2);{var ge=Y=>{var ke=l0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).viewport)),$(Y,ke)};V(we,Y=>{n(s).viewport&&Y(ge)})}var pe=P(we,2);{var Qe=Y=>{var ke=d0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).videoSize)),$(Y,ke)};V(pe,Y=>{n(s).videoSize&&Y(Qe)})}var U=P(pe,2);{var D=Y=>{var ke=c0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(()=>ve(ye,n(s).cdn)),$(Y,ke)};V(U,Y=>{n(s).cdn&&Y(D)})}var Ge=P(U,2);{var K=Y=>{var ke=u0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(()=>{var Me;return ve(ye,`${(Me=n(s).volume)!=null?Me:""} %`)}),$(Y,ke)};V(Ge,Y=>{n(s).volume&&Y(K)})}var ae=P(Ge,2);{var xe=Y=>{var ke=p0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(Me=>ve(ye,`${Me!=null?Me:""} s`),[()=>n(s).position.toFixed(2)]),$(Y,ke)};V(ae,Y=>{n(s).position&&Y(xe)})}var He=P(ae,2);{var ot=Y=>{var ke=f0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(Me=>ve(ye,`${Me!=null?Me:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Y,ke)};V(He,Y=>{n(s).buffer&&Y(ot)})}var re=P(He,2);{var ce=Y=>{var ke=m0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(Me=>ve(ye,`${Me!=null?Me:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Y,ke)};V(re,Y=>{n(s).nativeBuffer&&Y(ce)})}var Ne=P(re,2);{var Re=Y=>{var ke=v0(),le=P(T(ke),2),ye=T(le);S(le),S(ke),O(Me=>ve(ye,`${Me!=null?Me:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Y,ke)};V(Ne,Y=>{n(s).liveLatency&&Y(Re)})}var tt=P(Ne,2);{var Ee=Y=>{var ke=g0(),le=P(T(ke),2),ye=T(le,!0);S(le),S(ke),O(Me=>ve(ye,Me),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Me})=>Me).map(({value:Me,title:st})=>`${st} ${((Me!=null?Me:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Y,ke)};V(tt,Y=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Y(Ee)})}var Te=P(tt,2),Fe=P(T(Te),2),kt=T(Fe);S(Fe),S(Te);var Ct=P(Te,2);{var Rt=Y=>{var ke=h0(),le=P(T(ke),2);dc(le,{get values(){return n(I)}});var ye=P(le,2),Me=T(ye);S(ye),S(ke),O(st=>ve(Me,`${st!=null?st:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Y,ke)};V(Ct,Y=>{n(s).speed&&Y(Rt)})}var ct=P(Ct,2);{var Pt=Y=>{var ke=_0(),le=P(T(ke),2);dc(le,{get values(){return n(C)}});var ye=P(le,2),Me=T(ye);S(ye),S(ke),O(st=>ve(Me,`${st!=null?st:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Y,ke)};V(ct,Y=>{n(s).bitrate&&Y(Pt)})}var ti=P(ct,2),At=P(T(ti),2);dc(At,{get values(){return n(w)}});var Ft=P(At,2),qt=T(Ft,!0);S(Ft),S(ti),S(Q),S(A),O(Y=>{var ke,le;E=ne(A,1,"container s-k",null,E,Y),Ve(A,"aria-label",N),ve(X,n(s).version),ve(kt,`${(ke=n(p))!=null?ke:""} / ${(le=n(m))!=null?le:""} frames`),ve(qt,n(v))},[()=>({"container-mobile":r()})]),$(t,A),H(),o()}Ye(["click"]);var _b=require("@vkontakte/videoplayer-shared/es2015"),y0=(t,e)=>{t.stopPropagation(),e()()},x0=L('<div class="close s-1e"></div>'),w0={hash:"s-1e",code:'.close.s-1e{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1e:hover{opacity:1}.close.s-1e:after,.close.s-1e:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1e:before{transform:rotate(45deg)}.close.s-1e:after{transform:rotate(-45deg)}'};function Bs(t,e){B(e,!0),G(t,w0);let i=_(e,"onClick",3,_b.noop);var o=x0();o.__click=[y0,i],$(t,o),H()}Ye(["click"]);var bb=require("@vkontakte/videoplayer-shared/es2015");var mn=t=>`width:${t}px;height:${t}px;`;var S0=Ie('<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 On(t,e){B(e,!0);let i=f(()=>mn(e.size));Je(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=S0();$(o,a)},$$slots:{default:!0}}),H()}var C0=L('<div class="timer s-1c"><canvas class="timer-canvas s-1c" width="100" height="100"></canvas> <!></div>'),T0={hash:"s-1c",code:".timer.s-1c{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-1c:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1c{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),G(t,T0);let i=_(e,"isRunning",3,!0),o=_(e,"onTimerEnded",3,bb.noop),r=5e3,a=q(void 0),l,d,s=0,u;De(()=>{i()&&Et(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{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(p)):o()())};Dt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),fn(()=>{m()});var v=C0(),b=T(v);Ze(b,g=>R(a,g),()=>n(a));var y=P(b,2);On(y,{get size(){return"24"}}),S(v),$(t,v),H()}var I0=(t,e,i)=>{e(!1),i()},E0=L('<div class="overlay s-13"></div> <div class="next-video s-13"><div class="top s-13"><div class="caption s-13"> </div> <!></div> <div class="row s-13"><div class="column s-13"><div class="thumb s-13"><div></div> <!></div></div> <div class="column s-13"><div class="title s-13"> </div></div></div></div>',1),k0={hash:"s-13",code:".overlay.s-13{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-13{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-13{display:flex;justify-content:space-between}.caption.s-13{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-13{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-13{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-13{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-13,.thumb-overlay.s-13{height:100%;width:100%}.thumb-overlay.s-13{position:absolute}.thumb-overlay.withOpacity.s-13{background:var(--black);opacity:.3}.title.s-13{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function wm(t,e){B(e,!0),G(t,k0);let[i,o]=Oe(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},g=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ue(w);{var C=N=>{var A=E0(),E=P(ue(A),2),k=T(E),Q=T(k),F=T(Q,!0);S(Q);var z=P(Q,2);Bs(z,{onClick:g}),S(k);var X=P(k,2);X.__click=[I0,u,p];var se=T(X),Z=T(se),oe=T(Z);let J;var Ce=P(oe,2);{var me=ge=>{let pe=f(()=>a()&&r());uc(ge,{get isRunning(){return n(pe)},onTimerEnded:y})};V(Ce,ge=>{r()&&ge(me)})}S(Z),S(se);var ee=P(se,2),be=T(ee),we=T(be,!0);S(be),S(ee),S(X),S(E),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=ne(oe,1,"thumb-overlay s-13",null,J,pe),ve(we,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),$(N,A)};V(I,N=>{e.isHide||N(C)})}$(t,w),H(),o()}Ye(["click"]);var fa=require("@vkontakte/videoplayer-core/es2015"),$b=require("@vkontakte/videoplayer-shared/es2015"),Dn=require("@vkontakte/videoplayer-statistics/es2015");var Sm=(t,e)=>Math.min(+(t+e).toFixed(2),1),Cm=(t,e)=>Math.max(+(t-e).toFixed(2),0),sp=(t,e,i)=>{let o=Sm(e,i);e<1&&t.actions.internal.setVolume(o)},ap=(t,e,i)=>{let o=Cm(e,i);e>0&&t.actions.internal.setVolume(o)};var pa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function lp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var A0=(t,e)=>{e(t)},L0=L('<div class="keyboard-controls s-w" tabindex="-1" role="region"><!></div>'),M0={hash:"s-w",code:".keyboard-controls.s-w{bottom:0;left:0;position:absolute;right:0;top:0}"};function Tm(t,e){var Y,ke;B(e,!0),G(t,M0);let[i,o]=Oe(),r=()=>x(Ce,"$disabledControls$",i),a=()=>x(ot,"$isInteractiveTime$",i),l=()=>x(re,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(D,"$isEnded$",i),u=()=>x(Qe,"$doubleForwardAvailable$",i),m=()=>x(pe,"$doubleForwardOn$",i),p=()=>x(Ge,"$overlayContainer$",i),v=()=>x(se,"$adPlaybackState",i),b=()=>x(Z,"$positionExact$",i),y=()=>x(oe,"$duration$",i),g=()=>x(xe,"$isAudioAvailable$",i),w=()=>x(J,"$volume$",i),I=()=>x(X,"$canChangePlaybackSpeed$",i),C=()=>x(me,"$muted$",i),N=()=>x(ee,"$currentSubtitle$",i),A=_(e,"nextButtonActive",3,!1),E=_(e,"prevButtonActive",3,!1),k=_e(),Q=Bt(),F=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,X=k.state.canChangePlaybackSpeed$,se=k.ads.playbackState,Z=k.state.positionExact$,oe=k.state.duration$,J=k.state.volume$,Ce=k.ui.controls.disabledControls$,me=k.state.muted$,ee=k.state.currentSubtitle$,be=k.ui.contextMenu.openedByHotKey$,we=k.ui.contextMenu.lastActiveElem$,ge=k.ui.contextMenu.visible$,pe=k.ui.doubleForwardOn$,Qe=k.ui.doubleForwardAvailable$,U=k.ui.contextMenu.position$,D=k.state.isEnded$,Ge=k.ui.overlayContainer$,K=(Y=k.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,ae=(ke=k.callbacks)==null?void 0:ke.onAudioDisabledHint,xe=k.state.isAudioAvailable$,He=k.state.isAudioDisabled,ot=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:re}=yo(),ce=0,Ne=!0,Re=q(void 0),tt=le=>(le!==Ne&&(Ne=le,ce=0),ce+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*ce)/1e3),Ee=!0,Te=({type:le,repeat:ye,disableDoubleForward:Me})=>{let st=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&re.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let fe="PLAY";d()===fa.PlaybackState.PAUSED?fe="PAUSE":s()&&(fe="REPLAY"),e.showHotKeyHelpers({type:fe})}},Lt=le==="down";if(!u()||Me){Lt&&st(),Ee=!0;return}if(Lt)Ee=!1;else if(Ee)return;if(Lt){!ye&&e.startDoubleForwardActivationTimer();return}m()||st(),e.stopDoubleForward(),Ee=!0},Fe=le=>{let ye=hb(p());U.set(ye),we.set(le.target),be.set(!0),ge.set(!0)},kt=(le,ye=!1)=>{var vi,xi;let Me=le.target,st=(vi=Me==null?void 0:Me.getAttribute("role"))==null?void 0:vi.includes("menuitem"),Lt=Me.classList.contains("btn"),fe=le.code;if(Lt&&fe==="Space")return!1;let Be=__.has(fe);if(st&&Be)return!1;let We=!h_.has(fe);if(le.ctrlKey&&We||le.altKey&&We||le.metaKey)return!1;let wt=st&&fe==="Escape";b_.has(fe)||wt||e.hideContextMenu();let Qt=d()===fa.PlaybackState.PLAYING||d()===fa.PlaybackState.PAUSED,Mt=e.isAds&&(v()==="paused"||v()==="playing"),mi=!Mt&&!r().has("TIMELINE"),pi=le.shiftKey&&["Digit1","Numpad1"].includes(fe);if(!pi&&!(Qt||Mt))return!1;F({message:`key down, code: ${fe}, isExternal = ${ye}`});let Bi=!1,Nt=()=>{Bi=!0,ye||le.preventDefault()};if(pi)return Fe(le),Nt(),!0;switch(fe){case"KeyJ":case"ArrowLeft":{if(!mi)break;if(le.ctrlKey||le.altKey){let mt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(mt),mt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:mt.text}),Nt()}else{let mt=le.shiftKey?tt(!1):Q.controls.seekStepKeyboard/1e3,Jt=Math.max(b()-mt,0);b()>0&&(k.actions.internal.seekTime(Jt,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:mt.toString()}),Nt())}break}case"KeyL":case"ArrowRight":{if(!mi)break;if(le.ctrlKey||le.altKey){let mt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(mt),mt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:mt.text}),Nt()}else{let mt=le.shiftKey?tt(!0):Q.controls.seekStepKeyboard/1e3,Jt=Math.min(b()+mt,y());Math.round(b())<Math.round(y())&&(k.actions.internal.seekTime(Jt,Dn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:mt.toString()}),Nt())}break}case"ArrowUp":{if(pa({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:g(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let mt=w(),Jt=Q.controls.volumeStepKeyboard,Hi=mt<=1;if(sp(k,mt,Jt),Hi){let Si=Math.round(Sm(mt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}Nt();break}case"ArrowDown":{if(pa({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:g(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let mt=w(),Jt=Q.controls.volumeStepKeyboard,Hi=mt>=0;if(ap(k,mt,Jt),Hi){let Si=Math.round(Cm(mt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}Nt();break}case"Comma":{if(le.shiftKey){if(!m()&&I()){let mt=k.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:mt==null?void 0:mt.displayValue}),Nt()}}else{if(Mt||d()!==fa.PlaybackState.PAUSED)break;let mt=Math.max(b()-Q.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(mt,Dn.SeekAction.DOUBLE_TAP),Nt())}break}case"Period":{if(le.shiftKey){if(!m()&&I()){let mt=k.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:mt==null?void 0:mt.displayValue}),Nt()}}else{if(Mt||d()!==fa.PlaybackState.PAUSED)break;let mt=Math.min(b()+Q.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(mt,Dn.SeekAction.DOUBLE_TAP),Nt())}break}case"KeyK":case"Space":Te({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===fe}),Nt();break;case"KeyM":{pa({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:g(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Nt();break}case"KeyF":e.toggleFullscreen(),Nt();break;case"KeyC":k.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(xi=N())==null?void 0:xi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Nt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Nt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Dn.SeekAction.DOUBLE_TAP),Nt();break;case"Slash":{le.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),Nt());break}case"KeyN":le.shiftKey&&A()&&(k.actions.internal.nextVideoClick(),Nt());break;case"KeyP":le.shiftKey&&E()&&(k.actions.internal.prevVideoClick(),Nt());break;case"ShiftLeft":case"ShiftRight":Nt();break;case"Tab":case"Escape":case"Enter":break;default:(0,$b.checkNever)(fe);break}return Bi},Ct=le=>{let ye=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Me=d()===fa.PlaybackState.PLAYING||d()===fa.PlaybackState.PAUSED,st=e.isAds&&(v()==="paused"||v()==="playing");if(Me||st)switch(ye){case"ShiftLeft":case"ShiftRight":ce=0;break;case"Space":Te({type:"up"});break}},Rt=j("aria_label_video_player"),ct=()=>{var le;return(le=n(Re))==null?void 0:le.focus()},Pt=()=>n(Re)===lp(),ti=le=>le.type==="keydown"?kt(le,!0):(le.type==="keyup"&&Ct(le),!1);var At=L0();At.__keyup=Ct,At.__keydown=[A0,kt];var Ft=T(At);si(Ft,()=>{var le;return(le=e.children)!=null?le:ht}),S(At),Ze(At,le=>R(Re,le),()=>n(Re)),O(()=>Ve(At,"aria-label",Rt)),$(t,At);var qt=H({focus:ct,isFocused:Pt,handleExternalKeyboardEvent:ti});return o(),qt}Ye(["keyup","keydown"]);var V0=L('<div class="container s-m"><div class="dot s-m"></div> <div class="dot s-m"></div> <div class="dot s-m"></div></div>'),R0={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 ja(t,e){G(t,R0);let i=_(e,"style",3,"");var o=V0();O(()=>Ke(o,i())),$(t,o)}var N0=Ie('<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 Im(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=N0();$(i,r)},$$slots:{default:!0}})}var Xa=require("@vkontakte/videoplayer-shared/es2015"),O0=t=>{t.stopPropagation()},D0=L("<button><!></button>"),B0={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 Kt(t,e){B(e,!0),G(t,B0);let i=_(e,"className",3,""),o=_(e,"style",3,""),r=_(e,"disabled",3,void 0),a=_(e,"testId",3,void 0),l=_(e,"ariaHidden",3,void 0),d=_(e,"ariaLabel",3,void 0),s=_(e,"ref",15,void 0),u=_(e,"ariaKeyShortCut",3,void 0),m=_(e,"ariaExpanded",3,void 0),p=_(e,"tabIndex",3,0),v=_(e,"click",3,Xa.noop),b=_(e,"focus",3,Xa.noop),y=_(e,"blur",3,Xa.noop),g=f(()=>v()===Xa.noop?null:A=>{A.stopPropagation(),v()(A)}),w=f(()=>b()===Xa.noop?null:A=>{A.preventDefault(),b()()}),I=f(()=>y()===Xa.noop?null:A=>{A.preventDefault(),y()()});var C=D0();C.__pointerdown=[O0],C.__click=function(...A){var E;(E=n(g))==null||E.apply(this,A)};var N=T(C);si(N,()=>{var A;return(A=e.children)!=null?A:ht}),S(C),Ze(C,A=>s(A),()=>s()),O(()=>{var A,E,k,Q,F,z,X,se;ne(C,1,`btn ${(A=i())!=null?A:""}`,"s-1o"),Ke(C,o()||null),C.disabled=(E=r())!=null?E:null,Ve(C,"aria-hidden",(k=l())!=null?k:null),Ve(C,"aria-label",(Q=d())!=null?Q:null),Ve(C,"aria-keyshortcuts",(F=u())!=null?F:null),Ve(C,"aria-expanded",(z=m())!=null?z:null),Ve(C,"data-testid",(X=a())!=null?X:null),Ve(C,"tabindex",p()),Ve(C,"role",e.role),Ve(C,"aria-checked",(se=e.areaChecked)!=null?se:null)}),dt("focus",C,function(...A){var E;(E=n(w))==null||E.apply(this,A)}),dt("blur",C,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),$(t,C),H()}Ye(["pointerdown","click"]);var H0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},F0=L('<div class="modal-header s-1g"><h3 class="modal-title s-1g"> </h3> <!></div>'),U0=L('<div class="modal-overlay s-1g"><div class="modal-container s-1g" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1g" tabindex="0" role="scrollbar"><div class="modal-main s-1g"><!></div></div></div></div>'),z0={hash:"s-1g",code:'.modal-overlay.s-1g{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-1g{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-1g{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-1g{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-1g{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1g::-webkit-scrollbar{width:8px}.modal-scroll.s-1g::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1g::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1g{margin:-8px -4px 0 0}'};function Em(t,e){B(e,!0),G(t,z0);let i=_(e,"showHeader",3,!0),o=_(e,"showCloseCross",3,!0),r=q(void 0),a=q(void 0),{webApi:{focusManager:l}}=_e(),d=j("hotkey_map_modal_close_btn_text");Dt(()=>{var g;return(g=n(r))==null||g.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=U0();s.__keydown=[H0,e];var u=T(s),m=T(u);{var p=g=>{var w=F0(),I=T(w),C=T(I,!0);S(I);var N=P(I,2);{var A=E=>{Kt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(k,Q)=>{Im(k,{fill:"currentColor"})},$$slots:{default:!0}})};V(N,E=>{o()&&E(A)})}S(w),O(()=>ve(C,e.title)),$(g,w)};V(m,g=>{i()&&g(p)})}var v=P(m,2),b=T(v),y=T(b);si(y,()=>{var g;return(g=e.children)!=null?g:ht}),S(b),S(v),Ze(v,g=>R(r,g),()=>n(r)),S(u),Ze(u,g=>R(a,g),()=>n(a)),S(s),$(t,s),H()}Ye(["keydown"]);var W0=new Set(["BR"]),yb=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;W0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var K0=L('<li class="hot-key-map-item s-15"><span class="hot-key-map-item-description s-15"><!></span> &nbsp; <span class="hot-key-map-item-value s-15"> </span></li>'),q0=L('<div class="hot-key-map-group s-15"><h5 class="hot-key-map-group-title s-15"> </h5> <ul class="hot-key-map-group-items s-15"></ul></div>'),Q0=L('<div class="hot-key-map s-15"></div>'),G0={hash:"s-15",code:'.hot-key-map.s-15{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-15{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-15:last-child{border-bottom:none}.hot-key-map-group-title.s-15{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-15,.hot-key-map-item.s-15{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-15{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-15{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-15{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-15{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-15,.hot-key-map-item-value.s-15{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function km(t,e){B(e,!1),G(t,G0);let[i,o]=Oe(),r=()=>x(l,"$data",i),a=_e(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};$o(),Em(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=Q0();wi(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,g=()=>n(b).items;var w=q0(),I=T(w),C=T(I,!0);S(I);var N=P(I,2);wi(N,5,g,({description:A,value:E})=>E,(A,E)=>{let k=()=>n(E).description,Q=()=>n(E).value;var F=K0(),z=T(F),X=T(z);zd(X,()=>yb(k())),S(z);var se=P(z,2),Z=T(se,!0);S(se),S(F),O(()=>ve(Z,Q())),$(A,F)}),S(N),S(w),O(()=>ve(C,y())),$(v,w)}),S(p),$(u,p)},$$slots:{default:!0}}),H(),o()}var Cv=require("@vkontakte/videoplayer-shared/es2015");var nl=require("@vkontakte/videoplayer-core/es2015");var xb=require("@vkontakte/videoplayer-shared/es2015");var Y0=L('<div class="pillow s-1y"><!></div>'),j0={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 Pm(t,e){G(t,j0);var i=Y0(),o=T(i);si(o,()=>{var r;return(r=e.children)!=null?r:ht}),S(i),O(()=>Ve(i,"data-testid",e.testId)),$(t,i)}var ed=require("@vkontakte/videoplayer-shared/es2015");var X0=Ie('<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 Am(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=X0();no(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var Z0=Ie('<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 Lm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();no(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var J0=Ie('<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 Mm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=J0();no(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var ex=Ie('<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 Vm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=ex();no(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var tx=Ie('<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 Rm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=tx();no(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var dp=t=>{switch(t){case ed.VideoQuality.Q_720P:return Mm;case ed.VideoQuality.Q_1080P:return Vm;case ed.VideoQuality.Q_1440P:return Rm;case ed.VideoQuality.Q_2160P:return Am;case ed.VideoQuality.Q_4320P:return Lm}};var ix=Ie('<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 Nm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=ix();$(i,r)},$$slots:{default:!0}})}var ox=Ie('<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 Om(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=ox();$(i,r)},$$slots:{default:!0}})}var nx=L('<div aria-hidden="true"><!> <!></div>'),rx={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(t,e){B(e,!0),G(t,rx);let i=_(e,"isMobile",3,!1),o=_(e,"currentQuality",3,void 0),r=f(()=>o()?(0,xb.getVideoQualityLabel)(o()):""),a=f(()=>dp(o())),l=f(()=>n(r).length>2);var d=Le(),s=ue(d);{var u=p=>{Nm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=nx();let b;var y=T(v);{var g=C=>{let N=f(()=>`${n(r)}-pill-icon`);Pm(C,{get testId(){return n(N)},children:(A,E)=>{var k=Le(),Q=ue(k);Oi(Q,()=>n(a),(F,z)=>{z(F,{})}),$(A,k)},$$slots:{default:!0}})};V(y,C=>{n(a)&&C(g)})}var w=P(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Om(w,{get testId(){return n(I)}}),S(v),O(C=>b=ne(v,1,"icon s-1u",null,b,C),[()=>({triple:n(l)})]),$(p,v)};V(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var sx=L('<span class="settings-icon-wrapper s-20"><!></span>'),ax={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function td(t,e){B(e,!0),G(t,ax);let[i,o]=Oe(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(v,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=_e(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,b=d.ui.t,y=q(void 0);De(()=>{n(y)&&Et(()=>{e.ref$.set(n(y))})});let g=b("aria_label_settings");function w(C){return gt(this,null,function*(){let N=ua(C);r()?p():m(N,_o)})}let I=f(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"settings-btn",click:w,get ariaLabel(){return g},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(C){R(y,C,!0)},children:(C,N)=>{var A=sx(),E=T(A);pc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(C,A)},$$slots:{default:!0}}),H(),o()}var lx=Ie('<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),dx=Ie("<path></path>");function ma(t,e){B(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>mn(e.size));Je(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=Le(),d=ue(l);{var s=m=>{var p=lx();ui(),$(m,p)},u=m=>{var p=dx();O(()=>Ve(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
58
+ Audio: ${(dt=n(s).audioCodec||"")!=null?dt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Y,Pe)};V(ee,Y=>{(n(s).videoCodec||n(s).audioCodec)&&Y(_e)})}var Ce=k(ee,2);{var ge=Y=>{var Pe=d0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).viewport)),$(Y,Pe)};V(Ce,Y=>{n(s).viewport&&Y(ge)})}var pe=k(Ce,2);{var Qe=Y=>{var Pe=c0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).videoSize)),$(Y,Pe)};V(pe,Y=>{n(s).videoSize&&Y(Qe)})}var G=k(pe,2);{var D=Y=>{var Pe=u0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).cdn)),$(Y,Pe)};V(G,Y=>{n(s).cdn&&Y(D)})}var Ge=k(G,2);{var K=Y=>{var Pe=p0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Ve;return ve($e,`${(Ve=n(s).volume)!=null?Ve:""} %`)}),$(Y,Pe)};V(Ge,Y=>{n(s).volume&&Y(K)})}var se=k(Ge,2);{var xe=Y=>{var Pe=f0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Ve=>ve($e,`${Ve!=null?Ve:""} s`),[()=>n(s).position.toFixed(2)]),$(Y,Pe)};V(se,Y=>{n(s).position&&Y(xe)})}var He=k(se,2);{var it=Y=>{var Pe=m0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Ve=>ve($e,`${Ve!=null?Ve:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Y,Pe)};V(He,Y=>{n(s).buffer&&Y(it)})}var ne=k(He,2);{var ce=Y=>{var Pe=v0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Ve=>ve($e,`${Ve!=null?Ve:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Y,Pe)};V(ne,Y=>{n(s).nativeBuffer&&Y(ce)})}var Ne=k(ne,2);{var Le=Y=>{var Pe=g0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Ve=>ve($e,`${Ve!=null?Ve:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Y,Pe)};V(Ne,Y=>{n(s).liveLatency&&Y(Le)})}var et=k(Ne,2);{var Ee=Y=>{var Pe=h0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(Ve=>ve($e,Ve),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ve})=>Ve).map(({value:Ve,title:dt})=>`${dt} ${((Ve!=null?Ve:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Y,Pe)};V(et,Y=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Y(Ee)})}var Te=k(et,2),Fe=k(C(Te),2),At=C(Fe);S(Fe),S(Te);var Tt=k(Te,2);{var Rt=Y=>{var Pe=_0(),le=k(C(Pe),2);dc(le,{get values(){return n(I)}});var $e=k(le,2),Ve=C($e);S($e),S(Pe),O(dt=>ve(Ve,`${dt!=null?dt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Y,Pe)};V(Tt,Y=>{n(s).speed&&Y(Rt)})}var pt=k(Tt,2);{var Lt=Y=>{var Pe=b0(),le=k(C(Pe),2);dc(le,{get values(){return n(T)}});var $e=k(le,2),Ve=C($e);S($e),S(Pe),O(dt=>ve(Ve,`${dt!=null?dt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Y,Pe)};V(pt,Y=>{n(s).bitrate&&Y(Lt)})}var ti=k(pt,2),Mt=k(C(ti),2);dc(Mt,{get values(){return n(x)}});var Ft=k(Mt,2),qt=C(Ft,!0);S(Ft),S(ti),S(z),S(A),O(Y=>{var Pe,le;P=oe(A,1,"container s-o",null,P,Y),Re(A,"aria-label",R),ve(X,n(s).version),ve(At,`${(Pe=n(p))!=null?Pe:""} / ${(le=n(m))!=null?le:""} frames`),ve(qt,n(v))},[()=>({"container-mobile":r()})]),$(t,A),H(),o()}Ye(["click"]);var bb=require("@vkontakte/videoplayer-shared/es2015"),x0=(t,e)=>{t.stopPropagation(),e()()},w0=L('<div class="close s-10"></div>'),S0={hash:"s-10",code:'.close.s-10{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-10:hover{opacity:1}.close.s-10:after,.close.s-10:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-10:before{transform:rotate(45deg)}.close.s-10:after{transform:rotate(-45deg)}'};function Hs(t,e){B(e,!0),Q(t,S0);let i=h(e,"onClick",3,bb.noop);var o=w0();o.__click=[x0,i],$(t,o),H()}Ye(["click"]);var $b=require("@vkontakte/videoplayer-shared/es2015");var mn=t=>`width:${t}px;height:${t}px;`;var C0=Ie('<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 Dn(t,e){B(e,!0);let i=f(()=>mn(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();$(o,a)},$$slots:{default:!0}}),H()}var T0=L('<div class="timer s-1d"><canvas class="timer-canvas s-1d" width="100" height="100"></canvas> <!></div>'),I0={hash:"s-1d",code:".timer.s-1d{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-1d:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1d{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),Q(t,I0);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,$b.noop),r=5e3,a=q(void 0),l,d,s=0,u;Oe(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{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(p)):o()())};Dt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),fn(()=>{m()});var v=T0(),b=C(v);Xe(b,_=>N(a,_),()=>n(a));var y=k(b,2);Dn(y,{get size(){return"24"}}),S(v),$(t,v),H()}var E0=(t,e,i)=>{e(!1),i()},P0=L('<div class="overlay s-13"></div> <div class="next-video s-13"><div class="top s-13"><div class="caption s-13"> </div> <!></div> <div class="row s-13"><div class="column s-13"><div class="thumb s-13"><div></div> <!></div></div> <div class="column s-13"><div class="title s-13"> </div></div></div></div>',1),k0={hash:"s-13",code:".overlay.s-13{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-13{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-13{display:flex;justify-content:space-between}.caption.s-13{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-13{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-13{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-13{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-13,.thumb-overlay.s-13{height:100%;width:100%}.thumb-overlay.s-13{position:absolute}.thumb-overlay.withOpacity.s-13{background:var(--black);opacity:.3}.title.s-13{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function wm(t,e){B(e,!0),Q(t,k0);let[i,o]=De(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},_=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Me(),I=ue(x);{var T=R=>{var A=P0(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Hs(U,{onClick:_}),S(E);var X=k(E,2);X.__click=[E0,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{let pe=f(()=>a()&&r());uc(ge,{get isRunning(){return n(pe)},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),qe(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-13",null,J,pe),ve(Ce,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),$(R,A)};V(I,R=>{e.isHide||R(T)})}$(t,x),H(),o()}Ye(["click"]);var ma=require("@vkontakte/videoplayer-core/es2015"),yb=require("@vkontakte/videoplayer-shared/es2015"),On=require("@vkontakte/videoplayer-statistics/es2015");var Sm=(t,e)=>Math.min(+(t+e).toFixed(2),1),Cm=(t,e)=>Math.max(+(t-e).toFixed(2),0),sp=(t,e,i)=>{let o=Sm(e,i);e<1&&t.actions.internal.setVolume(o)},ap=(t,e,i)=>{let o=Cm(e,i);e>0&&t.actions.internal.setVolume(o)};var fa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function lp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var L0=(t,e)=>{e(t)},M0=L('<div class="keyboard-controls s-16" tabindex="-1" role="region"><!></div>'),V0={hash:"s-16",code:".keyboard-controls.s-16{bottom:0;left:0;position:absolute;right:0;top:0}"};function Tm(t,e){var Y,Pe;B(e,!0),Q(t,V0);let[i,o]=De(),r=()=>w(we,"$disabledControls$",i),a=()=>w(it,"$isInteractiveTime$",i),l=()=>w(ne,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(U,"$playbackState$",i),s=()=>w(D,"$isEnded$",i),u=()=>w(Qe,"$doubleForwardAvailable$",i),m=()=>w(pe,"$doubleForwardOn$",i),p=()=>w(Ge,"$overlayContainer$",i),v=()=>w(ae,"$adPlaybackState",i),b=()=>w(Z,"$positionExact$",i),y=()=>w(re,"$duration$",i),_=()=>w(xe,"$isAudioAvailable$",i),x=()=>w(J,"$volume$",i),I=()=>w(X,"$canChangePlaybackSpeed$",i),T=()=>w(me,"$muted$",i),R=()=>w(ee,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),P=h(e,"prevButtonActive",3,!1),E=be(),z=Ot(),F=E.getLogger().createComponentLog("KeyboardControls component"),U=E.state.playbackState$,X=E.state.canChangePlaybackSpeed$,ae=E.ads.playbackState,Z=E.state.positionExact$,re=E.state.duration$,J=E.state.volume$,we=E.ui.controls.disabledControls$,me=E.state.muted$,ee=E.state.currentSubtitle$,_e=E.ui.contextMenu.openedByHotKey$,Ce=E.ui.contextMenu.lastActiveElem$,ge=E.ui.contextMenu.visible$,pe=E.ui.doubleForwardOn$,Qe=E.ui.doubleForwardAvailable$,G=E.ui.contextMenu.position$,D=E.state.isEnded$,Ge=E.ui.overlayContainer$,K=(Y=E.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,se=(Pe=E.callbacks)==null?void 0:Pe.onAudioDisabledHint,xe=E.state.isAudioAvailable$,He=E.state.isAudioDisabled,it=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ne}=yo(),ce=0,Ne=!0,Le=q(void 0),et=le=>(le!==Ne&&(Ne=le,ce=0),ce+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*ce)/1e3),Ee=!0,Te=({type:le,repeat:$e,disableDoubleForward:Ve})=>{let dt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let fe="PLAY";d()===ma.PlaybackState.PAUSED?fe="PAUSE":s()&&(fe="REPLAY"),e.showHotKeyHelpers({type:fe})}},St=le==="down";if(!u()||Ve){St&&dt(),Ee=!0;return}if(St)Ee=!1;else if(Ee)return;if(St){!$e&&e.startDoubleForwardActivationTimer();return}m()||dt(),e.stopDoubleForward(),Ee=!0},Fe=le=>{let $e=_b(p());G.set($e),Ce.set(le.target),_e.set(!0),ge.set(!0)},At=(le,$e=!1)=>{var bo,vi;let Ve=le.target,dt=(bo=Ve==null?void 0:Ve.getAttribute("role"))==null?void 0:bo.includes("menuitem"),St=Ve.classList.contains("btn"),fe=le.code;if(St&&fe==="Space")return!1;let Be=__.has(fe);if(dt&&Be)return!1;let We=!h_.has(fe);if(le.ctrlKey&&We||le.altKey&&We||le.metaKey)return!1;let Ct=dt&&fe==="Escape";b_.has(fe)||Ct||e.hideContextMenu();let Xt=d()===ma.PlaybackState.PLAYING||d()===ma.PlaybackState.PAUSED,It=e.isAds&&(v()==="paused"||v()==="playing"),li=!It&&!r().has("TIMELINE"),fi=le.shiftKey&&["Digit1","Numpad1"].includes(fe);if(!fi&&!(Xt||It))return!1;F({message:`key down, code: ${fe}, isExternal = ${$e}`});let Bi=!1,Bt=()=>{Bi=!0,$e||le.preventDefault()};if(fi)return Fe(le),Bt(),!0;switch(fe){case"KeyJ":case"ArrowLeft":{if(!li)break;if(le.ctrlKey||le.altKey){let ot=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ot.text}),Bt()}else{let ot=le.shiftKey?et(!1):z.controls.seekStepKeyboard/1e3,Jt=Math.max(b()-ot,0);b()>0&&(E.actions.internal.seekTime(Jt,On.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ot.toString()}),Bt())}break}case"KeyL":case"ArrowRight":{if(!li)break;if(le.ctrlKey||le.altKey){let ot=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ot.text}),Bt()}else{let ot=le.shiftKey?et(!0):z.controls.seekStepKeyboard/1e3,Jt=Math.min(b()+ot,y());Math.round(b())<Math.round(y())&&(E.actions.internal.seekTime(Jt,On.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ot.toString()}),Bt())}break}case"ArrowUp":{if(fa({isAudioDisabled:He,audioDisabledHintCallback:se,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let ot=x(),Jt=z.controls.volumeStepKeyboard,Hi=ot<=1;if(sp(E,ot,Jt),Hi){let xi=Math.round(Sm(ot,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xi}})}}Bt();break}case"ArrowDown":{if(fa({isAudioDisabled:He,audioDisabledHintCallback:se,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let ot=x(),Jt=z.controls.volumeStepKeyboard,Hi=ot>=0;if(ap(E,ot,Jt),Hi){let xi=Math.round(Cm(ot,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:xi}})}}Bt();break}case"Comma":{if(le.shiftKey){if(!m()&&I()){let ot=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),Bt()}}else{if(It||d()!==ma.PlaybackState.PAUSED)break;let ot=Math.max(b()-z.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,On.SeekAction.DOUBLE_TAP),Bt())}break}case"Period":{if(le.shiftKey){if(!m()&&I()){let ot=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),Bt()}}else{if(It||d()!==ma.PlaybackState.PAUSED)break;let ot=Math.min(b()+z.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(ot,On.SeekAction.DOUBLE_TAP),Bt())}break}case"KeyK":case"Space":Te({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===fe}),Bt();break;case"KeyM":{fa({isAudioDisabled:He,audioDisabledHintCallback:se,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Bt();break}case"KeyF":e.toggleFullscreen(),Bt();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(vi=R())==null?void 0:vi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Bt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Bt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,On.SeekAction.DOUBLE_TAP),Bt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,On.SeekAction.DOUBLE_TAP),Bt();break;case"Slash":{le.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),Bt());break}case"KeyN":le.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Bt());break;case"KeyP":le.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),Bt());break;case"ShiftLeft":case"ShiftRight":Bt();break;case"Tab":case"Escape":case"Enter":break;default:(0,yb.checkNever)(fe);break}return Bi},Tt=le=>{let $e=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Ve=d()===ma.PlaybackState.PLAYING||d()===ma.PlaybackState.PAUSED,dt=e.isAds&&(v()==="paused"||v()==="playing");if(Ve||dt)switch($e){case"ShiftLeft":case"ShiftRight":ce=0;break;case"Space":Te({type:"up"});break}},Rt=j("aria_label_video_player"),pt=()=>{var le;return(le=n(Le))==null?void 0:le.focus()},Lt=()=>n(Le)===lp(),ti=le=>le.type==="keydown"?At(le,!0):(le.type==="keyup"&&Tt(le),!1);var Mt=M0();Mt.__keyup=Tt,Mt.__keydown=[L0,At];var Ft=C(Mt);si(Ft,()=>{var le;return(le=e.children)!=null?le:_t}),S(Mt),Xe(Mt,le=>N(Le,le),()=>n(Le)),O(()=>Re(Mt,"aria-label",Rt)),$(t,Mt);var qt=H({focus:pt,isFocused:Lt,handleExternalKeyboardEvent:ti});return o(),qt}Ye(["keyup","keydown"]);var R0=L('<div class="container s-q"><div class="dot s-q"></div> <div class="dot s-q"></div> <div class="dot s-q"></div></div>'),N0={hash:"s-q",code:".container.s-q{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-q:first-child{animation-delay:0s}.dot.s-q:nth-child(2){animation-delay:.18s}.dot.s-q:nth-child(3){animation-delay:.36s}@keyframes s-q-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-q{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-q-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-q+.dot:where(.s-q){margin-left:4px}"};function Xa(t,e){Q(t,N0);let i=h(e,"style",3,"");var o=R0();O(()=>qe(o,i())),$(t,o)}var D0=Ie('<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 Im(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=D0();$(i,r)},$$slots:{default:!0}})}var Za=require("@vkontakte/videoplayer-shared/es2015"),O0=t=>{t.stopPropagation()},B0=L("<button><!></button>"),H0={hash:"s-1q",code:"button.btn.s-1q{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-1q{width:100%}button.btn--live.s-1q{padding:10px 4px}button.btn-jc-l.s-1q{justify-content:left}button.btn-m.s-1q{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-1q,button.btn-m--play.s-1q{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1q{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1q,button.btn-m--prev.s-1q{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1q{right:calc(100% + 35px)}button.btn-m--next.s-1q{left:calc(100% + 35px)}button.btn.s-1q:disabled{cursor:default;pointer-events:none}button.btn.s-1q:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1q:not(:disabled):hover{opacity:.8}button.pr-0.s-1q{padding-right:0}button.pl-0.s-1q{padding-left:0}"};function Kt(t,e){B(e,!0),Q(t,H0);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),a=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),s=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),m=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,Za.noop),b=h(e,"focus",3,Za.noop),y=h(e,"blur",3,Za.noop),_=f(()=>v()===Za.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>b()===Za.noop?null:A=>{A.preventDefault(),b()()}),I=f(()=>y()===Za.noop?null:A=>{A.preventDefault(),y()()});var T=B0();T.__pointerdown=[O0],T.__click=function(...A){var P;(P=n(_))==null||P.apply(this,A)};var R=C(T);si(R,()=>{var A;return(A=e.children)!=null?A:_t}),S(T),Xe(T,A=>s(A),()=>s()),O(()=>{var A,P,E,z,F,U,X,ae;oe(T,1,`btn ${(A=i())!=null?A:""}`,"s-1q"),qe(T,o()||null),T.disabled=(P=r())!=null?P:null,Re(T,"aria-hidden",(E=l())!=null?E:null),Re(T,"aria-label",(z=d())!=null?z:null),Re(T,"aria-keyshortcuts",(F=u())!=null?F:null),Re(T,"aria-expanded",(U=m())!=null?U:null),Re(T,"data-testid",(X=a())!=null?X:null),Re(T,"tabindex",p()),Re(T,"role",e.role),Re(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),ut("focus",T,function(...A){var P;(P=n(x))==null||P.apply(this,A)}),ut("blur",T,function(...A){var P;(P=n(I))==null||P.apply(this,A)}),$(t,T),H()}Ye(["pointerdown","click"]);var F0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},U0=L('<div class="modal-header s-1j"><h3 class="modal-title s-1j"> </h3> <!></div>'),z0=L('<div class="modal-overlay s-1j"><div class="modal-container s-1j" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1j" tabindex="0" role="scrollbar"><div class="modal-main s-1j"><!></div></div></div></div>'),W0={hash:"s-1j",code:'.modal-overlay.s-1j{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-1j{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-1j{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-1j{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-1j{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1j::-webkit-scrollbar{width:8px}.modal-scroll.s-1j::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1j::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1j::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1j{margin:-8px -4px 0 0}'};function Em(t,e){B(e,!0),Q(t,W0);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=q(void 0),a=q(void 0),{webApi:{focusManager:l}}=be(),d=j("hotkey_map_modal_close_btn_text");Dt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=z0();s.__keydown=[F0,e];var u=C(s),m=C(u);{var p=_=>{var x=U0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);{var A=P=>{Kt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,z)=>{Im(E,{fill:"currentColor"})},$$slots:{default:!0}})};V(R,P=>{o()&&P(A)})}S(x),O(()=>ve(T,e.title)),$(_,x)};V(m,_=>{i()&&_(p)})}var v=k(m,2),b=C(v),y=C(b);si(y,()=>{var _;return(_=e.children)!=null?_:_t}),S(b),S(v),Xe(v,_=>N(r,_),()=>n(r)),S(u),Xe(u,_=>N(a,_),()=>n(a)),S(s),$(t,s),H()}Ye(["keydown"]);var K0=new Set(["BR"]),xb=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 q0=L('<li class="hot-key-map-item s-15"><span class="hot-key-map-item-description s-15"><!></span> &nbsp; <span class="hot-key-map-item-value s-15"> </span></li>'),Q0=L('<div class="hot-key-map-group s-15"><h5 class="hot-key-map-group-title s-15"> </h5> <ul class="hot-key-map-group-items s-15"></ul></div>'),G0=L('<div class="hot-key-map s-15"></div>'),Y0={hash:"s-15",code:'.hot-key-map.s-15{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-15{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-15:last-child{border-bottom:none}.hot-key-map-group-title.s-15{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-15,.hot-key-map-item.s-15{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-15{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-15{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-15{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-15{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-15,.hot-key-map-item-value.s-15{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Pm(t,e){B(e,!1),Q(t,Y0);let[i,o]=De(),r=()=>w(l,"$data",i),a=be(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};$o(),Em(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=G0();yi(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,_=()=>n(b).items;var x=Q0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);yi(R,5,_,({description:A,value:P})=>P,(A,P)=>{let E=()=>n(P).description,z=()=>n(P).value;var F=q0(),U=C(F),X=C(U);zd(X,()=>xb(E())),S(U);var ae=k(U,2),Z=C(ae,!0);S(ae),S(F),O(()=>ve(Z,z())),$(A,F)}),S(R),S(x),O(()=>ve(T,y())),$(v,x)}),S(p),$(u,p)},$$slots:{default:!0}}),H(),o()}var Cv=require("@vkontakte/videoplayer-shared/es2015");var rl=require("@vkontakte/videoplayer-core/es2015");var wb=require("@vkontakte/videoplayer-shared/es2015");var j0=L('<div class="pillow s-1y"><!></div>'),X0={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 km(t,e){Q(t,X0);var i=j0(),o=C(i);si(o,()=>{var r;return(r=e.children)!=null?r:_t}),S(i),O(()=>Re(i,"data-testid",e.testId)),$(t,i)}var ed=require("@vkontakte/videoplayer-shared/es2015");var Z0=Ie('<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 Am(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();no(o,()=>ke({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var J0=Ie('<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 Lm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=J0();no(o,()=>ke({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var ex=Ie('<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 Mm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=ex();no(o,()=>ke({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var tx=Ie('<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 Vm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=tx();no(o,()=>ke({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var ix=Ie('<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 Rm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=ix();no(o,()=>ke({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var dp=t=>{switch(t){case ed.VideoQuality.Q_720P:return Mm;case ed.VideoQuality.Q_1080P:return Vm;case ed.VideoQuality.Q_1440P:return Rm;case ed.VideoQuality.Q_2160P:return Am;case ed.VideoQuality.Q_4320P:return Lm}};var ox=Ie('<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 Nm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=ox();$(i,r)},$$slots:{default:!0}})}var nx=Ie('<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 Dm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=nx();$(i,r)},$$slots:{default:!0}})}var rx=L('<div aria-hidden="true"><!> <!></div>'),sx={hash:"s-1w",code:".icon.s-1w{display:flex;height:24px;position:relative;width:24px}.icon.s-1w .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1w .pillow{right:-13px}.icon.s-1w svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(t,e){B(e,!0),Q(t,sx);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,wb.getVideoQualityLabel)(o()):""),a=f(()=>dp(o())),l=f(()=>n(r).length>2);var d=Me(),s=ue(d);{var u=p=>{Nm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=rx();let b;var y=C(v);{var _=T=>{let R=f(()=>`${n(r)}-pill-icon`);km(T,{get testId(){return n(R)},children:(A,P)=>{var E=Me(),z=ue(E);Di(z,()=>n(a),(F,U)=>{U(F,{})}),$(A,E)},$$slots:{default:!0}})};V(y,T=>{n(a)&&T(_)})}var x=k(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Dm(x,{get testId(){return n(I)}}),S(v),O(T=>b=oe(v,1,"icon s-1w",null,b,T),[()=>({triple:n(l)})]),$(p,v)};V(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var ax=L('<span class="settings-icon-wrapper s-1z"><!></span>'),lx={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function td(t,e){B(e,!0),Q(t,lx);let[i,o]=De(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=be(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,b=d.ui.t,y=q(void 0);Oe(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let _=b("aria_label_settings");function x(T){return ht(this,null,function*(){let R=pa(T);r()?p():m(R,_o)})}let I=f(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){N(y,T,!0)},children:(T,R)=>{var A=ax(),P=C(A);pc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(T,A)},$$slots:{default:!0}}),H(),o()}var dx=Ie('<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),cx=Ie("<path></path>");function va(t,e){B(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>mn(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=Me(),d=ue(l);{var s=m=>{var p=dx();pi(),$(m,p)},u=m=>{var p=cx();O(()=>Re(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`)),$(m,p)};V(d,m=>{e.type==="off"?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}}),H()}function Dm(t,e){B(e,!0);let i=_(e,"isSubtitlesEnabled",3,!1),r=_e().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");ma(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var cx=L('<span class="duration s-1z" data-testid="video_duration"> </span>'),ux=L('<div><span class="current s-1z" data-testid="current_time"> </span> <!></div>'),px={hash:"s-1z",code:'.time.s-1z{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1z{padding:0 0 0 8px}.current.s-1z{position:relative}.duration.s-1z{opacity:.7}.duration.s-1z:before{content:" / ";white-space:pre}'};function fc(t,e){B(e,!0),G(t,px);let i=_(e,"isMobile",3,!1),o=_(e,"isHidden",3,!1),r=_(e,"showDuration",3,!0),a=_(e,"ref",15),l=Bt(),d=de(!1),s=f(()=>en(e.duration)),u=f(()=>en(e.position));var m=ux();let p;var v=T(m),b=T(v,!0);S(v);var y=P(v,2);{var g=w=>{var I=cx(),C=T(I,!0);S(I),O(()=>ve(C,n(s))),$(w,I)};V(y,w=>{r()&&w(g)})}S(m),Os(m,()=>Gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Ze(m,w=>a(w),()=>a()),O(w=>{p=ne(m,1,"time s-1z",null,p,w),ve(b,n(u))},[()=>({mobile:i()})]),$(t,m),H()}var vc=require("@vkontakte/videoplayer-shared/es2015");var fx=Ie('<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),mx=Ie("<path></path>"),vx=Ie('<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 va(t,e){B(e,!0);let i=_(e,"volume",3,1),o=_(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>mn(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";Je(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 p=vx(),v=P(ue(p));{var b=g=>{var w=fx();ui(),$(g,w)},y=g=>{var w=mx();O(()=>Ve(w,"d",`${d}${n(a)==="max"?s:""}`)),$(g,w)};V(v,g=>{n(a)==="off"?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var Oo=require("@vkontakte/videoplayer-shared/es2015");var cp=require("@vkontakte/videoplayer-shared/es2015");var wb=require("@vkontakte/videoplayer-shared/es2015");var gx=L('<div class="overlay"><!></div>');function Bm(t,e){B(e,!0);let[i,o]=Oe(),r=()=>x(l,"$overlayContainer$",i),l=_e().ui.overlayContainer$,d=q(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))};De(()=>{u(r())}),Dt(()=>(u(r()),()=>s(r())));var m=gx(),p=T(m);si(p,()=>{var v;return(v=e.children)!=null?v:ht}),S(m),Ze(m,v=>R(d,v),()=>n(d)),$(t,m),H(),o()}var hx=L('<div class="tooltip s-1p"><div class="content s-1p"> </div> <div class="tooltip-pointer s-1p"></div></div>'),_x=L("<div><!></div> <!>",1),bx={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 Za(t,e){B(e,!0),G(t,bx);let[i,o]=Oe(),r=()=>x(X,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=_(e,"isMobile",3,!1),d=_(e,"content",3,""),s=_(e,"active",15,!1),u=_(e,"translateX",3,0),m=_(e,"translateY",3,0),p=_(e,"isFullWidthWrapper",3,!1),v=_(e,"maxTooltipWidth",3,void 0),b=_(e,"placement",3,"top"),y=_(e,"onVisibilityChange",3,wb.noop),g=5,w=q(void 0),I=q(void 0),C,N=q(0),A=q(0),E=q(0),k=q(0),Q=Bt(),F=_e(),z=F.ui.playerSize,X=F.ui.overlayContainer$;De(()=>{Et(()=>{y()(s())})});let se=F.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(w))return;R(A,g);let re=r().getBoundingClientRect(),ce=n(w).getBoundingClientRect(),Ne=ce.width,Re=n(I).clientWidth,tt=a().width,Ee=(Ne-Re)/2,Te=ce.left+u()-re.left,Fe=Te+Ee,kt=ce.top+m()-re.top,Ct=Re/2-g,Rt=Fe<8,ct=Fe+Re>tt-8;Rt&&(Fe=8,Ct=Te+ce.width/2-2.5*g),ct&&(Fe=tt-8-Re,Ct=ce.left-re.left+ce.width/2-Fe-g),R(E,Fe,!0),R(k,kt),R(N,Ct,!0)},oe=()=>{!r()||!n(I)||!n(w)||R(A,-g)},J=()=>{if(!r()||!n(I)||!n(w))return;R(N,g);let re=r().getBoundingClientRect(),ce=n(w).getBoundingClientRect(),Ne=ce.height,Re=n(I).clientHeight,tt=(Ne-Re)/2+Re,Ee=ce.left+u()-re.left-n(I).clientWidth,Te=2,Fe=Ee-g;Fe<8&&(Fe=8);let Ct=ce.top+m()-re.top+tt,Rt=Te-tt/2,ct=Te-g;R(E,Fe,!0),R(k,Ct),R(A,Rt),R(N,ct)},Ce=()=>{!r()||!n(I)||!n(w)||R(N,-g)},me=()=>{switch(b()){case"top":Z();break;case"bottom":oe();break;case"left":J();break;default:Ce()}},ee=()=>{try{if(!r()||!n(w))return;me(),s(!0)}catch(re){se({message:String(re)})}},be=()=>{s(!1)},we=()=>{n(I)&&(C||(C=window.setTimeout(ee,Q.controls.hideTimeoutTooltips)),s()&&ee())},ge=()=>{be(),window.clearTimeout(C),C=void 0},pe=(re,ce,Ne)=>{let Re="";switch(b()){case"top":Re=`transform: translate(${re}px, ${ce}px);`;break;case"bottom":Re=`transform: translate(${re}px, ${ce}px); top: auto; bottom: 100%;`;break;case"left":Re=`transform: translate(${re}px, ${ce}px); left: 0; right: auto;`;break;default:Re=`transform: translate(${re}px, ${ce}px);`}return Re+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Re+=` opacity: ${Ne?1:0}; visibility: ${Ne?"visible":"hidden"}`,Re},Qe=(re,ce)=>{let Ne="";switch(b()){case"top":Ne=`transform: translate(${re}px, ${ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ne=`transform: translate(${re}px, ${ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ne=`transform: translate(${re}px, ${ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ne=`transform: translate(${re}px, ${ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ne},U=f(()=>pe(n(E),n(k),s())),D=f(()=>Qe(n(N),n(A)));Dt(me),fn(()=>window.clearTimeout(C));var Ge=_x(),K=ue(Ge);let ae;K.__pointermove=we,K.__pointerdown=ge,K.__pointerup=function(...re){var ce;(ce=e.disableMouseupTooltipShow?void 0:we)==null||ce.apply(this,re)};var xe=T(K);si(xe,()=>{var re;return(re=e.children)!=null?re:ht}),S(K),Ze(K,re=>R(w,re),()=>n(w));var He=P(K,2);{var ot=re=>{Bm(re,{children:(ce,Ne)=>{var Re=hx(),tt=T(Re),Ee=T(tt,!0);S(tt);var Te=P(tt,2);S(Re),Ze(Re,Fe=>R(I,Fe),()=>n(I)),O(()=>{Ke(Re,n(U)),ve(Ee,d()),Ke(Te,n(D))}),$(ce,Re)},$$slots:{default:!0}})};V(He,re=>{d()&&!l()&&re(ot)})}O(re=>ae=ne(K,1,"tooltip-wrapper s-1p",null,ae,re),[()=>({"full-width":p()})]),dt("pointerenter",K,we),dt("pointerleave",K,ge),$(t,Ge),H(),o()}Ye(["pointermove","pointerdown","pointerup"]);var Sb=t=>{t.stopPropagation()},$x=L("<div><!></div>"),yx={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 No(t,e){B(e,!0),G(t,yx);let[i,o]=Oe(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=_e(),d=yo(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=_(e,"className",3,""),v=_(e,"disabled",3,!1),b=_(e,"hasTooltip",3,!0),y=_(e,"ref",15,void 0),g=_(e,"width",15,void 0),w=_(e,"isFullWidthTooltip",3,!0),I=_(e,"tooltipContent",3,""),C=_(e,"tooltipVisible",3,!1),N=_(e,"tooltipPlacement",3,"top"),A=_(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=_(e,"isAriaHidden",3,!1),k=_(e,"onTooltipVisibilityChange",3,cp.noop),Q=_(e,"initialTranslateXPx",3,0),F=_(e,"initialTranslateYPx",19,()=>-18),z=_(e,"mouseEnter",3,cp.noop),X=_(e,"mouseLeave",3,cp.noop),se=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);De(()=>{C()||R(Z,!1)});var oe=$x();oe.__pointerdown=[Sb],oe.__click=[Sb];var J=T(oe);{var Ce=ee=>{Za(ee,{get content(){return n(se)},get translateX(){return Q()},get translateY(){return F()},get isFullWidthWrapper(){return w()},get placement(){return N()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(be){R(Z,be,!0)},children:(be,we)=>{var ge=Le(),pe=ue(ge);si(pe,()=>{var Qe;return(Qe=e.children)!=null?Qe:ht}),$(be,ge)},$$slots:{default:!0}})},me=ee=>{var be=Le(),we=ue(be);si(we,()=>{var ge;return(ge=e.children)!=null?ge:ht}),$(ee,be)};V(J,ee=>{b()&&n(se)&&!a()?ee(Ce):ee(me,!1)})}S(oe),Ze(oe,ee=>y(ee),()=>y()),O(()=>{var ee;ne(oe,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1j"),Ve(oe,"aria-hidden",E()||null)}),dt("mouseenter",oe,function(...ee){var be;(be=z())==null||be.apply(this,ee)}),dt("mouseleave",oe,function(...ee){var be;(be=X())==null||be.apply(this,ee)}),Rn(oe,"clientWidth",g),$(t,oe),H(),o()}Ye(["pointerdown","click"]);var xx=Ie('<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 mc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=xx(),l=ue(a),d=P(l);O(()=>{Ve(l,"fill",aa),Ve(l,"fill-opacity",e.completed?1:.24),Ve(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var wx=L("<div><!></div>"),Sx={hash:"s-17",code:".interactive-episode-icon.s-17{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-17{opacity:.4;pointer-events:none}"};function Hm(t,e){B(e,!0),G(t,Sx);let o=_e().ui.t,r=q(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));No(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=wx();let u;var m=T(s);let p=f(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),S(s),O(v=>{u=ne(s,1,"interactive-episode-icon s-17",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Rn(s,"clientWidth",v=>R(r,v)),$(l,s)},$$slots:{default:!0}}),H()}var Cx=L('<div><div class="video-episode-inner s-16"><div class="video-episode-loaded s-16"></div> <div></div></div></div>'),Tx=L('<div class="video-episodes-wrap s-16"></div>'),Ix={hash:"s-16",code:".video-episodes-wrap.s-16{height:100%;position:absolute;width:100%}.video-episode.s-16{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-16:first-child{padding-left:0}.video-episode.s-16:last-child{padding-right:0}.video-episode.s-16:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-16,.video-episode-inner.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-16{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-16:first-child .video-episode-inner:where(.s-16),.video-episode.s-16:last-child .video-episode-inner:where(.s-16){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-16{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-16{background-color:var(--slider-filled-bg)}"};function Fm(t,e){G(t,Ix);let i=_(e,"videoEpisodes",19,()=>[]);var o=Tx();wi(o,21,i,r=>r.from,(r,a)=>{var l=Cx();let d;var s=T(l),u=T(s),m=P(u,2);let p;S(s),S(l),O((v,b)=>{d=ne(l,1,"video-episode s-16",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ne(m,1,"video-episode-filled s-16",null,p,b),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(t,o)}function Ex(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&R(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;R(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function kx(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 Px(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;R(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Ax(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Lx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),R(r,!1),a()(l)}var Mx=L("<div></div>"),Vx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Rx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Nx={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 Ja(t,e){B(e,!0),G(t,Nx);let i=_(e,"ref",15,void 0),o=_(e,"className",3,""),r=_(e,"testId",3,void 0),a=_(e,"isHidden",3,!1),l=_(e,"isVertical",3,!1),d=_(e,"isActiveLive",3,!1),s=_(e,"isMobile",3,!1),u=_(e,"squareBorders",3,!1),m=_(e,"videoEpisodes",19,()=>[]),p=_(e,"withWheelHandler",3,!1),v=_(e,"isInteractive",3,!1),b=_(e,"disabled",3,!1),y=_(e,"hideHandel",3,!1),g=_(e,"onPointerDown",3,Oo.noop),w=_(e,"onHandleMove",3,Oo.noop),I=_(e,"onPointerUp",3,Oo.noop),C=_(e,"onPointerEnter",3,Oo.noop),N=_(e,"onPointerMove",3,Oo.noop),A=_(e,"onPointerLeave",3,Oo.noop),E=_(e,"onMouseEnter",3,Oo.noop),k=_(e,"onMouseLeave",3,Oo.noop),Q=_(e,"onWheelUp",3,Oo.noop),F=_(e,"onWheelDown",3,Oo.noop),z=_(e,"onWheelLeft",3,Oo.noop),X=_(e,"onWheelRight",3,Oo.noop),se=_(e,"onDisabledClick",3,Oo.noop),Z=_(e,"loadedProgress",3,0),oe=_(e,"filledProgress",3,0),J=_(e,"handleProgress",3,0),Ce=_(e,"ariaLabel",3,""),me=_(e,"ariaValueMin",3,void 0),ee=_(e,"ariaValueMax",3,void 0),be=_(e,"ariaValueNow",3,void 0),we=_(e,"ariaValueText",3,""),ge=_(e,"onContextMenu",3,Oo.noop),pe=_(e,"handleAlwaysVisible",3,!1),Qe=Bt(),U=q(void 0),D=q(!1),Ge=f(()=>{var ye;return(ye=ee())!=null?ye:0}),K=f(()=>{var ye;return(0,Oo.isNonNullable)(m())&&((ye=m()[m().length-1])==null?void 0:ye.time)<n(Ge)}),ae=f(()=>(0,Oo.isNonNullable)(m())&&m().length&&n(K)&&n(Ge)?tt(Z()*100,oe()*100):[]);function xe(ye){if(ye.preventDefault(),i()&&R(U,i().getBoundingClientRect(),!0),b())return;let Me=Ne(ye.clientX,ye.clientY),st=Re(ye.clientX);C()(Me,st,n(U).width)}function He(ye){ye.preventDefault(),!b()&&A()()}function ot(){E()()}function re(){k()()}function ce(ye){b()||p()&&(ye.preventDefault(),ye.deltaY<0?Q()():ye.deltaY>0?F()():ye.deltaX>0?X()():z()())}function Ne(ye,Me){return l()?Math.max(0,Math.min(1,(n(U).height-(Me-n(U).top))/n(U).height)):Math.min(Math.max(ye-n(U).x,0),n(U).width)/n(U).width}function Re(ye){return Math.min(Math.max(ye-n(U).x,0),n(U).width)}function tt(ye,Me){let st=Qe.features.episodesClustering&&!v()?Qe.episodeMinWidthPc:0,Lt=[],fe=m()[0].time/n(Ge)*100,Be=0,We=0;for(let Mt=1;Mt<m().length;Mt++)Be=m()[Mt].time/n(Ge)*100,Be-fe>st&&(Lt.push({from:fe,width:Math.max(0,Be-fe),loadedWidth:Math.max(0,Math.min(Be,ye)-fe),filledWidth:Math.max(0,Math.min(Be,Me)-fe),interactive:m()[Mt-1].interactive,completed:m()[Mt-1].completed}),fe=m()[Mt].time/n(Ge)*100,We++);let wt={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(ye,100)-fe),filledWidth:Math.max(0,Math.min(Me,100)-fe),interactive:m()[We].interactive,completed:m()[We].completed};100-fe<st?(We-=1,Lt[We].width+=100-fe,Lt[We].loadedWidth+=Math.max(0,Math.min(ye,100)-fe),Lt[We].filledWidth+=Math.max(0,Math.min(Me,100)-fe)):Lt[We]=wt;let Qt=m()[0].time;if(Qt!==0){let Mt=Qt/n(Ge)*100;Lt.unshift({from:0,width:Mt,loadedWidth:Math.min(Mt,ye),filledWidth:Math.min(Mt,Me)})}return Lt}function Ee(ye){return Math.max(0,Math.min(100,ye*100))}let Te=f(()=>Ee(Z())),Fe=f(()=>Ee(oe()));var kt=Rx(),Ct=ue(kt);{var Rt=ye=>{var Me=Mx();let st;wi(Me,21,()=>n(ae),Lt=>Lt.from,(Lt,fe)=>{var Be=Le(),We=ue(Be);{var wt=Qt=>{Hm(Qt,{get videoEpisode(){return n(fe)},get disabled(){return b()}})};V(We,Qt=>{n(fe).interactive&&Qt(wt)})}$(Lt,Be)}),S(Me),O(Lt=>st=ne(Me,1,"interactive-icons s-h",null,st,Lt),[()=>({mobile:s(),hidden:s()&&!n(D)})]),$(ye,Me)};V(Ct,ye=>{v()&&ye(Rt)})}var ct=P(Ct,2);let Pt;ct.__pointerdown=[Ex,i,U,b,D,Ne,g],ct.__pointermove=[kx,b,Ne,Re,N,U,D,w],ct.__pointerup=[Px,b,D,Ne,I],ct.__click=[Ax,b,se,Ne],ct.__contextmenu=[Lx,Ne,b,se,D,ge];var ti=T(ct);{var At=ye=>{Fm(ye,{get videoEpisodes(){return n(ae)},get disabled(){return b()},get isMobile(){return s()}})},Ft=ye=>{var Me=Vx(),st=T(Me),Lt=P(st,2);let fe;S(Me),O(Be=>{Ve(st,"data-value",n(Te)),Ke(st,`transform: translateX(${n(Te)}%);`),fe=ne(Lt,1,"filled s-h",null,fe,Be),Ve(Lt,"data-value",n(Fe)),Ke(Lt,`transform: translateX(${n(Fe)}%);`)},[()=>({"active-live":d()})]),$(ye,Me)};V(ti,ye=>{n(ae).length?ye(At):ye(Ft,!1)})}var qt=P(ti,2);let Y;var ke=T(qt);let le;S(qt),S(ct),Ze(ct,ye=>i(ye),()=>i()),O((ye,Me,st,Lt)=>{var fe,Be;Pt=ne(ct,1,`slider ${(fe=o())!=null?fe:""}`,"s-h",Pt,ye),Ve(ct,"aria-label",Ce()),Ve(ct,"aria-valuemin",me()),Ve(ct,"aria-valuemax",ee()),Ve(ct,"aria-valuenow",be()),Ve(ct,"aria-valuetext",we()),Ve(ct,"data-testid",(Be=r())!=null?Be:null),Y=ne(qt,1,"handleWrap s-h",null,Y,Me),Ke(qt,st),le=ne(ke,1,"handle s-h",null,le,Lt)},[()=>({disabled:b(),"slider-dragging":n(D),hidden:a(),"handle-always-visible":pe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ee(J())}%);`,()=>({"active-live":d()})]),dt("pointerenter",ct,xe),dt("pointerleave",ct,He),dt("mouseenter",ct,ot),dt("mouseleave",ct,re),dt("wheel",ct,ce),$(t,kt),H()}Ye(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ro=(t,e)=>Xd[t]>=Xd[e];var Hs=(t,e)=>Xd[t]<=Xd[e],Cb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Dx=L("<div><!></div>"),Bx=L("<div><!> <!></div>"),Hx={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 Um(t,e){var Re,tt;B(e,!0),G(t,Hx);let[i,o]=Oe(),r=()=>x(N,"$isAudioAvailable$",i),a=()=>x(v,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(w,"$currentGridType$",i),s=()=>x(xe,"$controlsVisible",i),u=_e(),m=Bt(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:g}=u.actions.internal,w=u.ui.currentGridType$,I=(Re=u.callbacks)==null?void 0:Re.onAudioDoesNotExistHint,C=(tt=u.callbacks)==null?void 0:tt.onAudioDisabledHint,N=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,k=q(!1),Q,F=f(()=>e.isAds||r()),z=f(()=>!n(F)||a()||l()===0),X=f(()=>Hs(d(),"l")),se=f(()=>n(X)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),Z=f(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=f(()=>n(z)?0:l()),J=!1,Ce=f(()=>e.isAds?!1:A?!C:r()?!1:!I);function me(Ee){y(),b(Ee)}function ee(){sp(u,l(),m.controls.volumeStepWheel)}function be(){ap(u,l(),m.controls.volumeStepWheel)}function we(Ee){b(Ee)}function ge(Ee){b(Ee),g()}function pe(){J=!0}function Qe(){J=!1,Ge()}function U(){clearTimeout(Q),R(k,!0)}function D(){Ge()}function Ge(){Q=window.setTimeout(()=>{J||R(k,!1)},m.controls.volumeBarTimeout)}function K(Ee){Ee.preventDefault(),Ee.deltaY<0?ee():Ee.deltaY>0&&be()}let ae=q(!1),xe=u.ui.controlsVisible;De(()=>{s()||R(ae,!1)});var He=Bx();let ot;var re=T(He);Za(re,{get content(){return n(se)},translateY:-18,get active(){return n(ae)},set active(Ee){R(ae,Ee,!0)},children:(Ee,Te)=>{let Fe=f(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Kt(Ee,{className:"btn-full-opacity",get disabled(){return n(Ce)},get testId(){return n(Fe)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyM},role:"button",children:(kt,Ct)=>{va(kt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ce=P(re,2);{var Ne=Ee=>{var Te=Dx();let Fe;var kt=T(Te);let Ct=f(()=>n(X)?"volumeBar-slider-vertical":""),Rt=f(()=>n(X)&&!n(k)),ct=f(()=>n(X)?pe:vc.noop),Pt=f(()=>n(X)?Qe:vc.noop),ti=f(()=>Math.round(n(oe)*100)),At=f(()=>`${Math.round(n(oe)*100)}%`),Ft=f(()=>n(X)?"volume-slider-vertical":"volume-slider");Ja(kt,{get className(){return n(Ct)},get isHidden(){return n(Rt)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:be,onPointerDown:me,onHandleMove:we,onPointerUp:ge,get onPointerEnter(){return n(ct)},get onPointerLeave(){return n(Pt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(At)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Ft)}}),S(Te),O(qt=>Fe=ne(Te,1,"volumeBar s-28",null,Fe,qt),[()=>({"volumeBar-vertical":n(X)})]),$(Ee,Te)};V(ce,Ee=>{n(F)&&Ee(Ne)})}S(He),O(Ee=>ot=ne(He,1,"volumeBar-container s-28",null,ot,Ee),[()=>({vertical:n(X)})]),dt("mouseenter",He,function(...Ee){var Te;(Te=n(X)?U:vc.noop)==null||Te.apply(this,Ee)}),dt("mouseleave",He,function(...Ee){var Te;(Te=n(X)?D:vc.noop)==null||Te.apply(this,Ee)}),dt("wheel",He,K),$(t,He),H(),o()}var Tb=require("@vkontakte/videoplayer-shared/es2015");var Fx=Ie('<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>'),Ux=Ie('<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 zm(t,e){let i=_(e,"isFullscreen",8,!1),o=Pn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=ue(l);{var s=m=>{var p=Fx();$(m,p)},u=m=>{var p=Ux();$(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=_(e,"isFullscreen",3,!1),o=_(e,"click",3,Tb.noop),r=_e(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Kt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ua(u);a.set(m),o()()},get ariaKeyShortCut(){return bs.KeyF},role:"button",children:(u,m)=>{zm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var zx=Ie('<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 Wm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=zx();no(o,()=>Pe({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=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(),S(o),$(t,o)}var Wx=Ie('<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 Km(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Wx();no(o,()=>Pe({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=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),ui(6),S(o),$(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 qm(t,e){B(e,!0),G(t,Kx);let i=_(e,"short",3,!1),o=_(e,"isCyrillic",3,!0),r=_(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Km(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function hc(t,e){B(e,!0);let[i,o]=Oe(),r=()=>x(b,"$isMobile",i),a=()=>x(v,"$currentGridType$",i),l=()=>x(g,"$isCyrillicRelatedInterface$",i),d=_(e,"ref",15,void 0),s=_(e,"logoClickable",3,!1),u=_(e,"targetUrl",3,""),m=Bt(),p=_e(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,g=p.isCyrillicRelatedInterface$,w=f(()=>m.logoType!=="vk"),I=f(()=>n(w)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),C=f(()=>(r()&&Hs(a(),"m")||Hs(a(),"l"))&&n(w)),N=()=>{var k,Q;e.click(),(k=p.callbacks)!=null&&k.onLogoClicked?(Q=p.callbacks)==null||Q.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),E=f(()=>n(w)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:N,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(k){d(k)},children:(k,Q)=>{var F=Le(),z=ue(F);{var X=Z=>{qm(Z,{get logo(){return m.logoType},get short(){return n(C)},get isCyrillic(){return l()}})},se=Z=>{Wm(Z,{})};V(z,Z=>{n(w)?Z(X):Z(se,!1)})}$(k,F)},$$slots:{default:!0}}),H(),o()}var Eb=require("@vkontakte/videoplayer-core/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var qx=Ie('<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-1a"></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-1a"></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-1a"></path>',1),Qx=Ie('<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),Gx={hash:"s-1a",code:".animated.s-1a{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1a{animation-name:s-1a-wave1}.wave2.animated.s-1a{animation-name:s-1a-wave2}.wave3.animated.s-1a{animation-name:s-1a-wave3}@keyframes s-1a-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(t,e){B(e,!0),G(t,Gx);let i=_(e,"isMobile",3,!1),o=f(()=>e.iconState===Qm.ChromecastState.CONNECTED),r=f(()=>e.iconState===Qm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":aa),l=f(()=>e.size?mn(e.size):void 0);var d=Le(),s=ue(d);{var u=p=>{Je(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=qx();ui(2),$(v,y)},$$slots:{default:!0}})},m=p=>{Je(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=Qx(),g=ue(y);let w;var I=P(g);let C;var N=P(I);let A;var E=P(N);let k;var Q=P(E);let F;O((z,X,se,Z,oe)=>{w=ne(g,0,"wave2 s-1a",null,w,z),C=ne(I,0,"wave3 s-1a",null,C,X),A=ne(N,0,"wave1 s-1a",null,A,se),k=ne(E,0,"s-1a",null,k,Z),F=ne(Q,0,"s-1a",null,F,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};V(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var kb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=_(e,"ref",15,void 0),o=_(e,"isMobile",3,!1),r=_(e,"click",3,kb.noop),l=_e().ui.t,d=f(()=>e.state===Eb.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)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var Pb=require("@vkontakte/videoplayer-shared/es2015");var Yx=Ie('<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 Gm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Yx();ui(2),$(e,o)},$$slots:{default:!0}})}var up=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var jx=L('<span class="text mobile s-27"> </span> <div class="chevron-episodes s-27" data-testid="btn-episodes_icon"><!></div>',1),Xx=L('<span class="text s-27"> </span>'),Zx=L('<span class="text count s-27"> </span>'),Jx=L('<span class="icon s-27"><!></span> <!>',1),e2={hash:"s-27",code:".icon.s-27{flex-shrink:0}.text.s-27{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-27{overflow:visible}.text.mobile.s-27{padding:0 3px 0 4px}.chevron-episodes.s-27{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(t,e){var J,Ce,me;B(e,!0),G(t,e2);let[i,o]=Oe(),r=()=>x(y,"$currentGridType$",i),a=()=>x(g,"$openedByKeyboard$",i),l=()=>x(w,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),s=_(e,"position",3,0),u=_(e,"duration",3,0),m=_(e,"timeCodes",19,()=>[]),p=_e(),v=(Ce=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?Ce:Pb.noop,b=!!((me=p.callbacks)!=null&&me.onEpisodeClicked),y=p.ui.currentGridType$,g=p.ui.episodes.openedByKeyboard$,w=p.ui.episodes.panelOpened$,I=p.ui.isMobile,C=p.ui.t,N=q(void 0),A=ee=>{var we,ge,pe;if(!!((we=p.callbacks)!=null&&we.onEpisodeClicked)){let Qe=ua(ee);g.set(Qe),w.set(!0),(pe=(ge=p.callbacks)==null?void 0:ge.onEpisodeClicked)==null||pe.call(ge,Qe)}},E=q(null),k=f(()=>s()/u());De(()=>{var be;let ee=up(n(k),u(),m());ee?((be=n(E))==null?void 0:be.time)!==ee.time&&(v(ee),R(E,ee,!0)):R(E,null)});let Q=f(()=>{var ee;return((ee=n(E))==null?void 0:ee.text)||""}),F=f(()=>ro(r(),"xl")?"FULL":ro(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${C("tooltip_episodes")}: ${n(Q)}`),X=(ee,be,we)=>gt(null,null,function*(){yield _o(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&be&&!we&&Et(()=>{g.set(!1),ee.focus()})});De(()=>{X(n(N),a(),l())});var se=Le(),Z=ue(se);{var oe=ee=>{let be=f(()=>d()?"px-0":""),we=f(()=>!b);Kt(ee,{get className(){var ge;return`w-max btn-full-opacity btn-jc-l ${(ge=n(be))!=null?ge:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(ge){R(N,ge,!0)},children:(ge,pe)=>{var Qe=Le(),U=ue(Qe);{var D=K=>{var ae=jx(),xe=ue(ae),He=T(xe,!0);S(xe);var ot=P(xe,2),re=T(ot);Nr(re,{direction:"right"}),S(ot),O(()=>ve(He,n(Q))),$(K,ae)},Ge=K=>{var ae=Jx(),xe=ue(ae),He=T(xe);Gm(He,{}),S(xe);var ot=P(xe,2);{var re=Ne=>{var Re=Xx(),tt=T(Re,!0);S(Re),O(()=>ve(tt,n(Q))),$(Ne,Re)},ce=(Ne,Re)=>{{var tt=Ee=>{var Te=Zx(),Fe=T(Te,!0);S(Te),O(()=>ve(Fe,m().length)),$(Ee,Te)};V(Ne,Ee=>{n(F)==="COUNT"&&Ee(tt)},Re)}};V(ot,Ne=>{n(F)==="FULL"?Ne(re):Ne(ce,!1)})}$(K,ae)};V(U,K=>{d()?K(D):K(Ge,!1)})}$(ge,Qe)},$$slots:{default:!0}})};V(Z,ee=>{n(E)&&ee(oe)})}$(t,se),H(),o()}var gv=require("@vkontakte/videoplayer-shared/es2015");var bi=require("@vkontakte/videoplayer-core/es2015"),at=require("@vkontakte/videoplayer-shared/es2015"),ys=require("@vkontakte/videoplayer-statistics/es2015");var qe=require("@vkontakte/videoplayer-shared/es2015"),so=require("@vkontakte/videoplayer-shared/es2015");var t2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",pp=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 so.Subject,loadStarted$:new so.Subject,loadEnded$:new so.Subject,loadError$:new so.Subject,ready$:new so.Subject,slotRequested$:new so.Subject,started$:new so.Subject,timeRemained$:new so.Subject,paused$:new so.Subject,resumed$:new so.Subject,ended$:new so.Subject,empty$:new so.Subject,skipped$:new so.Subject,clicked$:new so.Subject,closed$:new so.Subject,error$:new so.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,so.addScript)(t2,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?$e(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")}initAdman(e){return gt(this,null,function*(){var N,A;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:p}=e;this.externalApi=p;let v,b=this.playerState&&$e(this.playerState.vsid);b&&(this.isVsidOriginal?v=b:v=parseInt(b,36));let{isEmbed:y,immediateOrigin:g}=(0,qe.detectEmbed)(),w=(N=y?g:window.location.href)!=null?N:window.location.href,I=Pe(Yt(Pe(Yt(Pe({},s),{dl:encodeURIComponent(w),autoplay:r?1:0,player_width:i,player_height:o}),v?{request_id:v}:{}),{duration:m}),u);I=Object.fromEntries(Object.entries(I).filter(([E,k])=>(0,qe.isNonNullable)(k)));let C={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),(A=this.externalApi)!=null&&A.videoGetAds){let k=yield this.safeExternalCall(this.externalApi.videoGetAds,I);k&&(delete C.slot,delete C.params,Object.assign(C,{json:k}))}E.init(C),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}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=$e(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,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),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,so.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return gt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Ab=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 Ym=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 fp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new jm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},fp=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}},jm=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,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new fp;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}},Lb=Ym;var vp=require("@vkontakte/videoplayer-shared/es2015"),el,Li,Xm=0,Zm=!1,Mb="",Vb=(t,e=0,i=0)=>t<e&&t<i,mp=(t,e=0,i=0)=>t>=e&&t<=i,i2=(t,e=0,i=0)=>t>e&&t>i,Rb=(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})=>mp(t,u,m));let a=t>=Xm,l=t<Xm;if(Xm=t,l&&(Zm=!1),(0,vp.isNonNullable)(el)&&mp(t,el.startTime,el.endTime)&&Mb===e.value)return el;if(!(0,vp.isNonNullable)(Li)&&(r!=null&&r.length)&&!Zm){Li=r.find(({startTime:u,endTime:m})=>mp(t,u,m)||a&&Vb(t,u,m)),el=void 0,!(0,vp.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(Zm=!0);return}else{if(mp(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return el=Li,Li=void 0,Mb=e.value,el;(a&&i2(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&Vb(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var gp={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"},o2={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"},yc=t=>{var e,i;return(i=(e=gp[t])!=null?e:gp[o2[t]])!=null?i:void 0};var Nb=require("@vkontakte/videoplayer-shared/es2015"),ZB=require("@vkontakte/videoplayer-statistics/es2015"),hp=class{constructor(e,i,o,r=new Nb.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 xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var $s=t=>t!=null?t:0,Fs=(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($s(i==null?void 0:i.top)-$s(o==null?void 0:o.top)),left:Math.round($s(i==null?void 0:i.left)-$s(o==null?void 0:o.left)),bottom:Math.round($s(i==null?void 0:i.bottom)-$s(o==null?void 0:o.top)),right:Math.round($s(i==null?void 0:i.right)-$s(o==null?void 0:o.left))}},id=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:$s(e==null?void 0:e.width),height:$s(e==null?void 0:e.height)}};var Bn="off";var od=t=>!!(Math.round(Math.abs(t)/90)%2);var Ob=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:b,player:y,disabledControls:g,isInteractive:w,interactiveRanges$:I,isInteractiveTime$:C,replayInteractive:N,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,additionalButtons:Q,additionalSettingsMenuItems:F,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:se,onVideoChanged:Z,looped:oe=!1,statistics:J,saveRate:Ce,internalsExposure:me,playerView:ee,playerId:be,metaConfig:we})=>{var Cg,Tg;let ge=Yt(Pe({},b),{isAudioDisabled:l,live:Yt(Pe({},(Cg=b.live)!=null?Cg:{}),{isLiveCatchUpMode:!!r})}),pe=v,Qe=at.TracerFactory.createRootTracer(pe.features.tracer),U=Qe.createComponentTracer("Store"),D=y||new bi.Player(ge,Qe,{playerId:be,onDevNullLog:s==null?void 0:s.onDevNullLog});me==null||me.expose({corePlayer:D});let Ge=new at.Logger,K=new pp(Ge,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),ae=Wa.getInstance(),xe=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,ot=u==null?void 0:u.slotsApi,re=u==null?void 0:u.focusManager,ce=Ge.createComponentLog("Store"),Ne,Re,tt={},Ee=new Fu,Te=new at.Subscription,Fe="",kt=de(!1),Ct=J&&J.oneStat?ai(J.oneStat.vsid$):Rr(void 0),Rt=de(la()),ct=de(!1),Pt=()=>nb(document,bi.clientChecker.device.isIOS),ti=(Tg=xe==null?void 0:xe.info.isActive$)!=null?Tg:new at.ValueSubject(!1),At=de(0),Ft=de(!1),qt=de(!1),Y=de([]),ke=(0,at.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>Y.update(h=>[...h,c])),le=Rr(!1,c=>{let h=D.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),ye=c=>gt(null,null,function*(){var ie;let h=Object.values(at.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(h&&pe.updateBuiltinLanguages||!dm(c))){let Se;try{Se=yield(0,at.loadVKLangPack)(c,v_,g_)}catch(Xe){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ae==null||ae.report(Xe,{errorType:"VKLangPack",fatal:!1})}Se&&(lm({language:c,pack:Se,fallback:pe.defaultLanguage}),Me.set(c),st.update(Xe=>Xe+1))}dm(c)&&Me.set(c)}),Me=de(t),st=de(0),Lt=de(e);ye(t);let fe=(c,h)=>{let M=$e(Me);return cm(M,c,h,pe.defaultLanguage)},Be=de("thumb");Be.subscribe(c=>{c==="ads"&&D.info.playbackState$.getValue()&&Qt()});let We=(()=>{let c=hi([le,Be],([h,M])=>h?"crashed":M);return Yt(Pe({},c),{is:h=>$e(c)===h})})(),wt=de(),Qt=()=>{wt.set({muted:D.info.muted$.getValue()})},Mt=(()=>{let c=de(new Set(g));return Yt(Pe({},c),{add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let ie=[...M];return new Set(Array.isArray(h)?ie.filter(Se=>!h.includes(Se)):ie.filter(Se=>Se!==h))})},includes:h=>{let M=$e(c);return Array.isArray(h)?h.every(ie=>M.has(ie)):M.has(h)}})})(),mi=de({width:0,height:0}),pi=null,Bi=D.info.isBuffering$,Nt=Rr(Bi.getValue(),c=>{let h=Bi.subscribe(M=>{M&&pi===null?pi=window.setTimeout(()=>{c(Bi.getValue()),pi=null},pe.loaderDelay):c(M)});return()=>{h.unsubscribe(),pi&&clearTimeout(pi)}});U.log("create store"),ce({message:"create store"});let vi=c=>{let h=c.container,M=()=>{_t=new MutationObserver(Se=>{let{removedNodes:Xe}=Se[0];Xe.length&&h.append(D.experimental.element$.getValue())}),_t.observe(h,{childList:!0})},ie=D.experimental.element$.getValue();if(ie)h.append(ie),M();else{let Se=D.experimental.element$.pipe((0,at.filter)(Xe=>!!Xe),(0,at.once)()).subscribe(Xe=>{h.append(Xe),M()});Te.add(Se)}},xi=c=>{ce({message:`init video, config: ${JSON.stringify(c)}`}),w?vi(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),D.initVideo(c)),U.log("init video",{isInteractive:w}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Ne=c,Fe=c.subtitlesForcedLanguage||""},mt=new at.Subject,Jt=c=>mt.next(c),Hi=new at.Subject,Si=new at.Subject,ri=new at.Subject,_t=null,je={actionRewind$:Hi,actionSeek$:Si,inPiP$:ti,inFullscreen$:new at.Observable(c=>Rt.subscribe(h=>c.next(h))),actionSetSubtitle$:ri,nextMovie$:mt},gi=new at.Subject,bo=new at.Subject,tn={actionSeek$:Si,actionSubtitlesSwitched$:gi,actionQuality$:bo,playerSize$:new at.Observable(c=>mi.subscribe(h=>c.next(h))),inPiP$:ti,inFullscreen$:new at.Observable(c=>Rt.subscribe(h=>c.next(h))),isLoaderVisible$:new at.Observable(c=>Nt.subscribe(h=>c.next(h)))};if(J){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:ie}=J;c&&(w||ie.add(c.attachTo(D)),ie.add(c.attachToUi(je)),ie.add(c.attachToAds(K.events)),c.authorize(a).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(D)),h&&(ie.add(h.attachTo(D,K.events)),ie.add(h.attachToUi(tn)),ie.add(h.attachToAds(K.events)),h.updateContext({isMobile:$e(kt)}),h.authorize(a))}if(ae){let c=new at.Subscription,h=(M,ie)=>c.add(M.subscribe(ie));if(h(D.events.managedError$,M=>{ae.logIError(M)}),h(D.events.fatalError$,M=>{ae.logIError(M,!0)}),J){let{oneStat:M}=J;M&&h(M.experimental.error$,ie=>{ae.logIError(ie)})}ae.sentrySubscription.add(c)}let on=()=>{if(bi.clientChecker.device.isIOS&&Re)try{rb(Re)}catch(c){ce({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(D.experimental.element$.subscribe(c=>{c&&(Re=c,c.classList.add("player-media"),qa(xe)&&xe.updateVideoElement(),w&&c.setAttribute("pip","false"),(ee==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;on(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(D.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(D.events.started$.subscribe(()=>gt(null,null,function*(){var h,M;qa(xe)&&(yield xe==null?void 0:xe.revealPictureInPicture());let c=D.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(M=tt.onStarted)==null||M.call(tt,c)}))).add(D.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,h)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(D.info.position$.subscribe(c=>{var M;let h=D.info.duration$.getValue();isFinite(h)&&h>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,h,c),K.setPosition(c,h))})).add(D.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(D.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(D.events.loadedMetadata$.subscribe(()=>{Ft.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(D.info.isEnded$.subscribe(c=>{w&&(c?(C!=null&&C.getValue()&&Mt.add(jd),Mt.add("PLAY_BUTTON")):Mt.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(D.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(K.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(K.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(K.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(K.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(K.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(K.events.started$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(K.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(K.events.ended$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(K.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(K.events.clicked$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(K.events.closed$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(K.events.error$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(K.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(K.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 St=new at.Subscription,Ut=()=>{var Xe,Vt,zt;let{debugLog:c}=pe,h,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:jt}=c;h=c.tag,M=(Xe=jt==null?void 0:jt[0])!=null?Xe:M,ie=(zt=(Vt=jt==null?void 0:jt[1])!=null?Vt:jt==null?void 0:jt[0])!=null?zt:ie}let Se=h?`: ${h}`:"";St.add(D.events.log$.subscribe(jt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${jt.component}`,jt.message)})).add(Ge.log$.subscribe(jt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${jt.component}.`,jt.message)}))},W=()=>{St.unsubscribe()},Ot=(c,h)=>{U.log("start camera manual rotation",{mx:c,my:h}),D.startCameraManualRotation(c,h)},li=(c=!1)=>{U.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},vt=(c,h,M)=>{U.log("move camera focus px",{xpx:c,ypx:h,dt:M}),D.moveCameraFocusPX(c,h,M)},ii=()=>{D.holdCamera()},bt=()=>{D.releaseCamera()},rt=Rr(D.info.position$.getValue(),c=>{let h,M,ie=()=>{let Se=D.info.playbackState$.getValue(),Xe=D.info.isLive$.getValue(),Vt=D.info.duration$.getValue(),zt=D.info.position$.getValue();if(Se&&[bi.PlaybackState.PLAYING,bi.PlaybackState.PAUSED].includes(Se)){let jt=Xe?zt-Vt:D.getExactTime();jt!==M&&c(jt),M=jt}h=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(h)}),Fi=ai(D.info.playbackState$),Mi=ai(D.info.isBuffering$),gn=hi([Fi,Mi],([c,h])=>h?"buffering":c),hn=ai(D.info.currentBuffer$),Vi=ai(D.info.isEnded$),Ui=ai(D.info.isLive$),Hn=pe.features.playbackRate?ai(D.info.canChangePlaybackSpeed$):Rr(!1),xo=ai(D.info.liveBufferTime$),lo=ai(D.info.volume$),Ai=ai(D.info.muted$),Do=Uu(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===bi.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.TRAFFIC_SAVING),Bo=Uu(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===bi.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.HIGH_QUALITY),_n=ai(D.info.autoQualityLimitingAvailable$),Dr=ai(D.info.availableQualities$),Br=ai(D.info.availableQualitiesFps$),Hr=ai(D.info.chromecastState$),ws=ai(D.info.chromecastDeviceName$),Fr=ai(D.info.currentFormat$),nr=ai(D.info.throughputEstimation$),Ur=ai(D.info.videoBitrate$),bn=ai(D.info.intrinsicVideoSize$),$n=ai(D.info.duration$),_r=ai(D.info.isAudioAvailable$),br=()=>{pi&&clearTimeout(pi),pi=null},nn=hi([$n,Ui],([c,h])=>h?-c:c),$r=hi([Fi],([c])=>c===bi.PlaybackState.PLAYING),yr=ai(D.info.atLiveEdge$),rr=ai(D.info.atLiveDurationEdge$),Fn=ai(D.info.position$),cs=hi([Fn,$n],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Ho=hi([Hr],([c])=>c===bi.ChromecastState.CONNECTED),xr=ai(D.info.availableVideoStreams$),zi=pe.features.audioLanguages?ai(D.info.availableAudioStreams$):Rr([]),wr=ai(D.info.currentVideoStream$),Un=ai(D.info.currentAudioStream$),ft=c=>{c.language&&nm(c.language),D.setVideoStream(c)},oi=(c,h)=>{D.setAudioStream(c),Uo(h)&&(c.language&&nm(c.language),pe.features.userVideoPrefs&&i&&am(pe.userSalt,String(i),{audioTrackId:c.id}))},Sr=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ie=>"isDefault"in ie&&ie.isDefault)),pe.features.userVideoPrefs&&i){let ie=Qu(pe.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(Xe=>Xe.id===ie.audioTrackId);h=Se!=null?Se:h}}let M=z_();return M&&(h!=null||(h=c.find(({language:ie})=>M===ie))),h!=null||(h=c.at(0)),h},zr=c=>{U.log("change audio stream",{id:c});let h=D.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&oi(h,!0)},Wr=!1;Te.add(D.info.availableAudioStreams$.subscribe(c=>{if(!Wr&&c.length){let h=Sr(c);h&&(D.setAudioStream(h),Wr=!0)}})),zi.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:M="",id:ie="",language:Se=""})=>({label:M,language:Se,id:ie})))}),Un.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let zn=!1;Te.add(D.info.availableVideoStreams$.subscribe(c=>{if(!zn&&c.length){let h=Sr(c);h&&(D.setVideoStream(h),zn=!0)}}));let sr=de(void 0),wo=ai(D.info.isAutoQualityEnabled$,c=>c&&sr.set(void 0)),Wn=ai(D.info.currentQuality$,()=>sr.set(void 0)),ar=hi([sr,Wn],([c,h])=>c!=null?c:h),Kn=hi(Fr,c=>c!==bi.VideoFormat.MPEG),yn=hi([Dr,Br,wo,ar,Kn],([c,h,M,ie,Se])=>{let Xe=[];Se&&Xe.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let Vt=c.filter(zt=>!(0,at.isInvariantQuality)(zt));for(let zt of Vt){let jt=h[zt];Xe.push({value:zt,displayValue:`${zt}${jt?Ab(jt):""}`,selected:M?!1:zt===ie})}return Xe}),xn=ai(D.info.currentPlaybackRate$),wn=hi([xn,yr,rr],([c,h,M])=>{let ie=M||w?1:pe.controls.playbackRateMin,Se=h?1:pe.controls.playbackRateMax,Xe=pe.controls.playbackRateStep,Vt=[];for(let zt=ie;zt<=Se;zt+=Xe)Vt.push({value:zt,displayValue:zt===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Vt}),rn=()=>({displayValue:fe("subtitles_off"),value:Bn,language:""}),Wi=de(rn()),eo=hi([Wi,st],([c],h)=>{c.value===Bn?h(rn()):h(c)}),sn=pe.features.subtitles?ai(D.info.availableTextTracks$):Rr([]),lr=A_(),Cr=hi([sn,eo],([c,h],M)=>{var Xe;let ie=[],Se=c.find(({id:Vt})=>Vt===h.value);if(Se!=null&&Se.url){let[,Vt]=(Xe=lr.find(Se.url))!=null?Xe:[];if(Vt){M(Vt);return}Ee.download(Se.url).then(zt=>{if(!zt||Ee.isDestroyed())return;let jt=new Lb,Xs=Se.language;if(Xs){let O$=!!Se.isAuto,D$=jt.parse(zt,Xs);ie.push({lang:Xs,subtitles:D$,isAuto:O$,id:Se.id})}lr.add(Se.url,ie),$e(eo).value===h.value&&M(ie)}).catch(zt=>{var jt;(jt=J==null?void 0:J.oneStat)==null||jt.logError({errorType:"Subtitles download",fatal:!1}),ae==null||ae.report(zt,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),Sn=hi([xn,$r,eo],([c,h,M],ie)=>{let Vt;if(D.info.isLive$.getValue()&&h&&M.value!==Bn){let jt=()=>{let Xs=1e3/(3*c);Vt=setTimeout(jt,Xs),ie(Date.now())};return jt(),()=>clearTimeout(Vt)}}),Tr=hi([sn,eo],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:Xe}of c){let Vt=ie&&yc(ie);ie&&Vt&&M.push({displayValue:Se?fe("subtitles_auto",{language:Vt}):Vt,value:Xe,selected:(h==null?void 0:h.value)===Xe,isAuto:Se,language:ie})}return M.length?(M.unshift(Yt(Pe({},rn()),{selected:(h==null?void 0:h.value)===Bn})),M):[]}),ut={available:[],prev:[]},Tt=()=>{var h,M;let c=D.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Re==null?void 0:Re.currentTime)!=null?M:0},co=hi([rt,eo,Cr,Sn],([c,h,M,ie])=>{var Xe;let Se=D.info.isLive$.getValue();if(Se&&ut.prev!==M){let Vt=M.find(({id:jt})=>jt===h.value),zt=ut.prev.find(({id:jt})=>jt===h.value);if(Vt){let jt=Yt(Pe({},Vt),{subtitles:[...(Xe=zt==null?void 0:zt.subtitles)!=null?Xe:[],...Vt.subtitles]});ut.available=[jt],ut.prev=M}}if(h&&h.value!==Bn){let Vt=Se?Tt():c,zt=Se?ut.available:M;return Rb(Vt,h,zt,Se)}}),Fo=hi([co],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(eo.subscribe(c=>{var h,M;if(c.value===Bn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let ie=Object.entries(gp).find(([Se,Xe])=>Xe===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ie?ie[0]:"",c.value)}}));let So=de(!0),an=hi([hn,nn,Fn,xo],([c,h,M,ie])=>{var zt;let Se=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ie)return Se/h;let Vt=-M+ie-h;return(Se-Vt)/h}),uo=ai(D.info.availableSources$),Co=hi([uo],([c])=>Object.keys((c==null?void 0:c[bi.VideoFormat.MPEG])||{}).length>0),ki=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=D.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[bi.VideoFormat.MPEG])||{}),h=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Se=Ne.sources[bi.VideoFormat.MPEG])==null?void 0:Se[h]},Kr=()=>{var h;let c=ki();if(c)U.log("download video",{url:c}),E_(c,((h=Ne==null?void 0:Ne.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";U.log("download video",{message:M}),ce({message:M})}},qn=()=>{ce({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?qr(Ir(),!1):ln(!c,!1)},Ss=()=>{var c;if(Gt.ui.settingsMenu.visible$.set(!1),!$e(Gt.ui.settingsSubMenu.visible$)){let h=$e(Gt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let ie=id(h),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Se,name:"settings"})}}U.log("close settings menu")},Ki=(c,h=()=>Promise.resolve())=>gt(null,null,function*(){var Se;Gt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Gt.ui.settingsMenu.visible$.set(!0),yield h();let M=$e(Gt.ui.settingsMenu.ref$),ie=Sa();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let Vt=id(M),zt=Fs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:zt,name:"settings"})}U.log("open settings menu",{wasOpenedByKeyboard:c})}),Cs=(c,h=!1)=>{var Xe;Gt.ui.settingsSubMenu.visible$.set(!1);let M=$e(Gt.ui.settingsMenu.ref$),ie=Sa(),Se=$e(Gt.ui.settingsMenu.visible$);if((Xe=s==null?void 0:s.uiInfo)!=null&&Xe.onSettingsMenu&&M&&ie)if(Se&&!h){let zt=id(M),jt=Fs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:zt,position:jt,name:"settings"})}else{let zt=id(c),jt={top:0,left:0,bottom:0,right:0},Xs=$e(Gt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:zt,position:jt,name:Xs})}U.log("close settings sub menu")},us=(c,h)=>{var ie;Gt.ui.settingsSubMenu.visible$.set(!0),Gt.ui.settingsSubMenu.ref$.set(h),Gt.ui.settingsSubMenu.name$.set(c);let M=Sa();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&h&&M){let Xe=id(h),Vt=Fs(h,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Xe,position:Vt})}U.log("open settings sub menu",{name:c})},Ir=()=>{var h;let c=Math.max(pe.volumeMinRestore,(h=zu())!=null?h:0);return c===0?pe.volumeDefault:c},Uo=c=>{let h=pe.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},qr=(c,h)=>{let M=c===0?Ir():c,ie=D.info.muted$.getValue();ce({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||We.is("ads");ie&&c>0&&Se&&(ie=!1,Uo(h)&&im(!1)),D.setVolume(c,ie),K.setVolume(c),Uo(h)&&Zf(M)},ln=(c,h)=>{let M=D.info.volume$.getValue();ce({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=We.is("ads");if(D.setMuted(c,ie),K.setVolume(c?0:M),Uo(h)&&(!ie||!c)&&im(c),!c&&M===0){let Se=Ir();D.setVolume(Se),Uo(h)&&Zf(Se),K.setVolume(Se)}},dn=de(!1),Ue=c=>{var h,M;U.log("set looped",{isLooped:c}),dn.set(c),D.setLooped(c),(M=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};Ue(oe);let It=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},fi=(c,h=!1)=>{var M;ce({message:`set autoplayNextEnabled, value: ${c}`}),U.log("set autoplay next enabled",{autoplayNextEnabled:c}),Gt.ui.autoplayNextEnabled$.set(c),q_(c),h&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},zo=c=>{ce({message:`set timerNextVideoRunning, value: ${c}`}),U.log("set timer next video running",{timerNextVideoRunning:c}),Gt.ui.timerNextVideoRunning$.set(c)},To=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(ie){ce({message:"onPrevVideoClick callback failed to execute"})}Z(!0),h&&X()},Wo=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(ie){ce({message:"onNextVideoClick callback failed to execute"})}Z(!1),h&&se()},qi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Qn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Er=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Eo=()=>{D.prepare()},po=()=>{(0,at.assertNonNullable)(Gt);let c=$e(Gt.ui.controls.disabledControls$),h=$e(Gt.playerPhase),M={playerPhase:h,isInteractive:w,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),h==="ads"){M.action="play",U.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var Xe;ce({message:"toggle play, call player.play"}),M.action="play",D.play(),(Xe=s==null?void 0:s.onPlay)==null||Xe.call(s)},Se=()=>{var Xe;ce({message:"toggle play, call player.pause"}),M.action="pause",D.pause(),(Xe=s==null?void 0:s.onPause)==null||Xe.call(s)};if(D.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),Hi.next(),Si.next(ys.SeekAction.REWIND),w){N==null||N();return}D.seekTime(0),ie()}else D.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING?ie():Se();U.log("toggle play",M)},Cn=(c,{changeReason:h="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{ce({message:`set quality, quality: ${c}`}),U.log("set quality",{quality:c}),ie&&bo.next(c),D.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Xe}=pe.features;Wu(),c!=="auto"?(Xe?(Ku({type:"exact_quality",quality:c,videoId:i},M),D.setPredefinedQualityLimits(bi.PredefinedQualityLimits.UNKNOWN)):Jf(i,c),sr.set(c),D.setQuality(c)):Xe&&h==="default"&&(Gr("auto_quality",M,Se),$e(Do)&&Ko(!1,void 0,Se),$e(Bo)&&Gn(!1,void 0,Se))},Ko=(c,h="as-default",M)=>{ce({message:`set trafficSavingEnabled, value: ${c}`}),U.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?bi.PredefinedQualityLimits.TRAFFIC_SAVING:bi.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Qr(ie,h,M),Jd(!1)):(D.setPredefinedQualityLimits(ie),Uo(M)&&Jd(c))},Gn=(c,h="as-default",M)=>{ce({message:`set highQualityEnabled, value: ${c}`}),U.log("set high quality enabled",{highQualityEnabled:c}),Qr(c?bi.PredefinedQualityLimits.HIGH_QUALITY:bi.PredefinedQualityLimits.UNKNOWN,h,M)},Qr=(c,h,M)=>{c!==bi.PredefinedQualityLimits.UNKNOWN&&($e(_n)&&!$e(wo)&&Cn("auto",{appliesTo:h,changeReason:"limit-changed"},M),Gr(c,h,M)),D.setPredefinedQualityLimits(c)},Gr=(c,h,M)=>{Uo(M)&&(Ku({type:c,videoId:i},h),h==="as-default"&&Ku({type:c,videoId:i},"to-video"))},Yn=(c,h=!0)=>{U.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),pe.features.saveRate&&Ce&&!D.info.isLive$.getValue()&&h&&W_(c)},et=()=>{let c=$e(Hn),h=$e(wn),M=h.findIndex(({selected:Se})=>Se);if(M===h.length-1||!c)return h[M];let ie=h[M+1];return Yn(ie.value),ie},ei=()=>{let c=$e(Hn),h=$e(wn),M=h.findIndex(({selected:Se})=>Se);if(M===0||!c)return h[M];let ie=h[M-1];return Yn(ie.value),ie},Ci=(c=Yt(Pe({},rn()),{selected:!1}),h)=>{U.log("set subtitles",Pe({},c)),c.value!==Bn&&ri.next(c.isAuto?c.value+"_auto":c.value),gi.next({enabled:c.value!==Bn,lang:c.language,auto:!!c.isAuto}),Wi.set(c),Uo(h)&&(sm(c.value===Bn?void 0:c.language),pe.features.userVideoPrefs&&i&&am(pe.userSalt,String(i),{subtitleTrackId:c.value===Bn?void 0:c.value}))},ko=c=>{U.log("toggle subtitles");let h=$e(eo);(h==null?void 0:h.value)===Bn?jn(c):qo(c)},Tn=(c,h)=>{U.log("change subtitle",{enabled:c}),c?jn(!0,h):qo(!0)},jn=(c,h)=>{U.log("subtitle on");let M=$e(Tr),ie=$e(Me),Se=Fe!=null?Fe:ie,Xe;h&&(Xe=M.find(Vt=>Vt.value===h)),Xe!=null||(Xe=M.filter(Vt=>Vt.value!==Bn).find(Vt=>Vt.language===Se)),Ci(Xe!=null?Xe:M[1],c)},qo=c=>{U.log("subtitle off"),Ci(void 0,c)};Te.add(D.info.availableTextTracks$.subscribe(c=>{var M;function h(){let ie=[];for(let{language:Se,isAuto:Xe,id:Vt}of c){let zt=Se&&yc(Se);Se&&zt&&ie.push({id:Vt,language:Se,title:Xe?fe("subtitles_auto",{language:zt}):zt})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,h())}));let dr=de(!0),ps=c=>{dr.set(c)},kr=(c,h,M=!0)=>{var ie;if(ce({message:`seek to time, time: ${c}`}),U.log("seek to time",{time:c,action:h,forcePrecise:M}),Si.next(h),D.info.isLive$.getValue()){let Se=D.info.duration$.getValue(),Xe=Math.min(0,Se+c);D.seekTime(Xe,M)}else{if(C!=null&&C.getValue())return;D.info.isEnded$.getValue()&&(ce({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),D.seekTime(cn(c),M)}},Ts=c=>{ce({message:`seek to episode start time: ${c}`}),U.log("seek to episode start time",{time:c}),kr(c,ys.SeekAction.EPISODE,!0)},Qs=(c,h,M=!1)=>{ce({message:`seek to percent, percent: ${c}`}),U.log("seek to percent",{percent:c,action:h});let ie=$e(nn)*c;kr(ie,h,M)},_a=c=>{ce({message:`seek external, time: ${c}`}),U.log("seek external",{time:c}),Si.next(ys.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},lt=c=>{var ie,Se;let h=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";ce({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),U.log("set auto quality limits",{max:h,min:M}),D.setAutoQualityLimits(c)},di=c=>{ce({message:`seek external to episode start time: ${c}`}),U.log("seek external to episode start time",{time:c}),kr(c,ys.SeekAction.EPISODE,!0)},Po=c=>{ce({message:`set playback rate to: ${c}`}),U.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},Ti=de(!1),In=de(!1),En=hi([nn],([c])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!w),Is=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Es=hi([At],([c])=>{let h=od(c);return Is?!h:h});Te.add(We.subscribe(c=>{c!=="video"&&Ti.set(!1)})),Ti.subscribe(c=>{var h;(h=s==null?void 0:s.onRichSeekActiveChanged)==null||h.call(s,c)});let Qi=de(void 0),Pi=de(!1),he=c=>{ce({message:`start scrubbing, progress: ${c}`}),U.log("start scrubbing",{progress:c}),Pi.set(!0),$t(c)},$t=c=>{Qi.set(c)},ni,Zt,Ao=()=>{Qi.set(void 0),Pi.set(!1)},fo=()=>{clearTimeout(Zt),clearTimeout(ni),ni=window.setTimeout(()=>{Ao()},500),Re==null||Re.removeEventListener("seeked",fo)},Qo=(c,h=!1)=>{ce({message:`complete scrubbing, progress: ${c}`}),U.log("complete scrubbing",{progress:c}),Qs(c,ys.SeekAction.SLIDER,h),$e(Gt.ui.isMobile)&&$e(Gt.state.currentFormat$)===bi.VideoFormat.HLS?(Re==null||Re.addEventListener("seeked",fo),Zt=window.setTimeout(()=>{fo()},300)):Ao()},ks=hi([rt,nn,Qi],([c,h,M],ie)=>{ie((0,at.isNonNullable)(M)?M*h:c)}),Yr=de(!1),Pr=()=>{Yr.set(!0)},ba=()=>{Yr.set(!1)},Gs=hi([mi],([{width:c}],h)=>{let M=Cb(c);h(M)}),$a=Q.filter(c=>k_(c)),jr=hi([Gs,kt],([c,h])=>h?$a.filter(M=>!M.hideOnMobile):$a.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),kn=de(Q.filter(c=>P_(c))),vl=hi([kn,Gs],([c,h])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(h))})),ya=hi([vl,jr],([c,h])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?h.map((M,ie)=>{var Se;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Se=M.ariaLabel)!=null?Se:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!v.disabledAdditionalButtonIds.includes(M.id))),Xr=de(F),gl=hi([Xr],([c])=>pe.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?Yt(Pe({},h),{onClick:h.onChangeEnabled}):h):[]),_d=(c,h)=>{let M=$e(kn).map(ie=>ie.id!==c?ie:Pe(Pe({},ie),h));kn.set(M)},xa=c=>{let h=$e(kn);if(h.some(M=>M.id===c.id)){ce({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),kn.set(h)},bd=c=>{let h=$e(kn);if(!h.some(M=>M.id===c)){ce({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),kn.set(h)},hl=c=>{Si.next(ys.SeekAction.LIVE),ce({message:"live switch to low latency "+c}),U.log("live switch to low latency "+c),D.setLiveLowLatency(c)},_l=(c,h)=>{let M=$e(Xr).map(ie=>ie.id!==c?ie:Pe(Pe({},ie),h));Xr.set(M)},wa=c=>{let h=$e(Xr);if(h.some(M=>M.id===c.id)){ce({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Xr.set(h)},pt=c=>{let h=$e(Xr);if(!h.some(M=>M.id===c)){ce({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Xr.set(h)},nt=de(z),to=hi([nt],([c])=>pe.features.additionalContextMenuItems?c:[]),Lo=(c,h)=>{let M=$e(nt).map(ie=>ie.id!==c?ie:Pe(Pe({},ie),h));nt.set(M)},io=c=>{let h=$e(nt);if(h.some(M=>M.id===c.id)){ce({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),nt.set(h)},$i=c=>{let h=$e(nt);if(!h.some(M=>M.id===c)){ce({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),nt.set(h)},Gi=hi([kt,le],([c,h],M)=>{M(c&&h)}),Ys=()=>{Si.next(ys.SeekAction.LIVE),ce({message:"switch to active live"}),U.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING&&Gt.actions.internal.togglePlay()},$d=()=>{U.log("skip adman"),K.skip()},Jc=(c=!0)=>{var ie;(0,at.assertNonNullable)(Gt),ce({message:`switch from ads to video, callPlay: ${c}`}),U.log("switch from ads to video",{callPlay:c}),Be.set("video"),c&&D.play(),l&&ln(!0,!0);let h=(ie=$e(wt))==null?void 0:ie.muted,M=!D.info.muted$.getValue();h!==void 0&&!M&&ln(h,!0),wt.set(void 0)},Kp=()=>{(0,at.assertNonNullable)(Gt),ce({message:"switch from video to ads"}),U.log("switch from video to ads"),Gt.actions.internal.pause(),on(),Be.set("ads")},eu=c=>{(0,at.assertNonNullable)(Gt);let h=c?"LiveWaitingStart":"thumb";U.log("set live waiting start",{state:c,playerPhase:h}),Be.set(h)},qp=c=>{(0,at.assertNonNullable)(Gt);let h=c?"LiveWaitingRecover":"thumb";U.log("set live waiting recover",{state:c,playerPhase:h}),Be.set(h)},tu=c=>{(0,at.assertNonNullable)(Gt);let h=c?"LiveWaitingRecord":"thumb";U.log("set live waiting record",{state:c,playerPhase:h}),Be.set(h)},Qp=()=>((0,at.assertNonNullable)(Gt),U.log("get debug text data"),T_(D,Ne,Gt,Qe.getTraceId(),we)),iu=()=>((0,at.assertNonNullable)(Gt),JSON.stringify(Qe.getFinishedSpans())),Gp=()=>((0,at.assertNonNullable)(Gt),I_(D,Ne,Gt)),Sa=()=>Re,ou=()=>{ce({message:"toggle chromecast"}),U.log("toggle chromecast"),D.toggleChromecast()},js=c=>{var M;if((0,at.assertNonNullable)(Gt),D.info.isEnded$.getValue())return;let h=!c;if($e(Gt.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${h}`}),U.log("pause ads",{internalCall:h}),K.pause();return}ce({message:`pause video, internalCall: ${h}`}),U.log("pause video",{internalCall:h}),h&&((M=s==null?void 0:s.onPause)==null||M.call(s)),D.pause()},bl=c=>{var M;(0,at.assertNonNullable)(Gt);let h=!c;if($e(Gt.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${h}`}),U.log("play ads",{internalCall:h}),K.play();return}ce({message:`play video, internalCall: ${h}`}),U.log("play video",{internalCall:h}),h&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),D.play()},nu=c=>{(0,at.assertNonNullable)(Gt);let h=!c;if($e(Gt.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${h}`}),A==null||A()},ru=(c,h)=>{(0,at.assertNonNullable)(Gt),ce({message:`first start, show ads: ${c}, internalCall: ${!h}`}),U.log("first start",{showAds:c,external:h}),c?Be.set("ads"):(Be.set("video"),h?D.play():Gt.actions.internal.togglePlay())},$l=()=>(ce({message:"getting time codes"}),m),su=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let h=D.info.position$.getValue();return c.find(M=>M.time>h)},au=c=>{let h=c;h||(h=su());let M=D.info.position$.getValue();U.log("seek to next episode",Pe({currentTime:M},h)),h&&(ce({message:"seek to next episode"}),kr(h.time,ys.SeekAction.EPISODE,!0))},lu=()=>{let c=$l();if(!c||[0,1].includes(c.length))return;let h=D.info.position$.getValue(),M=c.findIndex(Se=>Se.time>h),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},Yp=c=>{let h=c;h||(h=lu());let M=D.info.position$.getValue();U.log("seek to prev episode",Pe({currentTime:M},h)),h&&(ce({message:"seek to prev episode"}),kr(h.time,ys.SeekAction.EPISODE,!0))},jp=()=>(ce({message:"getting preview thumbs data"}),U.log("get preview thumbs data",Pe({},p)),p),ze=()=>gt(null,null,function*(){let c=xe==null?void 0:xe.isActive(),h="none";xe!=null&&xe.isActive()?(h="exit",yield xe==null?void 0:xe.exit()):(h="request",yield xe==null?void 0:xe.request()),U.log("toggle picture in picture",{isActive:c,action:h})}),yi=(c=-90)=>{U.log("rotate video",{alphaDiff:c}),At.update(h=>h+c)},mo=de([]);I==null||I.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[ie,Se],subjects:Xe}=c[M];M===0&&ie!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ie/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!Xe.length||Xe.every(Vt=>Vt.isRemoved):!Xe.length}),Se!==1/0&&h.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}mo.set(h)});let Ar=de(!1);C==null||C.subscribe(c=>{c&&$e(Pi)&&Ao()});let cn=c=>{if(!w)return c;let h=$e(mo),M=$e(nn),Se=$e(Fn)/M,Xe=h.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Se);return typeof(Xe==null?void 0:Xe.time)=="number"?Math.min(c,Xe.time-.05):c},P$=()=>{Gt.ui.episodes.panelOpened$.set(!1)},A$=()=>{U.log("destroy store"),clearTimeout(Zt),clearTimeout(ni),Te.unsubscribe(),St.unsubscribe(),D.destroy(),K.destroy(),J==null||J.destroy(),ae==null||ae.destroy(),ke.unsubscribe(),_t==null||_t.disconnect(),_t=null,Ee.destroy()},L$=hi([yr,We,Hn],([c,h,M])=>v.features.doubleForwardAvailable&&!c&&h==="video"&&M),Xp=de(!1),wg=2,du=null,Sg=c=>{if(!$e($r)&&c)return;let h=D.info.currentPlaybackRate$.getValue();c?h!==wg&&(du=h,Yn(wg,!1),Xp.set(!0)):(du&&Yn(du,!1),Xp.set(!1),du=null)};We.subscribe(c=>{c!=="video"&&Sg(!1)});let M$=()=>{js(!1),Ti.set(!0)},V$=()=>{bl(!1),Ti.set(!1)},Zp=!1,R$=()=>{In.set(!0),Zp=D.info.playbackState$.getValue()===bi.PlaybackState.PLAYING,js(!1)},N$=()=>{In.set(!1),!$e(Ti)&&Zp&&bl(!1),Zp=!1};D.events.playing$.subscribe(()=>{$e(Ti)&&js(!1)});let Gt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:Lt,initVideo:xi,videoId:i,isClip:o,playerPhase:We,vsid:Ct,state:{positionExact$:rt,positionWithScrubbing$:ks,duration$:nn,playbackState$:Fi,playbackStateRealistic$:gn,isPlaying$:$r,isLoaderVisible:Nt,bufferedProgress$:an,isLive$:Ui,canChangePlaybackSpeed$:Hn,isActiveLive$:yr,isOldestAvailableLive$:rr,isRewindableLive$:cs,isEnded$:Vi,muted$:Ai,volume$:lo,trafficSavingEnabled$:Do,highQualityEnabled$:Bo,autoQualityLimitingAvailable$:_n,availableVideoStreams$:xr,availableAudioStreams$:zi,videoStream$:wr,audioStream$:Un,currentQuality$:ar,isAutoQualityEnabled$:wo,availableQualities$:yn,currentPlaybackRate$:xn,availablePlaybackRates$:wn,currentSubtitle$:eo,availableTextTracks$:sn,availableSubtitlesList$:Tr,currentSubtitleCaptions$:Fo,isAutoSubtitleCaptionVisible$:So,chromecastState$:Hr,chromecastDeviceName$:ws,chromecastConnected$:Ho,currentFormat$:Fr,throughputEstimation$:nr,videoBitrate$:Ur,videoSize$:bn,errorLog$:Y,crashed$:le,isAudioAvailable$:_r,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:uo,hasMpegSources$:Co,isInteractive:w,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!$e(mo).length,interactiveEpisodes$:mo,isInteractiveTime$:C?ai(C):de(!1),isInteractiveExpectation$:Ar,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,looped$:dn,loadedMetadata$:Ft,isAutoQualityAvailable$:Kn,previewTrackActive:Ti,previewTrackDragInProgress:In},ui:{t:fe,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$:Mt},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Rt,isFullscreenOpenedByKeyboard:ct,rotateAlpha:At,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:mi,isMobile:kt,mobileNotReportControlHidden$:Gi,icon3DVideoVisible:de(!1),scrubbingInProgress:Pi,volumeChangingInProgress:Yr,is3DVideo:qt,currentGridType$:Gs,additionalButtonsDeprecated$:jr,additionalDesktopControlPanelRightButtons$:ya,additionalSettingsMenuItems$:gl,additionalContextMenuItems$:to,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:dr,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$:Xp,doubleForwardAvailable$:L$,previewTrackNotificationVisible:de(!1),previewTrackActive:Ti,previewTrackDragInProgress:In,previewTrackAvailable:En,isPreviewTrackHorizontallyAligned:Es},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:xe,annotationsApi:He,slotsApi:ot,focusManager:re},actions:{internal:{preload:Eo,firstStart:c=>ru(c,!1),play:()=>bl(!1),pause:()=>js(!1),togglePlay:po,toggleMuted:qn,openSettingsMenu:Ki,closeSettingsMenu:Ss,openSettingsSubMenu:us,closeSettingsSubMenu:Cs,setVolume:c=>qr(c,!1),setMuted:c=>ln(c,!1),startVolumeChanging:Pr,stopVolumeChanging:ba,setVideoStream:ft,setAudioStream:c=>oi(c,!1),setQuality:(c,h)=>Cn(c,h,!1),setTrafficSavingEnabled:(c,h)=>Ko(c,h,!1),setHighQualityEnabled:(c,h)=>Gn(c,h,!1),setPlaybackRate:Yn,incrementPlaybackRate:et,decrementPlaybackRate:ei,setSubtitle:c=>Ci(c,!1),toggleSubtitle:()=>ko(!1),togglePictureInPicture:ze,startScrubbing:he,progressScrubbing:$t,completeScrubbing:Qo,toggleChromecast:ou,switchToActiveLive:Ys,switchFromAdsToVideo:Jc,switchFromVideoToAds:Kp,skipAd:$d,setLiveWaitingStart:eu,setLiveWaitingRecover:qp,setLiveWaitingRecord:tu,getDebugTextData:Qp,getTraceTextData:iu,getDebugPanelData:Gp,getVideoElement:Sa,seekTime:(c,h,M)=>kr(c,h,M),clearDelayedBufferingCheckTimeout:br,seekEpisodeStartTime:Ts,seekToPercent:Qs,getNextEpisode:su,seekToNextEpisode:au,getPrevEpisode:lu,seekToPrevEpisode:Yp,startLogging:Ut,stopLogging:W,startCameraManualRotation:Ot,stopCameraManualRotation:li,moveCameraFocusPX:vt,holdCamera:ii,releaseCamera:bt,getVideoEpisodes:$l,getPreviewThumbsData:jp,downloadVideo:Kr,addLanguage:lm,setLanguage:ye,nextMovie:Jt,videoRotate:yi,correctSeekTimeToInteractive:cn,replayInteractive:N,setLooped:Ue,reportProblem:It,setAutoplayNextEnabled:fi,setTimerNextVideoRunning:zo,prevVideoClick:To,nextVideoClick:Wo,nextVideoAnnouncementShow:qi,nextVideoAnnouncementClick:Io,nextVideoAnnouncementAuto:Qn,nextVideoAnnouncementCancel:Er,checkFullscreenSupport:Pt,changeDoubleForwardOn:Sg,closePreviewTrack:V$,previewTrackOpened:M$,previewTrackDragStarted:R$,previewTrackDragFinished:N$},external:{firstStart:c=>ru(c,!0),play:()=>bl(!0),pause:()=>js(!0),stop:()=>nu(!0),seekTime:c=>_a(c),seekEpisodeStartTime:c=>di(c),setPlaybackRate:c=>Po(c),setAutoQualityLimits:c=>lt(c),setMuted:c=>ln(c,!0),toggleSubtitle:()=>ko(!0),changeSubtitle:Tn,setVolume:c=>qr(c,!0),returnFocusToEpisodes:P$,updateAdditionalSettingsItem:_l,addAdditionalSettingsItem:wa,removeAdditionalSettingsItem:pt,updateAdditionalContextItem:Lo,addAdditionalContextItem:io,removeAdditionalContextItem:$i,updateAdditionalButton:_d,addAdditionalButton:xa,removeAdditionalButton:bd,setLiveLowLatency:hl,hideControls:()=>ps(!1),showControls:()=>ps(!0),setQuality:c=>Cn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ko(c,"to-video",!0),setHighQualityEnabled:c=>Gn(c,"to-video",!0),changeAudioStream:zr}},callbacks:s,setUiCallbacks:c=>{tt=Pe({},c)},getAdmanWrapper:()=>K,getLogger:()=>Ge,getPlayer:()=>D,destroy:A$};return Gt};function ir(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}=Fs(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 n2=["disabledControls$","additionalButtons"],r2=["interactiveTimeIndicator"],rd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!n2.includes(r)){let l=o||r2.includes(r);a.set(ir(t,i,r,l))}}};var _p=(t,e,i)=>gt(null,null,function*(){yield _o(),e&&i&&(i.focus(),t.set(!1))});var s2=Ie('<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 Jm(t){Je(t,{children:(e,i)=>{var o=s2();$(e,o)},$$slots:{default:!0}})}function ev(t,e){B(e,!0);let[i,o]=Oe(),r=()=>x(s,"$contextMenuVisible$",i),a=_(e,"disabled",3,!1),l=_(e,"ariaLabel",3,""),d=_e(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,b=q(void 0);De(()=>{n(b)&&Et(()=>{v.set(n(b))})});let y=C=>{let N=ua(C),A=gb(n(b));p.set(A),u.set(N),s.set(!r())},g=()=>{m.set(!0)},w=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:g,blur:w,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(C){R(b,C,!0)},children:(C,N)=>{Jm(C,{})},$$slots:{default:!0}}),H(),o()}var a2=t=>{t.stopPropagation()},l2=L("<div><!> <div></div> <div></div></div>"),d2={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 wc(t,e){var K;B(e,!0),G(t,d2);let[i,o]=Oe(),r=()=>x(w,"$isMobile",i),a=()=>x(A,"$areControlsVisible",i),l=()=>x(k,"$currentGridType$",i),d=()=>x(C,"$isInteractiveTime$",i),s=()=>x(g,"$interactiveControlsOpacity$",i),u=()=>x(N,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(I,"$isFullscreen",i),p=_(e,"ref",15,void 0),v=q(void 0),b=_e(),y=yo(),{interactiveControlsOpacity$:g}=y,w=b.ui.isMobile,I=b.ui.isFullscreen,C=b.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,E=(K=b.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,k=b.ui.currentGridType$,Q=f(()=>!r()&&a()),F=f(()=>Hs(l(),"s")),z=f(()=>!d()||!!s()||n(Q)),X=q(!1);De(()=>{R(X,n(z),!0)});let se=()=>{R(X,!0)},Z=()=>{var ae;oe(),(ae=n(v))==null||ae.addEventListener("animationiteration",se,{once:!0})},oe=()=>{var ae;R(X,!1),(ae=n(v))==null||ae.removeEventListener("animationiteration",se)},J=ae=>{N.set(ae)},Ce=f(()=>u()&&!n(z));De(()=>{u()?Z():oe()});let me=()=>{n(z)||(N.set(!0),E==null||E())};fn(()=>{N.clearTimeout(),oe()});let ee=()=>{N.set(!1)},be=j("tooltip_interactive_interaction_time_indicator");var we=l2();let ge;we.__mousemove=[a2],we.__click=me;var pe=T(we);No(pe,{get tooltipContent(){return be},get tooltipVisible(){return n(Ce)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(ae){p(ae)},children:(ae,xe)=>{mc(ae,{completed:!0})},$$slots:{default:!0}});var Qe=P(pe,2);let U;Ze(Qe,ae=>p(ae),()=>p());var D=P(Qe,2);let Ge;Ze(D,ae=>R(v,ae),()=>n(v)),S(we),O((ae,xe,He)=>{ge=ne(we,1,"interactive-episode-icon-animated s-26",null,ge,ae),U=ne(Qe,1,"ref-block s-26",null,U,xe),Ge=ne(D,1,"pulse s-26",null,Ge,He)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(F)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),dt("mouseleave",we,ee),$(t,we),H(),o()}Ye(["mousemove","click"]);function bp(t,e){B(e,!0);let i=_(e,"tooltipEnabled",3,!0),o=_(e,"disabled",3,!1),r=_(e,"className",3,void 0),a=_(e,"ref",15),l=_(e,"tooltipVisible",3,!1);No(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=Le();let m=f(()=>e.buttonComponent);var p=ue(u);Oi(p,()=>n(m),(v,b)=>{b(v,rs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),H()}var Us={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var u2=Ie('<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 ga(t,e){B(e,!0);let i=_(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${mn(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Je(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=u2();$(l,s)},$$slots:{default:!0}}),H()}var p2=L('<div class="icon-background-mobile s-21"><!></div>'),f2={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:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function tl(t,e){B(e,!0),G(t,f2);let i=_(e,"ref",15,void 0),o=_(e,"isMobile",3,!1),r=_(e,"disabled",3,!1),l=_e().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`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,p)=>{var v=Le(),b=ue(v);{var y=w=>{var I=p2(),C=T(I);let N=f(()=>e.type==="prev");ga(C,{get size(){return"32"},get reversed(){return n(N)}}),S(I),$(w,I)},g=w=>{let I=f(()=>e.type==="prev");ga(w,{get size(){return"24"},get reversed(){return n(I)}})};V(b,w=>{o()?w(y):w(g,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var m2=Ie('<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 Sc(t,e){B(e,!0);let i=f(()=>mn(e.size));Je(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=m2();$(o,a)},$$slots:{default:!0}}),H()}var Db=require("@vkontakte/videoplayer-shared/es2015");var v2=L('<div class="icon-background-mobile s-25"></div>'),g2=L("<!> <div><!></div>",1),h2={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 sd(t,e){B(e,!0),G(t,h2);let i=_(e,"ref",15,void 0),o=_(e,"isMobile",3,!1),r=_(e,"disabled",3,!1),a=_(e,"className",3,""),l=_(e,"click",3,Db.noop),d=j("tooltip_restart"),s=f(()=>`${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 bs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=g2(),v=ue(p);{var b=C=>{var N=v2();$(C,N)};V(v,C=>{o()&&C(b)})}var y=P(v,2);let g;var w=T(y);let I=f(()=>o()?"48":"24");Sc(w,{get size(){return n(I)}}),S(y),O(C=>g=ne(y,1,"s-25",null,g,C),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),H()}var _2=Ie('<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 zs(t,e){B(e,!0);let i=f(()=>mn(e.size));Je(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=_2();$(o,a)},$$slots:{default:!0}}),H()}var Bb=require("@vkontakte/videoplayer-shared/es2015");var b2=L('<div class="icon-background-mobile s-23"><!></div>'),$2={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:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ad(t,e){B(e,!0),G(t,$2);let[i,o]=Oe(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=yo(),l=_(e,"ref",15,void 0),d=_(e,"isMobile",3,!1),s=_(e,"isPlaying",3,!1),u=_(e,"disabled",3,!1),m=_(e,"className",3,""),p=_(e,"click",3,Bb.noop),b=_e().ui.t,{toggle:y}=a,g=f(()=>y),w=f(()=>r()!==null),I=f(()=>n(w)?r():s()),C=f(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),N=f(()=>n(I)?zs:On),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),E=f(()=>n(w)?n(g):p());Kt(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(C)},get ariaKeyShortCut(){return bs.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,Q)=>{var F=Le();let z=f(()=>n(N));var X=ue(F);{var se=oe=>{var J=b2(),Ce=T(J);Oi(Ce,()=>n(z),(me,ee)=>{ee(me,{get size(){return"48"}})}),S(J),$(oe,J)},Z=oe=>{var J=Le(),Ce=ue(J);Oi(Ce,()=>n(z),(me,ee)=>{ee(me,{get size(){return"24"}})}),$(oe,J)};V(X,oe=>{d()?oe(se):oe(Z,!1)})}$(k,F)},$$slots:{default:!0}}),H(),o()}var y2=Ie('<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 tv(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=y2();$(e,o)},$$slots:{default:!0}})}function Cc(t,e){B(e,!0);let i=_(e,"ref",15,void 0),o=_(e,"hidden",3,!1),r=_(e,"disabled",3,!1),a=j("tooltip_interactive_go_back"),l=f(()=>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)=>{tv(d,{})},$$slots:{default:!0}}),H()}var x2=L('<span class="gutter s-24"><span><!></span></span>'),w2={hash:"s-24",code:".gutter.s-24{--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-24{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-24{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Tc(t,e){B(e,!0),G(t,w2);let[i,o]=Oe(),r=()=>x(s,"$autoplayNextEnabled$",i),a=_(e,"ref",15,void 0),l=_e(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",b="#000",y=f(()=>r()?"true":"false");Kt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(g){a(g)},children:(g,w)=>{var I=x2(),C=T(I);let N;var A=T(C);{var E=Q=>{On(Q,{get size(){return v},fill:b})},k=Q=>{zs(Q,{get size(){return v},fill:b})};V(A,Q=>{r()?Q(E):Q(k,!1)})}S(C),S(I),O(Q=>N=ne(C,1,"toggler s-24",null,N,Q),[()=>({enabled:r()})]),$(g,I)},$$slots:{default:!0}}),H(),o()}var S2=Ie('<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 iv(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=S2();ui(),$(e,o)},$$slots:{default:!0}})}function Ic(t,e){B(e,!0);let i=_(e,"ref",15,void 0),o=_(e,"hidden",3,!1),r=_(e,"disabled",3,!1),a=j("tooltip_interactive_seek"),l=f(()=>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)=>{iv(d,{})},$$slots:{default:!0}}),H()}var C2=Ie('<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>'),T2=Ie('<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 ov(t,e){let i=_(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=T2(),d=P(ue(l));{var s=u=>{var m=C2();$(u,m)};V(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=_(e,"ref",15,void 0),o=_(e,"hidden",3,!1),r=_(e,"disabled",3,!1),a=_(e,"graphIsOpened",3,!1),d=_e().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>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,p)=>{let v=f(()=>!!a());ov(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var nv=require("@vkontakte/videoplayer-core/es2015");function kc(t,e){B(e,!0);let[i,o]=Oe(),r=()=>x(u,"$playbackState$",i),a=_(e,"isMobile",3,!1),l=_(e,"isLiveActive",3,!1),d=_(e,"ariaLabel",3,""),s=_e(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===nv.PlaybackState.PAUSED&&p()}),b=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),g=f(()=>l()&&r()===nv.PlaybackState.PLAYING);Kt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(g)},get ariaLabel(){return d()},get click(){return n(v)},children:(w,I)=>{nc(w,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var rv=require("@vkontakte/videoplayer-shared/es2015");var I2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),E2=L('<img class="icon" aria-hidden="true"/>');function il(t,e){"use strict";let i=q(!1),o=()=>{R(i,!0)};var r=Le(),a=ue(r);{var l=s=>{var u=I2();$(s,u)},d=s=>{var u=E2();O(()=>Ve(u,"src",e.icon)),dt("error",u,o),Na(u),$(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function sv(t,e){B(e,!0);let i=_(e,"disabled",3,!1),o=_(e,"onClick",3,rv.noop),r=_(e,"ref",15),a=f(()=>o()===rv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");No(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=f(()=>{var p;return(p=e.testId)!=null?p: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:(p,v)=>{il(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Hb=t=>!!t.buttonComponent;var Ws={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var $p=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(ir(t,i,r,o))};var yp=require("@vkontakte/videoplayer-shared/es2015"),Fb=10,Ub=40,av=.2,P2=.5,A2=65,L2=114,M2=4,zb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?A2:L2),r=q(!1),a=q(0),l=q(0),d=f(()=>n(o)+Fb-Ub-M2),s=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,-n(d)])),u=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,Ub])),m=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,n(o)+Fb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:g=>{var w;R(l,((w=e())==null?void 0:w.getBoundingClientRect().bottom)||0,!0),R(r,!0)},onPointerMove:g=>{if(!n(r))return;let w=Math.max(Math.min(g.clientY-n(l),0),-n(d));R(a,Math.abs(w/n(d)),!0)},onPointerUp:()=>{R(r,!1),R(a,n(a)>=P2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{R(a,0)}}};var V2=t=>t;function xs(t,{delay:e=0,duration:i=400,easing:o=V2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var R2=L('<span class="root s-2d"> </span>'),N2={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 lv(t,e){G(t,N2);var i=R2(),o=T(i,!0);S(i),O(()=>ve(o,e.time)),$(t,i)}var O2=L('<div class="tooltip-wrapper s-v"><div><!></div></div>'),D2={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 dv(t,e){G(t,D2);let i=_(e,"active",3,!1),o=_(e,"pointer",3,!1),r=_(e,"translateXPx",3,0),a=_(e,"translateYPx",3,0),l=_(e,"leftOffset",3,0),d=_(e,"rightOffset",3,0),s=q(void 0),u=q(void 0);function m(w){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),C=I/2;return w<C?C+l():w>e.containerWidth-C?e.containerWidth-C-d():w}let p=f(()=>m(r()));var v=O2(),b=T(v);let y;var g=T(b);si(g,()=>{var w;return(w=e.children)!=null?w:ht}),S(b),Ze(b,w=>R(u,w),()=>n(u)),S(v),Ze(v,w=>R(s,w),()=>n(s)),O(w=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ne(b,1,"tooltip s-v",null,y,w),Ke(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var Wb=t=>Math.abs(t)/90%4===1;var B2=L('<div class="preview s-u"></div>'),H2=L('<div class="time s-u"> </div>'),F2=L('<div><!> <div class="episode s-u"><!></div> <!></div>'),U2={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 cv(t,e){B(e,!0),G(t,U2);let[i,o]=Oe(),r=()=>x(y,"$rotateAlpha",i),a=()=>x(g,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=_(e,"time",3,""),s=_(e,"isMobile",3,!1),u=_(e,"videoEpisodes",19,()=>[]),m=_(e,"progress",3,0),p=_(e,"duration",3,0),v=_(e,"isInteractive",3,!1),b=_e(),y=b.ui.rotateAlpha,g=b.ui.playerSize,w=q(0),I=q(0),C=q(""),N=q(0),A=q(0),E=q(0),k=q(0),Q=f(()=>up(m(),p(),u())),F=f(()=>od(r())),z=f(()=>Wb(r())),X=f(oe),se=f(()=>(n(z)?1:-1)*(n(w)/2-n(I)/2)),Z=f(()=>n(se)*-1);De(()=>{(K=>{R(w,K.width,!0),R(I,K.height,!0)})(Ce())}),De(()=>{(K=>{R(C,K.imgSrc,!0),R(N,K.imgWidth,!0),R(A,K.imgHeight,!0),R(E,K.imgOffsetX,!0),R(k,K.imgOffsetY,!0)})(me(m()))});function oe(){var He;let K=s()?l.MOBILE:l.DESKTOP,{isVertical:ae}=J(),xe=30;return(He=n(Q))!=null&&He.text&&(xe+=16),(ae||n(F))&&(xe+=18,xe+=50),Math.min(Math.max(a().height-xe,0),K)}function J(){let K=e.previewThumbsData.frameWidth,ae=e.previewThumbsData.frameHeight,xe=ae>K;return{width:K,height:ae,isHorizontal:!xe,isVertical:xe}}function Ce(){let{height:K,isHorizontal:ae,isVertical:xe,width:He}=J();return ae&&(K=K/He*n(X),He=n(X)),xe&&(He=He/K*n(X),K=n(X)),{width:He,height:K}}function me(K){let ae;e.previewThumbsData.isUV?ae=Math.floor(p()*K/e.previewThumbsData.frequency):ae=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let xe=Math.floor(ae/e.previewThumbsData.countPerImage),He=Math.floor(ae%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=ae%e.previewThumbsData.countPerRow,re=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(re=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&re++);let ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ne=n(w)*ce,Re=n(I)*re,tt=-ot*n(w),Ee=-He*n(I);return{imgSrc:e.previewThumbsData.links[xe],imgWidth:Ne,imgHeight:Re,imgOffsetX:tt,imgOffsetY:Ee}}var ee=F2();let be;var we=T(ee);{var ge=K=>{var ae=B2();O(()=>Ke(ae,`width: ${n(w)}px; height: ${n(I)}px; background-image: url(${n(C)}); background-size: ${n(N)}px ${n(A)}px; background-position: ${n(E)}px ${n(k)}px;
61
- transform: rotate(${r()}deg) ${n(F)?`translate(${n(se)}px, ${n(Z)}px)`:""};
62
- `)),$(K,ae)};V(we,K=>{n(C)&&K(ge)})}var pe=P(we,2),Qe=T(pe);{var U=K=>{var ae=Le(),xe=ue(ae);{var He=re=>{var ce=_s();O(Ne=>ve(ce,Ne),[()=>j("tooltip_episode_unfinished")]),$(re,ce)},ot=re=>{var ce=_s();O(()=>ve(ce,n(Q).text||"")),$(re,ce)};V(xe,re=>{v()&&n(Q).completed===!1?re(He):re(ot,!1)})}$(K,ae)};V(Qe,K=>{n(Q)&&K(U)})}S(pe);var D=P(pe,2);{var Ge=K=>{var ae=H2(),xe=T(ae,!0);S(ae),O(()=>ve(xe,d())),$(K,ae)};V(D,K=>{v()||K(Ge)})}S(ee),O(K=>{be=ne(ee,1,"timeline-preview s-u",null,be,K),Ke(ee,`width: ${n(F)?n(I):n(w)}px;`)},[()=>({mobile:s()})]),$(t,ee),H(),o()}var z2=L('<span class="time s-f"> </span>'),W2=L("<!> <!>",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 uv(t,e){var le,ye,Me,st,Lt;B(e,!0),G(t,K2);let[i,o]=Oe(),r=()=>x(Z,"$interactiveEpisodes$",i),a=()=>x(k,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(Ce,"$isInteractiveExpectation$",i),s=()=>x(J,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),m=()=>x(Q,"$isLive$",i),p=()=>x(be,"$disabledControls$",i),v=()=>x(z,"$isMobile",i),b=()=>x(F,"$isActiveLive$",i),y=()=>x(A,"$bufferedProgress$",i),g=_(e,"showTimeline",3,!1),w=_(e,"withEpisodes",3,!0),I=_(e,"ref",15,void 0),C=_e(),N=Bt(),A=C.state.bufferedProgress$,E=C.state.positionWithScrubbing$,k=C.state.duration$,Q=C.state.isLive$,F=C.state.isActiveLive$,z=C.ui.isMobile,X=N.features.episodes&&w()?C.actions.internal.getVideoEpisodes():void 0,se=C.actions.internal.getPreviewThumbsData(),Z=C.state.interactiveEpisodes$,oe=C.state.isInteractive,J=C.state.isInteractiveTime$,Ce=C.state.isInteractiveExpectation$,me=C.actions.internal.correctSeekTimeToInteractive,ee=(le=C.callbacks)==null?void 0:le.onDisabledTimelineClick,be=C.ui.controls.disabledControls$,we=C.ui.previewTrackActive,ge=(Me=(ye=C.callbacks)==null?void 0:ye.uiInfo)==null?void 0:Me.onTimelineMouseEnter,pe=(Lt=(st=C.callbacks)==null?void 0:st.uiInfo)==null?void 0:Lt.onTimelineMouseLeave,Qe=C.ui.t,U=N.features.interactiveResponsiveUi,D=f(()=>oe?r():X),Ge=f(()=>en(a())),K=f(()=>en(l())),ae=f(()=>l()/a()),xe=f(()=>d()||s()),He=q(!1),ot=q(""),re=q(0),ce=q(0),Ne=q(0),Re=f(()=>({containerWidth:n(ce),translateXPx:n(re),translateYPx:oe&&se?-36:-16,active:n(He)&&g()&&!n(xe)&&!U&&!u(),pointer:!N.features.timelinePreview||!se||m()})),tt=Qe("aria_timeline"),Ee=f(()=>Qe("aria_timeline_value",{position:n(K),duration:n(Ge)}));function Te(fe){return!me||!oe?fe:me(fe*a())/a()}function Fe(fe,Be){var We;(We=e.onSliderPointerDown)==null||We.call(e,Be),C.actions.internal.startScrubbing(Te(fe))}function kt(fe){s()||C.actions.internal.progressScrubbing(Te(fe))}function Ct(fe){var Be;C.actions.internal.completeScrubbing(Te(fe)),R(He,!1),(Be=e.onSliderPointerUp)==null||Be.call(e)}function Rt(fe,Be,We){var wt;(wt=e.onSliderPointerEnter)==null||wt.call(e,fe),ti(fe,Be,We),R(He,!0)}function ct(fe,Be,We,wt){var Qt;(Qt=e.onSliderMove)==null||Qt.call(e,wt,fe),ti(fe,Be,We),R(He,!0)}function Pt(){var fe;R(He,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function ti(fe,Be,We){R(Ne,Te(fe),!0),R(re,Be,!0),We&&R(ce,We,!0),R(ot,At(fe),!0)}function At(fe){let Be=en((m()?1-fe:fe)*a());return m()?`-${Be}`:Be}let Ft=f(()=>p().has("TIMELINE"));var qt=W2(),Y=ue(qt);dv(Y,rs(()=>n(Re),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Be)=>{var We=Le(),wt=ue(We);{var Qt=mi=>{cv(mi,{get time(){return n(ot)},get isMobile(){return v()},get videoEpisodes(){return n(D)},get previewThumbsData(){return se},get progress(){return n(Ne)},get duration(){return a()},get isInteractive(){return oe}})},Mt=mi=>{var pi=z2(),Bi=T(pi,!0);S(pi),O(()=>ve(Bi,n(ot))),$(mi,pi)};V(wt,mi=>{N.features.timelinePreview&&se&&!m()?mi(Qt):mi(Mt,!1)})}$(fe,We)},$$slots:{default:!0}}));var ke=P(Y,2);Ja(ke,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return tt},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ee)},get loadedProgress(){return y()},get filledProgress(){return n(ae)},get handleProgress(){return n(ae)},get videoEpisodes(){return n(D)},onPointerDown:Fe,onHandleMove:kt,onPointerMove:ct,onPointerUp:Ct,onPointerEnter:Rt,onPointerLeave:Pt,get onMouseEnter(){return ge},get onMouseLeave(){return pe},get onDisabledClick(){return ee},get isInteractive(){return oe},get disabled(){return n(Ft)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:Ct,get ref(){return I()},set ref(fe){I(fe)}}),$(t,qt),H(),o()}var q2={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 Pc(t,e){B(e,!0),G(t,q2);let[i,o]=Oe(),r=()=>x(s,"$isMobile",i),a=_(e,"position",3,0),l=_(e,"duration",3,0),d=_e(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>en(l())),p=f(()=>en(a())),v=f(()=>a()/l()),b=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));Ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(b)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var Q2=L("<div><!></div>"),G2=L("<div></div>"),Y2={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 ol(t,e){B(e,!0),G(t,Y2);let[i,o]=Oe(),r=()=>x(w,"$isLive$",i),a=()=>x(N,"$isMobile",i),l=()=>x(A,"$disabled",i),d=()=>x(C,"$adPosition",i),s=()=>x(I,"$adDuration",i),u=_(e,"isAds",3,!1),m=_(e,"isHidden",3,!1),p=_(e,"timelineNotAvailable",3,!1),v=_(e,"needPadding",3,!0),b=_(e,"ref",15,void 0),y=_e(),g=Bt(),w=y.state.isLive$,I=y.ads.duration,C=y.ads.position,N=y.ui.isMobile,A=de(!1),E=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var k=Le(),Q=ue(k);{var F=X=>{var se=Q2();let Z;var oe=T(se);{var J=me=>{Pc(me,{get position(){return d()},get duration(){return s()}})},Ce=me=>{uv(me,{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 b()},set ref(ee){b(ee)}})};V(oe,me=>{u()?me(J):me(Ce,!1)})}S(se),Os(se,()=>Gl(m()&&g.features.usePerformanceFix,A,g.disableInvisibleComponentsTimeout)),O(me=>Z=ne(se,1,"timeline s-d",null,Z,me),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(X,se)},z=X=>{var se=G2();let Z;O(oe=>Z=ne(se,1,"timeline-stub s-d",null,Z,oe),[()=>({mobile:a()})]),$(X,se)};V(Q,X=>{n(E)?X(F):X(z,!1)})}$(t,k),H(),o()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var j2=(t,e,i,o,r,a,l)=>{R(e,!0),R(i,t.clientX,!0),R(o,n(r),!0),a(l())},X2=L("<div></div>"),Z2=L('<div><div class="track s-2c"></div></div>'),J2={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 fv(t,e){B(e,!0),G(t,J2);let[i,o]=Oe(),r=()=>x(N,"$rotateAlpha",i),a=()=>x(g,"$position$",i),l=()=>x(y,"$duration$",i),d=_e(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:g}=d.state,{startScrubbing:w,progressScrubbing:I,completeScrubbing:C}=d.actions.internal,N=d.ui.rotateAlpha,A=q(void 0),E=q(!1),k=q(0),Q=q(0),F=q(0),z=q(0),X=f(()=>v<=b),se=f(()=>od(r())),Z=f(()=>n(X)?!n(se):n(se)),oe=114,J=65,Ce=3,me=f(()=>n(Z)?oe:J),ee=f(()=>n(X)?oe:J),be=f(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=f(()=>m*n(me)),ge=q(0);De(()=>{R(z,Math.ceil(-n(F)/n(me))-1),R(F,-n(we)*a()/l())});let pe=()=>{C(Qe(),!0)},Qe=()=>l()*-n(F)/n(we)/l(),U=!1,D=Ee=>{if(!n(E))return!1;let Te=Ee.clientX-n(k);R(F,n(Q)+Te),R(F,Math.max(Math.min(n(F),0),-n(we)),!0),Math.abs(Te)>1&&(U=!0),I(Qe())},Ge=Ee=>{n(E)&&(R(E,!1),!U&&Ee&&R(F,-(Ee.offsetX-n(ge)/2)),U=!1,pe())},K=()=>{n(E)&&Ge()},ae=f(()=>s/u),xe=(Ee,Te)=>{if(Ee!==p.length-1)return u;let Fe=0,kt=Te*u;for(let Ct=1;Ct<=u;Ct++)Ee*s+Fe+kt<m&&Fe++;return Fe},He=f(()=>Math.floor(n(z)/s)),ot=f(()=>(0,Kb.getRangeAroundIndex)(3,n(He),p.length-1)),re=(Ee,Te,Fe)=>{let kt=s*n(me);return Ee*kt+Te*n(me)*u+n(ge)/2-Ce/2+Fe*n(me)},ce=f(()=>[`--row-numbers: ${n(ae)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(be)}`].join(";"));var Ne=Z2();let Re;var tt=T(Ne);tt.__pointerdown=[j2,E,k,Q,F,w,Qe],tt.__pointermove=D,tt.__pointerup=Ge,wi(tt,20,()=>n(ot),Ee=>Ee,(Ee,Te)=>{var Fe=Le(),kt=ue(Fe);wi(kt,16,()=>Array.from({length:n(ae)},(Ct,Rt)=>Rt),Ct=>Ct,(Ct,Rt)=>{var ct=Le(),Pt=ue(ct);wi(Pt,16,()=>Array.from({length:xe(Te,Rt)},(ti,At)=>At),ti=>ti,(ti,At)=>{var Ft=X2();O((qt,Y)=>{Ke(Ft,qt),ne(Ft,1,Y,"s-2c")},[()=>`--row-index: ${Rt}; --column-index: ${At}; left: ${re(Te,Rt,At)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(ti,Ft)}),$(Ct,ct)}),$(Ee,Fe)}),S(tt),S(Ne),Ze(Ne,Ee=>R(A,Ee),()=>n(A)),O(Ee=>{Re=ne(Ne,1,"root s-2c",null,Re,Ee),Ke(Ne,n(ce)),Ke(tt,`transform: translateX(${n(F)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(se)})]),dt("mouseleave",tt,K),Rn(Ne,"clientWidth",Ee=>R(ge,Ee)),$(t,Ne),H(),o()}Ye(["pointerdown","pointermove","pointerup"]);var ew=L('<div class="notification s-2b"><span class="description s-2b"> </span></div>'),tw={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 mv(t,e){B(e,!1),G(t,tw);let i=340,{ui:{t:o}}=_e();$o();var r=ew(),a=T(r),l=T(a,!0);S(a),S(r),O(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],Pn),ns(3,r,()=>xs,()=>({duration:i})),$(t,r),H()}var qb=require("@vkontakte/videoplayer-shared/es2015"),iw=L('<div class="preview-track-close tooltip s-29"><!></div>'),ow=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),nw=L('<div class="wrapper-preview-track s-29"><!></div>'),rw=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),sw={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 vv(t,e){B(e,!0),G(t,sw);let[i,o]=Oe(),r=()=>x(g,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(w,"$previewTrackActive",i),d=()=>x(v,"$position$",i),s=()=>x(b,"$isRewindableLive$",i),u=_(e,"timelineRef",15,void 0),m=_e(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=m.state,{playerSize:g,previewTrackActive:w}=m.ui,{countPerImage:I=0,links:C=[],frequency:N=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),E=q(!Z_()),k=()=>{n(E)&&(X_(),R(E,!1))},Q=me=>{let ee=Math.floor(a()*me/N),be=Math.floor(ee/I),we=(0,qb.getRangeAroundIndex)(3,be,C.length-1);for(let ge of we){let pe=new Image;pe.src=C[ge]}},F=(me,ee)=>{Q(ee),!l()&&e.onTimelineMove(me)};var z=rw(),X=T(z);{var se=me=>{var ee=ow(),be=T(ee);let we=f(()=>en(d()));lv(be,{get time(){return n(we)}});var ge=P(be,2),pe=T(ge);Bs(pe,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(ge);var Qe=P(ge,2);{var U=D=>{var Ge=iw(),K=T(Ge);mv(K,{}),S(Ge),$(D,Ge)};V(Qe,D=>{n(E)&&D(U)})}S(ee),dt("mouseleave",ge,k),ns(3,ee,()=>xs,()=>({duration:p})),$(me,ee)};V(X,me=>{l()&&me(se)})}var Z=P(X,2);let oe=f(()=>!n(A));ol(Z,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Q,get ref(){return u()},set ref(me){u(me)}});var J=P(Z,2);{var Ce=me=>{var ee=nw(),be=T(ee);fv(be,{}),S(ee),O(()=>Ke(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),$(me,ee)};V(J,me=>{e.previewTrackAvailable&&me(Ce)})}S(z),O(()=>Ke(z,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,z),H(),o()}var lw=L('<div><!> <div class="controls s-18" data-testid="player_controls"><div class="controls-left s-18"><!> <!> <!></div> <div class="controls-right s-18"></div></div></div> <!>',1),dw={hash:"s-18",code:'.wrapper-bottom.s-18{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-18:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-18>:where(.s-18){pointer-events:auto}.controls.s-18{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-18,.controls-right.s-18{align-content:center;display:flex}.controls-left.s-18{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-18 >:not(:first-child),.controls-right.s-18 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-18{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-18{transition:none}'};function hv(t,e){var _l,wa;B(e,!0),G(t,dw);let[i,o]=Oe(),r=()=>x(tn,"$disabledControls$",i),a=()=>x(rt,"$adPlaybackState",i),l=()=>x(Mt,"$playbackState$",i),d=()=>x(bo,"$currentSubtitle$",i),s=()=>x(Bi,"$isEnded$",i),u=()=>x(gn,"$currentGridType$",i),m=()=>x(Nt,"$isLive$",i),p=()=>x(je,"$chromecastState$",i),v=()=>x(mt,"$isPictureInPictureActive",i),b=()=>x(Jt,"$pictureInPictureType$",i),y=()=>x(gi,"$availableSubtitlesList$",i),g=()=>x(Ut,"$contextMenuOpenedByKeyboard$",i),w=()=>x(St,"$showContextMenuBtn$",i),I=()=>x(xi,"$isRewindableLive$",i),C=()=>x(vi,"$isActiveLive$",i),N=()=>x(Fr,"$graphIsOpened$",i),A=()=>x(on,"$contextMenuVisible$",i),E=()=>x(Fi,"$isFullscreen",i),k=()=>x(Vi,"$autoplayNextEnabled",i),Q=()=>x(n(Fo),"$prevButton",i),F=()=>x(n(So),"$replayButton",i),z=()=>x(n(an),"$playButton",i),X=()=>x(n(uo),"$nextButton",i),se=()=>x(n(Co),"$playPrevChapterButton",i),Z=()=>x(n(ki),"$seekToInteractiveButton",i),oe=()=>x(n(Kr),"$interactiveGraphButton",i),J=()=>x(n(qn),"$liveButton",i),Ce=()=>x(n(Ss),"$time",i),me=()=>x(n(Ki),"$episodes",i),ee=()=>x(n(Cs),"$vkLogo",i),be=()=>x(n(us),"$volume",i),we=()=>x(n(Ir),"$subtitles",i),ge=()=>x(n(Uo),"$settings",i),pe=()=>x(n(qr),"$context",i),Qe=()=>x(n(ln),"$fullscreen",i),U=()=>x(n(dn),"$chromecast",i),D=()=>x(hn,"$additionalDesktopControlPanelRightButtons$",i),Ge=()=>x(Mi,"$playerSize",i),K=()=>x(Do,"$isInteractiveTime$",i),ae=()=>x(di,"$previewTrackActive",i),xe=()=>x(Hi,"$settingsMenuVisible",i),He=()=>x(qi,"$settingButtonRef$",i),ot=()=>x(W,"$startedByKeyboard$",i),re=()=>x(mi,"$isAudioAvailable$",i),ce=()=>x(qt,"$fakeIsPlaying$",i),Ne=()=>x(ws,"$seekToInteractiveDisabledTooltip$",i),Re=()=>x(In,"$isPreviewTrackHorizontallyAligned$",i),tt=()=>x(Ti,"$previewTrackAvailable",i),Ee=()=>x(Po,"$previewTrackDragInProgress",i),Te=()=>x(bt,"$adPosition",i),Fe=()=>x(Qt,"$position$",i),kt=()=>x(ii,"$adDuration",i),Ct=()=>x(wt,"$duration$",i),Rt=_(e,"playerControlsWrapperRef",15,void 0),ct=_(e,"playerControlsRef",15,void 0),Pt=_(e,"isAds",3,!1),ti=_(e,"logoTargetUrl",3,""),At=_(e,"isOneVideoPlaylist",3,!1),Ft=_(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:qt}=yo(),Y=_e(),ke=yo(),le=Bt(),ye=Y.actions.internal.toggleMuted,Me=Y.actions.internal.togglePlay,st=Y.actions.internal.pause,Lt=Y.actions.internal.toggleSubtitle,fe=Y.actions.internal.checkFullscreenSupport,Be=(_l=Y.callbacks)==null?void 0:_l.onAudioDoesNotExistHint,We=(wa=Y.callbacks)==null?void 0:wa.onAudioDisabledHint,wt=Y.state.duration$,Qt=Y.state.positionWithScrubbing$,Mt=Y.state.playbackState$,mi=Y.state.isAudioAvailable$,pi=Y.state.isAudioDisabled,Bi=Y.state.isEnded$,Nt=Y.state.isLive$,vi=Y.state.isActiveLive$,xi=Y.state.isRewindableLive$,{isActive$:mt,type$:Jt}=ke.pictureInPicture$,Hi=Y.ui.settingsMenu.visible$,Si=Y.ui.settingsMenu.openedByBtnKeyboard$,ri=Y.ui.controls,_t=Y.actions.internal.getVideoEpisodes(),je=Y.state.chromecastState$,gi=Y.state.availableSubtitlesList$,bo=Y.state.currentSubtitle$,tn=ri.disabledControls$,on=Y.ui.contextMenu.visible$,St=Y.ui.contextMenu.showContextMenuBtn$,Ut=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,Ot=Y.ui.controlBlocks,li=Y.ui.previewTrackNotificationVisible,vt=Y.ui.t,ii=Y.ads.duration,bt=Y.ads.position,rt=Y.ads.playbackState,Fi=Y.ui.isFullscreen,Mi=Y.ui.playerSize,gn=Y.ui.currentGridType$,hn=Y.ui.additionalDesktopControlPanelRightButtons$,Vi=Y.ui.autoplayNextEnabled$,Ui=Y.actions.internal.getVideoElement,Hn=Y.actions.internal.replayInteractive,xo=Y.actions.internal.prevVideoClick,lo=Y.actions.internal.nextVideoClick,Ai=Y.state.isInteractive,Do=Y.state.isInteractiveTime$,Bo=Y.state.showInteractiveGraph,_n=Y.state.showSeekToInteractive,Dr=Y.state.showPlayPrevChapter,Br=Y.state.showInteractiveTimeIndicator,Hr=Y.state.playPrevChapterDisabledTooltip,ws=ke.seekToInteractiveDisabledTooltip$,Fr=ke.graphIsOpened$,nr=le.features.interactiveResponsiveUi,Ur=f(()=>r().has("EPISODE_BUTTON")),bn=f(()=>r().has("GRAPH_BUTTON")),$n=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),_r=f(()=>r().has("PLAY_BUTTON")),br=f(()=>r().has("REPLAY_BUTTON")),nn=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),$r=()=>Y.actions.internal.toggleChromecast(),yr=f(()=>Pt()?a()==="playing":l()===nl.PlaybackState.PLAYING),rr=f(()=>d().value!=="off"),Fn=f(()=>s()&&!Pt()||Ai),cs=f(()=>nr?n(Fn)&&ro(u(),"m"):n(Fn)),Ho=f(()=>!s()||Ai||Pt()),xr=f(()=>ro(u(),"m")),zi=f(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Pt()&&e.nextButtonActive),wr=f(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Pt()&&e.prevButtonActive),Un=f(()=>!Pt()&&!!m()),ft=f(()=>p()!==nl.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&ro(u(),"m")&&!Ai),oi=f(()=>e.showAutoplayNext&&!At()&&ro(u(),"s")),Sr=f(()=>y().length>0&&ro(u(),"m")),zr=f(()=>g()||w()),Wr=f(()=>ro(u(),"s")&&!Pt()),zn=f(()=>!e.logoHidden&&!Pt()),sr=f(()=>le.features.fullscreen&&fe()&&(e.logoHidden||ro(u(),nr?"xs":"s"))&&!(v()&&b()===1)&&(Ai?Ft():!0)),wo=f(()=>(!m()||Pt())&&!(le.features.interactiveHideTime&&Ai)),Wn=f(()=>Bo&&ro(u(),"m")),ar=f(()=>nr?_n&&ro(u(),"s"):_n),Kn=f(()=>nr?Dr&&ro(u(),"s"):Dr),yn=f(()=>!Pt()&&!m()&&!!(_t!=null&&_t.length)&&n(xr)&&!n(Ur)),xn=f(()=>!I()||!!C()),wn=f(()=>N()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),rn=f(()=>A()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),Wi=(pt,nt)=>pt?nt&&nt===nl.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),eo=f(()=>Wi(n(xn),l())),sn=f(()=>le.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),lr=f(()=>n(rr)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Cr=f(()=>E()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),Sn=f(()=>p()===nl.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),Tr=f(()=>k()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),ut=q(0),Tt=ci({}),co=ci({}),Fo=f(()=>ri.prevButton),So=f(()=>ri.replayButton),an=f(()=>ri.playButton),uo=f(()=>ri.nextButton),Co=f(()=>ri.playPrevChapterButton),ki=f(()=>ri.seekToInteractiveButton),Kr=f(()=>ri.interactiveGraphButton),qn=f(()=>ri.liveButton),Ss=f(()=>ri.time),Ki=f(()=>ri.episodes),Cs=f(()=>ri.vkLogo),us=f(()=>ri.volume),Ir=f(()=>ri.subtitles),Uo=f(()=>ri.settings),qr=f(()=>ri.context),ln=f(()=>ri.fullscreen),dn=f(()=>ri.chromecast),Ue=f(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:F()?F().right-F().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:se()?se().right-se().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:J()?J().right-J().left:0,time:Ce()?Ce().right-Ce().left:0,episodes:me()?me().right-me().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:be()?be().right-be().left:0,subtitles:we()?we().right-we().left:0,settings:ge()?ge().right-ge().left:0,context:pe()?pe().right-pe().left:0,fullscreen:Qe()?Qe().right-Qe().left:0,chromecast:U()?U().right-U().left:0,additionalButtons:D().length?D().reduce(pt=>[...pt,40],[]):[]})),It=q(0);De(()=>{(!n(It)||n(It)<n(Ue).time)&&Et(()=>R(It,n(Ue).time,!0))});let fi=q(!1);De(()=>{let pt=0;n(yn)&&(ro(u(),"xl")?pt=n(Ue).time:pt=60);let nt=n(Ue).prevButton+n(Ue).playButton+n(Ue).nextButton+n(Ue).seekToInteractiveButton+n(Ue).interactiveGraphButton+n(Ue).liveButton+n(It)+pt;R(fi,n(wo)&&n(ut)>=nt,!0)});let zo=f(()=>n(fi)&&ro(u(),"m")),To=(0,gv.debounceFn)(rd,260),Wo=(0,gv.debounceFn)($p,260);De(()=>{Ge(),K(),ae(),To(Ui(),ri,Tt,e.showControls),Wo(Ui(),Ot,co,e.showControls)}),De(()=>{co.bottom=Rt()});let qi=de();De(()=>{xe(),He()&&Et(()=>jl(He(),xe(),Si))});let Io;De(()=>{ot(),Et(()=>_p(W,ot(),Io))});function Qn(){pa({isAudioDisabled:pi,isAudioAvailable:re(),isAds:Pt(),audioIsNotExistHintCallback:Be,audioDisabledHintCallback:We})&&ye()}let Er=Ai?Hn:Me,Eo=f(()=>ce()!==null),po=f(()=>n(Eo)?ce():n(yr)),Cn=f(()=>n(po)?vt("tooltip_pause"):vt("tooltip_play")),Ko=vt("tooltip_episodes"),Gn=f(()=>{var pt,nt,to,Lo;return n(wr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Us.prevButton,buttonComponent:tl,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:xo.bind(null,!0)},tooltipEnabled:!((nt=(pt=Y.callbacks)==null?void 0:pt.uiInfo)!=null&&nt.onPrevButtonMouseEnter)&&!((Lo=(to=Y.callbacks)==null?void 0:to.uiInfo)!=null&&Lo.onPrevButtonMouseLeave),mouseEnter:()=>{var io,$i,Gi;(Gi=($i=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:$i.onPrevButtonMouseEnter)==null||Gi.call($i,ir(Ui(),Tt,"prevButton",e.showControls))},mouseLeave:()=>{var io,$i,Gi;(Gi=($i=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:$i.onPrevButtonMouseLeave)==null||Gi.call($i,ir(Ui(),Tt,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Qr=f(()=>n(cs)?{id:"replayButton",type:"desktop-control-panel-left",weight:Us.replayButton,buttonComponent:sd,buttonComponentProps:{disabled:n(br),click:Er},tooltipText:vt("tooltip_restart"),disabled:n(br)}:void 0),Gr=f(()=>n(Ho)?{id:"playButton",type:"desktop-control-panel-left",weight:Us.playButton,buttonComponent:ad,buttonComponentProps:{disabled:n(_r),isPlaying:n(yr),click:Me},tooltipText:n(Cn),disabled:n(_r)}:void 0),Yn=f(()=>{var pt,nt,to,Lo;return n(zi)?{id:"nextButton",type:"desktop-control-panel-left",weight:Us.nextButton,buttonComponent:tl,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:lo.bind(null,!0)},tooltipEnabled:!((nt=(pt=Y.callbacks)==null?void 0:pt.uiInfo)!=null&&nt.onNextButtonMouseEnter)&&!((Lo=(to=Y.callbacks)==null?void 0:to.uiInfo)!=null&&Lo.onNextButtonMouseLeave),mouseEnter:()=>{var io,$i,Gi;(Gi=($i=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:$i.onNextButtonMouseEnter)==null||Gi.call($i,ir(Ui(),Tt,"nextButton",e.showControls))},mouseLeave:()=>{var io,$i,Gi;(Gi=($i=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:$i.onNextButtonMouseLeave)==null||Gi.call($i,ir(Ui(),Tt,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),et=f(()=>Ai&&n(Kn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Us.playPrevChapterButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(nn),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(Hr),disabled:n(nn)}:void 0),ei=f(()=>Ai&&n(ar)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Us.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n($n),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:n($n),disabledTooltipContent:vt(Ne())}:void 0),Ci=f(()=>Ai&&n(Wn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Us.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(bn),click:Fr.toggle,graphIsOpened:N()},tooltipText:n(wn)}:void 0),ko=f(()=>n(Un)?{id:"liveButton",type:"desktop-control-panel-left",weight:Us.liveButton,buttonComponent:kc,buttonComponentProps:{isLiveActive:n(xn),ariaLabel:n(eo)},tooltipText:n(eo),disabled:n(xn)&&l()===nl.PlaybackState.PLAYING}:void 0),Tn=f(()=>[n(Gn),n(Qr),n(Gr),n(Yn),n(et),n(ei),n(Ci),n(ko)].filter(pt=>!!pt).sort(Ga)),jn=f(()=>n(zn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ws.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:st},tooltipText:n(sn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),qo=f(()=>n(oi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ws.autoplayNext,buttonComponent:Tc,tooltipText:n(Tr)}:void 0),dr=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ws.volume,buttonComponent:Um,buttonComponentProps:{click:Qn,isAds:Pt()}})),ps=f(()=>n(Sr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ws.subtitles,buttonComponent:Dm,buttonComponentProps:{isSubtitlesEnabled:n(rr),click:Lt},tooltipText:n(lr)}:void 0),kr=f(()=>n(Wr)?{id:"settings",type:"desktop-control-panel-right",weight:Ws.settings,buttonComponent:td,buttonComponentProps:{ref$:qi},tooltipText:xe()?void 0:vt("tooltip_settings_off")}:void 0),Ts=f(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ws.context,buttonComponent:ev,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:n(zr)?"":"out-of-view",tooltipText:n(rn)}:void 0),Qs=f(()=>n(sr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ws.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Cr)}:void 0),_a=f(()=>n(ft)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ws.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:$r},tooltipText:n(Sn)}:void 0),lt=f(()=>[n(jn),n(qo),n(dr),n(ps),n(kr),n(Ts),n(Qs),n(_a),...D()].filter(pt=>!!pt).sort(Ga)),di=Y.ui.previewTrackActive,Po=Y.ui.previewTrackDragInProgress,Ti=Y.ui.previewTrackAvailable,In=Y.ui.isPreviewTrackHorizontallyAligned,En=f(()=>zb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>Tt.timeline,isHorizontal:Re()})),Is=f(()=>n(En).progressBarY),Es=f(()=>n(En).controlsY),Qi=f(()=>n(En).onPointerDown),Pi=f(()=>n(En).onPointerMove),he=f(()=>n(En).onPointerUp),$t=f(()=>n(En).calculatedHeight),ni=f(()=>n(En).closePreviewTrack);De(()=>{ae()?li.set(!1):n(ni)()});let Zt;Dt(()=>()=>Zt&&clearTimeout(Zt));let Ao=pt=>{ae()||!tt()||(n(Qi)(pt),Zt=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},fo=()=>{ae()||n(he)(),Zt&&clearTimeout(Zt),Ee()&&Y.actions.internal.previewTrackDragFinished()},Qo=pt=>{n(Pi)(pt),!ae()&&tt()&&!ae()&&li.set(!0)},ks=()=>{li.set(!1)};var Yr=lw(),Pr=ue(Yr);let ba;var Gs=T(Pr);{var $a=pt=>{let nt=f(()=>n(Is)()),to=f(()=>n($t)());vv(pt,{get animatedOffsetY(){return n(nt)},get animatedPreviewTrackHeight(){return n(to)},get canRewindLive(){return e.canRewindLive},get isAds(){return Pt()},onTimelineMove:Qo,onTimelinePointerDown:Ao,onTimelinePointerUp:fo,onTimelinePointerLeave:ks,get previewTrackAvailable(){return tt()},get timelineRef(){return Tt.timeline},set timelineRef(Lo){Tt.timeline=Lo}})};V(Gs,pt=>{e.showControls&&pt($a)})}var jr=P(Gs,2),kn=T(jr),vl=T(kn);wi(vl,17,()=>n(Tn),pt=>pt.id,(pt,nt)=>{bp(pt,{get buttonComponent(){return n(nt).buttonComponent},get buttonComponentProps(){return n(nt).buttonComponentProps},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(nt).disabled},get className(){return n(nt).className},get tooltipEnabled(){return n(nt).tooltipEnabled},get mouseEnter(){return n(nt).mouseEnter},get mouseLeave(){return n(nt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Tt[n(nt).id]},set ref(to){Tt[n(nt).id]=to}})});var ya=P(vl,2);{var Xr=pt=>{let nt=f(()=>!e.showControls),to=f(()=>Pt()?Te():Fe()),Lo=f(()=>Pt()?kt():Ct());fc(pt,{get isHidden(){return n(nt)},isMobile:!1,get showDuration(){return n(zo)},get position(){return n(to)},get duration(){return n(Lo)},get ref(){return Tt.time},set ref(io){Tt.time=io}})};V(ya,pt=>{n(wo)&&pt(Xr)})}var gl=P(ya,2);let _d=f(()=>!n(yn));No(gl,{className:"w-max",get disabled(){return n(_d)},get tooltipContent(){return Ko},get tooltipVisible(){return e.showControls},get ref(){return Tt.episodes},set ref(pt){Tt.episodes=pt},children:(pt,nt)=>{var to=Le(),Lo=ue(to);{var io=$i=>{$c($i,{get position(){return Fe()},get duration(){return Ct()},get timeCodes(){return _t}})};V(Lo,$i=>{n(yn)&&$i(io)})}$(pt,to)},$$slots:{default:!0}}),S(kn);var xa=P(kn,2);wi(xa,21,()=>n(lt),pt=>pt.id,(pt,nt)=>{var to=Le(),Lo=ue(to);{var io=Gi=>{bp(Gi,{get buttonComponent(){return n(nt).buttonComponent},get buttonComponentProps(){return n(nt).buttonComponentProps},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(nt).disabled},get className(){return n(nt).className},get tooltipVisible(){return e.showControls},get ref(){return Tt[n(nt).id]},set ref(Ys){Tt[n(nt).id]=Ys}})},$i=Gi=>{let Ys=f(()=>!!n(nt).disabled);sv(Gi,{get id(){return n(nt).id},get testId(){return n(nt).testId},get icon(){return n(nt).icon},get ariaLabel(){return n(nt).ariaLabel},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(Ys)},get onClick(){return n(nt).onClick},get disableMouseupTooltipShow(){return n(nt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Tt[n(nt).id]},set ref($d){Tt[n(nt).id]=$d}})};V(Lo,Gi=>{Hb(n(nt))?Gi(io):Gi($i,!1)})}$(pt,to)}),S(xa),S(jr),Ze(jr,pt=>ct(pt),()=>ct()),S(Pr),Ze(Pr,pt=>Rt(pt),()=>Rt());var bd=P(Pr,2);{var hl=pt=>{wc(pt,{get ref(){return Tt.interactiveTimeIndicator},set ref(nt){Tt.interactiveTimeIndicator=nt}})};V(bd,pt=>{Br&&pt(hl)})}O((pt,nt)=>{ba=ne(Pr,1,"wrapper-bottom s-18",null,ba,pt),Ke(jr,nt),jr.inert=ae()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ee()}),()=>`transform: translateY(${n(Es)()}px);`]),Rn(kn,"clientWidth",pt=>R(ut,pt)),$(t,Yr),H(),o()}var ld=require("@vkontakte/videoplayer-core/es2015");var _v=require("@vkontakte/videoplayer-shared/es2015");var cw=L('<div class="icon icon-error-stub s-22"><div class="inner s-22"></div></div>'),uw=L('<img class="icon s-22" aria-hidden="true"/>'),pw={hash:"s-22",code:".icon.s-22{height:24px!important;width:24px!important}.inner.s-22{background-color:var(--white);height:16px;width:16px}"};function bv(t,e){G(t,pw);let i=_(e,"disabled",3,!1),o=_(e,"onClick",3,_v.noop),r=f(()=>o()===_v.noop),a=f(()=>n(r)||i()),l=q(!1),d=()=>{R(l,!0)},s=f(()=>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 p=Le(),v=ue(p);{var b=g=>{var w=cw();$(g,w)},y=g=>{var w=uw();O(()=>Ve(w,"src",e.iconUrl)),dt("error",w,d),Na(w),$(g,w)};V(v,g=>{n(l)?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}})}var fw=Ie('<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 $v(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=fw();$(e,o)},$$slots:{default:!0}})}var Qb=require("@vkontakte/videoplayer-shared/es2015");function xp(t,e){B(e,!0);let i=_(e,"muted",3,!1),o=_(e,"click",3,Qb.noop),r=_(e,"ref",15,void 0),l=_e().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>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 p=Le(),v=ue(p);{var b=g=>{$v(g,{})},y=g=>{va(g,{get size(){return"24"}})};V(v,g=>{i()?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var mw=Ie('<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>'),vw=Ie('<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>'),gw=Ie('<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 yv(t,e){let i=_(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=gw(),d=P(ue(l));{var s=m=>{var p=mw();$(m,p)},u=m=>{var p=vw();$(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}var Gb=require("@vkontakte/videoplayer-shared/es2015");function xv(t,e){B(e,!0);let i=_(e,"ref",15,void 0),o=_(e,"isPictureInPictureActive",3,!1),r=_(e,"click",3,Gb.noop),a=j("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)=>{yv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var wv=require("@vkontakte/videoplayer-shared/es2015");var hw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},_w=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},bw=L("<div><!></div>"),$w=L("<div><!></div>"),yw=L("<div><!></div>"),xw=L("<!> <!> <!>",1),ww=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Sw=L('<div class="wrapper-middle s-19"><!></div>'),Cw=L("<div><!></div> <!> <div><!></div>",1),Tw=L('<div aria-hidden="true">·</div> <!>',1),Iw=L('<!> <!> <div><div><div class="controls mobile s-19" data-testid="bottom-controls"><div class="controls-group contain s-19"><!> <!> <!> <!></div> <div class="controls-group s-19"><!> <!> <!></div></div> <!></div></div> <!>',1),Ew={hash:"s-19",code:".wrapper-bottom.s-19{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-19>:where(.s-19){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-19{height:9px;padding:0 4px 4px}.wrapper-middle.s-19{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-19,.wrapper-top-right.s-19{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-19{right:8px;top:4px}.wrapper-top-left.s-19{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-19,.wrapper-middle-left-second.s-19,.wrapper-middle-right.s-19{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-19{left:12px}.wrapper-middle-left-second.s-19{left:64px}.wrapper-middle-right.s-19{right:12px}.controls.s-19{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-19,.controls-group.s-19{display:flex}.controls-group.contain.s-19{min-width:0}.controls-group.s-19 >:not(:first-child){margin-left:8px}.hidden.s-19{opacity:0;visibility:hidden}.controls-hidden.s-19{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-19{transition:none}.overlay-mobile.s-19{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-19,.wrapper-top-right.fullscreen.s-19{top:16px}.controls-wrapper.fullscreen.s-19{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-19{left:44px;top:12px}.wrapper-top-right.fullscreen.s-19{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-19{left:44px}.wrapper-middle-left-second.fullscreen.s-19{left:96px}.wrapper-middle-right.fullscreen.s-19{right:44px}.controls-wrapper.fullscreen.s-19{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Sv(t,e){var ln,dn;B(e,!0),G(t,Ew);let[i,o]=Oe(),r=()=>x(Mi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(ri,"$disabledControls$",i),l=()=>x(At,"$playbackState$",i),d=()=>x(tn,"$adPlaybackState",i),s=()=>x(Y,"$isEnded$",i),u=()=>x(St,"$playerSize",i),m=()=>x(Lt,"$scrubbingInProgress",i),p=()=>x(Hi,"$chromecastState$",i),v=()=>x(Be,"$isPictureInPictureActive",i),b=()=>x(We,"$pictureInPictureType$",i),y=()=>x(fe,"$mobileNotReportControlHidden$",i),g=()=>x(xi,"$chromecastHidden",i),w=()=>x(ct,"$playerPhase",i),I=()=>x(Nt,"$pipHidden",i),C=()=>x(je,"$currentGridType$",i),N=()=>x(pi,"$vkLogoHidden",i),A=()=>x(mi,"$volumeHidden",i),E=()=>x(ke,"$isLive$",i),k=()=>x(wt,"$settingsMenuVisible",i),Q=()=>x(st,"$isRewindableLive$",i),F=()=>x(Me,"$isActiveLive$",i),z=()=>x(Ft,"$isAudioAvailable$",i),X=()=>x(ye,"$muted$",i),se=()=>x(le,"$volume$",i),Z=()=>x(vt,"$isInteractiveTime$",i),oe=()=>x(ar,"$settingButtonRef$",i),J=()=>x(_t,"$startedByKeyboard$",i),Ce=()=>x(on,"$isFullscreen",i),me=()=>x(Ut,"$additionalButtons$",i),ee=()=>x(Bi,"$autoplayNextToggleHidden",i),be=()=>x(Si,"$crashed$",i),we=()=>x(vi,"$settingsHidden",i),ge=()=>x(gn,"$graphIsOpened$",i),pe=()=>x(bo,"$adPosition",i),Qe=()=>x(gi,"$adDuration",i),U=()=>x(ti,"$position$",i),D=()=>x(Pt,"$duration$",i),Ge=_(e,"playerControlsWrapperRef",15,void 0),K=_(e,"playerControlsRef",15,void 0),ae=_(e,"isAds",3,!1),xe=_(e,"logoTargetUrl",3,""),He=_(e,"isOneVideoPlaylist",3,!1),ot=_(e,"customFullscreenSupported",3,!0),re=_e(),ce=yo(),Ne=Bt(),Re=re.actions.internal.toggleMuted,tt=re.actions.internal.togglePlay,Ee=re.actions.internal.pause,Te=re.actions.internal.prevVideoClick,Fe=re.actions.internal.nextVideoClick,kt=re.actions.internal.checkFullscreenSupport,Ct=(ln=re.callbacks)==null?void 0:ln.onAudioDoesNotExistHint,Rt=(dn=re.callbacks)==null?void 0:dn.onAudioDisabledHint,ct=re.playerPhase,Pt=re.state.duration$,ti=re.state.positionWithScrubbing$,At=re.state.playbackState$,Ft=re.state.isAudioAvailable$,qt=re.state.isAudioDisabled,Y=re.state.isEnded$,ke=re.state.isLive$,le=re.state.volume$,ye=re.state.muted$,Me=re.state.isActiveLive$,st=re.state.isRewindableLive$,Lt=re.ui.scrubbingInProgress,fe=re.ui.mobileNotReportControlHidden$,{isActive$:Be,type$:We}=ce.pictureInPicture$,wt=re.ui.settingsMenu.visible$,Qt=re.ui.settingsMenu.openedByBtnKeyboard$,Mt=re.ui.controls,{volume:mi,vkLogo:pi,autoplayNextToggle:Bi,pip:Nt,settings:vi,chromecast:xi}=re.ui.hiddenControls,mt=re.actions.internal.getVideoEpisodes(),Jt=re.webApi.pictureInPictureApi,Hi=re.state.chromecastState$,Si=re.state.crashed$,ri=Mt.disabledControls$,_t=re.ui.startedByKeyboard$,je=re.ui.currentGridType$,gi=re.ads.duration,bo=re.ads.position,tn=re.ads.playbackState,on=re.ui.isFullscreen,St=re.ui.playerSize,Ut=re.ui.additionalButtonsDeprecated$,W=re.actions.internal.getVideoElement,Ot=re.actions.internal.replayInteractive,li=re.state.isInteractive,vt=re.state.isInteractiveTime$,ii=re.state.showInteractiveGraph,bt=re.state.showSeekToInteractive,rt=re.state.showPlayPrevChapter,Fi=re.state.showInteractiveTimeIndicator,Mi=ce.seekToInteractiveDisabledTooltip$,gn=ce.graphIsOpened$,hn=re.ui.controlBlocks,Vi=f(()=>j(re.state.playPrevChapterDisabledTooltip)),Ui=f(()=>j(r())),Hn=f(()=>a().has("EPISODE_BUTTON")),xo=f(()=>a().has("GRAPH_BUTTON")),lo=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ai=f(()=>a().has("PLAY_BUTTON")),Do=f(()=>a().has("REPLAY_BUTTON")),Bo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),_n=f(()=>l()===ld.PlaybackState.PLAYING),Dr=f(()=>d()==="paused"),Br=f(()=>s()&&!ae()&&!li),Hr=f(()=>!s()||ae()),ws=f(()=>e.showNextPrevButtons&&!ae()&&e.prevButtonActive),Fr=f(()=>e.showNextPrevButtons&&!ae()&&e.nextButtonActive),nr=f(()=>u().width>300),Ur=f(()=>u().width>400),bn=f(m),$n=f(()=>p()!==ld.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&!y()&&!li&&!g()),_r=f(()=>w()==="LiveWaitingStart"),br=f(()=>!!Jt&&p()!==ld.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(_r)||!n(_r))&&!n(bn)&&!li&&!I()),nn=q(!1);Dt(()=>{let Ue=Jt==null?void 0:Jt.info.isActive$.subscribe(It=>R(nn,It,!0));return()=>Ue==null?void 0:Ue.unsubscribe()});let $r=f(()=>!n(bn)&&ro(C(),"s")),yr=f(()=>!e.logoHidden&&u().width>350&&!N()),rr=f(()=>Ne.features.fullscreen&&kt()&&!(v()&&b()===1)&&(li?ot():!0)&&!n(bn)&&!n(nn)),Fn=f(()=>!A()&&!n(bn)),cs=f(()=>(!E()||ae())&&u().width>260&&!n(bn)&&!(Ne.features.interactiveHideTime&&li)),Ho=f(()=>k()||e.showControls),xr=f(()=>!ae()&&!E()&&!!(mt!=null&&mt.length)&&n(nr)&&!n(Hn)&&!n(bn)),zi=f(()=>!Q()||!!F()),wr=f(()=>ii&&ro(C(),"m")),Un=f(()=>!z()||X()||se()===0),ft=ci({}),oi=ci({}),Sr=(0,wv.debounceFn)(rd,260),zr=(0,wv.debounceFn)($p,260);De(()=>{u(),Z(),Sr(W(),Mt,ft,e.showControls),zr(W(),hn,oi,e.showControls)});let Wr=()=>re.actions.internal.toggleChromecast();function zn(){return gt(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function sr(){pa({isAudioDisabled:qt,audioDisabledHintCallback:Rt,isAudioAvailable:z(),audioIsNotExistHintCallback:Ct,isAds:ae()})&&Re()}let wo=q(""),Wn=(Ue,It)=>{if(!Ue){R(wo,j("tooltip_live"),!0);return}It&&It===ld.PlaybackState.PAUSED&&R(wo,j("tooltip_play"),!0)};De(()=>{Wn(n(zi),l())});let ar=de();De(()=>{oe()&&jl(oe(),k(),Qt)}),De(()=>{_p(_t,J(),ft.playButton)});var Kn=Iw(),yn=ue(Kn);{var xn=Ue=>{var It=ww(),fi=ue(It);let zo;var To=P(fi,2);let Wo;Ze(To,lt=>oi.topLeft=lt,()=>oi==null?void 0:oi.topLeft);var qi=P(To,2);let Io;var Qn=T(qi);wi(Qn,1,me,({iconUrl:lt,ariaLabel:di,testId:Po,onClick:Ti,tooltip:In})=>lt,(lt,di)=>{let Po=()=>n(di).iconUrl,Ti=()=>n(di).ariaLabel,In=()=>n(di).testId,En=()=>n(di).onClick,Is=()=>n(di).tooltip,Es=f(()=>{var Qi;return(Qi=Ti())!=null?Qi:Is()});bv(lt,{get iconUrl(){return Po()},get ariaLabel(){return n(Es)},get testId(){return In()},get onClick(){return En()}})});var Er=P(Qn,2);{var Eo=lt=>{Tc(lt,{get ref(){return ft.autoplayNextToggle},set ref(di){ft.autoplayNextToggle=di}})};V(Er,lt=>{e.showAutoplayNext&&!He()&&!ee()&&lt(Eo)})}var po=P(Er,2);{var Cn=lt=>{bc(lt,{isMobile:!0,click:Wr,get state(){return p()},get ref(){return ft.chromecast},set ref(di){ft.chromecast=di}})};V(po,lt=>{n($n)&&lt(Cn)})}var Ko=P(po,2);{var Gn=lt=>{xv(lt,{click:zn,get isPictureInPictureActive(){return v()},get ref(){return ft.pip},set ref(di){ft.pip=di}})};V(Ko,lt=>{n(br)&&lt(Gn)})}var Qr=P(Ko,2);{var Gr=lt=>{td(lt,{get ref$(){return ar}})};V(Qr,lt=>{be()&&!we()&&lt(Gr)})}var Yn=P(Qr,2);{var et=lt=>{hc(lt,{get click(){return Ee},get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(di){ft.vkLogo=di}})};V(Yn,lt=>{n(yr)&&lt(et)})}S(qi),Ze(qi,lt=>oi.topRight=lt,()=>oi==null?void 0:oi.topRight);var ei=P(qi,2);let Ci;var ko=T(ei);{var Tn=lt=>{let di=f(()=>Te.bind(null,!0));tl(lt,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Po){ft.prevButton=Po}})};V(ko,lt=>{n(ws)&&lt(Tn)})}var jn=P(ko,2);{var qo=lt=>{ad(lt,{get disabled(){return n(Ai)},get click(){return tt},isMobile:!0,get isPlaying(){return n(_n)},get ref(){return ft.playButton},set ref(di){ft.playButton=di}})};V(jn,lt=>{n(Hr)&&lt(qo)})}var dr=P(jn,2);{var ps=lt=>{sd(lt,{get disabled(){return n(Do)},get click(){return tt},isMobile:!0,get ref(){return ft.replayButton},set ref(di){ft.replayButton=di}})};V(dr,lt=>{n(Br)&&lt(ps)})}var kr=P(dr,2);{var Ts=lt=>{let di=f(()=>Fe.bind(null,!0));tl(lt,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Po){ft.nextButton=Po}})};V(kr,lt=>{n(Fr)&&lt(Ts)})}S(ei),Ze(ei,lt=>oi.middle=lt,()=>oi==null?void 0:oi.middle);var Qs=P(ei,2);{var _a=lt=>{var di=xw(),Po=ue(di);{var Ti=Qi=>{var Pi=bw();let he;Pi.__click=[hw,Bo,e,Vi];var $t=T(Pi);let ni=f(()=>!e.showControls);Cc($t,{get hidden(){return n(ni)},get disabled(){return n(Bo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(Zt){ft.playPrevChapterButton=Zt}}),S(Pi),O(Zt=>he=ne(Pi,1,"wrapper-middle-left s-19",null,he,Zt),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(Qi,Pi)};V(Po,Qi=>{rt&&Qi(Ti)})}var In=P(Po,2);{var En=Qi=>{var Pi=$w();let he;var $t=T(Pi);let ni=f(()=>!e.showControls&&!ge());Ec($t,{get hidden(){return n(ni)},get disabled(){return n(xo)},get click(){return gn.toggle},get graphIsOpened(){return ge()},get ref(){return ft.interactiveGraphButton},set ref(Zt){ft.interactiveGraphButton=Zt}}),S(Pi),O(Zt=>he=ne(Pi,1,Wd(rt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",he,Zt),[()=>({fullscreen:Ce(),hidden:!e.showControls&&!ge()})]),$(Qi,Pi)};V(In,Qi=>{n(wr)&&Qi(En)})}var Is=P(In,2);{var Es=Qi=>{var Pi=yw();let he;Pi.__click=[_w,lo,e,Ui];var $t=T(Pi);let ni=f(()=>!e.showControls);Ic($t,{get hidden(){return n(ni)},get disabled(){return n(lo)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(Zt){ft.seekToInteractiveButton=Zt}}),S(Pi),O(Zt=>he=ne(Pi,1,"wrapper-middle-right s-19",null,he,Zt),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(Qi,Pi)};V(Is,Qi=>{bt&&Qi(Es)})}$(lt,di)};V(Qs,lt=>{li&&!m()&&lt(_a)})}O((lt,di,Po,Ti)=>{zo=ne(fi,1,"overlay-mobile s-19",null,zo,lt),Wo=ne(To,1,"wrapper-top-left s-19",null,Wo,di),Io=ne(qi,1,"wrapper-top-right s-19",null,Io,Po),Ci=ne(ei,1,"wrapper-middle s-19",null,Ci,Ti)},[()=>({hidden:!n(Ho)}),()=>({hidden:!e.showControls,fullscreen:Ce()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Ce()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(Ue,It)};V(yn,Ue=>{ae()||Ue(xn)})}var wn=P(yn,2);{var rn=Ue=>{var It=Cw(),fi=ue(It);let zo;var To=T(fi);xp(To,{get muted(){return X()},click:sr,get ref(){return ft.volume},set ref(Eo){ft.volume=Eo}}),S(fi);var Wo=P(fi,2);{var qi=Eo=>{var po=Sw(),Cn=T(po);let Ko=f(()=>!n(Dr));ad(Cn,{get disabled(){return n(Ai)},get click(){return tt},isMobile:!0,get isPlaying(){return n(Ko)},get ref(){return ft.playButton},set ref(Gn){ft.playButton=Gn}}),S(po),$(Eo,po)};V(Wo,Eo=>{n(Dr)&&Eo(qi)})}var Io=P(Wo,2);let Qn;var Er=T(Io);Pc(Er,{get position(){return pe()},get duration(){return Qe()}}),S(Io),O((Eo,po)=>{zo=ne(fi,1,"wrapper-top-right s-19",null,zo,Eo),Qn=ne(Io,1,"wrapper-bottom ads-timeline-mobile s-19",null,Qn,po)},[()=>({fullscreen:Ce()}),()=>({fullscreen:Ce()})]),$(Ue,It)};V(wn,Ue=>{ae()&&d()!=="inactive"&&Ue(rn)})}var Wi=P(wn,2);let eo;var sn=T(Wi);let lr;var Cr=T(sn),Sn=T(Cr),Tr=T(Sn);{var ut=Ue=>{No(Ue,{get disabled(){return n(Do)},get ref(){return ft.replayButton},set ref(It){ft.replayButton=It},children:(It,fi)=>{sd(It,{get disabled(){return n(Do)},get click(){return Ot}})},$$slots:{default:!0}})};V(Tr,Ue=>{li&&Ue(ut)})}var Tt=P(Tr,2);{var co=Ue=>{No(Ue,{get ref(){return ft.liveButton},set ref(It){ft.liveButton=It},children:(It,fi)=>{kc(It,{get isLiveActive(){return n(zi)},isMobile:!0,get ariaLabel(){return n(wo)}})},$$slots:{default:!0}})};V(Tt,Ue=>{!ae()&&E()&&Ue(co)})}var Fo=P(Tt,2);{var So=Ue=>{let It=f(()=>ae()?pe():U()),fi=f(()=>ae()?Qe():D()),zo=f(()=>!e.showControls);fc(Ue,{get showDuration(){return n(Ur)},get position(){return n(It)},get duration(){return n(fi)},isMobile:!0,get isHidden(){return n(zo)},get ref(){return ft.time},set ref(To){ft.time=To}})};V(Fo,Ue=>{n(cs)&&Ue(So)})}var an=P(Fo,2);let uo=f(()=>!n(xr));No(an,{className:"w-max",get disabled(){return n(uo)},get ref(){return ft.episodes},set ref(Ue){ft.episodes=Ue},children:(Ue,It)=>{var fi=Le(),zo=ue(fi);{var To=Wo=>{var qi=Tw(),Io=P(ue(qi),2);$c(Io,{get position(){return U()},get duration(){return D()},get timeCodes(){return mt}}),$(Wo,qi)};V(zo,Wo=>{n(xr)&&Wo(To)})}$(Ue,fi)},$$slots:{default:!0}}),S(Sn),Ze(Sn,Ue=>oi.bottomLeft=Ue,()=>oi==null?void 0:oi.bottomLeft);var Co=P(Sn,2),ki=T(Co);{var Kr=Ue=>{No(Ue,{get ref(){return ft.volume},set ref(It){ft.volume=It},children:(It,fi)=>{xp(It,{get muted(){return n(Un)},click:sr})},$$slots:{default:!0}})};V(ki,Ue=>{n(Fn)&&Ue(Kr)})}var qn=P(ki,2);{var Ss=Ue=>{No(Ue,{get ref(){return ft.settings},set ref(It){ft.settings=It},children:(It,fi)=>{td(It,{get ref$(){return ar}})},$$slots:{default:!0}})};V(qn,Ue=>{n($r)&&Ue(Ss)})}var Ki=P(qn,2);{var Cs=Ue=>{No(Ue,{get ref(){return ft.fullscreen},set ref(It){ft.fullscreen=It},children:(It,fi)=>{gc(It,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ce()}})},$$slots:{default:!0}})};V(Ki,Ue=>{n(rr)&&Ue(Cs)})}S(Co),Ze(Co,Ue=>oi.bottomRight=Ue,()=>oi==null?void 0:oi.bottomRight),S(Cr),Ze(Cr,Ue=>K(Ue),()=>K());var us=P(Cr,2);let Ir=f(()=>!e.showControls);ol(us,{get isHidden(){return n(Ir)},get isAds(){return ae()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return ft.timeline},set ref(Ue){ft.timeline=Ue}}),S(sn),Ze(sn,Ue=>oi.bottom=Ue,()=>oi==null?void 0:oi.bottom),S(Wi),Ze(Wi,Ue=>Ge(Ue),()=>Ge());var Uo=P(Wi,2);{var qr=Ue=>{wc(Ue,{get ref(){return ft.interactiveTimeIndicator},set ref(It){ft.interactiveTimeIndicator=It}})};V(Uo,Ue=>{Fi&&Ue(qr)})}O((Ue,It)=>{eo=ne(Wi,1,"wrapper-bottom mobile s-19",null,eo,Ue),lr=ne(sn,1,"controls-wrapper s-19",null,lr,It)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ce()})]),$(t,Kn),H(),o()}Ye(["click"]);function Ac(t,e){B(e,!0);let[i,o]=Oe(),r=()=>x(I,"$isMobile",i),a=_(e,"bottomNoSmooth",3,!1),l=_(e,"playerControlsWrapperRef",15,void 0),d=_(e,"playerControlsRef",15,void 0),s=_(e,"isAds",3,!1),u=_(e,"logoTargetUrl",3,""),m=_(e,"showAutoplayNext",3,!1),p=_(e,"isOneVideoPlaylist",3,!1),v=_(e,"customFullscreenSupported",3,!0),b=_(e,"endScreenShown",3,!1),y=_(e,"onDisabledPlayPrevChapterClick",3,Cv.noop),g=_(e,"onDisabledSeekToInteractiveClick",3,Cv.noop),I=_e().ui.isMobile,C=q(!1);Dt(()=>{let k=setTimeout(()=>R(C,!0),0);return()=>clearTimeout(k)});var N=Le(),A=ue(N);{var E=k=>{var Q=Le(),F=ue(Q);{var z=se=>{Sv(se,{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 p()},get customFullscreenSupported(){return v()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return g()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=se=>{hv(se,{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 m()},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(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(F,se=>{r()?se(z):se(X,!1)})}$(k,Q)};V(A,k=>{n(C)&&k(E)})}$(t,N),H(),o()}var kw=Ie('<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 Lc(t,e){B(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${mn(e.size)}${n(i)}`);Je(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=kw();$(r,l)},$$slots:{default:!0}}),H()}var Pw=Ie('<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 Tv(t,e){B(e,!0);let i=_(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Je(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=Pw();$(a,d)},$$slots:{default:!0}}),H()}var Aw=L('<span class="hot-key-helpers-text s-11"> </span>'),Lw=L('<div data-testid="hotkey-helper-icon" class="s-11"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Mw=L("<div><!></div>"),Vw={hash:"s-11",code:'.hot-key-helpers-container.s-11{align-items:center;animation:s-11-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-11{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-11{left:calc(75% - 100px)}.hot-key-helpers-text.s-11{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-11{animation:s-11-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-11-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-11-fadeOut{0%{opacity:1}to{opacity:0}}'};function Iv(t,e){B(e,!0),G(t,Vw);let[i,o]=Oe(),r=()=>x(e.data,"$data",i),a=_e(),{features:l}=Bt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,C;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(C=r())==null?void 0:C.text});var b=Mw();let y;var g=T(b);{var w=I=>{var C=Lw(),N=ue(C),A=T(N);{var E=K=>{let ae=f(()=>n(p)==="BACKWARD_SEEK");Tv(K,{get reversed(){return n(ae)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(E)})}var k=P(A,2);{var Q=K=>{zs(K,{get size(){return"48"},shadow:!0})};V(k,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(Q)})}var F=P(k,2);{var z=K=>{On(K,{get size(){return"48"},shadow:!0})};V(F,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(z)})}var X=P(F,2);{var se=K=>{Sc(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(se)})}var Z=P(X,2);{var oe=K=>{ma(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(oe)})}var J=P(Z,2);{var Ce=K=>{ma(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(Ce)})}var me=P(J,2);{var ee=K=>{let ae=f(()=>n(p)==="RATE_DOWN");Lc(K,{get size(){return"48"},get reversed(){return n(ae)},testId:"rate-change-icon",shadow:!0})};V(me,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var be=P(me,2);{var we=K=>{let ae=f(()=>n(p)==="EPISODE_PREV");ga(K,{get size(){return"48"},get reversed(){return n(ae)},shadow:!0})};V(be,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(we)})}var ge=P(be,2);{var pe=K=>{va(K,{get size(){return"48"},volume:0,shadow:!0})};V(ge,K=>{n(p)==="MUTE"&&K(pe)})}var Qe=P(ge,2);{var U=K=>{va(K,{get size(){return"48"},volume:1,shadow:!0})};V(Qe,K=>{n(p)==="VOLUME"&&K(U)})}S(N);var D=P(N,2);{var Ge=K=>{var ae=Aw(),xe=T(ae,!0);S(ae),O(()=>ve(xe,n(v))),$(K,ae)};V(D,K=>{n(v)&&K(Ge)})}O(()=>Ve(N,"data-type",n(p))),$(I,C)};V(g,I=>{!n(s)&&n(p)&&I(w)})}S(b),O(I=>y=ne(b,1,"hot-key-helpers-container s-11",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),$(t,b),H(),o()}var Rw=(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}},Nw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ow=L('<div tabindex="0" role="button"><div class="button-block s-n" aria-hidden="true"><div class="button-row s-n"><div class="button button-up s-n"><!></div> <div class="button button-right s-n"><!></div></div> <div class="button-row s-n"><div class="button button-left s-n"><!></div> <div class="button button-down s-n"><!></div></div></div></div>'),Dw={hash:"s-n",code:".immersive-controls.s-n{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-n{left:20px;top:50px}.button-block.s-n{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-n{display:flex;flex-direction:row;position:relative}.button.s-n{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-n svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-n svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-n svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-n svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-n svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-n:hover svg{opacity:1}"};function Mc(t,e){B(e,!0),G(t,Dw);let i=_(e,"isShifted",3,!1),o=_e(),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=j("aria_label_spherical_control");var p=Ow();let v;p.__keydown=[Rw,r,a,l,s,d],p.__keyup=[Nw,r,u];var b=T(p),y=T(b),g=T(y);g.__mousedown=a,g.__mouseup=u;var w=T(g);Nr(w,{direction:"up",useBtnColor:!0}),S(g);var I=P(g,2);I.__mousedown=d,I.__mouseup=u;var C=T(I);Nr(C,{direction:"up",useBtnColor:!0}),S(I),S(y);var N=P(y,2),A=T(N);A.__mousedown=s,A.__mouseup=u;var E=T(A);Nr(E,{direction:"up",useBtnColor:!0}),S(A);var k=P(A,2);k.__mousedown=l,k.__mouseup=u;var Q=T(k);Nr(Q,{direction:"up",useBtnColor:!0}),S(k),S(N),S(b),S(p),O(F=>{v=ne(p,1,"immersive-controls s-n",null,v,F),Ve(p,"aria-label",m)},[()=>({"m-shifted":i()})]),dt("mouseleave",g,u),dt("mouseleave",I,u),dt("mouseleave",A,u),dt("mouseleave",k,u),$(t,p),H()}Ye(["keydown","keyup","mousedown","mouseup"]);var Ks=require("@vkontakte/videoplayer-shared/es2015");var Yb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var wp=class{constructor(){this.flickeringTimeout=Yb(1e3);this.subscriptions=new Ks.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ks.ValueSubject([]);this.captionsPrepared$=new Ks.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ks.filter)(()=>this.isEnabled()),(0,Ks.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 Bw=L('<span class="caption-line s-a"><span class="caption-segment s-a"> </span></span>'),Hw=L('<span class="caption-line s-a"><span class="caption-segment s-a"></span></span>'),Fw=L('<span class="caption-line s-a"><span class="caption-segment s-a"> </span></span>'),Uw=L('<div><span class="caption s-a"><!></span></div>'),zw=L("<div><!></div>"),Ww={hash:"s-a",code:".subtitles-container.s-a{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-a{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-a{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-a .subtitles-caption:where(.s-a){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-a{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-a{bottom:8%}.subtitles-container.auto.s-a .subtitles-caption:where(.s-a){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-a{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-a .caption:where(.s-a){width:100%}.caption-line.s-a{display:block;text-align:center}.subtitles-container.auto.s-a .caption-line:where(.s-a){text-align:left}.caption-segment.s-a{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function sl(t,e){B(e,!0),G(t,Ww);let[i,o]=Oe(),r=()=>x(v,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(g,"$isFullscreen",i),d=()=>x(w,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=_(e,"isMobile",3,!1),m=_e(),p=Bt(),v=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,g=m.ui.isFullscreen,w=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),C=f(()=>!!a()),N=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(N)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(N)),E=q(null);De(()=>{var Z,oe,J;(Z=n(E))==null||Z.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(C)),(J=n(E))==null||J.setCaptions(e.captions)});let k=q(ci([[]]));Dt(()=>{R(E,new wp().subscribe(),!0);let Z=n(E).captionsPrepared$.subscribe(oe=>{R(k,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),Z.unsubscribe()}}),Dt(()=>{if(n(I)){let Z=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else b.set(!1)});let Q=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=zw();let z;var X=T(F);{var se=Z=>{var oe=Uw();let J;var Ce=T(oe),me=T(Ce);{var ee=we=>{var ge=Bw(),pe=T(ge),Qe=T(pe,!0);S(pe),S(ge),O(U=>{var D;Ke(pe,`font-size: ${(D=n(A))!=null?D:""}px`),ve(Qe,U)},[()=>j("subtitles_auto_caption")]),$(we,ge)},be=(we,ge)=>{{var pe=U=>{var D=Le(),Ge=ue(D);wi(Ge,17,()=>n(k),Ud,(K,ae)=>{var xe=Hw(),He=T(xe);wi(He,21,()=>n(ae),({value:ot,timeAppeared:re})=>re,(ot,re)=>{let ce=()=>n(re).value,Ne=()=>n(re).timeAppeared;var Re=Le(),tt=ue(Re);{var Ee=Te=>{var Fe=_s();O(()=>ve(Fe,ce())),$(Te,Fe)};V(tt,Te=>{(!Ne()||Ne()<=e.position)&&Te(Ee)})}$(ot,Re)}),S(He),S(xe),O(()=>{var ot;return Ke(He,`font-size: ${(ot=n(A))!=null?ot:""}px`)}),$(K,xe)}),$(U,D)},Qe=U=>{var D=Le(),Ge=ue(D);wi(Ge,17,()=>e.captions,({value:K})=>K,(K,ae)=>{let xe=()=>n(ae).value;var He=Fw(),ot=T(He),re=T(ot,!0);S(ot),S(He),O(()=>{var ce;Ke(ot,`font-size: ${(ce=n(A))!=null?ce:""}px`),ve(re,xe())}),$(K,He)}),$(U,D)};V(we,U=>{var D;n(I)&&((D=n(k))!=null&&D.length)?U(pe):U(Qe,!1)},ge)}};V(me,we=>{n(I)&&s()?we(ee):we(be,!1)})}S(Ce),S(oe),O(we=>{var ge;J=ne(oe,1,"subtitles-caption s-a",null,J,we),Ke(oe,`--subtitles-caption-margin: ${(ge=n(Q))!=null?ge:""}%`)},[()=>({mobile:u()})]),$(Z,oe)};V(X,Z=>{var oe;(e.captions.length||(oe=n(k))!=null&&oe.length)&&Z(se)})}S(F),O(Z=>z=ne(F,1,"subtitles-container s-a",null,z,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(C)&&!s()})]),$(t,F),H(),o()}var jb=require("@vkontakte/videoplayer-core/es2015");var Kw=L('<div class="text s-p"> </div>'),qw=L('<div><div class="icon_wrapper s-p"><!></div> <!></div>'),Qw={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 Vc(t,e){B(e,!0),G(t,Qw);let i=_(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Bt();var r=qw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=T(r),d=T(l);_c(d,{get size(){return"48"},get iconState(){return jb.ChromecastState.CONNECTED}}),S(l);var s=P(l,2);{var u=m=>{var p=Kw(),v=T(p);S(p),O(()=>{var b;return ve(v,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),$(m,p)};V(s,m=>{i()&&m(u)})}S(r),O(m=>{a=ne(r,1,"wrapper s-p",null,a,m),Ke(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})]),$(t,r),H()}Ye(["contextmenu","click","dblclick"]);var Gw=Ie('<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 Ev(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Gw();$(e,o)},$$slots:{default:!0}})}var Yw=L('<div class="container s-4"><!></div>'),jw={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 al(t){G(t,jw);var e=Yw(),i=T(e);Ev(i,{}),S(e),$(t,e)}var Xw=L('<div class="playButton s-e" tabindex="0" role="button"><div class="playButtonBackground s-e"></div> <!></div>'),Zw=L('<div data-testid="unstarted-thumb"><!></div>'),Jw={hash:"s-e",code:".container.s-e{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-e{opacity:0;visibility:hidden}.container.bgCover.s-e{background-size:cover}.playButton.s-e{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-e,.playButtonBackground.s-e{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-e{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-e:hover .playButtonBackground:where(.s-e){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-e svg{position:relative}"};function ll(t,e){B(e,!0),G(t,Jw);let i=_(e,"iconVisible",3,!0),o=_e(),r=Bt(),a=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=b=>{var g;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(g=e.startVideo)==null||g.call(e))},s=b=>{var y,g;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(g=e.onClick)==null||g.call(e,b)};var u=Zw();let m;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var p=T(u);{var v=b=>{var y=Xw();y.__keydown=d;var g=P(T(y),2);On(g,{get size(){return"48"}}),S(y),O(()=>Ve(y,"aria-label",l)),$(b,y)};V(p,b=>{i()&&b(v)})}return S(u),O(b=>{m=ne(u,1,"container s-e",null,m,b),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),H({handlePressKey:d,handleClick:s})}Ye(["click","contextmenu","keydown"]);var eS=L('<span class="text s-10"> </span>'),tS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},iS=L('<a target="_blank" class="link s-10"><!></a>'),oS=(t,e)=>e.onTitleClicked(),nS=L("<button><!></button>"),rS=L('<div data-testid="video_title"><!></div>'),sS={hash:"s-10",code:".title.s-10{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-10,.title.s-10{color:var(--white)}.link.s-10{pointer-events:auto;text-decoration:none}.link.s-10:hover{text-decoration:underline}.text.s-10{pointer-events:auto}.size-sm.s-10{font-size:14px;font-weight:500;line-height:18px}.hidden.s-10{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function kv(t,e){B(e,!0),G(t,sS);let i=b=>{var y=eS(),g=T(y,!0);S(y),Ze(y,w=>l(w),()=>l()),O(()=>ve(g,o())),dt("mouseenter",y,function(...w){var I;(I=e.onMouseEnter)==null||I.apply(this,w)}),dt("mouseleave",y,function(...w){var I;(I=e.onMouseLeave)==null||I.apply(this,w)}),$(b,y)},o=_(e,"title",3,""),r=_(e,"isHidden",3,!1),a=_(e,"size",3,"md"),l=_(e,"ref",15),d=q(void 0);Dt(()=>{var y;requestAnimationFrame(()=>{var g;(g=e.onVisibilityChanged)==null||g.call(e,!0)});function b(g){var w;g.propertyName==="transform"&&((w=e.onVisibilityChanged)==null||w.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var g;return(g=n(d))==null?void 0:g.removeEventListener("transitionend",b)}});var s=rS();let u;var m=T(s);{var p=b=>{var y=iS();y.__click=[tS,e];var g=T(y);i(g),S(y),O(()=>Ve(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var g=I=>{var C=nS();C.__click=[oS,e];var N=T(C);i(N),S(C),$(I,C)},w=I=>{i(I)};V(b,I=>{e.onTitleClicked?I(g):I(w,!1)},y)}};V(m,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),Ze(s,b=>R(d,b),()=>n(d)),O(b=>u=ne(s,1,`title size-${a()}`,"s-10",u,b),[()=>({hidden:r()})]),$(t,s),H()}Ye(["click"]);var Xb=require("@vkontakte/videoplayer-shared/es2015");var aS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),lS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),dS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),cS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div>'),uS=L("<div><!> <!> <!> <!></div>"),pS={hash:"s-1b",code:".timer__container.s-1b{align-items:flex-start;display:flex;justify-content:center}.cell.s-1b{align-items:center;display:flex;flex-direction:column}.cell__value.s-1b{font-size:48px;font-weight:600;line-height:1.2}.small.s-1b .cell__value:where(.s-1b){font-size:24px}.cell__unit.s-1b{font-size:14px;font-weight:400;line-height:1.2}.small.s-1b .cell__unit:where(.s-1b){font-size:12px}.timer__points.s-1b{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1b .timer__points:where(.s-1b){font-size:20px}"};function Pv(t,e){B(e,!0),G(t,pS);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*m(F)}px`,v=F=>{let z=Math.floor(F/86400);z&&(F-=z*86400,R(i,u(z),!0));let X=Math.floor(F/3600);R(o,u(X),!0);let se=Math.floor(F/60)%60;R(r,u(se),!0);let Z=F%60;R(a,u(Z),!0)},b=()=>{let F=Math.floor(Date.now()/1e3),z=e.startTime-F;v(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(b)}),fn(()=>{cancelAnimationFrame(l)});var y=uS();let g;var w=T(y);{var I=F=>{var z=aS(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),O((be,we,ge)=>{se=Ke(X,"",se,{width:be}),ve(oe,n(i)),ve(Ce,we),ve(ee,ge)},[()=>p(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),$(F,z)};V(w,F=>{n(i)&&F(I)})}var C=P(w,2);{var N=F=>{var z=lS(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),O((be,we,ge)=>{se=Ke(X,"",se,{width:be}),ve(oe,n(o)),ve(Ce,we),ve(ee,ge)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),$(F,z)};V(C,F=>{n(o)&&F(N)})}var A=P(C,2);{var E=F=>{var z=dS(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),O((be,we,ge)=>{se=Ke(X,"",se,{width:be}),ve(oe,n(r)),ve(Ce,we),ve(ee,ge)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),$(F,z)};V(A,F=>{n(r)&&F(E)})}var k=P(A,2);{var Q=F=>{var z=cS();let X;var se=T(z),Z=T(se,!0);S(se);var oe=P(se,2),J=T(oe,!0);S(oe),S(z),O((Ce,me)=>{X=Ke(z,"",X,{width:Ce}),ve(Z,n(a)),ve(J,me)},[()=>p(n(a)),()=>j("waiting_live_second_value")]),$(F,z)};V(k,F=>{n(a)&&F(Q)})}S(y),O(F=>g=ne(y,1,"timer__container s-1b",null,g,F),[()=>({small:e.isSmallSize})]),$(t,y),H()}var fS=L('<div class="waiting s-o"><span> </span></div>'),mS=L('<div class="upcoming-timer timer s-o"><span> </span> <!></div>'),vS=L('<div class="waiting-container s-o"><!></div>'),gS={hash:"s-o",code:'.waiting-container.s-o{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.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(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-o{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-o{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-o{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-o{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-o{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-o{font-size:15px}.medium.s-o{font-size:17px}'};function Rc(t,e){B(e,!0),G(t,gS);let i=_(e,"startTime",3,0),o=f(()=>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=f(()=>{var w,I;return((w=n(d))!=null?w:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var w,I;return!n(u)&&(((w=n(d))!=null?w:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Xb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let w={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(w,I)})},300):void 0;De(()=>{n(s),n(d),n(o),p==null||p()}),fn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let w={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(w)}});var v=vS();v.__contextmenu=function(...w){var I;(I=e.onContextMenu)==null||I.apply(this,w)},v.__click=function(...w){var I;(I=e.onClick)==null||I.apply(this,w)};var b=T(v);{var y=w=>{var I=fS(),C=T(I);let N;var A=T(C,!0);S(C),S(I),Ze(I,E=>R(r,E),()=>n(r)),O((E,k)=>{N=ne(C,1,"waiting__title s-o",null,N,E),ve(A,k)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_upcoming_title")]),$(w,I)},g=w=>{var I=mS(),C=T(I);let N;var A=T(C,!0);S(C);var E=P(C,2);let k=f(()=>n(u)||n(m)),Q=f(()=>i()||0);Pv(E,{get isSmallSize(){return n(k)},get startTime(){return n(Q)},onTimerOver:()=>R(o,!0)}),S(I),Ze(I,F=>R(a,F),()=>n(a)),O((F,z)=>{N=ne(C,1,"timer__title s-o",null,N,F),ve(A,z)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_timer_title")]),$(w,I)};V(b,w=>{n(o)?w(y):w(g,!1)})}S(v),O(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Rn(v,"clientWidth",w=>R(d,w)),Rn(v,"clientHeight",w=>R(s,w)),$(t,v),H()}Ye(["contextmenu","click"]);var hS=L('<div class="waiting-container s-t"><div class="waiting-caption s-t"><!> <p class="waiting-title s-t"> </p></div></div>'),_S={hash:"s-t",code:'.waiting-container.s-t{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-t,.waiting-container.s-t:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-t:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-t{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-t{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function dl(t,e){B(e,!0),G(t,_S);let i=_(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=hS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=T(a),d=T(l);ja(d,{style:"position: static; transform: translate(0, 0)"});var s=P(d,2),u=T(s,!0);S(s),S(l),S(a),O(()=>{Ke(a,`background-image: url('${i()}')`),ve(u,n(r))}),$(t,a),H()}Ye(["contextmenu","click"]);var bS=Ie('<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 Av(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=bS();$(e,o)},$$slots:{default:!0}})}var $S=L('<div class="select-icon s-1x"><!></div>'),yS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(t){G(t,yS);var e=$S(),i=T(e);Av(i,{}),S(e),$(t,e)}var xS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},wS=(t,e)=>{Xl(t,()=>e.item.selectItem(e.item.value))},SS=L("<p> </p>"),CS=L('<p class="sublabel s-1v"> </p>'),TS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),IS={hash:"s-1v",code:".menu-item-value.s-1v{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1v{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1v,.sublabel.s-1v{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1v{opacity:.5}"};function Lv(t,e){B(e,!0),G(t,IS);let i=_(e,"isMobile",3,!1);var o=TS();let r;o.__click=[xS,e],o.__keydown=[wS,e];var a=T(o);{var l=y=>{Nc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=P(a,2);let s;var u=T(d);{var m=y=>{var g=Le(),w=ue(g);Oi(w,()=>e.item.valueComponent,(I,C)=>{C(I,rs(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),$(y,g)},p=y=>{var g=SS();let w;var I=T(g,!0);S(g),O(C=>{var N;w=ne(g,1,"label s-1v",null,w,C),ve(I,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),$(y,g)};V(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=P(u,2);{var b=y=>{var g=CS(),w=T(g,!0);S(g),O(()=>ve(w,e.item.sublabel)),$(y,g)};V(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),O((y,g,w)=>{var I;r=ne(o,1,"item",null,r,y),Ve(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Ve(o,"aria-label",g),Ve(o,"data-testid",e.item.dataTestid),s=ne(d,1,"menu-item-value s-1v",null,s,w),Ve(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,g;return(g=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?g:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}Ye(["click","keydown"]);var ES=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Mv(t,e){B(e,!0);let i=_(e,"isMobile",3,!1),o=_(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>g=>op(g,n(r)));var l=ES();let d;l.__click=function(...g){var w;(w=n(r))==null||w.apply(this,g)},l.__keydown=function(...g){var w;(w=n(a))==null||w.apply(this,g)};var s=T(l);{var u=g=>{Nc(g,{})};V(s,g=>{e.item.selected&&g(u)})}var m=P(s,2);let p;var v=T(m);{var b=g=>{var w=Le();let I=f(()=>e.item.valueComponent);var C=ue(w);Oi(C,()=>n(I),(N,A)=>{A(N,rs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(g,w)},y=g=>{var w=_s();O(()=>ve(w,e.item.label)),$(g,w)};V(v,g=>{e.item.valueComponent?g(b):g(y,!1)})}S(m),S(l),Ze(l,g=>o(o()[e.item.id]=g,!0),()=>{var g;return(g=o())==null?void 0:g[e.item.id]}),O((g,w)=>{var I;d=ne(l,1,"item",null,d,g),Ve(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Ve(l,"data-testid",e.item.id),p=ne(m,1,"menu-item-value",null,p,w)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}Ye(["click","keydown"]);var ds={"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 PS=(t,e)=>{mb(t,e.returnFromSubMenu,e.closeSettingsMenu)},AS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},LS=(t,e)=>{ac(t)&&(Or(t),e.returnFromSubMenu())},MS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),VS={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 Rv(t,e){B(e,!0),G(t,VS);let[i,o]=Oe(),r=()=>x(p,"$isFullscreen",i),a=()=>x(v,"$playerSize",i),l=_(e,"isMobile",3,!1),d=_(e,"playerControlsHeight",3,0),s=_(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=_(e,"listRef",15);Dt(()=>{let Z=e.items.findIndex(oe=>oe.selected);u().children[Z+1].focus()});let m=_e(),p=m.ui.isFullscreen,v=m.ui.playerSize,b=q(void 0),y=q(0),g=q(0),w=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(g)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var C=MS();let N;var A=T(C);let E;A.__keydown=[PS,e];var k=T(A);let Q;k.__click=[AS,e],k.__keydown=[LS,e];var F=T(k);Nr(F,{direction:"left"});var z=P(F,2),X=T(z,!0);S(z),S(k),Ze(k,Z=>R(b,Z),()=>n(b));var se=P(k,2);wi(se,17,()=>e.items,Ud,(Z,oe)=>{var J=Le(),Ce=ue(J);{var me=be=>{Lv(be,{get item(){return n(oe)},get isMobile(){return l()}})},ee=(be,we)=>{{var ge=pe=>{Mv(pe,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(be,pe=>{n(oe).type==="OPEN_SUB_MENU"&&pe(ge)},we)}};V(Ce,be=>{n(oe).type==="SELECT_VALUE"?be(me):be(ee,!1)})}$(Z,J)}),S(A),Ze(A,Z=>u(Z),()=>u()),S(C),O((Z,oe,J)=>{N=ne(C,1,"sub-menu menu s-1l",null,N,Z),Ve(C,"data-testid",`${e.id}-sub-menu`),Ke(C,`min-width: ${n(I)}px`),E=ne(A,1,"items s-1l",null,E,oe),Ke(A,n(w)),Q=ne(k,1,"item header back s-1l",null,Q,J),Ve(k,"aria-label",s()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Rn(k,"clientWidth",Z=>R(y,Z)),Rn(k,"clientHeight",Z=>R(g,Z)),$(t,C),H(),o()}Ye(["keydown","click"]);var Jb=require("@vkontakte/videoplayer-shared/es2015");var RS=(t,e)=>op(t,e()),NS=(t,e)=>{t.stopPropagation(),e()()},OS=L('<div class="value s-1n"> </div>'),DS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),BS={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Nv(t,e){B(e,!0),G(t,BS);let i=_(e,"isMobile",3,!1),o=_(e,"onClick",3,Jb.noop),r=_(e,"valueComponent",3,void 0),a=_(e,"iconProps",19,()=>({})),l=_(e,"ref",15);var d=DS();let s;d.__click=[NS,o],d.__keydown=[RS,o];var u=T(d),m=T(u);{var p=C=>{il(C,{get icon(){return e.icon}})},v=C=>{var N=Le();let A=f(()=>e.icon);var E=ue(N);Oi(E,()=>n(A),(k,Q)=>{Q(k,rs(a))}),$(C,N)};V(m,C=>{typeof e.icon=="string"?C(p):C(v,!1)})}S(u);var b=P(u,2),y=T(b,!0);S(b);var g=P(b,2);{var w=C=>{var N=Le();let A=f(r);var E=ue(N);Oi(E,()=>n(A),(k,Q)=>{Q(k,{})}),$(C,N)},I=C=>{var N=OS(),A=T(N,!0);S(N),O(()=>ve(A,e.value)),$(C,N)};V(g,C=>{r()?C(w):C(I,!1)})}S(d),Ze(d,C=>l(C),()=>l()),O(C=>{s=ne(d,1,"item",null,s,C),Ve(d,"aria-label",e.ariaLabel),Ve(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,d),H()}Ye(["click","keydown"]);var Ov=require("@vkontakte/videoplayer-shared/es2015");var HS=(t,e)=>{Xl(t,()=>e())},FS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),US=L('<img class="icon" aria-hidden="true"/>'),zS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),WS={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Dv(t,e){B(e,!0),G(t,WS);let i=_(e,"isMobile",3,!1),o=_(e,"onClick",3,Ov.noop),r=_(e,"closeSettings",3,Ov.noop),a=q(!1),l=()=>{R(a,!0)},d=w=>{w==null||w.stopPropagation(),o()(),r()()};var s=zS();let u;s.__click=d,s.__keydown=[HS,d];var m=T(s),p=T(m);{var v=w=>{var I=Le(),C=ue(I);{var N=E=>{var k=FS();$(E,k)},A=E=>{var k=US();O(()=>Ve(k,"src",e.icon)),dt("error",k,l),Na(k),$(E,k)};V(C,E=>{n(a)?E(N):E(A,!1)})}$(w,I)},b=w=>{var I=Le();let C=f(()=>e.icon);var N=ue(I);Oi(N,()=>n(C),(A,E)=>{E(A,{})}),$(w,I)};V(p,w=>{typeof e.icon=="string"?w(v):w(b,!1)})}S(m);var y=P(m,2),g=T(y,!0);S(y),S(s),O(w=>{var I;u=ne(s,1,"item",null,u,w),Ve(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Ve(s,"data-testid",e.id),ve(g,e.label)},[()=>({mobile:i()})]),$(t,s),H()}Ye(["click","keydown"]);var e$=require("@vkontakte/videoplayer-shared/es2015");var KS=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),qS={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 Bv(t,e){G(t,qS);let i=_(e,"enabled",3,!1);var o=KS(),r=T(o);let a;ui(2),S(o),O(l=>a=ne(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),$(t,o)}var QS=(t,e,i)=>{vb(t,e(),o=>i()(o))},GS=(t,e,i)=>{t.stopPropagation(),e()(!i())},YS=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),jS=L('<li role="menuitem" tabindex="0"><!></li>');function Hv(t,e){B(e,!0);let i=_(e,"isMobile",3,!1),o=_(e,"onClick",3,e$.noop),r=_(e,"enabled",3,!1),a=_(e,"tooltipText",3,void 0),l=_(e,"maxTooltipWidth",3,void 0);var d=jS();let s;d.__click=[GS,o,r],d.__keydown=[QS,r,o];var u=T(d);Za(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=YS();let b;var y=T(v),g=T(y);{var w=E=>{il(E,{get icon(){return e.icon}})},I=E=>{var k=Le();let Q=f(()=>e.icon);var F=ue(k);Oi(F,()=>n(Q),(z,X)=>{X(z,{})}),$(E,k)};V(g,E=>{typeof e.icon=="string"?E(w):E(I,!1)})}S(y);var C=P(y,2),N=T(C,!0);S(C);var A=P(C,2);Bv(A,{get enabled(){return r()}}),S(v),O(E=>{b=ne(v,1,"switch-wrapper",null,b,E),ve(N,e.label)},[()=>({mobile:i()})]),$(m,v)},$$slots:{default:!0}}),S(d),O(m=>{var p;s=ne(d,1,"item switch-item",null,s,m),Ve(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Ve(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}Ye(["click","keydown"]);var Dc=require("@vkontakte/videoplayer-shared/es2015");var t$=()=>{let t=q(ci([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{R(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{R(t,[],!0)}}};var i$=require("@vkontakte/videoplayer-shared/es2015");var XS=L('<div class="quality-icon s-1q"><!></div>'),ZS=L('<div class="quality-label s-1q"><span> </span> <!></div>'),JS={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 cl(t,e){B(e,!0),G(t,JS);let i=_(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,i$.getVideoQualityLabel)(e.quality):""),r=f(()=>dp(e.quality));var a=ZS(),l=T(a);let d;var s=T(l,!0);S(l);var u=P(l,2);{var m=p=>{var v=XS();let b=f(()=>n(r));var y=T(v);Oi(y,()=>n(b),(g,w)=>{w(g,{})}),S(v),O(()=>Ve(v,"data-testid",`${n(o)}-icon`)),$(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),O(p=>{d=ne(l,1,"s-1q",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),H()}var s$=require("@vkontakte/videoplayer-shared/es2015");var Fv=require("@vkontakte/videoplayer-core/es2015");var o$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},n$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=o$({quality:t,availableQualities:e});return i?t===Fv.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},r$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Fv.VideoQuality.INVARIANT?i:`${i}${o$({quality:t,availableQualities:e})}`:"...";var eC=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),tC={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function dd(t,e){B(e,!0),G(t,tC);let[i,o]=Oe(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=_e(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==s$.VideoQuality.INVARIANT?p:"")),b=f(()=>r$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=eC(),g=T(y);let w=f(()=>e.selected?r():void 0);cl(g,{get quality(){return n(w)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),H(),o()}var iC=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")},oC={br:!0,span:!0},Uv=(t,e={})=>{var d,s,u,m,p,v,b;if(!t)return t;let i=Pe(Pe({},oC),e),o=Object.keys(i);if(!o.length)return t;let r=iC(o),a=[],l=0;for(let y of t.matchAll(r)){let g=y[0],w=((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[w]){a.push(t.slice(l,I)),l=I+g.length;continue}let C=(p=y.groups)!=null&&p.childrenhtml?Uv(y.groups.childrenhtml,i):"",N=(v=y.groups)!=null&&v.childrenhtml?g.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>C||""):g;a.push(t.slice(l,I),N),l=I+g.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Oc(t,e){B(e,!1);let i=_(e,"message",8),o=Uv(i());$o();var r=Le(),a=ue(r);{var l=d=>{var s=Le(),u=ue(s);zd(u,()=>o),$(d,s)};V(a,d=>{o&&d(l)})}$(t,r),H()}var nC=L('<p class="quality-applies sublabel s-1s"><!></p>'),rC={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 zv(t,e){B(e,!1),G(t,rC),$o();var i=nC(),o=T(i);let r=Pn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));Oc(o,{get message(){return n(r)}}),S(i),$(t,i),H()}var l$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:j("other_quality"),selected:o,valueComponent:dd,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"quality-other-settings"}},Wv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?dd:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),d$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:zv,bottomBordered:!0,children:"quality-appliance"}),Kv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?dd:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),qv=({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:j("traffic_saving_quality"),valueComponent:t?dd:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var Sp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Cp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=yc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let s=Sp(t,d);return j("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=Sp(t,d);return j("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=Sp(t,d);return j("audio_stream_display_language_index",{language:r,index:s})}}let a=Sp(t,e);return j("audio_stream_display_unknown",{index:a})};var sC={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Wv,selected:e&&!o&&!r||!1}),a.push({handler:qv,selected:o},{handler:Kv,selected:r}),{title:j("submenu_quality"),id:"quality-settings",items:[d$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),l$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:cl,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:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Wv,selected:((i=qu())==null?void 0:i.type)==="auto_quality"},{handler:qv,selected:((o=qu())==null?void 0:o.type)==="traffic_saving"},{handler:Kv,selected:((r=qu())==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:j("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:Cp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bn?"sub_off":void 0}))})},c$=({subMenuId:t,context:e})=>t?[sC[t](e)]:[];var aC=Ie('<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 Qv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=aC();$(e,o)},$$slots:{default:!0}})}var lC=Ie('<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 Gv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=lC();$(e,o)},$$slots:{default:!0}})}var dC=Ie('<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 Yv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=dC();$(e,o)},$$slots:{default:!0}})}var cC=Ie('<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 jv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=cC();$(e,o)},$$slots:{default:!0}})}var uC=Ie('<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 Xv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=uC();$(e,o)},$$slots:{default:!0}})}var pC=Ie('<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 Tp(t){Je(t,{children:(e,i)=>{var o=pC();$(e,o)},$$slots:{default:!0}})}var fC=Ie('<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 Zv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=fC();$(e,o)},$$slots:{default:!0}})}var mC=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),vC={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function Jv(t,e){B(e,!0),G(t,vC);let[i,o]=Oe(),r=()=>x(u,"$currentQuality$",i),a=()=>x(m,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(v,"$isMobile$",i),s=_e(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=f(()=>n$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=mC(),g=T(y);cl(g,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(t,y),H(),o()}var hC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:pc,label:j("menu_quality"),value:e,valueComponent:Jv,weight:ds["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ds["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Qv,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=Cp(t,e);return{id:"audio-tracks-settings",weight:ds["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:Gv,label:j("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:ds["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:Yv,label:j("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ds["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ma,iconProps:{type:"outline"},label:j("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ds.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:jv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ds.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Xv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ds["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:Tp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ds["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:Tp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ds["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:Zv,isHiddenFor:["desktop"]})},u$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>hC[r](e)),...i.map(r=>Yt(Pe({},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(Ga)};var bC=(t,e)=>{ip(t,e)},$C=L('<div><div> </div> <div class="close s-r"></div></div>'),yC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),xC=L("<div><!> <!></div>"),wC={hash:"s-r",code:'.settings-menu-container.mobile.s-r{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-r ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-r .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-r .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-r .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-r .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-r .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-r .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-r{line-height:40px}.settings-menu.desktop.s-r{min-width:300px}.settings-menu-container.s-r .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-r .menu.mobile.hidden{display:none}.settings-menu-container.s-r .menu .item:not(.switch-item),.settings-menu-container.s-r .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-r .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-r .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-r .item:not(.switch-item),.settings-menu.s-r .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-r .item.mobile:not(.switch-item),.settings-menu.s-r .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-r .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-r .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-r .item.header.mobile:where(.s-r){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-r .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-r .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-r .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-r .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-r .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-r{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-r:after,.close.s-r:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-r:before{transform:rotate(45deg)}.close.s-r:after{transform:rotate(-45deg)}'};function Bc(t,e){B(e,!0),G(t,wC);let[i,o]=Oe(),r=()=>x(He,"$settingsMenuVisible",i),a=()=>x(ot,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Fe,"$debugPanelVisible",i),d=()=>x(ce,"$isMobile",i),s=()=>x(Te,"$playerSize",i),u=()=>x(xe,"$hasMpegSources$",i),m=()=>x(Ne,"$mobileNotReportControlHidden$",i),p=()=>x(ge,"$autoQualityLimitingAvailable$",i),v=()=>x(K,"$availableSubtitlesList$",i),b=()=>x(Re,"$isLiveWithPlaybackSpeed",i),y=()=>x(ee,"$availableAudioStreams$",i),g=()=>x(D,"$availablePlaybackRates$",i),w=()=>x(me,"$currentAudioStream$",i),I=()=>x(U,"$currentPlaybackRate$",i),C=()=>x(tt,"$trafficSavingEnabled",i),N=()=>x(be,"$currentQuality$",i),A=()=>x(pe,"$isAutoQualityEnabled$",i),E=()=>x(Ge,"$currentSubtitle$",i),k=()=>x(Ct,"$additionalSettingsMenuItems$",i),Q=()=>x(Qe,"$isAutoQualityAvailable$",i),F=()=>x(we,"$availableQualities$",i),z=()=>x(Ee,"$highQualityEnabled",i),X=_(e,"ref",15,void 0),se=_(e,"playerControlsHeight",3,0),Z=ci({}),oe=ci({}),J=_e(),Ce=Bt(),me=J.state.audioStream$,ee=J.state.availableAudioStreams$,be=J.state.currentQuality$,we=J.state.availableQualities$,ge=J.state.autoQualityLimitingAvailable$,pe=J.state.isAutoQualityEnabled$,Qe=J.state.isAutoQualityAvailable$,U=J.state.currentPlaybackRate$,D=J.state.availablePlaybackRates$,Ge=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,ae=J.state.canDownload,xe=J.state.hasMpegSources$,He=J.ui.settingsMenu.visible$,ot=J.ui.settingsMenu.openedByBtnKeyboard$,re=J.ui.settingsMenu.ref$,ce=J.ui.isMobile,Ne=J.ui.mobileNotReportControlHidden$,Re=J.state.canChangePlaybackSpeed$,tt=J.state.trafficSavingEnabled$,Ee=J.state.highQualityEnabled$,Te=J.ui.playerSize,Fe=J.ui.debugPanelVisible,kt=J.state.isInteractiveTime$,Ct=J.ui.additionalSettingsMenuItems$,Rt=J.ui.t,ct=J.actions.internal.downloadVideo,Pt=J.actions.internal.closeSettingsMenu,ti=J.actions.internal.openSettingsSubMenu,At=J.actions.internal.closeSettingsSubMenu,Ft=q(!1),qt=q(void 0),Y=t$();De(()=>{!r()&&Y.current&&(At(oe[Y.current]),Y.popAllSubMenus())}),De(()=>{r()||R(qt,void 0)}),De(()=>{!Y.current&&n(qt)&&fb(Z,n(qt))}),De(()=>{X()&&re.set(X())});function ke(St){return gt(this,null,function*(){var W;Y.pushSubMenu(St),yield _o(),ti(St,oe[St]);let Ut=(W=X())==null?void 0:W.firstElementChild;Ut&&_m(Ut)})}function le(St){var Ut;St==null||St.stopPropagation(),a()||(Ut=e.returnFocus)==null||Ut.call(e),Pt(),R(Ft,!1)}function ye(St,Ut){J.actions.internal.setQuality(St,{appliesTo:Ut,byUser:!0}),le()}function Me(St){J.actions.internal.setAudioStream(St),le()}function st(St,Ut){J.actions.internal.setTrafficSavingEnabled(St,Ut),Ce.features.qualityDetailsSubMenuEnabled&&le()}function Lt(St,Ut){J.actions.internal.setHighQualityEnabled(St,Ut),le()}function fe(St){J.actions.internal.setPlaybackRate(St),le()}function Be(St){J.actions.internal.setSubtitle(St),le()}function We(){ct()}function wt(){(0,Dc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Qt(){Yl(J.actions.internal.getDebugTextData())}let Mt=()=>{let St=J.actions.internal.getTraceTextData(),Ut=new Blob([...St],{type:"application/json"}),W=window.URL.createObjectURL(Ut);Ua(W,"vk_player_trace_info","json")};function mi(){Fe.set(!l())}function pi(){R(Ft,!0)}function Bi(){R(Ft,!1)}function Nt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-se()}px; overflow: auto;`}let vi=f(()=>ae&&u()&&!m()),xi=f(()=>Ce.features.trafficSaving&&!m()&&p()&&!Ce.features.qualityDetailsSubMenuEnabled),mt=f(()=>v().length>0&&!m()),Jt=f(()=>!!b()&&!m()),Hi=f(()=>Ce.features.audioLanguages&&y().length>=2&&!m()),Si=f(()=>!m());Dt(()=>kt.subscribe(St=>{St&&!d()&&!n(Ft)&&!a()&&le()}));let ri=f(()=>{let St=[n(Si)&&"quality-settings",n(Hi)&&"audio-tracks-settings",n(Jt)&&"playback-rate-settings",n(mt)&&"subtitles-settings",n(xi)&&"traffic-saving-switch",n(vi)&&"download",Ce.showSupport&&"show-support","copy-data",Ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ut=>!!Ut);return u$({items:St,context:{qualityDetailsSubMenuEnabled:Ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:g(),currentAudioStream:w(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:C(),toggleTrafficSaving:st,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:We,onCopyDataClick:Qt,onReportProblemClick:wt,onSaveTraceDataClick:Mt,toggleShowDebugInfo:mi},additionalSettingsMenuItems:k()})}),_t=f(()=>c$({subMenuId:Y.current,context:{availablePlaybackRates:g(),selectPlaybackRate:fe,trafficSavingEnabled:C(),toggleTrafficSaving:st,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:F(),highQualityEnabled:z(),toggleHighQuality:Lt,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Pt,currentAudioStream:w(),isMobile:d(),selectAudioLanguage:Me,selectQuality:ye,selectSubtitle:Be}}));var je=xC();let gi;var bo=T(je);{var tn=St=>{var Ut=yC();let W;Ut.__keydown=[bC,Pt];var Ot=T(Ut);{var li=bt=>{var rt=$C();let Fi;var Mi=T(rt),gn=T(Mi,!0);S(Mi);var hn=P(Mi,2);hn.__click=le,S(rt),O((Vi,Ui)=>{Fi=ne(rt,1,"item header s-r",null,Fi,Vi),ve(gn,Ui)},[()=>({mobile:d()}),()=>Rt("submenu_settings")]),$(bt,rt)};V(Ot,bt=>{d()&&bt(li)})}var vt=P(Ot,2);let ii;wi(vt,21,()=>n(ri),bt=>bt.id,(bt,rt)=>{var Fi=Le(),Mi=ue(Fi);{var gn=Vi=>{Nv(Vi,{get isMobile(){return d()},get id(){return n(rt).id},get icon(){return n(rt).icon},get iconProps(){return n(rt).iconProps},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get value(){return n(rt).value},get valueComponent(){return n(rt).valueComponent},onClick:()=>{ke(n(rt).children),R(qt,n(rt).id,!0)},get ref(){return Z[n(rt).id]},set ref(Ui){Z[n(rt).id]=Ui}})},hn=(Vi,Ui)=>{{var Hn=lo=>{let Ai=f(()=>`${n(rt).id}-menu-item`);Dv(lo,{get isMobile(){return d()},get id(){return n(Ai)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},closeSettings:le})},xo=(lo,Ai)=>{{var Do=Bo=>{let _n=f(()=>`${n(rt).id}-menu-item`);Hv(Bo,{get isMobile(){return d()},get id(){return n(_n)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get enabled(){return n(rt).enabled},get tooltipText(){return n(rt).tooltipText},get maxTooltipWidth(){return n(rt).maxTooltipWidth}})};V(lo,Bo=>{n(rt).type==="SWITCH"&&Bo(Do)},Ai)}};V(Vi,lo=>{n(rt).type==="CLICK"?lo(Hn):lo(xo,!1)},Ui)}};V(Mi,Vi=>{n(rt).type==="OPEN_SUB_MENU"?Vi(gn):Vi(hn,!1)})}$(bt,Fi)}),S(vt),Ze(vt,bt=>X(bt),()=>X()),S(Ut),O((bt,rt,Fi)=>{W=ne(Ut,1,"settings-menu menu s-r",null,W,bt),ii=ne(vt,1,"items",null,ii,rt),Ke(vt,Fi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),Nt]),dt("mouseenter",Ut,pi),dt("mouseleave",Ut,Bi),$(St,Ut)};V(bo,St=>{r()&&St(tn)})}var on=P(bo,2);wi(on,17,()=>n(_t),St=>St.id,(St,Ut)=>{let W=f(()=>{var Ot;return(Ot=n(Ut).minWidth)!=null?Ot:137});Rv(St,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return Pt},openSubMenuList:ke,get items(){return n(Ut).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return oe[n(Ut).id]},set listRef(Ot){oe[n(Ut).id]=Ot}})}),S(je),O(St=>gi=ne(je,1,"settings-menu-container s-r",null,gi,St),[()=>({mobile:d(),hidden:!r()})]),$(t,je),H(),o()}Ye(["keydown","click"]);var SC=L('<button class="btn s-1f"> </button>'),CC={hash:"s-1f",code:"button.btn.s-1f{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function eg(t,e){G(t,CC);var i=SC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);S(i),O(()=>ve(o,e.label)),$(t,i)}Ye(["click"]);var TC=L('<div class="container s-s"><div class="notification s-s"><div><p class="description s-s"><!></p> <!></div> <!></div></div>'),IC={hash:"s-s",code:".container.s-s{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-s{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-s{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Hc(t,e){B(e,!0),G(t,IC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Bt(),{ui:{t:r}}=_e(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=TC(),d=T(l),s=T(d),u=T(s),m=T(u);Oc(m,{get message(){return a}}),S(u);var p=P(u,2);{var v=y=>{let g=f(()=>r("slow_video_notification_button"));eg(y,{get label(){return n(g)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var b=P(s,2);Bs(b,{get onClick(){return e.onClose}}),S(d),S(l),ns(3,d,()=>xs,()=>({duration:i})),$(t,l),H()}var Fc=require("@vkontakte/videoplayer-shared/es2015");var ul="annotation",Ip=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",ul),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}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"}}runHidingControlsWhenIntersected(r,a){return gt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver(b=>b.forEach(()=>{let y=Fs(d,this.shadowRootContainer);o.forEach(g=>{let w=s==null?void 0:s[g],I=w?$e(w):null,C=u==null?void 0:u[g];I&&(C==null||C.set((0,Fc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Fc.Subscription;o.forEach(b=>{s&&p.add(s[b].subscribe(y=>{let g=u==null?void 0:u[b];y&&y.isDisplayed?g==null||g.set((0,Fc.isIntersecting)(y,Fs(d,this.shadowRootContainer))):g==null||g.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return gt(this,null,function*(){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(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)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,b;(b=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var EC=L('<div class="container s-5"><!></div>'),kC={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 Uc(t,e){B(e,!0),G(t,kC);let i=_(e,"reversed",3,!1);var o=Le(),r=ue(o);Rs(r,()=>e.Icon,a=>{var l=EC(),d=T(l);Oi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),O(()=>Ke(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(t,o),H()}var tg=require("@vkontakte/videoplayer-core/es2015"),PC=L('<div class="container s-14"><!></div>'),AC={hash:"s-14",code:".container.s-14{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function ig(t,e){B(e,!0),G(t,AC);let[i,o]=Oe(),r=()=>x(s,"$playbackState$",i),a=()=>x(m,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=_e(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Bt(),y=0,g=q(null),w=q(!1);De(()=>{r()===tg.PlaybackState.PLAYING?R(g,On,!0):r()===tg.PlaybackState.PAUSED?R(g,zs,!0):R(g,null)}),De(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,R(g,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(w)&&(R(w,!0),R(g,null))});var I=Le(),C=ue(I);{var N=A=>{var E=PC(),k=T(E);Uc(k,{get duration(){return b},get Icon(){return n(g)}}),S(E),$(A,E)};V(C,A=>{n(g)&&v&&A(N)})}$(t,I),H(),o()}var LC=L('<div><div data-testid="video-container"></div></div>'),MC={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 pl(t,e){B(e,!0),G(t,MC);let[i,o]=Oe(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(v,"$playerSize",i),l=()=>x(m,"$playerPhase",i),d=()=>x(y,"$chromecastConnected$",i),s=()=>x(b,"$isPlaying$",i),u=_(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=_e(),{isSmoothVideoRotate:g}=Bt(),w=f(()=>u()&&r()%180?a().height/a().width:1);var I=LC();let C;I.__contextmenu=function(...E){var k;(k=e.onContextMenu)==null||k.apply(this,E)},I.__mousedown=function(...E){var k;(k=e.onMouseDown)==null||k.apply(this,E)},I.__mouseup=function(...E){var k;(k=e.onMouseUp)==null||k.apply(this,E)},I.__click=function(...E){var k;(k=e.onClick)==null||k.apply(this,E)},I.__dblclick=function(...E){var k;(k=e.onDblClick)==null||k.apply(this,E)};var N=T(I);let A;Ze(N,E=>u(E),()=>u()),S(I),O((E,k)=>{C=ne(I,1,"video-wrapper s-c",null,C,E),A=ne(N,1,"video-container s-c",null,A,k),Ke(N,`transform: rotate(${r()}deg) scale(${n(w)})`),Ve(N,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!g})]),$(t,I),H(),o()}Ye(["contextmenu","mousedown","mouseup","click","dblclick"]);var VC=L('<div><span class="text s-z"> </span> <!></div>'),RC={hash:"s-z",code:".root.s-z{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-z,.root.visible.s-z{transform:translateX(-50%)}.root.visible.s-z{opacity:1;visibility:visible}.text.s-z{font-size:13px;font-weight:600;line-height:16px}"};function og(t,e){B(e,!0),G(t,RC);let{ui:{t:i}}=_e();var o=VC();let r;var a=T(o),l=T(a,!0);S(a);var d=P(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=ne(o,1,"root s-z",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),H()}var NC=L('<div class="container s-12" role="button" data-testid="preview-track-overlay"><div class="icon s-12"><!></div></div>'),OC={hash:"s-12",code:".container.s-12{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-12,.icon.s-12{align-items:center;display:flex;justify-content:center}.icon.s-12{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-12:hover .icon:where(.s-12){transform:scale(1.15)}"};function ng(t,e){B(e,!1),G(t,OC);let o=_e().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};$o();var l=NC();l.__click=a;var d=T(l),s=T(d);return On(s,{get size(){return"32"}}),S(d),S(l),ns(3,l,()=>xs,()=>({duration:r})),$(t,l),Uf(e,"handleClick",a),H({handleClick:a})}Ye(["click"]);var DC=L('<div class="container s-y"><div class="notification s-y"><span class="text s-y"> </span></div></div>'),BC={hash:"s-y",code:".container.s-y{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-y{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-y{font-size:14px;font-weight:500;line-height:18px}"};function rg(t,e){B(e,!1),G(t,BC);let{ui:{t:i}}=_e();$o();var o=DC(),r=T(o),a=T(r),l=T(a,!0);S(a),S(r),S(o),O(d=>ve(l,d),[()=>i("preview_track_notification_text")],Pn),ns(3,r,()=>xs,()=>({duration:340})),$(t,o),H()}var HC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},FC=L("<div><!></div>"),UC=L('<div class="spherical-video-icon s-8"><!></div>'),zC=L("<div><!></div>"),WC=L('<div class="settings-menu s-8"><!></div>'),KC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qC=L("<!> <!> <!>",1),QC=L('<div class="blocked s-8"></div>'),GC=L('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),YC={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 ag(t,e){B(e,!0),G(t,YC);let[i,o]=Oe(),r=()=>x(zr,"$notificationsToShow$",i),a=()=>x(xi,"$playerPhase",i),l=()=>x(tn,"$isLoaderVisible",i),d=()=>x(Bi,"$adPlaybackState",i),s=()=>x(vt,"$crashed",i),u=()=>x(Ui,"$isInteractiveTime$",i),m=()=>x(Si,"$settingsMenuVisible",i),p=()=>x(Hn,"$isInteractiveExpectation$",i),v=()=>x(Hi,"$controlsVisible",i),b=()=>x(lo,"$touched",i),y=()=>x(cs,"$graphIsOpened$",i),g=()=>x(mt,"$isFullscreen",i),w=()=>x(nr,"$autoplayNextEnabled$",i),I=()=>x(W,"$postrollPassed",i),C=()=>x(on,"$isEnded$",i),N=()=>x(xn,"$cursorInside",i),A=()=>x(bn,"$isControlsAvailable",i),E=()=>x(_r,"$doubleForwardOn$",i),k=()=>x(rr,"$fakeIsPlaying$",i),Q=()=>x(Wn,"$bottomNoSmooth",i),F=()=>x(Dr,"$interactiveTimeIndicator",i),z=()=>x(Mi,"$playerSize",i),X=()=>x(gn,"$is3DVideo",i),se=()=>x(br,"$doubleForwardAvailable$",i),Z=()=>x(gi,"$contextMenuVisible$",i),oe=()=>x(pi,"$playbackState$",i),J=()=>x(Ai,"$hotKeyMapData",i),Ce=()=>x(_t,"$scrubbingInProgress",i),me=()=>x(je,"$volumeChangingInProgress",i),ee=()=>x(St,"$chromecastConnected$",i),be=()=>x(Kn,"$controlsTimeoutActive",i),we=()=>x(ri,"$settingsMenuOpenedByKeyboard",i),ge=()=>x(ko,"$contextMenuOpenedByKeyboard$",i),pe=()=>x(qo,"$contextMenuOpenedByHotKey$",i),Qe=()=>x(Tn,"$contextMenuButtonRef$",i),U=()=>x(dr,"$contextMenuLastActiveElem$",i),D=()=>x(Jt,"$isFullscreenOpenedByKeyboard",i),Ge=()=>x(Bo,"$positionExact$",i),K=()=>x(mi,"$language$",i),ae=()=>x(kr,"$previewTrackActive$",i),xe=()=>x(hn,"$icon3DVideoVisible",i),He=()=>x(Ut,"$chromecastDeviceName$",i),ot=()=>x(rt,"$currentSubtitle$",i),re=()=>x(Fi,"$currentSubtitleCaptions$",i),ce=()=>x(Nt,"$position$",i),Ne=()=>x(vi,"$duration$",i),Re=()=>x(Ot,"$isLive$",i),tt=()=>x(li,"$isPlaying$",i),Ee=()=>x(Hr,"$contextMenuPosition$",i),Te=()=>x(nn,"$previewTrackNotificationVisible$",i),Fe=()=>x(Do,"$showHotKeyMap",i),kt=()=>x(bo,"$debugPanelVisible",i),Ct=()=>x(Ur,"$userActionsDisabled$",i),Rt=_(e,"videoContainer",15),ct=_(e,"adsSlotId",3,void 0),Pt=_(e,"adsParams",3,void 0),ti=_(e,"adsAutoplayParam",3,void 0),At=_(e,"duration",3,void 0),Ft=_(e,"logoTargetUrl",3,""),qt=_(e,"showNextPrevButtons",3,!1),Y=_(e,"nextButtonActive",3,!1),ke=_(e,"prevButtonActive",3,!1),le=_(e,"endScreenVideoTitle",3,void 0),ye=_(e,"endScreenVideoThumb",3,void 0),Me=_(e,"isOneVideoPlaylist",3,!1),st=_(e,"shadowRootContainer",3,void 0),Lt=_(e,"outerContainerRef",3,void 0),fe=_(e,"playerStarted",3,!1),Be=_(e,"fullScreenTarget",3,void 0),We=_(e,"showMiniTimer",3,!1),wt=_(e,"showEndScreen",3,!0),Qt=_(e,"keyboardControls",15),Mt=e.store.getLogger().createComponentLog("Root component"),mi=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,Bi=e.store.ads.playbackState,Nt=e.store.state.positionWithScrubbing$,vi=e.store.state.duration$,xi=e.store.playerPhase,mt=e.store.ui.isFullscreen,Jt=e.store.ui.isFullscreenOpenedByKeyboard,Hi=e.store.ui.controlsVisible,Si=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,_t=e.store.ui.scrubbingInProgress,je=e.store.ui.volumeChangingInProgress,gi=e.store.ui.contextMenu.visible$,bo=e.store.ui.debugPanelVisible,tn=e.store.state.isLoaderVisible,on=e.store.state.isEnded$,St=e.store.state.chromecastConnected$,Ut=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Ot=e.store.state.isLive$,li=e.store.state.isPlaying$,vt=e.store.state.crashed$,ii=e.store.webApi.annotationsApi,bt=e.store.webApi.pictureInPictureApi,rt=e.store.state.currentSubtitle$,Fi=e.store.state.currentSubtitleCaptions$,Mi=e.store.ui.playerSize,gn=e.store.ui.is3DVideo,hn=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Ui=e.store.state.isInteractiveTime$,Hn=e.store.state.isInteractiveExpectation$,xo=e.store.state.hasInteractiveBranches,lo=e.store.ui.touched,Ai=e.store.ui.modals.hotKeyMap.data,Do=e.store.ui.modals.hotKeyMap.show,Bo=e.store.state.positionExact$,_n=e.store.ui.overlayContainer$,Dr=e.store.ui.controls.interactiveTimeIndicator,Br=e.store.state.showInteractiveTimeIndicator,Hr=e.store.ui.contextMenu.position$,ws=e.store.actions.internal.setQuality,Fr=e.store.actions.internal.closeSettingsMenu,nr=e.store.ui.autoplayNextEnabled$,Ur=e.store.ui.userActionsDisabled,bn=e.store.ui.isControlsAvailable,$n=e.store.ui.videoTitleInfo,_r=e.store.ui.doubleForwardOn$,br=e.store.ui.doubleForwardAvailable$,nn=e.store.ui.previewTrackNotificationVisible,$r=e.store.actions.internal.getVideoElement,yr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:rr,notifications$:Fn,graphIsOpened$:cs}=yo(),Ho=q(void 0),xr=q(void 0),zi=q(void 0),wr=q(void 0),Un,ft,oi;Ai.set(ab());let{closeNotification:Sr,notificationsToShow$:zr}=Fn,Wr=f(()=>!!r().slow_video),zn=()=>Sr("slow_video"),sr=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),wo=q(void 0),Wn=de(!1),ar,Kn=de(!1),yn=de(),xn=de(!1),wn=q(!1),rn=q(!1),Wi=q(!1),eo=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),sn=f(()=>u()&&!m()&&!(n(wn)||n(rn))&&!(n(Wi)&&!p())),lr=!0,Cr=f(()=>e.uiConfig.features.thumbTimer&&We()&&a()==="video"&&!v()&&!s()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Sn=e.uiConfig.titleShowBehaviour,Tr=f(()=>!["video","thumb"].includes(a())||Sn==="never"||y()?!1:Sn==="fullscreen"?g():!0),ut=f(()=>Sn==="always"||a()==="thumb"?!1:!v()),Tt=q(!1),co=f(()=>(wt()||e.showAutoplayNext&&w())&&!!le()&&!!ye()&&(e.showAds&&I()||!e.showAds)&&C()&&!s()&&!n(Tt)&&!xo),Fo=f(()=>N()&&!(v()||n(co))&&!u()&&A()&&!E()),So=q(!1),an=f(()=>k()!==null),{toggle:uo}=rr,Co=!1,ki=null;bt==null||bt.setContext(Td());let Kr=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Kr});let qn=()=>{window.clearTimeout(Un),Kn.set(!1)},Ss=()=>{window.clearTimeout(ft),yn.set(null)},Ki=he=>{qn(),Kn.set(!0),Un=window.setTimeout(()=>Kn.set(!1),he);let $t=he-100;ar=window.setTimeout(()=>{Q()&&Wn.set(!1)},$t>0?$t:he)},Cs=(he,$t)=>{Ss(),yn.set($t),ft=window.setTimeout(()=>yn.set(null),he)},us=gn.subscribe(he=>{hn.set(he),he&&(window.clearTimeout(oi),oi=window.setTimeout(()=>hn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ir=()=>gt(null,null,function*(){var $t,ni,Zt,Ao;let he=la();if(he){let fo=tc(),Qo=ln();he=fo===Qo||fo===st()}if(he){Ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield bt==null?void 0:bt.exit()}catch(fo){Mt({message:String(fo)})}}mt.set(he),e.store.getAdmanWrapper().setFullscreen(he),g()?(ni=($t=e.store.callbacks)==null?void 0:$t.onFullscreenEnter)==null||ni.call($t):(Ao=(Zt=e.store.callbacks)==null?void 0:Zt.onFullscreenExit)==null||Ao.call(Zt)}),Uo=he=>{let{width:$t,height:ni}=he.target;Mi.set({width:$t,height:ni})},qr=()=>{let{width:he,height:$t}=n(Ho).getBoundingClientRect();Mi.set({width:he,height:$t})};Dt(()=>{var $t;return ep(Ir),e.uiConfig.features.annotationsInside&&(ii==null||ii.init(n(Ho))),qa(bt)&&(bt==null||bt.assignPlayerContainer(n(Ho)),bt==null||bt.setExternalEventHandlers({resize:Uo,leavepictureinpicture:qr})),e.interactiveContainer&&(($t=Rt().parentElement)==null||$t.insertBefore(e.interactiveContainer,Rt().nextSibling)),()=>{window.clearTimeout(Un),window.clearTimeout(ar),window.clearTimeout(ft),window.clearTimeout(oi),us(),bt==null||bt.dispose().catch(ni=>{Mt({message:String(ni)})}),tp(Ir)}});let ln=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Lt()?n(Ho):Lt(),$t=he.getRootNode(),ni=$t instanceof ShadowRoot?$t.host:$t,Zt=Be()instanceof HTMLElement&&Be().contains(ni);return e.uiConfig.allowChangingFullscreenTarget&&Be()&&Zt?Be():he},dn=()=>{gi.set(!1)},Ue=()=>{Fr(),dn()},It=()=>gt(null,null,function*(){if(!yr()){Mt({message:"fullscreen disabled"});return}dn(),la()?(yield Ju(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),yield Zu(ln()))}),fi=he=>{y()||(he.preventDefault(),gi.set(!0),Hr.set({left:he.clientX,top:he.clientY}))};function zo(){xn.set(!0),Vi||Ki(e.uiConfig.controls.hideTimeoutCursor)}function To(he){var Ao,fo;let{relatedTarget:$t}=he,Zt=!!($t&&((Ao=n(zi))!=null&&Ao.contains($t)))&&((fo=Qt())==null?void 0:fo.isFocused());!Vi&&!Zt&&(Wn.set(!0),Ki(e.uiConfig.controls.hideTimeoutCursor))}function Wo(){xn.set(!1),R(rn,!1),R(wn,!1),Co=!1,e.store.actions.internal.releaseCamera(),Ki(e.uiConfig.controls.hideTimeout),E()&&Ko()}function qi(he){return he?he.offsetTop+qi(he.offsetParent):0}function Io(he){return he?he.offsetLeft+Io(he.offsetParent):0}function Qn(he){if(F()&&Br){let $t=he.currentTarget,ni=qi($t),Zt=Io($t),Ao=he.pageX-Zt,fo=he.pageY-ni,{left:Qo,bottom:ks,right:Yr}=F(),Pr=Yr-Qo;return Ao>=Qo-Pr&&fo<=ks+Pr}}function Er(he){if(n(Ho)){let $t=qi(he.currentTarget),ni=z().height,Zt=he.pageY-$t;if(Qn(he)){R(rn,!1);return}Zt<40?R(rn,!0):Zt>ni-40?R(wn,!0):(R(rn,!1),m()||R(wn,!1))}}function Eo(he){Er(he),!n(sn)&&!E()&&Ki(e.uiConfig.controls.hideTimeoutCursor),X()&&Co&&ki&&e.store.actions.internal.moveCameraFocusPX(ki.clientX-he.clientX,ki.clientY-he.clientY,he.timeStamp-ki.timeStamp),ki=he}let po=null,Cn=()=>{po=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),qn()},e.uiConfig.doubleForwardActivationTime)},Ko=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),po&&clearTimeout(po),po=null},Gn=he=>{he.preventDefault(),he.button===0&&(Co=!0,e.store.actions.internal.holdCamera(),se()&&Cn()),!Co&&Ki(e.uiConfig.controls.hideTimeoutCursor)},Qr=he=>{he.preventDefault(),he.button===0&&(ki=he,Co=!1,e.store.actions.internal.releaseCamera()),!E()&&Ki(e.uiConfig.controls.hideTimeoutCursor)},Gr=he=>{he.preventDefault(),lr&&(Mt({message:"double click on video"}),It(),Ki(e.uiConfig.controls.hideTimeoutCursor))},Yn=he=>{var $t;if(he.preventDefault(),E()){Ko();return}if(po&&Ko(),Z()||m()){Ue();return}if(!(C()&&!xo)){if(n(an))return uo();if(($t=Qt())==null||$t.focus(),!fe()){e.firstStart(),Ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==sg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ki(e.uiConfig.controls.hideTimeoutCursor)}},et=he=>{Ue(),lo.set(!0),Ki(e.uiConfig.controls.hideTimeout),he&&Cs(e.uiConfig.controls.hideHotKeyHelpers,he)},ei=()=>{var he,$t;Ue(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?($t=e.store.callbacks)==null||$t.onOpenHotKeyMap(J()):Do.update(ni=>!ni)},Ci=()=>{lo.set(!0)},ko=e.store.ui.contextMenu.openedByBtnKeyboard$,Tn=e.store.ui.contextMenu.btnRef$,jn=q(void 0),qo=e.store.ui.contextMenu.openedByHotKey$,dr=e.store.ui.contextMenu.lastActiveElem$,ps=q(!1),kr=e.store.ui.previewTrackActive;De(()=>{_n.set(n(wo))}),De(()=>{R(Wi,n(eo)&&oe()!==sg.PlaybackState.PLAYING,!0),n(eo)||Et(()=>R(eo,!0))}),De(()=>{var $t,ni;let he=(n(Wi)||C()||m()||Ce()||me()||ee()||be()||n(ps))&&!n(sn)&&(a()==="video"||a()==="ads")&&!s()&&A();Hi.set(he),!he&&!be()&&(($t=n(zi))!=null&&$t.contains(lp()))&&((ni=Qt())==null||ni.focus())}),De(()=>{!Ce()&&n(So)&&!u()&&Ki(e.uiConfig.controls.hideTimeoutCursor),Et(()=>R(So,Ce(),!0))}),De(()=>{n(wr),m(),we(),Et(()=>lc(n(wr),m(),we()))}),De(()=>{n(jn),Z(),ge(),pe(),Et(()=>{let he=ge()||pe();lc(n(jn),Z(),he)})}),De(()=>{let he=Qe();he&&(Z(),Et(()=>jl(he,Z(),ko)))}),De(()=>{let he=U();he&&(Z(),Et(()=>pb(he,Z(),qo)))}),De(()=>{var he;!D()&&g()&&(Et(()=>Jt.set(!1)),(he=Qt())==null||he.focus())}),De(()=>{y()&&Ue()});let Ts=q(void 0),Qs=he=>{$n.set(ir($r(),{title:n(Ts)},"title",he))},_a=(he,$t)=>{var fo,Qo;let ni=(Qo=(fo=e.store.callbacks)==null?void 0:fo.uiInfo)==null?void 0:Qo.onUpcomingLiveViewStateChanged;if(!ni)return;let Zt=!!$t,Ao=Pe(Pe({},ir(n(Ho),{upcomingLiveScreen:$t},"upcomingLiveScreen",Zt)),he);ni(Ao)},lt="",di=f(()=>{var he;return n(ut)?lt:(he=e.getVideoDeeplink)==null?void 0:he.call(e,Ge())});De(()=>{lt=n(di)});var Po=GC();dt("blur",La,Ue);var Ti=ue(Po);Ti.__mousemove=Eo;var In=T(Ti);let En=f(()=>a()==="ads"),Is=f(()=>n(an)?uo:void 0);Ze(Tm(In,{startDoubleForwardActivationTimer:Cn,stopDoubleForward:Ko,toggleFullscreen:It,hideContextMenu:Ue,showHotKeyHelpers:et,showKeyMap:ei,get isAds(){return n(En)},get fakePlayButtonHandler(){return n(Is)},get nextButtonActive(){return Y()},get prevButtonActive(){return ke()},children:(he,$t)=>{var ni=qC(),Zt=ue(ni);pl(Zt,{get hideCursor(){return n(Fo)},onClick:Yn,onContextMenu:fi,onMouseDown:Gn,onMouseUp:Qr,onDblClick:Gr,get videoContainer(){return Rt()},set videoContainer(Qo){Rt(Qo)}});var Ao=P(Zt,2);Da(Ao,()=>"slot",!1,(Qo,ks)=>{no(Qo,()=>({name:ul}))});var fo=P(Ao,2);Rs(fo,K,Qo=>{var ks=KC(),Yr=ue(ks);let Pr=f(()=>a()!=="thumb"||s()||Vi&&e.autoplay);ll(Yr,{get hidden(){return n(Pr)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:fi,onClick:dn});var ba=P(Yr,2);{var Gs=ze=>{ng(ze,{})};V(ba,ze=>{ae()&&ze(Gs)})}var $a=P(ba,2);ig($a,{});var jr=P($a,2);og(jr,{get isVisible(){return E()}});var kn=P(jr,2);{var vl=ze=>{let yi=f(()=>{var mo;return(mo=e.live)==null?void 0:mo.startTime});Rc(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(yi)},onUpcomingLiveViewStateChanged:_a,onContextMenu:fi,onClick:dn})};V(kn,ze=>{a()==="LiveWaitingStart"&&ze(vl)})}var ya=P(kn,2);{var Xr=ze=>{dl(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:dn})};V(ya,ze=>{a()==="LiveWaitingRecover"&&ze(Xr)})}var gl=P(ya,2);{var _d=ze=>{dl(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:dn})};V(gl,ze=>{a()==="LiveWaitingRecord"&&ze(_d)})}var xa=P(gl,2);{var bd=ze=>{var yi=FC();let mo;var Ar=T(yi);oc(Ar,{get adsSlotId(){return ct()},get adsParams(){return Pt()},get adsAutoplayParam(){return ti()},get duration(){return At()},get adsExternalApi(){return e.adsExternalApi}}),S(yi),O(cn=>mo=ne(yi,1,"ads-container s-8",null,mo,cn),[()=>({hidden:a()!=="ads"})]),$(ze,yi)};V(xa,ze=>{e.showAds&&fe()&&ze(bd)})}var hl=P(xa,2);{var _l=ze=>{let yi=f(()=>!wt()&&e.showAutoplayNext&&w());wm(ze,{get title(){return le()},get thumb(){return ye()},get isHide(){return n(yi)},clickCloseIcon:()=>R(Tt,!0)})};V(hl,ze=>{n(co)&&le()&&ye()&&ze(_l)})}var wa=P(hl,2);{var pt=ze=>{let yi=f(()=>g()?"md":"sm"),mo=f(()=>{var Ar;return(Ar=e.store.callbacks)==null?void 0:Ar.onTitleClicked});kv(ze,{get title(){return e.title},get isHidden(){return n(ut)},onVisibilityChanged:Qs,get titleLinkHref(){return n(di)},onMouseEnter:()=>{R(ps,!0)},onMouseLeave:()=>{R(ps,!1)},get size(){return n(yi)},get onTitleClicked(){return n(mo)},get ref(){return n(Ts)},set ref(Ar){R(Ts,Ar,!0)}})};V(wa,ze=>{n(Tr)&&ze(pt)})}var nt=P(wa,2);{var to=ze=>{let yi=f(()=>a()==="video"&&v());Mc(ze,{get isShifted(){return n(yi)}})};V(nt,ze=>{X()&&ze(to)})}var Lo=P(nt,2);{var io=ze=>{var yi=UC(),mo=T(yi);ec(mo,{}),S(yi),$(ze,yi)};V(Lo,ze=>{xe()&&ze(io)})}var $i=P(Lo,2);{var Gi=ze=>{Vc(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()},onClick:Yn,onContextMenu:fi,onDblClick:Gr})};V($i,ze=>{ee()&&ze(Gi)})}var Ys=P($i,2);{var $d=ze=>{sl(ze,{get shifted(){return v()},get captions(){return re()},get position(){return ce()},get playerSize(){return z()}})};V(Ys,ze=>{ot().value!=="off"&&ze($d)})}var Jc=P(Ys,2);{var Kp=ze=>{var yi=zC();yi.__contextmenu=fi,yi.__click=[HC,Z,gi,m,Si,Ue];var mo=T(yi);al(mo,{}),S(yi),$(ze,yi)};V(Jc,ze=>{s()&&ze(Kp)})}var eu=P(Jc,2);{var qp=ze=>{let yi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),mo=f(()=>a()==="ads"),Ar=f(()=>e.canRewindLive&&Ne()!==0);Ac(ze,{get bottomHidden(){return n(yi)},get bottomNoSmooth(){return Q()},get showControls(){return v()},get isAds(){return n(mo)},get canRewindLive(){return n(Ar)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qt()},get nextButtonActive(){return Y()},get prevButtonActive(){return ke()},get isOneVideoPlaylist(){return Me()},customFullscreenSupported:lr,toggleFullscreen:It,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(xr)},set playerControlsWrapperRef(cn){R(xr,cn,!0)},get playerControlsRef(){return n(zi)},set playerControlsRef(cn){R(zi,cn,!0)}})};V(eu,ze=>{fe()&&ze(qp)})}var tu=P(eu,2);{var Qp=ze=>{var yi=WC(),mo=T(yi);let Ar=f(()=>{var cn;return(cn=n(zi))==null?void 0:cn.clientHeight});Bc(mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Ar)},returnFocus:()=>{var cn;return(cn=Qt())==null?void 0:cn.focus()},get ref(){return n(wr)},set ref(cn){R(wr,cn,!0)}}),S(yi),$(ze,yi)};V(tu,ze=>{!ee()&&a()!=="ads"&&ze(Qp)})}var iu=P(tu,2);let Gp=f(()=>!n(Cr));sc(iu,{get isLive(){return Re()},get isHidden(){return n(Gp)},get isPlaying(){return tt()},get position(){return ce()},get duration(){return Ne()}});var Sa=P(iu,2);Iv(Sa,{get data(){return yn}});var ou=P(Sa,2);ym(ou,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=Qt())==null?void 0:ze.focus()},get visible(){return Z()},get playerContainerRef(){return n(Ho)},get position(){return Ee()},get menuElementRef(){return n(jn)},set menuElementRef(ze){R(jn,ze,!0)}});var js=P(ou,2);{var bl=ze=>{Hc(ze,{onClose:zn,onSelectAutoQuality:()=>{ws("auto"),zn()}})};V(js,ze=>{n(Wr)&&ze(bl)})}var nu=P(js,2);{var ru=ze=>{rg(ze,{})};V(nu,ze=>{Te()&&ze(ru)})}var $l=P(nu,2);{var su=ze=>{ja(ze,{})};V($l,ze=>{n(sr)&&ze(su)})}var au=P($l,2);{var lu=ze=>{km(ze,{})};V(au,ze=>{Fe()&&ze(lu)})}var Yp=P(au,2);{var jp=ze=>{cc(ze,{})};V(Yp,ze=>{kt()&&ze(jp)})}$(Qo,ks)}),$(he,ni)},$$slots:{default:!0}}),he=>Qt(he),()=>Qt());var Es=P(In,2);Ze(Es,he=>R(wo,he),()=>n(wo)),S(Ti),Ze(Ti,he=>R(Ho,he),()=>n(Ho));var Qi=P(Ti,2);{var Pi=he=>{var $t=QC();$(he,$t)};V(Qi,he=>{Ct()&&he(Pi)})}dt("mouseenter",Ti,zo),dt("mouseleave",Ti,Wo),dt("click",Ti,Ci,!0),dt("focusin",Ti,To,!0),$(t,Po),H(),o()}Ye(["mousemove","contextmenu","click"]);var ha=require("@vkontakte/videoplayer-core/es2015"),_$=require("@vkontakte/videoplayer-shared/es2015");var jC=L('<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),XC=L("<div><!></div>"),ZC={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 Ep(t,e){B(e,!0),G(t,ZC);let i=_(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(ci(i())),d=p=>{p.stopPropagation(),a+=1,R(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(R(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,R(o,!1)},300)};fn(()=>{window.clearTimeout(r)});var s=XC();s.__click=d;var u=T(s);{var m=p=>{var v=jC(),b=ue(v),y=P(b,2),g=T(y),w=T(g),I=P(w,2),C=P(I,2);S(g);var N=P(g,2),A=T(N,!0);S(N),S(y),O(E=>{var k,Q,F,z;ne(b,1,`semicircle ${(k=e.side)!=null?k:""}`,"s-l"),ne(w,1,`triangle ${(Q=e.side)!=null?Q:""}`,"s-l"),ne(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-l"),ne(C,1,`triangle ${(z=e.side)!=null?z:""}`,"s-l"),ve(A,E)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};V(u,p=>{n(o)&&p(m)})}S(s),O(()=>{var p;return ne(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-l")}),$(t,s),H()}Ye(["click"]);var JC=(t,e,i)=>{e(!1),i()},eT=L('<div class="overlay s-q"></div> <div class="next-video s-q"><div class="top s-q"><div class="caption s-q"> </div> <!></div> <div class="row s-q"><div class="column s-q"><div class="thumb s-q"><div></div> <!></div></div> <div class="column s-q"><div class="title s-q"> </div></div></div></div>',1),tT={hash:"s-q",code:".overlay.s-q{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-q{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-q{display:flex;justify-content:space-between}.caption.s-q{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-q{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-q{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-q{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-q,.thumb-overlay.s-q{height:100%;width:100%}.thumb-overlay.s-q{position:absolute}.thumb-overlay.withOpacity.s-q{background:var(--black);opacity:.3}.title.s-q{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function lg(t,e){B(e,!0),G(t,tT);let[i,o]=Oe(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=_e(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},g=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ue(w);{var C=N=>{var A=eT(),E=P(ue(A),2),k=T(E),Q=T(k),F=T(Q,!0);S(Q);var z=P(Q,2);Bs(z,{onClick:g}),S(k);var X=P(k,2);X.__click=[JC,u,p];var se=T(X),Z=T(se),oe=T(Z);let J;var Ce=P(oe,2);{var me=ge=>{uc(ge,{get isRunning(){return a()},onTimerEnded:y})};V(Ce,ge=>{r()&&ge(me)})}S(Z),S(se);var ee=P(se,2),be=T(ee),we=T(be,!0);S(be),S(ee),S(X),S(E),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=ne(oe,1,"thumb-overlay s-q",null,J,pe),ve(we,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(N,A)};V(I,N=>{e.isHide||N(C)})}$(t,w),H(),o()}Ye(["click"]);var f$=require("@vkontakte/videoplayer-core/es2015");var m$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{f$.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))}),fn(()=>{i==null||i(),clearTimeout(o)})};var v$=require("@vkontakte/videoplayer-core/es2015");var kp=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 g$=require("@vkontakte/videoplayer-core/es2015"),h$=({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=()=>g$.clientChecker.device.isIOS&&$e(l)===v$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!m()||!b)return;let y=u();if(!y)return;let g=new kp(y),w=$e(d),I=$e(a),C=$e(r);for(let E of w)I.some(Q=>Q.value===E.id)&&g.attach(E,C.value===E.id);let N=d.subscribe(E=>{for(let k of E)g.updateSrc(k)}),A=()=>{let E=g.getCurrentShowingId();o($e(a).find(k=>k.value===E))};y.textTracks.addEventListener("change",A),s=()=>{N(),g.detachAll(),y.textTracks.removeEventListener("change",A)}};Dt(()=>i.subscribe(v)),fn(p)};var iT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},oT=L("<!> <!>",1),nT=L("<div><!></div>"),rT=L('<div class="spherical-video-icon s-9"><!></div>'),sT=L("<div><!></div>"),aT=L('<div class="settings-mobile s-9"><!></div>'),lT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),dT=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),cT={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 dg(t,e){var Sn,Tr;B(e,!0),G(t,cT);let[i,o]=Oe(),r=()=>x(Me,"$playerPhase",i),a=()=>x(pi,"$isLoaderVisible",i),l=()=>x(ke,"$adPlaybackState",i),d=()=>x(ri,"$crashed",i),s=()=>x(ws,"$notificationsToShow$",i),u=()=>x(Y,"$playbackState$",i),m=()=>x(At,"$graphIsOpened$",i),p=()=>x(Be,"$interactiveHideMobileControls",i),v=()=>x(Bi,"$isEnded$",i),b=()=>x(vt,"$isInteractiveExpectation$",i),y=()=>x(Lt,"$controlsVisible",i),g=()=>x(rt,"$touched",i),w=()=>x(Mi,"$autoplayNextEnabled$",i),I=()=>x(xi,"$postrollPassed",i),C=()=>x(Ur,"$bottomNoSmooth",i),N=()=>x(gi,"$videoSize",i),A=()=>x(St,"$playerSize",i),E=()=>x(st,"$isFullscreen",i),k=()=>x(le,"$position$",i),Q=()=>x(ye,"$duration$",i),F=()=>x(gn,"$loadedMetadata",i),z=()=>x(We,"$settingsMenuVisible",i),X=()=>x(Qt,"$scrubbingInProgress",i),se=()=>x(Mt,"$volumeChangingInProgress",i),Z=()=>x(Nt,"$chromecastConnected$",i),oe=()=>x(fe,"$isControlsAvailable",i),J=()=>x(li,"$isInteractiveTime$",i),Ce=()=>x(Hi,"$isActiveLive",i),me=()=>x(wt,"$settingsMenuOpenedByKeyboard",i),ee=()=>x(qt,"$language$",i),be=()=>x(bt,"$disabledControls$",i),we=()=>x(Ut,"$is3DVideo",i),ge=()=>x(W,"$icon3DVideoVisible",i),pe=()=>x(vi,"$chromecastDeviceName$",i),Qe=()=>x(bo,"$currentSubtitle$",i),U=()=>x(tn,"$currentSubtitleCaptions$",i),D=()=>x(on,"$realDuration$",i),Ge=()=>x(mt,"$isLive$",i),K=()=>x(Jt,"$isPlaying$",i),ae=()=>x(mi,"$debugPanelVisible",i),xe=_(e,"videoContainer",15),He=_(e,"adsSlotId",3,void 0),ot=_(e,"adsParams",3,void 0),re=_(e,"adsAutoplayParam",3,void 0),ce=_(e,"duration",3,void 0),Ne=_(e,"logoTargetUrl",3,""),Re=_(e,"showNextPrevButtons",3,!1),tt=_(e,"nextButtonActive",3,!1),Ee=_(e,"prevButtonActive",3,!1),Te=_(e,"endScreenVideoTitle",3,void 0),Fe=_(e,"endScreenVideoThumb",3,void 0),kt=_(e,"isOneVideoPlaylist",3,!1),Ct=_(e,"showMiniTimer",3,!1),Rt=_(e,"fullScreenTarget",3,void 0),ct=_(e,"playerStarted",3,!1),Pt=_(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:At}=yo(),Ft=e.store.getLogger().createComponentLog("Root component"),qt=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,ke=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,ye=e.store.state.duration$,Me=e.store.playerPhase,st=e.store.ui.isFullscreen,Lt=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Be=e.store.ui.interactiveHideMobileControls,We=e.store.ui.settingsMenu.visible$,wt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Qt=e.store.ui.scrubbingInProgress,Mt=e.store.ui.volumeChangingInProgress,mi=e.store.ui.debugPanelVisible,pi=e.store.state.isLoaderVisible,Bi=e.store.state.isEnded$,Nt=e.store.state.chromecastConnected$,vi=e.store.state.chromecastDeviceName$,xi=e.store.ads.postrollPassed,mt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Hi=e.store.state.isActiveLive$,Si=e.store.state.isRewindableLive$,ri=e.store.state.crashed$,_t=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,gi=e.store.state.videoSize$,bo=e.store.state.currentSubtitle$,tn=e.store.state.currentSubtitleCaptions$,on=e.store.state.duration$,St=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Ot=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,vt=e.store.state.isInteractiveExpectation$,ii=e.store.state.hasInteractiveBranches,bt=e.store.ui.controls.disabledControls$,rt=e.store.ui.touched,Fi=e.store.ui.overlayContainer$,Mi=e.store.ui.autoplayNextEnabled$,gn=e.store.state.loadedMetadata$,hn=e.store.actions.internal.closeSettingsMenu,Vi=(Sn=e.store.callbacks)==null?void 0:Sn.onDisabledPlayPrevChapterClick,Ui=(Tr=e.store.callbacks)==null?void 0:Tr.onDisabledSeekToInteractiveClick,Hn=e.store.actions.internal.setQuality,xo=q(void 0),lo=q(void 0),Ai=q(void 0),Do=q(void 0),Bo,_n,Dr=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Br=q(void 0),{closeNotification:Hr,notificationsToShow$:ws}=ti,Fr=f(()=>!!s().slow_video),nr=()=>Hr("slow_video"),Ur=de(!1),bn,$n=q(!1),_r=f(()=>u()!==ha.PlaybackState.PLAYING),br=q(!1),nn=f(()=>m()||p()||!n($n)&&(v()&&!!ii||n(_r)&&b())),$r=q(!0),yr=f(()=>e.uiConfig.features.thumbTimer&&Ct()&&r()==="video"&&!y()&&!d()&&!Ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!g()||!e.uiConfig.hideThumbTimerAfterTouch)),rr=q(!1),Fn=f(()=>(Pt()||e.showAutoplayNext&&w())&&!!Te()&&!!Fe()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(rr)),cs=q(!1);je==null||je.setContext(Td());let Ho=ut=>{ut&&!Ot&&zi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Ho});let xr=()=>{clearTimeout(Bo),R($n,!1),p()&&Be.set(!1)},zi=ut=>{xr(),R($n,!0),Bo=setTimeout(()=>R($n,!1),ut);let Tt=ut-100;bn=setTimeout(()=>{C()&&Ur.set(!1)},Tt>0?Tt:ut)},wr=Ut.subscribe(ut=>{W.set(ut),ut&&(clearTimeout(_n),_n=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Un=(...Tt)=>gt(null,[...Tt],function*(ut=la()){var co,Fo,So,an,uo,Co;if(ut&&!ha.clientChecker.device.isIOS){let ki=tc(),Kr=zn(),qn=ha.clientChecker.browser.isSamsungBrowser&&ki===e.shadowRootContainer;ut=ki===Kr||qn}if(ut){zi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield je==null?void 0:je.exit()}catch(ki){Ft({message:String(ki)})}try{let ki=(co=N())!=null&&co.width&&((Fo=N())!=null&&Fo.height)?N():A();yield sb(ki)}catch(ki){Ft({message:String(ki)})}}st.set(ut),e.store.getAdmanWrapper().setFullscreen(ut),E()?(an=(So=e.store.callbacks)==null?void 0:So.onFullscreenEnter)==null||an.call(So):(Co=(uo=e.store.callbacks)==null?void 0:uo.onFullscreenExit)==null||Co.call(uo)}),ft=ut=>{let Tt=ut,{width:co,height:Fo}=Tt.target;St.set({width:co,height:Fo})},oi=()=>{let{width:ut,height:Tt}=n(xo).getBoundingClientRect();St.set({width:ut,height:Tt})};Dt(()=>{var ut;return ep(Un),e.uiConfig.features.annotationsInside&&(_t==null||_t.init(n(xo))),qa(je)&&(je==null||je.assignPlayerContainer(n(xo)),je==null||je.setExternalEventHandlers({resize:ft,leavepictureinpicture:oi})),R($r,!ha.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ut=xe().parentElement)==null||ut.insertBefore(e.interactiveContainer,xe().nextSibling)),()=>{clearTimeout(Bo),clearTimeout(bn),clearTimeout(_n),wr(),je==null||je.dispose().catch(Tt=>{Ft({message:String(Tt)})}),tp(Un)}});let Sr=q(!0),zr=q(!0),Wr=ut=>{let Tt=k()+(ut==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Tt<0?(R(Sr,!1),Tt=0):Tt>=Q()&&(R(zr,!1),Tt=Q()),R(br,!0),e.seekTime(Tt)},zn=()=>ha.clientChecker.device.isIOS?n(xo):!e.uiConfig.allowChangingFullscreenTarget||!Rt()?e.outerContainerRef:Rt().contains(e.outerContainerRef)?Rt():e.outerContainerRef,sr=()=>gt(null,null,function*(){try{if(la())yield Ju(document),Ft({message:"exit fullscreen"});else{if(Ft({message:"request fullscreen"}),ha.clientChecker.device.isIOS&&!F())return;yield Zu(zn())}}catch(ut){Ft({message:String(ut)})}}),wo=()=>{hn()},Wn=ut=>{if(ut.preventDefault(),z()){wo();return}if(!ct()){e.firstStart(),zi(e.uiConfig.controls.hideTimeoutCursor);return}R(br,!1),y()?xr():zi(e.uiConfig.controls.hideTimeoutMobile)},ar=()=>{rt.set(!0)},Kn=()=>{Ot||(Ur.set(!0),zi(e.uiConfig.controls.hideTimeoutCursor))},yn=ut=>{Vi&&(Vi(ut),zi(e.uiConfig.controls.hideTimeoutMobile))},xn=ut=>{Ui&&(Ui(ut),zi(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Fi.set(n(Br))}),De(()=>{Lt.set((n(_r)||z()||X()||se()||Z()||!n(Fn)&&(v()||n($n)&&!n(br)))&&!n(nn)&&r()==="video"&&!d()&&oe())}),De(()=>{!X()&&n(cs)&&!J()&&zi(e.uiConfig.controls.hideTimeoutMobile),R(cs,X(),!0)}),De(()=>{R(Sr,k()>0),R(zr,!Ce()&&k()<Q(),!0)}),De(()=>{lc(n(Do),z(),me(),!0)});let wn=j("aria_label_video_player");m$({fullScreenChangeHandler:Un,getFullscreenTarget:zn}),h$({store:e.store,getFullscreenTarget:zn});let rn=(ut,Tt)=>{var an,uo;let co=(uo=(an=e.store.callbacks)==null?void 0:an.uiInfo)==null?void 0:uo.onUpcomingLiveViewStateChanged;if(!co)return;let Fo=!!Tt,So=Pe(Pe({},ir(n(xo),{upcomingLiveScreen:Tt},"upcomingLiveScreen",Fo)),ut);co(So)};var Wi=dT();dt("blur",La,wo);var eo=T(Wi);pl(eo,{onClick:Wn,get videoContainer(){return xe()},set videoContainer(ut){xe(ut)}});var sn=P(eo,2);Da(sn,()=>"slot",!1,(ut,Tt)=>{no(ut,()=>({name:ul}))});var lr=P(sn,2);Rs(lr,ee,ut=>{var Tt=lT(),co=ue(Tt);let Fo=f(()=>r()!=="thumb"||d()||Ot&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);ll(co,{get hidden(){return n(Fo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var So=P(co,2);{var an=et=>{var ei=oT(),Ci=ue(ei);{var ko=qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(qo,{side:"left",get seekStep(){return n(dr)},handleSingleFirstClick:Wn,handleSecondClick:()=>Wr("backward")})};V(Ci,qo=>{n(Sr)&&qo(ko)})}var Tn=P(Ci,2);{var jn=qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(qo,{side:"right",get seekStep(){return n(dr)},handleSingleFirstClick:Wn,handleSecondClick:()=>Wr("forward")})};V(Tn,qo=>{n(zr)&&qo(jn)})}$(et,ei)};V(So,et=>{e.canRewindLive&&Si&&!be().has("TIMELINE")&&et(an)})}var uo=P(So,2);{var Co=et=>{let ei=f(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});Rc(et,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ei)},onUpcomingLiveViewStateChanged:rn})};V(uo,et=>{r()==="LiveWaitingStart"&&et(Co)})}var ki=P(uo,2);{var Kr=et=>{dl(et,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(ki,et=>{r()==="LiveWaitingRecover"&&et(Kr)})}var qn=P(ki,2);{var Ss=et=>{dl(et,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(qn,et=>{r()==="LiveWaitingRecord"&&et(Ss)})}var Ki=P(qn,2);{var Cs=et=>{var ei=nT();let Ci;var ko=T(ei);oc(ko,{get adsSlotId(){return He()},get adsParams(){return ot()},get adsAutoplayParam(){return re()},get duration(){return ce()},get adsExternalApi(){return e.adsExternalApi}}),S(ei),O(Tn=>Ci=ne(ei,1,"ads-container s-9",null,Ci,Tn),[()=>({hidden:r()!=="ads"})]),$(et,ei)};V(Ki,et=>{e.showAds&&ct()&&et(Cs)})}var us=P(Ki,2);{var Ir=et=>{let ei=f(()=>!Pt()&&e.showAutoplayNext&&w());lg(et,{get title(){return Te()},get thumb(){return Fe()},get isHide(){return n(ei)},clickCloseIcon:()=>R(rr,!0)})};V(us,et=>{n(Fn)&&Te()&&Fe()&&et(Ir)})}var Uo=P(us,2);{var qr=et=>{Mc(et,{})};V(Uo,et=>{we()&&et(qr)})}var ln=P(Uo,2);{var dn=et=>{var ei=rT(),Ci=T(ei);ec(Ci,{}),S(ei),$(et,ei)};V(ln,et=>{ge()&&et(dn)})}var Ue=P(ln,2);{var It=et=>{Vc(et,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return pe()},onClick:Wn})};V(Ue,et=>{Z()&&et(It)})}var fi=P(Ue,2);{var zo=et=>{sl(et,{get shifted(){return y()},get captions(){return U()},get position(){return k()},get playerSize(){return A()},isMobile:!0})};V(fi,et=>{Qe().value!=="off"&&et(zo)})}var To=P(fi,2);{var Wo=et=>{var ei=sT();ei.__click=[iT,z,We,wo];var Ci=T(ei);al(Ci,{}),S(ei),$(et,ei)};V(To,et=>{d()&&et(Wo)})}var qi=P(To,2);{var Io=et=>{let ei=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=f(()=>r()==="ads"),ko=f(()=>e.canRewindLive&&D()!==0);Ac(et,{get bottomHidden(){return n(ei)},get showControls(){return y()},get bottomNoSmooth(){return C()},get isAds(){return n(Ci)},get canRewindLive(){return n(ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Re()},get nextButtonActive(){return tt()},get prevButtonActive(){return Ee()},get isOneVideoPlaylist(){return kt()},get customFullscreenSupported(){return n($r)},get endScreenShown(){return n(Fn)},toggleFullscreen:sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yn,onDisabledSeekToInteractiveClick:xn,get playerControlsWrapperRef(){return n(lo)},set playerControlsWrapperRef(Tn){R(lo,Tn,!0)},get playerControlsRef(){return n(Ai)},set playerControlsRef(Tn){R(Ai,Tn,!0)}})};V(qi,et=>{ct()&&et(Io)})}var Qn=P(qi,2);{var Er=et=>{var ei=aT(),Ci=T(ei);Bc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return _$.noop},get ref(){return n(Do)},set ref(ko){R(Do,ko,!0)}}),S(ei),$(et,ei)};V(Qn,et=>{z()&&et(Er)})}var Eo=P(Qn,2);let po=f(()=>!n(yr));sc(Eo,{get isLive(){return Ge()},get isHidden(){return n(po)},get isPlaying(){return K()},get position(){return k()},get duration(){return Q()}});var Cn=P(Eo,2);{var Ko=et=>{ja(et,{})};V(Cn,et=>{n(Dr)&&et(Ko)})}var Gn=P(Cn,2);{var Qr=et=>{cc(et,{})};V(Gn,et=>{ae()&&et(Qr)})}var Gr=P(Gn,2);{var Yn=et=>{Hc(et,{onClose:nr,onSelectAutoQuality:()=>{Hn("auto"),nr()}})};V(Gr,et=>{n(Fr)&&et(Yn)})}$(ut,Tt)});var Cr=P(lr,2);Ze(Cr,ut=>R(Br,ut),()=>n(Br)),S(Wi),Ze(Wi,ut=>R(xo,ut),()=>n(xo)),O(()=>Ve(Wi,"aria-label",wn)),dt("click",Wi,ar,!0),dt("focusin",Wi,Kn,!0),$(t,Wi),H(),o()}Ye(["click"]);function Pp(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),ao(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ao(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}var b$=require("@vkontakte/videoplayer-shared/es2015");var uT=L('<div class="time-container s-7"><!></div>'),pT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),fT={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 cg(t,e){B(e,!0),G(t,fT);let[i,o]=Oe(),r=()=>x(J,"$scrubbingInProgress",i),a=()=>x(Z,"$playerSize",i),l=()=>x(k,"$isPlaying$",i),d=()=>x(A,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(C,"$playerPhase",i),m=()=>x(N,"$crashed$",i),p=()=>x(Q,"$currentSubtitle$",i),v=()=>x(F,"$currentSubtitleCaptions$",i),b=()=>x(E,"$positionExact$",i),y=()=>x(X,"$isLive$",i),g=()=>x(se,"$isRewindableLive$",i),w=_(e,"outsideDuration",3,0),I=_(e,"videoContainer",15),{playerPhase:C,state:{crashed$:N,duration$:A,positionExact$:E,isPlaying$:k,currentSubtitle$:Q,currentSubtitleCaptions$:F,positionWithScrubbing$:z,isLive$:X,isRewindableLive$:se},ui:{playerSize:Z,controls:oe,scrubbingInProgress:J},actions:{internal:{getVideoElement:Ce}}}=_e(),me=8,ee=q(!1),be=ci({}),we=q(!1),ge=f(()=>!r()&&!n(we)),pe=()=>{R(ee,!0)},Qe=()=>{R(ee,!1)},U=(0,b$.debounceFn)(rd,260);De(()=>{a(),U(Ce(),oe,be,n(ee))});let D=f(()=>l()?en(d()-s()):en(isFinite(d())?d():w()));var Ge=pT(),K=T(Ge);pl(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var ae=P(K,2);Da(ae,()=>"slot",!1,(Te,Fe)=>{no(Te,()=>({name:ul}))});var xe=P(ae,2);let He=f(()=>u()!=="thumb"||m());ll(xe,{get hidden(){return n(He)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ot=P(xe,2);{var re=Te=>{sl(Te,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};V(ot,Te=>{p().value!=="off"&&n(ge)&&Te(re)})}var ce=P(ot,2);{var Ne=Te=>{var Fe=uT(),kt=T(Fe);rc(kt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(D)}}),S(Fe),$(Te,Fe)};V(ce,Te=>{n(ge)&&Te(Ne)})}var Re=P(ce,2);let tt;var Ee=T(Re);ol(Ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return g()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:me,tooltipRightOffset:me,get ref(){return be.timeline},set ref(Te){be.timeline=Te}}),S(Re),S(Ge),O(Te=>tt=ne(Re,1,"timeline s-7",null,tt,Te),[()=>({visible:n(ee)})]),dt("mouseenter",Ge,pe),dt("mouseleave",Ge,Qe),dt("mouseenter",Re,()=>R(we,!0)),dt("mouseleave",Re,()=>R(we,!1)),$(t,Ge),H(),o()}var mT=L("<div><!></div>"),vT={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 ug(t,e){B(e,!0),G(t,vT);let[i,o]=Oe(),r=()=>x(ct,"$isLive$",i),a=()=>x(_t,"$availableSubtitlesList$",i),l=()=>x(je,"$isPreviewTrackHorizontallyAligned$",i),d=_(e,"sources",7),s=_(e,"store",7),u=_(e,"microStoresRoot",7),m=_(e,"videoConfig",7),p=_(e,"uiConfig",7),v=_(e,"title",7),b=_(e,"thumbUrl",7),y=_(e,"interactiveContainer",7),g=_(e,"interactiveController",7),w=_(e,"subtitles",7),I=_(e,"subtitlesForcedLanguage",7),C=_(e,"live",7),N=_(e,"preload",7),A=_(e,"autoplay",7),E=_(e,"volume",7,void 0),k=_(e,"muted",7,void 0),Q=_(e,"fromTime",7),F=_(e,"canRewindLive",7),z=_(e,"showAds",7),X=_(e,"adsSlotId",7,void 0),se=_(e,"adsParams",7,void 0),Z=_(e,"adsAutoplayParam",7,void 0),oe=_(e,"duration",7,void 0),J=_(e,"logoClickable",7),Ce=_(e,"logoHidden",7),me=_(e,"isMobile",7),ee=_(e,"showNextPrevButtons",7,!1),be=_(e,"nextButtonActive",7,!1),we=_(e,"prevButtonActive",7,!1),ge=_(e,"endScreenVideoTitle",7,void 0),pe=_(e,"endScreenVideoThumb",7,void 0),Qe=_(e,"isOneVideoPlaylist",7,!1),U=_(e,"supportLink",7),D=_(e,"shadowRootContainer",7),Ge=_(e,"outerContainerRef",7),K=_(e,"fullScreenTarget",7,void 0),ae=_(e,"failoverHosts",7,void 0),xe=_(e,"showMiniTimer",7,!1),He=_(e,"saveRate",7),ot=_(e,"seekToInteractive",7,fl.noop),re=_(e,"playPrevChapter",7,fl.noop),ce=_(e,"volumeMultiplier",7),Ne=_(e,"showAutoplayNext",7),Re=_(e,"showEndScreen",7,!0),tt=_(e,"keyboardControls",15,void 0),{subscribers:Ee,stores:Te}=u();m_(p());let Fe=Bt(),kt=p().logoLink,Ct=s().ui.debugPanelVisible,Rt=s().ui.playerSize,ct=s().state.isLive$,ti=s().state.isInteractive&&cd.clientChecker.device.isAndroid,At=q(void 0),Ft=null,qt=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}),C_(s(),Te),De(()=>{var W,Ot;s().ui.isMobile.set(me()),(Ot=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Ot.call(W)});let Y=(W=!1)=>{R(qt,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},ke=()=>{if(Fe.features.qualityDetailsSubMenuEnabled){let W=G_(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{Y_(s().videoId),om()&&s().actions.internal.setTrafficSavingEnabled(!0);let Ot=em(s().videoId);Ot&&s().actions.internal.setQuality(Ot)}};function le(W){var bt,rt,Fi;let Ot=d()||W;Ot&&s().initVideo({container:n(At),sources:Ot,failoverHosts:ae(),subtitles:w(),subtitlesForcedLanguage:I(),volumeMultiplier:ce()});let li=fl.safeStorage.get(Gd)==="true";Ct.set(li),Q()>0&&s().actions.external.seekTime(Q());let vt=me()?Fe.volumeDefault:(rt=(bt=E())!=null?bt:zu())!=null?rt:Fe.volumeDefault,ii=(Fi=k())!=null?Fi:U_();if(s().actions.external.setVolume(vt),s().actions.external.setMuted(ii),s().getAdmanWrapper().setInitialVolume(ii?0:vt),ke(),Fe.features.saveRate&&He()){let Mi=K_();Mi&&!r()&&s().actions.internal.setPlaybackRate(Mi)}if(Ne()){let Mi=Q_();Mi&&s().actions.internal.setAutoplayNextEnabled(Mi)}s().ui.isAutoplay.set(A()),A()&&Y(),N()&&Fe.features.preload&&s().actions.internal.preload()}let ye=W=>{if(window.ResizeObserver){let Ot,li;Ft=new ResizeObserver((0,fl.throttleFn)(vt=>{let ii=vt[0];if(ii.contentBoxSize){let bt=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Ot=bt.inlineSize,li=bt.blockSize}else ii.contentRect&&(Ot=ii.contentRect.width,li=ii.contentRect.height);Rt.set({width:Ot,height:li})},300)),Ft.observe(W)}W.clientWidth&&W.clientHeight&&Rt.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var li,vt,ii,bt;ti&&document.addEventListener("visibilitychange",Me),Fe.debugLog&&s().actions.internal.startLogging(),ye(n(At));let W=Ee.map(rt=>rt.init({store:s(),microStores:Te,config:m(),interactiveController:g(),uiConfig:p()})),Ot=()=>{ti&&document.removeEventListener("visibilitychange",Me),Ft==null||Ft.disconnect(),W.forEach(rt=>rt.unsubscribe()),s().destroy()};return((li=C())==null?void 0:li.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Ot):((vt=C())==null?void 0:vt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Ot):(((ii=C())==null?void 0:ii.status)==="finished"||((bt=C())==null?void 0:bt.status)==="postlive")&&!(d()&&(0,cd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Ot):(le(),Ot)});function st(){n(qt)?s().actions.external.play():Y(!0)}function Lt(){s().actions.external.pause()}function fe(W){s().actions.external.setMuted(W)}function Be(){s().actions.external.toggleSubtitle()}function We(W,Ot){s().actions.external.changeSubtitle(W,Ot)}function wt(W){s().actions.external.changeAudioStream(W)}function Qt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Mt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function mi(W){me()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function pi(W){s().actions.internal.seekTime(W,$$.SeekAction.UNKNOWN)}function Bi(W){s().actions.external.seekEpisodeStartTime(W)}function Nt(){s().actions.external.returnFocusToEpisodes()}function vi(W){s().actions.external.setPlaybackRate(W)}function xi(W){s().actions.external.setAutoQualityLimits(W)}function mt(){s().actions.external.setQuality("auto")}function Jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Hi(W){s().actions.external.setHighQualityEnabled(W)}let Si=Pp(Fe.view),ri=m().playerView==="preview",_t=s().state.availableSubtitlesList$;if(Fe.features.initSubtitles){let W=!1;De(()=>{var Ot;if(!W&&a().length){W=!0;let li;if(Fe.features.userVideoPrefs&&s().videoId){let ii=Qu(Fe.userSalt,String(s().videoId));ii!=null&&ii.subtitleTrackId&&(li=a().find(bt=>bt.value===ii.subtitleTrackId))}let vt=(Ot=I())!=null?Ot:rm();vt&&(li=a().find(ii=>ii.language===vt)),s().actions.internal.setSubtitle(li)}})}let je=s().ui.isPreviewTrackHorizontallyAligned;var gi=mT();let bo;var tn=T(gi);{var on=W=>{dg(W,{get store(){return s()},get uiConfig(){return Fe},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return kt},get nextButtonActive(){return be()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return U()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(qt)},get seekToInteractive(){return ot()},get playPrevChapter(){return re()},firstStart:Y,seekTime:pi,get showEndScreen(){return Re()},get showAutoplayNext(){return Ne()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(At)},set videoContainer(Ot){R(At,Ot,!0)}})},St=W=>{var Ot=Le(),li=ue(Ot);{var vt=bt=>{cg(bt,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return F()},get videoContainer(){return n(At)},set videoContainer(rt){R(At,rt,!0)}})},ii=bt=>{ag(bt,{get store(){return s()},get uiConfig(){return Fe},get title(){return v()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return kt},get nextButtonActive(){return be()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return U()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(qt)},get seekToInteractive(){return ot()},get playPrevChapter(){return re()},firstStart:Y,get showEndScreen(){return Re()},get showAutoplayNext(){return Ne()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(At)},set videoContainer(rt){R(At,rt,!0)},get keyboardControls(){return tt()},set keyboardControls(rt){tt(rt)}})};V(li,bt=>{ri?bt(vt):bt(ii,!1)})}$(W,Ot)};V(tn,W=>{me()?W(on):W(St,!1)})}S(gi),O(W=>{bo=ne(gi,1,"vk-vp-root s-1",null,bo,W),Ke(gi,Si)},[()=>({"root--miui-browser":cd.clientChecker.device.isMobile&&cd.clientChecker.browser.isMiuiBrowser,"visible-outside":ri,"preview-track-horizontally-alinged":l()})]),$(t,gi);var Ut=H({initVideo:le,play:st,pause:Lt,setMuted:fe,toggleSubtitle:Be,changeSubtitle:We,changeAudioStream:wt,hideControls:Qt,showControls:Mt,setVolume:mi,seekTime:pi,seekEpisodeStartTime:Bi,returnFocusToEpisodes:Nt,setPlaybackRate:vi,setAutoQualityLimits:xi,setAutoQuality:mt,toggleTrafficSaving:Jt,toggleHighQuality:Hi,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 m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return b()},set thumbUrl(W){b(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return g()},set interactiveController(W){g(W)},get subtitles(){return w()},set subtitles(W){w(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return C()},set live(W){C(W)},get preload(){return N()},set preload(W){N(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return k()},set muted(W){k(W)},get fromTime(){return Q()},set fromTime(W){Q(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return se()},set adsParams(W){se(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return Ce()},set logoHidden(W){Ce(W)},get isMobile(){return me()},set isMobile(W){me(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return be()},set nextButtonActive(W){be(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return ge()},set endScreenVideoTitle(W){ge(W)},get endScreenVideoThumb(){return pe()},set endScreenVideoThumb(W){pe(W)},get isOneVideoPlaylist(){return Qe()},set isOneVideoPlaylist(W){Qe(W)},get supportLink(){return U()},set supportLink(W){U(W)},get shadowRootContainer(){return D()},set shadowRootContainer(W){D(W)},get outerContainerRef(){return Ge()},set outerContainerRef(W){Ge(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return ae()},set failoverHosts(W){ae(W)},get showMiniTimer(){return xe()},set showMiniTimer(W){xe(W)},get saveRate(){return He()},set saveRate(W){He(W)},get showAutoplayNext(){return Ne()},set showAutoplayNext(W){Ne(W)},get seekToInteractive(){return ot()},set seekToInteractive(W){ot(W)},get playPrevChapter(){return re()},set playPrevChapter(W){re(W)},get volumeMultiplier(){return ce()},set volumeMultiplier(W){ce(W)},get showEndScreen(){return Re()},set showEndScreen(W){Re(W)},get keyboardControls(){return tt()},set keyboardControls(W){tt(W)}});return o(),Ut}var gT=Ie('<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 pg(t,e){let i=_(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=gT();ui(9),$(r,l)},$$slots:{default:!0}})}var hT=L('<div class="title s-2"> </div>'),_T=L('<div class="playerStub s-2"><!> <!></div>'),bT={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 fg(t,e){G(t,bT);var i=_T(),o=T(i);{var r=d=>{var s=hT(),u=T(s,!0);S(s),O(()=>ve(u,e.title)),$(d,s)};V(o,d=>{e.title&&d(r)})}var a=P(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);pg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var $T=L('<div class="playerError s-0"><!></div>'),yT={hash:"s-0",code:".playerError.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%}"};function mg(t){G(t,yT);var e=$T(),i=T(e);al(i,{}),S(e),$(t,e)}var zp=require("@vkontakte/videoplayer-shared/es2015"),Di=require("@vkontakte/videoplayer-shared/es2015"),Zc=require("@vkontakte/videoplayer-core/es2015"),gd=require("@vkontakte/videoplayer-statistics/es2015");var Lp=require("@vkontakte/videoplayer-shared/es2015"),Ap=class{constructor(){this.subscription=new Lp.Subscription,this.logger=new Lp.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=$e(e.state.currentPlaybackRate$),r=$e(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 pd=require("@vkontakte/videoplayer-shared/es2015");var xT=Ie('<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),wT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),ST={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 vg(t,e){B(e,!0),G(t,ST);let[i,o]=Oe(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(m,"$isMobile$",i),l=_e(),d=Bt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),b=Pp(d.view);var y=wT();let g;var w=T(y);let I;var C=T(w);Je(C,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,k)=>{var Q=xT();ui(),$(E,Q)},$$slots:{default:!0}}),S(w);var N=P(w,2),A=T(N,!0);S(N),S(y),O((E,k)=>{g=ne(y,1,"player-pip-dummy s-6",null,g,E),Ke(y,b),I=ne(w,1,"dummy-image s-6",null,I,k),ve(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),H(),o()}var CT=Object.defineProperty,TT=(t,e,i)=>e in t?CT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ud=(t,e,i)=>TT(t,typeof e!="symbol"?e+"":e,i),gg=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),IT=460,ET=280,zc=class{constructor({enabled:e=!0}={enabled:!0}){ud(this,"playerDomElement"),ud(this,"playerParentShadowRoot"),ud(this,"playerDummyElement"),ud(this,"svelteContext"),ud(this,"pipWindow"),ud(this,"info",{isActive$:new pd.ValueSubject(!1),isEnabled$:new pd.ValueSubject(!1),type:1}),this.info.isEnabled$=new pd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,pd.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}request(){return gg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:IT,height:ET,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=is(vg,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||(Oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return gg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return gg(this,null,function*(){yield 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 y$(t){return t instanceof zc}var Mp=class{static getLatestSupportedVersion(e){let i=new Ka(e),o=new zc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Wc(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 x$="Inner error. Unexpectedly root annotation container null reference exception",w$="Annotation with such name already exists",S$="Annotation with such name does not exist";var fd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var md=require("@vkontakte/videoplayer-shared/es2015"),kT="1",PT=100,Vp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new md.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,md.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"},PT);this.subscriptions.add((0,md.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 fd(x$);if(this.annotations.has(e))throw new fd(w$);i.style.zIndex=(o=i.style.zIndex)!=null?o:kT,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 fd(S$);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 ml=require("@vkontakte/videoplayer-shared/es2015"),vn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ml.assertNonNullable)(e),(0,ml.assertNonNullable)(i),(0,ml.assertNonNullable)(r),r.interactiveData&&(0,ml.assertNonNullable)(o),this.subscription=new ml.Subscription,this.subscription}};var Kc=class extends vn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Yt(Pe({},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 qc=class extends vn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Yt(Pe({},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:m}=a.ui,p=$e(m),v=()=>p&&$e(u);return o.add(u.subscribe(b=>{if(!p)return;let y=$e(l);$e(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||v())})),o.add(l.subscribe(b=>{if(b===null)return;let y=$e(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Qc=class extends vn{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 C$=require("@vkontakte/videoplayer-shared/es2015");var hg=de(!1),Rp=null,Gc=class extends vn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Yt(Pe({},hg),{set:(i,o=!1)=>{i!==$e(hg)&&(this.clearTimeout(),hg.set(i),!i&&Rp&&(Rp=!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=>{$e(l)&&p&&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$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,g;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Rp===null&&(Rp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(g=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||g.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Np=require("@vkontakte/videoplayer-shared/es2015");var Yc=class extends vn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Yt(Pe({},de(null)),{toggle:Np.noop});this.checkIfShouldHide=i=>Hs(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=()=>gt(this,null,function*(){if(this.checkIfShouldHide($e(l)))return;let s=$e(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=$e(u),b=$e(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Qf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Qf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Np.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>gt(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}}))),o}};var _g=require("@vkontakte/videoplayer-shared/es2015"),jc=class extends vn{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 _g.ValueSubject(!1),isEnabled$:new _g.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 Dp=require("@vkontakte/videoplayer-shared/es2015");var Op=require("@vkontakte/videoplayer-shared/es2015");var T$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?AT({maxCount:t}):void 0,e!==0?LT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},AT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Op.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}}},LT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Op.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Op.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(Yt(Pe({},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 Xc=class extends vn{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=T$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Dp.filterChanged)(),(0,Dp.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 I$=()=>[Kc,qc,Qc,Gc,Yc,jc,Xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Yt(Pe({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var vd=require("@vkontakte/videoplayer-shared/es2015");var Bp=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 Hp=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 Bp(()=>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 MT=L('<div class="root s-3"><!></div>'),VT={hash:"s-3",code:".root.s-3{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function bg(t,e){B(e,!0),G(t,VT);let i=null,o=q(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{R(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&R(o,s?"prev":"next",!0)}var a=Le(),l=ue(a);{var d=s=>{var u=Le(),m=ue(u);Rs(m,()=>n(o),p=>{var v=MT(),b=T(v);let y=f(()=>n(o)==="prev");Uc(b,{get duration(){return e.animationDuration},get Icon(){return ga},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),H({startVideoChangedAnimation:r})}var E$=require("@vkontakte/videoplayer-shared/es2015"),$g=(0,E$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var RT=Object.defineProperty,NT=Object.defineProperties,OT=Object.getOwnPropertyDescriptors,k$=Object.getOwnPropertySymbols,DT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable,xg=(t,e,i)=>e in t?RT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qs=(t,e)=>{for(var i in e||(e={}))DT.call(e,i)&&xg(t,i,e[i]);if(k$)for(var i of k$(e))BT.call(e,i)&&xg(t,i,e[i]);return t},HT=(t,e)=>NT(t,OT(e)),Xt=(t,e,i)=>xg(t,typeof e!="symbol"?e+"":e,i),Fp=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),FT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Di.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},or=q(void 0),yg=ci({animationDuration:0,playbackStatusShow:!1}),Up=class extends $g{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,"metaConfig"),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 zp.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:p,refreshStatAuthToken:v,autoplay:b,isMobile:y,isTouch:g,refDomain:w,deviceId:I,interactiveData:C}=Wc(this.videoConfig,i),N=(o=C==null?void 0:C.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new gd.OneStat(qs({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:g!=null?g:y,clip:k,refDomain:w,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},N&&(!this.isInited||A)&&{projectId:Number(N)}),qs({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(F){console.error(F),this.log({message:F.message})}}),vd.devNull.create("ui"),this.logger=new Di.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Di.Subscription,this.interactiveSubscription=new Di.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=is(mg,{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=ci({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=is(fg,l),this.sveltePersistentLayerComponent=is(bg,{target:this.playerContainer,props:yg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;yg.animationDuration=e,yg.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(),vd.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}=Wc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new gd.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,p,v,b;if(!this.videoConfig)return;let{albumId:y,statPlace:g,statAuthToken:w,preload:I,autoplay:C,volume:N,muted:A,fromTime:E,canRewindLive:k,supportLink:Q,showAds:F,adsSlotId:z,adsParams:X={},adsAutoplayParam:se,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,logoClickable:J,logoHidden:Ce,isMobile:me,isTouch:ee,isAudioDisabled:be,isLiveCatchUpMode:we,fullScreenTarget:ge,failoverHosts:pe,canDownload:Qe,callbacks:U,interactiveData:D,showThumbTimer:Ge,additionalButtons:K=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:xe=[],repeat:He,loop:ot,saveRate:re,volumeMultiplier:ce,showEndScreen:Ne,showAutoplayNext:Re,mediascopePixels:tt}=Wc(this.videoConfig,i),{sources:Ee,title:Te,thumbUrl:Fe,unitedVideoId:kt,isClip:Ct=!1,duration:Rt,adsParams:ct={},videoEpisodes:Pt,previewThumbsData:ti,subtitles:At,subtitlesForcedLanguage:Ft,live:qt,adsExternalApi:Y}=e;if(!Ee&&!qt){let vi=new Error("empty sources and live");this.fatalError$.next(vi),(r=U.onCrashed)==null||r.call(U,vi.message);return}let ke=qs(qs({},X),ct),le=this.getNextVideoInfo(),ye={sources:Ee,title:Te,thumbUrl:Fe,subtitles:At,subtitlesForcedLanguage:Ft,unitedVideoId:kt,isClip:Ct,live:qt,albumId:y,statPlace:g,autoplay:C,muted:A,volume:N,fromTime:E,canRewindLive:k,showAds:F,adsSlotId:z,adsParams:ke,adsAutoplayParam:se,duration:Rt,logoClickable:J,logoHidden:Ce,isTouch:ee!=null?ee:me,repeat:He,loop:ot,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(ye)}`});let st=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),Lt=(st==null?void 0:st.oneStat)||this.createOneStat(e,i),fe=this.createThinOneStat(e,i),Be;tt&&(Be=new gd.MediascopePixel({pixels:tt})),(Lt||fe)&&(this.statistics=new hp(Lt,fe,Be,st==null?void 0:st.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Wa(this.uiConfig.sentry,{version:Fa,env:Hu},{movieId:kt,albumId:y,place:g,autoplay:(l=C&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:me,clip:Ct}),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=qs(qs({},this.sentry),Wa.getInstance());let wt=!!D,Qt=[],Mt="tooltip_interactive_go_back_disabled_first";if(wt&&this.interactiveController){let vi=this.interactiveController.state.isInitialChapter$.getValue(),xi=this.interactiveController.getHistoryState();vi&&Qt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Qt.push("SEEK_TO_INTERACTIVE_BUTTON"),xi.hasPrevChapter$.getValue()||(Qt.push("PLAY_PREV_CHAPTER_BUTTON"),vi||(xi.isGoBackLimited$.getValue()?Mt="tooltip_interactive_go_back_disabled_limit":Mt="tooltip_interactive_go_back_disabled"))}let mi=()=>{var vi;this.isInited=!1,this.prevIsid=void 0;let xi=(o==null?void 0:o.info.isEnded$.getValue())&&((vi=this.interactiveController)==null?void 0:vi.state.isEndChapter$.getValue());U.onReplayInteractiveVideo&&!xi?U.onReplayInteractiveVideo():this.replayInteractiveVideo()},pi=He&&this.videoConfig.videos.length===1;this.store=Ob({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,videoId:kt,isClip:Ct,isLiveCatchUpMode:we,isAudioDisabled:be,statAuthToken:w,callbacks:U,webApi:Me,videoEpisodes:Pt,previewThumbsData:ti,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Qt,isInteractive:wt,saveRate:re,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:Mt,hasInteractiveBranches:!!((b=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:ae!=null?ae:[],additionalContextMenuItems:xe!=null?xe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:vi=>{var xi;return(xi=this.sveltePersistentLayerComponent)==null?void 0:xi.startVideoChangedAnimation(vi)},looped:this.uiConfig.features.useLoopSetting?ot:pi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Bi}=this.microStoresRoot=I$(),Nt=()=>{var vi,xi,mt,Jt,Hi,Si;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onCurrentFormatChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(Bi.interactiveControlsOpacity$.subscribe(_t=>{var je;_t!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(_t))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onThroughputEstimationChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onTrafficSavingEnabledChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onHighQualityEnabledChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onAutoQualityEnabledChanged)==null?void 0:je.call(U,!!_t)})),this.subscription.add(new Di.Observable(_t=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>_t.next(je)))}).pipe((0,Di.skip)(1)).subscribe(_t=>{var je;return(je=U==null?void 0:U.onCurrentPlaybackRateChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.volume$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onVolumeChange)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.muted$.subscribe(_t=>{var je,gi,bo,tn;if(_t)(je=U==null?void 0:U.onMute)==null||je.call(U);else{let on=(bo=((gi=this.store)==null?void 0:gi.state.volume$)&&$e(this.store.state.volume$))!=null?bo:0;(tn=U==null?void 0:U.onUnmute)==null||tn.call(U,on)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onVideoBitrateChanged)==null?void 0:je.call(U,_t)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(_t=>{var je;let gi=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;gi&&(_t&&!gi.includes(Yd)&&gi.add(Yd),_t||gi.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(_t=>Fp(this,null,function*(){var je;if(!Zc.clientChecker.browser.isSamsungBrowser||!_t||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(_t=>{var je;return(je=U==null?void 0:U.onVSIDChanged)==null?void 0:je.call(U,_t)})),this.initMediaSession(),R(or,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Fe,subtitles:At,subtitlesForcedLanguage:Ft,live:qt,preload:I,autoplay:C,muted:A,volume:N,fromTime:E,canRewindLive:k,supportLink:Q,showAds:F,adsSlotId:z,adsParams:ke,adsAutoplayParam:se,duration:Rt,logoClickable:J,logoHidden:Ce,isMobile:ee!=null?ee:me,failoverHosts:pe,fullScreenTarget:ge,saveRate:re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ge,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:ce,showEndScreen:Ne,showAutoplayNext:Re,adsExternalApi:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let ri={target:this.playerContainer,props:n(or)};this.svelteRootComponent=is(ug,ri),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(mt=(xi=(vi=this.videoConfig)==null?void 0:vi.callbacks)==null?void 0:xi.onInited)==null||mt.call(xi)),(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&&((Si=(Hi=this.videoConfig)==null?void 0:Hi.callbacks)!=null&&Si.onDevNullLog)?vd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):vd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zc.clientChecker.isInited$.subscribe(vi=>{vi&&(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,Di.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)}initInteractives(){return Fp(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?$e(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:b,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$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(I=>{if(!this.isInited)return;let C=this.store;I?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=HT(qs({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:C})=>{var N,A,E,k,Q,F;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jd)),I==="action-choice-canceled"){let X=$e(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(k=this.videoConfig)==null?void 0:(Q=k.callbacks).onDisabledInteractiveClick)==null||F.call(Q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:C})=>{this.store&&I==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(jd)})),yield 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(C=>{var N,A,E;C.length&&((E=(A=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,C))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var C,N,A;(A=(C=this.videoConfig)==null?void 0:(N=C.callbacks).onInteractiveChapterChanged)==null||A.call(N,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,C,N,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(C=this.videoConfig)==null?void 0:(N=C.callbacks).onInteractiveTimeIndicatorClick)==null||A.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,p,v,b,y,g,w,I,C,N,A,E,k,Q,F,z,X,se;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let Z=new Error("empty videos");this.fatalError$.next(Z),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,Z.message);return}else this.fatalError$.next(null);if(this.videoConfig=Wc(FT,(0,Di.cloneDeepWith)(e,Z=>Z instanceof $g?Z:void 0)),this.playerId=(0,Di.getPlayerId)(e.playerId),this.uiConfig=f_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,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 Di.InternalsExposure("ui",this.playerId))),vd.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,zp.now)()]}),(0,Di.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Di.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(w=(g=this.uiConfig.features.dpip)!=null?g:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.uiConfig.ads.paramsOverride=qs({preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(N=(C=this.uiConfig.isMobile)!=null?C:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(k=this.uiConfig.ads.slot)!=null?k:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.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&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let Z={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Mp.getLatestSupportedVersion(Z):this.pictureInPictureApi=new Ka(Z)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ap:void 0,this.slotsApi=this.uiConfig.features.slots?new Ip(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Vp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Hp(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]),y$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(se=this.slotsApi)==null||se.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(or)&&(n(or).showNextPrevButtons=this.needToShowNextPrevButtons(),n(or).nextButtonActive=this.isNextButtonActive(),n(or).prevButtonActive=this.isPrevButtonActive(),n(or).endScreenVideoTitle=o.nextVideoTitle,n(or).endScreenVideoThumb=o.nextVideoThumb,n(or).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}=qs({},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(or)&&(n(or).needToRepeatPlaylist=this.needToRepeatPlaylist,n(or).showNextPrevButtons=this.needToShowNextPrevButtons(),n(or).nextButtonActive=this.isNextButtonActive(),n(or).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)}setLanguage(e){return Fp(this,null,function*(){var i;yield(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()}replayInteractiveChapter(e){return Fp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Di.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield 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&&Oa(e)}};var hd=require("@vkontakte/videoplayer-shared/es2015"),Wp=require("@vkontakte/videoplayer-core/es2015"),UT=()=>{window.customElements.define("vk-video-player",Up)};
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`)),$(m,p)};V(d,m=>{e.type==="off"?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}}),H()}function Om(t,e){B(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=be().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");va(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var ux=L('<span class="duration s-21" data-testid="video_duration"> </span>'),px=L('<div><span class="current s-21" data-testid="current_time"> </span> <!></div>'),fx={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 fc(t,e){B(e,!0),Q(t,fx);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),a=h(e,"ref",15),l=Ot(),d=de(!1),s=f(()=>tn(e.duration)),u=f(()=>tn(e.position));var m=px();let p;var v=C(m),b=C(v,!0);S(v);var y=k(v,2);{var _=x=>{var I=ux(),T=C(I,!0);S(I),O(()=>ve(T,n(s))),$(x,I)};V(y,x=>{r()&&x(_)})}S(m),Ds(m,()=>Gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Xe(m,x=>a(x),()=>a()),O(x=>{p=oe(m,1,"time s-21",null,p,x),ve(b,n(u))},[()=>({mobile:i()})]),$(t,m),H()}var vc=require("@vkontakte/videoplayer-shared/es2015");var mx=Ie('<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),vx=Ie("<path></path>"),gx=Ie('<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 ga(t,e){B(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>mn(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,m)=>{var p=gx(),v=k(ue(p));{var b=_=>{var x=mx();pi(),$(_,x)},y=_=>{var x=vx();O(()=>Re(x,"d",`${d}${n(a)==="max"?s:""}`)),$(_,x)};V(v,_=>{n(a)==="off"?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var Do=require("@vkontakte/videoplayer-shared/es2015");var cp=require("@vkontakte/videoplayer-shared/es2015");var Sb=require("@vkontakte/videoplayer-shared/es2015");var hx=L('<div class="overlay"><!></div>');function Bm(t,e){B(e,!0);let[i,o]=De(),r=()=>w(l,"$overlayContainer$",i),l=be().ui.overlayContainer$,d=q(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))};Oe(()=>{u(r())}),Dt(()=>(u(r()),()=>s(r())));var m=hx(),p=C(m);si(p,()=>{var v;return(v=e.children)!=null?v:_t}),S(m),Xe(m,v=>N(d,v),()=>n(d)),$(t,m),H(),o()}var _x=L('<div class="tooltip s-1n"><div class="content s-1n"> </div> <div class="tooltip-pointer s-1n"></div></div>'),bx=L("<div><!></div> <!>",1),$x={hash:"s-1n",code:'.tooltip-wrapper.s-1n{display:flex;flex-direction:column;min-width:0}.full-width.s-1n{width:100%}.tooltip.s-1n{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1n{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1n{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 Ja(t,e){B(e,!0),Q(t,$x);let[i,o]=De(),r=()=>w(X,"$overlayContainer$",i),a=()=>w(U,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),b=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,Sb.noop),_=5,x=q(void 0),I=q(void 0),T,R=q(0),A=q(0),P=q(0),E=q(0),z=Ot(),F=be(),U=F.ui.playerSize,X=F.ui.overlayContainer$;Oe(()=>{kt(()=>{y()(s())})});let ae=F.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(x))return;N(A,_);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Ne=ce.width,Le=n(I).clientWidth,et=a().width,Ee=(Ne-Le)/2,Te=ce.left+u()-ne.left,Fe=Te+Ee,At=ce.top+m()-ne.top,Tt=Le/2-_,Rt=Fe<8,pt=Fe+Le>et-8;Rt&&(Fe=8,Tt=Te+ce.width/2-2.5*_),pt&&(Fe=et-8-Le,Tt=ce.left-ne.left+ce.width/2-Fe-_),N(P,Fe,!0),N(E,At),N(R,Tt,!0)},re=()=>{!r()||!n(I)||!n(x)||N(A,-_)},J=()=>{if(!r()||!n(I)||!n(x))return;N(R,_);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Ne=ce.height,Le=n(I).clientHeight,et=(Ne-Le)/2+Le,Ee=ce.left+u()-ne.left-n(I).clientWidth,Te=2,Fe=Ee-_;Fe<8&&(Fe=8);let Tt=ce.top+m()-ne.top+et,Rt=Te-et/2,pt=Te-_;N(P,Fe,!0),N(E,Tt),N(A,Rt),N(R,pt)},we=()=>{!r()||!n(I)||!n(x)||N(R,-_)},me=()=>{switch(b()){case"top":Z();break;case"bottom":re();break;case"left":J();break;default:we()}},ee=()=>{try{if(!r()||!n(x))return;me(),s(!0)}catch(ne){ae({message:String(ne)})}},_e=()=>{s(!1)},Ce=()=>{n(I)&&(T||(T=window.setTimeout(ee,z.controls.hideTimeoutTooltips)),s()&&ee())},ge=()=>{_e(),window.clearTimeout(T),T=void 0},pe=(ne,ce,Ne)=>{let Le="";switch(b()){case"top":Le=`transform: translate(${ne}px, ${ce}px);`;break;case"bottom":Le=`transform: translate(${ne}px, ${ce}px); top: auto; bottom: 100%;`;break;case"left":Le=`transform: translate(${ne}px, ${ce}px); left: 0; right: auto;`;break;default:Le=`transform: translate(${ne}px, ${ce}px);`}return Le+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Le+=` opacity: ${Ne?1:0}; visibility: ${Ne?"visible":"hidden"}`,Le},Qe=(ne,ce)=>{let Ne="";switch(b()){case"top":Ne=`transform: translate(${ne}px, ${ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ne=`transform: translate(${ne}px, ${ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ne=`transform: translate(${ne}px, ${ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ne=`transform: translate(${ne}px, ${ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ne},G=f(()=>pe(n(P),n(E),s())),D=f(()=>Qe(n(R),n(A)));Dt(me),fn(()=>window.clearTimeout(T));var Ge=bx(),K=ue(Ge);let se;K.__pointermove=Ce,K.__pointerdown=ge,K.__pointerup=function(...ne){var ce;(ce=e.disableMouseupTooltipShow?void 0:Ce)==null||ce.apply(this,ne)};var xe=C(K);si(xe,()=>{var ne;return(ne=e.children)!=null?ne:_t}),S(K),Xe(K,ne=>N(x,ne),()=>n(x));var He=k(K,2);{var it=ne=>{Bm(ne,{children:(ce,Ne)=>{var Le=_x(),et=C(Le),Ee=C(et,!0);S(et);var Te=k(et,2);S(Le),Xe(Le,Fe=>N(I,Fe),()=>n(I)),O(()=>{qe(Le,n(G)),ve(Ee,d()),qe(Te,n(D))}),$(ce,Le)},$$slots:{default:!0}})};V(He,ne=>{d()&&!l()&&ne(it)})}O(ne=>se=oe(K,1,"tooltip-wrapper s-1n",null,se,ne),[()=>({"full-width":p()})]),ut("pointerenter",K,Ce),ut("pointerleave",K,ge),$(t,Ge),H(),o()}Ye(["pointermove","pointerdown","pointerup"]);var Cb=t=>{t.stopPropagation()},yx=L("<div><!></div>"),xx={hash:"s-1i",code:".btn-container.s-1i{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-1i{min-width:0;width:100%}"};function No(t,e){B(e,!0),Q(t,xx);let[i,o]=De(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=be(),d=yo(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=h(e,"className",3,""),v=h(e,"disabled",3,!1),b=h(e,"hasTooltip",3,!0),y=h(e,"ref",15,void 0),_=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),P=h(e,"isAriaHidden",3,!1),E=h(e,"onTooltipVisibilityChange",3,cp.noop),z=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),U=h(e,"mouseEnter",3,cp.noop),X=h(e,"mouseLeave",3,cp.noop),ae=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);Oe(()=>{T()||N(Z,!1)});var re=yx();re.__pointerdown=[Cb],re.__click=[Cb];var J=C(re);{var we=ee=>{Ja(ee,{get content(){return n(ae)},get translateX(){return z()},get translateY(){return F()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(_e){N(Z,_e,!0)},children:(_e,Ce)=>{var ge=Me(),pe=ue(ge);si(pe,()=>{var Qe;return(Qe=e.children)!=null?Qe:_t}),$(_e,ge)},$$slots:{default:!0}})},me=ee=>{var _e=Me(),Ce=ue(_e);si(Ce,()=>{var ge;return(ge=e.children)!=null?ge:_t}),$(ee,_e)};V(J,ee=>{b()&&n(ae)&&!a()?ee(we):ee(me,!1)})}S(re),Xe(re,ee=>y(ee),()=>y()),O(()=>{var ee;oe(re,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1i"),Re(re,"aria-hidden",P()||null)}),ut("mouseenter",re,function(...ee){var _e;(_e=U())==null||_e.apply(this,ee)}),ut("mouseleave",re,function(...ee){var _e;(_e=X())==null||_e.apply(this,ee)}),Rn(re,"clientWidth",_),$(t,re),H(),o()}Ye(["pointerdown","click"]);var wx=Ie('<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 mc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=wx(),l=ue(a),d=k(l);O(()=>{Re(l,"fill",la),Re(l,"fill-opacity",e.completed?1:.24),Re(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var Sx=L("<div><!></div>"),Cx={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 Hm(t,e){B(e,!0),Q(t,Cx);let o=be().ui.t,r=q(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));No(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=Sx();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),S(s),O(v=>{u=oe(s,1,"interactive-episode-icon s-x",null,u,v),qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Rn(s,"clientWidth",v=>N(r,v)),$(l,s)},$$slots:{default:!0}}),H()}var Tx=L('<div><div class="video-episode-inner s-w"><div class="video-episode-loaded s-w"></div> <div></div></div></div>'),Ix=L('<div class="video-episodes-wrap s-w"></div>'),Ex={hash:"s-w",code:".video-episodes-wrap.s-w{height:100%;position:absolute;width:100%}.video-episode.s-w{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-w:first-child{padding-left:0}.video-episode.s-w:last-child{padding-right:0}.video-episode.s-w:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-w,.video-episode-inner.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-w{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-w:first-child .video-episode-inner:where(.s-w),.video-episode.s-w:last-child .video-episode-inner:where(.s-w){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-w{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-w{background-color:var(--slider-filled-bg)}"};function Fm(t,e){Q(t,Ex);let i=h(e,"videoEpisodes",19,()=>[]);var o=Ix();yi(o,21,i,r=>r.from,(r,a)=>{var l=Tx();let d;var s=C(l),u=C(s),m=k(u,2);let p;S(s),S(l),O((v,b)=>{d=oe(l,1,"video-episode s-w",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=oe(m,1,"video-episode-filled s-w",null,p,b),qe(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(t,o)}function Px(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function kx(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 Ax(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Lx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Mx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var Vx=L("<div></div>"),Rx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Nx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Dx={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 el(t,e){B(e,!0),Q(t,Dx);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),a=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),s=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),m=h(e,"videoEpisodes",19,()=>[]),p=h(e,"withWheelHandler",3,!1),v=h(e,"isInteractive",3,!1),b=h(e,"disabled",3,!1),y=h(e,"hideHandel",3,!1),_=h(e,"onPointerDown",3,Do.noop),x=h(e,"onHandleMove",3,Do.noop),I=h(e,"onPointerUp",3,Do.noop),T=h(e,"onPointerEnter",3,Do.noop),R=h(e,"onPointerMove",3,Do.noop),A=h(e,"onPointerLeave",3,Do.noop),P=h(e,"onMouseEnter",3,Do.noop),E=h(e,"onMouseLeave",3,Do.noop),z=h(e,"onWheelUp",3,Do.noop),F=h(e,"onWheelDown",3,Do.noop),U=h(e,"onWheelLeft",3,Do.noop),X=h(e,"onWheelRight",3,Do.noop),ae=h(e,"onDisabledClick",3,Do.noop),Z=h(e,"loadedProgress",3,0),re=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),we=h(e,"ariaLabel",3,""),me=h(e,"ariaValueMin",3,void 0),ee=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),Ce=h(e,"ariaValueText",3,""),ge=h(e,"onContextMenu",3,Do.noop),pe=h(e,"handleAlwaysVisible",3,!1),Qe=Ot(),G=q(void 0),D=q(!1),Ge=f(()=>{var $e;return($e=ee())!=null?$e:0}),K=f(()=>{var $e;return(0,Do.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(Ge)}),se=f(()=>(0,Do.isNonNullable)(m())&&m().length&&n(K)&&n(Ge)?et(Z()*100,re()*100):[]);function xe($e){if($e.preventDefault(),i()&&N(G,i().getBoundingClientRect(),!0),b())return;let Ve=Ne($e.clientX,$e.clientY),dt=Le($e.clientX);T()(Ve,dt,n(G).width)}function He($e){$e.preventDefault(),!b()&&A()()}function it(){P()()}function ne(){E()()}function ce($e){b()||p()&&($e.preventDefault(),$e.deltaY<0?z()():$e.deltaY>0?F()():$e.deltaX>0?X()():U()())}function Ne($e,Ve){return l()?Math.max(0,Math.min(1,(n(G).height-(Ve-n(G).top))/n(G).height)):Math.min(Math.max($e-n(G).x,0),n(G).width)/n(G).width}function Le($e){return Math.min(Math.max($e-n(G).x,0),n(G).width)}function et($e,Ve){let dt=Qe.features.episodesClustering&&!v()?Qe.episodeMinWidthPc:0,St=[],fe=m()[0].time/n(Ge)*100,Be=0,We=0;for(let It=1;It<m().length;It++)Be=m()[It].time/n(Ge)*100,Be-fe>dt&&(St.push({from:fe,width:Math.max(0,Be-fe),loadedWidth:Math.max(0,Math.min(Be,$e)-fe),filledWidth:Math.max(0,Math.min(Be,Ve)-fe),interactive:m()[It-1].interactive,completed:m()[It-1].completed}),fe=m()[It].time/n(Ge)*100,We++);let Ct={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min($e,100)-fe),filledWidth:Math.max(0,Math.min(Ve,100)-fe),interactive:m()[We].interactive,completed:m()[We].completed};100-fe<dt?(We-=1,St[We].width+=100-fe,St[We].loadedWidth+=Math.max(0,Math.min($e,100)-fe),St[We].filledWidth+=Math.max(0,Math.min(Ve,100)-fe)):St[We]=Ct;let Xt=m()[0].time;if(Xt!==0){let It=Xt/n(Ge)*100;St.unshift({from:0,width:It,loadedWidth:Math.min(It,$e),filledWidth:Math.min(It,Ve)})}return St}function Ee($e){return Math.max(0,Math.min(100,$e*100))}let Te=f(()=>Ee(Z())),Fe=f(()=>Ee(re()));var At=Nx(),Tt=ue(At);{var Rt=$e=>{var Ve=Vx();let dt;yi(Ve,21,()=>n(se),St=>St.from,(St,fe)=>{var Be=Me(),We=ue(Be);{var Ct=Xt=>{Hm(Xt,{get videoEpisode(){return n(fe)},get disabled(){return b()}})};V(We,Xt=>{n(fe).interactive&&Xt(Ct)})}$(St,Be)}),S(Ve),O(St=>dt=oe(Ve,1,"interactive-icons s-h",null,dt,St),[()=>({mobile:s(),hidden:s()&&!n(D)})]),$($e,Ve)};V(Tt,$e=>{v()&&$e(Rt)})}var pt=k(Tt,2);let Lt;pt.__pointerdown=[Px,i,G,b,D,Ne,_],pt.__pointermove=[kx,b,Ne,Le,R,G,D,x],pt.__pointerup=[Ax,b,D,Ne,I],pt.__click=[Lx,b,ae,Ne],pt.__contextmenu=[Mx,Ne,b,ae,D,ge];var ti=C(pt);{var Mt=$e=>{Fm($e,{get videoEpisodes(){return n(se)},get disabled(){return b()},get isMobile(){return s()}})},Ft=$e=>{var Ve=Rx(),dt=C(Ve),St=k(dt,2);let fe;S(Ve),O(Be=>{Re(dt,"data-value",n(Te)),qe(dt,`transform: translateX(${n(Te)}%);`),fe=oe(St,1,"filled s-h",null,fe,Be),Re(St,"data-value",n(Fe)),qe(St,`transform: translateX(${n(Fe)}%);`)},[()=>({"active-live":d()})]),$($e,Ve)};V(ti,$e=>{n(se).length?$e(Mt):$e(Ft,!1)})}var qt=k(ti,2);let Y;var Pe=C(qt);let le;S(qt),S(pt),Xe(pt,$e=>i($e),()=>i()),O(($e,Ve,dt,St)=>{var fe,Be;Lt=oe(pt,1,`slider ${(fe=o())!=null?fe:""}`,"s-h",Lt,$e),Re(pt,"aria-label",we()),Re(pt,"aria-valuemin",me()),Re(pt,"aria-valuemax",ee()),Re(pt,"aria-valuenow",_e()),Re(pt,"aria-valuetext",Ce()),Re(pt,"data-testid",(Be=r())!=null?Be:null),Y=oe(qt,1,"handleWrap s-h",null,Y,Ve),qe(qt,dt),le=oe(Pe,1,"handle s-h",null,le,St)},[()=>({disabled:b(),"slider-dragging":n(D),hidden:a(),"handle-always-visible":pe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ee(J())}%);`,()=>({"active-live":d()})]),ut("pointerenter",pt,xe),ut("pointerleave",pt,He),ut("mouseenter",pt,it),ut("mouseleave",pt,ne),ut("wheel",pt,ce),$(t,At),H()}Ye(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ro=(t,e)=>Xd[t]>=Xd[e];var Fs=(t,e)=>Xd[t]<=Xd[e],Tb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Bx=L("<div><!></div>"),Hx=L("<div><!> <!></div>"),Fx={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 Um(t,e){var Le,et;B(e,!0),Q(t,Fx);let[i,o]=De(),r=()=>w(R,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(xe,"$controlsVisible",i),u=be(),m=Ot(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,x=u.ui.currentGridType$,I=(Le=u.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,T=(et=u.callbacks)==null?void 0:et.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,P=u.ui.t,E=q(!1),z,F=f(()=>e.isAds||r()),U=f(()=>!n(F)||a()||l()===0),X=f(()=>Fs(d(),"l")),ae=f(()=>n(X)?"":n(U)?!r()||A?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),Z=f(()=>n(U)?P("tooltip_volume"):P("tooltip_volume_muted")),re=f(()=>n(U)?0:l()),J=!1,we=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function me(Ee){y(),b(Ee)}function ee(){sp(u,l(),m.controls.volumeStepWheel)}function _e(){ap(u,l(),m.controls.volumeStepWheel)}function Ce(Ee){b(Ee)}function ge(Ee){b(Ee),_()}function pe(){J=!0}function Qe(){J=!1,Ge()}function G(){clearTimeout(z),N(E,!0)}function D(){Ge()}function Ge(){z=window.setTimeout(()=>{J||N(E,!1)},m.controls.volumeBarTimeout)}function K(Ee){Ee.preventDefault(),Ee.deltaY<0?ee():Ee.deltaY>0&&_e()}let se=q(!1),xe=u.ui.controlsVisible;Oe(()=>{s()||N(se,!1)});var He=Hx();let it;var ne=C(He);Ja(ne,{get content(){return n(ae)},translateY:-18,get active(){return n(se)},set active(Ee){N(se,Ee,!0)},children:(Ee,Te)=>{let Fe=f(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Kt(Ee,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(Fe)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyM},role:"button",children:(At,Tt)=>{ga(At,{get size(){return"24"},get volume(){return l()},get muted(){return n(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ce=k(ne,2);{var Ne=Ee=>{var Te=Bx();let Fe;var At=C(Te);let Tt=f(()=>n(X)?"volumeBar-slider-vertical":""),Rt=f(()=>n(X)&&!n(E)),pt=f(()=>n(X)?pe:vc.noop),Lt=f(()=>n(X)?Qe:vc.noop),ti=f(()=>Math.round(n(re)*100)),Mt=f(()=>`${Math.round(n(re)*100)}%`),Ft=f(()=>n(X)?"volume-slider-vertical":"volume-slider");el(At,{get className(){return n(Tt)},get isHidden(){return n(Rt)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:_e,onPointerDown:me,onHandleMove:Ce,onPointerUp:ge,get onPointerEnter(){return n(pt)},get onPointerLeave(){return n(Lt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Mt)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n(Ft)}}),S(Te),O(qt=>Fe=oe(Te,1,"volumeBar s-28",null,Fe,qt),[()=>({"volumeBar-vertical":n(X)})]),$(Ee,Te)};V(ce,Ee=>{n(F)&&Ee(Ne)})}S(He),O(Ee=>it=oe(He,1,"volumeBar-container s-28",null,it,Ee),[()=>({vertical:n(X)})]),ut("mouseenter",He,function(...Ee){var Te;(Te=n(X)?G:vc.noop)==null||Te.apply(this,Ee)}),ut("mouseleave",He,function(...Ee){var Te;(Te=n(X)?D:vc.noop)==null||Te.apply(this,Ee)}),ut("wheel",He,K),$(t,He),H(),o()}var Ib=require("@vkontakte/videoplayer-shared/es2015");var Ux=Ie('<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>'),zx=Ie('<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 zm(t,e){let i=h(e,"isFullscreen",8,!1),o=kn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Me(),d=ue(l);{var s=m=>{var p=Ux();$(m,p)},u=m=>{var p=zx();$(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Ib.noop),r=be(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Kt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=pa(u);a.set(m),o()()},get ariaKeyShortCut(){return bs.KeyF},role:"button",children:(u,m)=>{zm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var Wx=Ie('<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 Wm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Wx();no(o,()=>ke({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);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var Kx=Ie('<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 Km(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Kx();no(o,()=>ke({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);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(6),S(o),$(t,o)}var qx={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 qm(t,e){B(e,!0),Q(t,qx);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Km(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function hc(t,e){B(e,!0);let[i,o]=De(),r=()=>w(b,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w(_,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Ot(),p=be(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Fs(a(),"m")||Fs(a(),"l"))&&n(x)),R=()=>{var E,z;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(z=p.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),P=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,z)=>{var F=Me(),U=ue(F);{var X=Z=>{qm(Z,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=Z=>{Wm(Z,{})};V(U,Z=>{n(x)?Z(X):Z(ae,!1)})}$(E,F)},$$slots:{default:!0}}),H(),o()}var Pb=require("@vkontakte/videoplayer-core/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var Qx=Ie('<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-z"></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-z"></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-z"></path>',1),Gx=Ie('<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),Yx={hash:"s-z",code:".animated.s-z{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-z{animation-name:s-z-wave1}.wave2.animated.s-z{animation-name:s-z-wave2}.wave3.animated.s-z{animation-name:s-z-wave3}@keyframes s-z-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(t,e){B(e,!0),Q(t,Yx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===Qm.ChromecastState.CONNECTED),r=f(()=>e.iconState===Qm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":la),l=f(()=>e.size?mn(e.size):void 0);var d=Me(),s=ue(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=Qx();pi(2),$(v,y)},$$slots:{default:!0}})},m=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=Gx(),_=ue(y);let x;var I=k(_);let T;var R=k(I);let A;var P=k(R);let E;var z=k(P);let F;O((U,X,ae,Z,re)=>{x=oe(_,0,"wave2 s-z",null,x,U),T=oe(I,0,"wave3 s-z",null,T,X),A=oe(R,0,"wave1 s-z",null,A,ae),E=oe(P,0,"s-z",null,E,Z),F=oe(z,0,"s-z",null,F,re)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};V(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var kb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,kb.noop),l=be().ui.t,d=f(()=>e.state===Pb.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)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var Ab=require("@vkontakte/videoplayer-shared/es2015");var jx=Ie('<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 Gm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=jx();pi(2),$(e,o)},$$slots:{default:!0}})}var up=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Xx=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Zx=L('<span class="text s-24"> </span>'),Jx=L('<span class="text count s-24"> </span>'),e2=L('<span class="icon s-24"><!></span> <!>',1),t2={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 $c(t,e){var J,we,me;B(e,!0),Q(t,t2);let[i,o]=De(),r=()=>w(y,"$currentGridType$",i),a=()=>w(_,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=be(),v=(we=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?we:Ab.noop,b=!!((me=p.callbacks)!=null&&me.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=q(void 0),A=ee=>{var Ce,ge,pe;if(!!((Ce=p.callbacks)!=null&&Ce.onEpisodeClicked)){let Qe=pa(ee);_.set(Qe),x.set(!0),(pe=(ge=p.callbacks)==null?void 0:ge.onEpisodeClicked)==null||pe.call(ge,Qe)}},P=q(null),E=f(()=>s()/u());Oe(()=>{var _e;let ee=up(n(E),u(),m());ee?((_e=n(P))==null?void 0:_e.time)!==ee.time&&(v(ee),N(P,ee,!0)):N(P,null)});let z=f(()=>{var ee;return((ee=n(P))==null?void 0:ee.text)||""}),F=f(()=>ro(r(),"xl")?"FULL":ro(r(),"m")?"COUNT":"SHORT"),U=f(()=>`${T("tooltip_episodes")}: ${n(z)}`),X=(ee,_e,Ce)=>ht(null,null,function*(){yield _o(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&_e&&!Ce&&kt(()=>{_.set(!1),ee.focus()})});Oe(()=>{X(n(R),a(),l())});var ae=Me(),Z=ue(ae);{var re=ee=>{let _e=f(()=>d()?"px-0":""),Ce=f(()=>!b);Kt(ee,{get className(){var ge;return`w-max btn-full-opacity btn-jc-l ${(ge=n(_e))!=null?ge:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ce)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(R)},set ref(ge){N(R,ge,!0)},children:(ge,pe)=>{var Qe=Me(),G=ue(Qe);{var D=K=>{var se=Xx(),xe=ue(se),He=C(xe,!0);S(xe);var it=k(xe,2),ne=C(it);Nr(ne,{direction:"right"}),S(it),O(()=>ve(He,n(z))),$(K,se)},Ge=K=>{var se=e2(),xe=ue(se),He=C(xe);Gm(He,{}),S(xe);var it=k(xe,2);{var ne=Ne=>{var Le=Zx(),et=C(Le,!0);S(Le),O(()=>ve(et,n(z))),$(Ne,Le)},ce=(Ne,Le)=>{{var et=Ee=>{var Te=Jx(),Fe=C(Te,!0);S(Te),O(()=>ve(Fe,m().length)),$(Ee,Te)};V(Ne,Ee=>{n(F)==="COUNT"&&Ee(et)},Le)}};V(it,Ne=>{n(F)==="FULL"?Ne(ne):Ne(ce,!1)})}$(K,se)};V(G,K=>{d()?K(D):K(Ge,!1)})}$(ge,Qe)},$$slots:{default:!0}})};V(Z,ee=>{n(P)&&ee(re)})}$(t,ae),H(),o()}var gv=require("@vkontakte/videoplayer-shared/es2015");var _i=require("@vkontakte/videoplayer-core/es2015"),lt=require("@vkontakte/videoplayer-shared/es2015"),ys=require("@vkontakte/videoplayer-statistics/es2015");var Ke=require("@vkontakte/videoplayer-shared/es2015"),so=require("@vkontakte/videoplayer-shared/es2015");var i2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",pp=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 so.Subject,loadStarted$:new so.Subject,loadEnded$:new so.Subject,loadError$:new so.Subject,ready$:new so.Subject,slotRequested$:new so.Subject,started$:new so.Subject,timeRemained$:new so.Subject,paused$:new so.Subject,resumed$:new so.Subject,ended$:new so.Subject,empty$:new so.Subject,skipped$:new so.Subject,clicked$:new so.Subject,closed$:new so.Subject,error$:new so.Subject};this.loadAdman=e=>(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ke.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?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ke.now)()]}),o())};(0,so.addScript)(i2,e,this.loadTimeout).then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ke.now)()]}),window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ke.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?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ke.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ke.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ke.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ke.now)()]}),!d&&(window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ke.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ke.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?ye(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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ke.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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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")=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ke.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"),Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ke.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")}initAdman(e){return ht(this,null,function*(){var A,P;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ke.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:p,json:v}=e;this.externalApi=p;let b,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?b=y:b=parseInt(y,36));let{isEmbed:_,immediateOrigin:x}=(0,Ke.detectEmbed)(),I=(A=_?x:window.location.href)!=null?A:window.location.href,T=(0,Ke.withoutNullable)(ke(Gt(ke(Gt(ke({},s),{dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o}),b?{request_id:b}:{}),{duration:m}),u)),R=(0,Ke.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});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),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let z=yield this.safeExternalCall(this.externalApi.videoGetAds,T);z&&(delete R.slot,delete R.params,Object.assign(R,{json:z}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ke.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.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,p,v;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ke.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),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,so.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return ht(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Lb=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 Ym=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 fp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new jm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},fp=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}},jm=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,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new fp;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}},Mb=Ym;var vp=require("@vkontakte/videoplayer-shared/es2015"),tl,Li,Xm=0,Zm=!1,Vb="",Rb=(t,e=0,i=0)=>t<e&&t<i,mp=(t,e=0,i=0)=>t>=e&&t<=i,o2=(t,e=0,i=0)=>t>e&&t>i,Nb=(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})=>mp(t,u,m));let a=t>=Xm,l=t<Xm;if(Xm=t,l&&(Zm=!1),(0,vp.isNonNullable)(tl)&&mp(t,tl.startTime,tl.endTime)&&Vb===e.value)return tl;if(!(0,vp.isNonNullable)(Li)&&(r!=null&&r.length)&&!Zm){Li=r.find(({startTime:u,endTime:m})=>mp(t,u,m)||a&&Rb(t,u,m)),tl=void 0,!(0,vp.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(Zm=!0);return}else{if(mp(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return tl=Li,Li=void 0,Vb=e.value,tl;(a&&o2(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&Rb(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var gp={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"},n2={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"},yc=t=>{var e,i;return(i=(e=gp[t])!=null?e:gp[n2[t]])!=null?i:void 0};var Db=require("@vkontakte/videoplayer-shared/es2015"),JB=require("@vkontakte/videoplayer-statistics/es2015"),hp=class{constructor(e,i,o,r=new Db.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 xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var $s=t=>t!=null?t:0,Us=(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($s(i==null?void 0:i.top)-$s(o==null?void 0:o.top)),left:Math.round($s(i==null?void 0:i.left)-$s(o==null?void 0:o.left)),bottom:Math.round($s(i==null?void 0:i.bottom)-$s(o==null?void 0:o.top)),right:Math.round($s(i==null?void 0:i.right)-$s(o==null?void 0:o.left))}},id=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:$s(e==null?void 0:e.width),height:$s(e==null?void 0:e.height)}};var Bn="off";var od=t=>!!(Math.round(Math.abs(t)/90)%2);var Ob=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:b,player:y,disabledControls:_,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:z,additionalSettingsMenuItems:F,additionalContextMenuItems:U,playPrevVideo:X,playNextVideo:ae,onVideoChanged:Z,looped:re=!1,statistics:J,saveRate:we,internalsExposure:me,playerView:ee,playerId:_e,metaConfig:Ce})=>{var Cg,Tg;let ge=Gt(ke({},b),{isAudioDisabled:l,live:Gt(ke({},(Cg=b.live)!=null?Cg:{}),{isLiveCatchUpMode:!!r})}),pe=v,Qe=lt.TracerFactory.createRootTracer(pe.features.tracer),G=Qe.createComponentTracer("Store"),D=y||new _i.Player(ge,Qe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});me==null||me.expose({corePlayer:D});let Ge=new lt.Logger,K=new pp(Ge,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),se=Ka.getInstance(),xe=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,it=u==null?void 0:u.slotsApi,ne=u==null?void 0:u.focusManager,ce=Ge.createComponentLog("Store"),Ne,Le,et={},Ee=new Fu,Te=new lt.Subscription,Fe="",At=de(!1),Tt=J&&J.oneStat?ai(J.oneStat.vsid$):Rr(void 0),Rt=de(da()),pt=de(!1),Lt=()=>nb(document,_i.clientChecker.device.isIOS),ti=(Tg=xe==null?void 0:xe.info.isActive$)!=null?Tg:new lt.ValueSubject(!1),Mt=de(0),Ft=de(!1),qt=de(!1),Y=de([]),Pe=(0,lt.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>Y.update(g=>[...g,c])),le=Rr(!1,c=>{let g=D.events.fatalError$.subscribe(()=>c(!0));return()=>g.unsubscribe()}),$e=c=>ht(null,null,function*(){var ie;let g=Object.values(lt.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(g&&pe.updateBuiltinLanguages||!dm(c))){let Se;try{Se=yield(0,lt.loadVKLangPack)(c,v_,g_)}catch(je){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),se==null||se.report(je,{errorType:"VKLangPack",fatal:!1})}Se&&(lm({language:c,pack:Se,fallback:pe.defaultLanguage}),Ve.set(c),dt.update(je=>je+1))}dm(c)&&Ve.set(c)}),Ve=de(t),dt=de(0),St=de(e);$e(t);let fe=(c,g)=>{let M=ye(Ve);return cm(M,c,g,pe.defaultLanguage)},Be=de("thumb");Be.subscribe(c=>{c==="ads"&&D.info.playbackState$.getValue()&&Xt()});let We=(()=>{let c=gi([le,Be],([g,M])=>g?"crashed":M);return Gt(ke({},c),{is:g=>ye(c)===g})})(),Ct=de(),Xt=()=>{Ct.set({muted:D.info.muted$.getValue()})},It=(()=>{let c=de(new Set(_));return Gt(ke({},c),{add:g=>{c.update(M=>new Set([...M].concat(g)))},remove:g=>{c.update(M=>{let ie=[...M];return new Set(Array.isArray(g)?ie.filter(Se=>!g.includes(Se)):ie.filter(Se=>Se!==g))})},includes:g=>{let M=ye(c);return Array.isArray(g)?g.every(ie=>M.has(ie)):M.has(g)}})})(),li=de({width:0,height:0}),fi=null,Bi=D.info.isBuffering$,Bt=Rr(Bi.getValue(),c=>{let g=Bi.subscribe(M=>{M&&fi===null?fi=window.setTimeout(()=>{c(Bi.getValue()),fi=null},pe.loaderDelay):c(M)});return()=>{g.unsubscribe(),fi&&clearTimeout(fi)}});G.log("create store"),ce({message:"create store"});let bo=c=>{let g=c.container,M=()=>{Ti=new MutationObserver(Se=>{let{removedNodes:je}=Se[0];je.length&&g.append(D.experimental.element$.getValue())}),Ti.observe(g,{childList:!0})},ie=D.experimental.element$.getValue();if(ie)g.append(ie),M();else{let Se=D.experimental.element$.pipe((0,lt.filter)(je=>!!je),(0,lt.once)()).subscribe(je=>{g.append(je),M()});Te.add(Se)}},vi=c=>{ce({message:`init video, config: ${JSON.stringify(c)}`}),x?bo(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),D.initVideo(c)),G.log("init video",{isInteractive:x}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Ne=c,Fe=c.subtitlesForcedLanguage||""},ot=new lt.Subject,Jt=c=>ot.next(c),Hi=new lt.Subject,xi=new lt.Subject,oi=new lt.Subject,Ti=null,at={actionRewind$:Hi,actionSeek$:xi,inPiP$:ti,inFullscreen$:new lt.Observable(c=>Rt.subscribe(g=>c.next(g))),actionSetSubtitle$:oi,nextMovie$:ot},nt=new lt.Subject,Ei=new lt.Subject,on={actionSeek$:xi,actionSubtitlesSwitched$:nt,actionQuality$:Ei,playerSize$:new lt.Observable(c=>li.subscribe(g=>c.next(g))),inPiP$:ti,inFullscreen$:new lt.Observable(c=>Rt.subscribe(g=>c.next(g))),isLoaderVisible$:new lt.Observable(c=>Bt.subscribe(g=>c.next(g)))};if(J){let{oneStat:c,thinOneStat:g,mediascopePixel:M,statSubscription:ie}=J;c&&(x||ie.add(c.attachTo(D)),ie.add(c.attachToUi(at)),ie.add(c.attachToAds(K.events)),c.authorize(a).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(D)),g&&(ie.add(g.attachTo(D,K.events)),ie.add(g.attachToUi(on)),ie.add(g.attachToAds(K.events)),g.updateContext({isMobile:ye(At)}),g.authorize(a))}if(se){let c=new lt.Subscription,g=(M,ie)=>c.add(M.subscribe(ie));if(g(D.events.managedError$,M=>{se.logIError(M)}),g(D.events.fatalError$,M=>{se.logIError(M,!0)}),J){let{oneStat:M}=J;M&&g(M.experimental.error$,ie=>{se.logIError(ie)})}se.sentrySubscription.add(c)}let Oo=()=>{if(_i.clientChecker.device.isIOS&&Le)try{rb(Le)}catch(c){ce({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(D.experimental.element$.subscribe(c=>{c&&(Le=c,c.classList.add("player-media"),Qa(xe)&&xe.updateVideoElement(),x&&c.setAttribute("pip","false"),(ee==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;Oo(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(D.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(D.events.started$.subscribe(()=>ht(null,null,function*(){var g,M;Qa(xe)&&(yield xe==null?void 0:xe.revealPictureInPicture());let c=D.info.muted$.getValue();(g=s==null?void 0:s.onStarted)==null||g.call(s),(M=et.onStarted)==null||M.call(et,c)}))).add(D.events.willSeek$.subscribe(({from:c,to:g})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,g)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(D.info.position$.subscribe(c=>{var M;let g=D.info.duration$.getValue();isFinite(g)&&g>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,g,c),K.setPosition(c,g))})).add(D.events.fatalError$.subscribe(c=>{var g;(g=s==null?void 0:s.onCrashed)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var g;(g=s==null?void 0:s.onRecoverableError)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{Ft.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{qt.set(c)})).add(D.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&It.add(jd),It.add("PLAY_BUTTON")):It.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var g;(g=s==null?void 0:s.onLiveTime)==null||g.call(s,c)})).add(D.info.isStalled$.subscribe(c=>{var g;(g=s==null?void 0:s.onStalledChanged)==null||g.call(s,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onLiveEnded)==null?void 0:g.call(s))})).add(K.events.loadStarted$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:g.call(c)})).add(K.events.loadEnded$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:g.call(c)})).add(K.events.loadError$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:g.call(c)})).add(K.events.init$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:g.call(c)})).add(K.events.ready$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:g.call(c)})).add(K.events.started$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onStarted)==null?void 0:M.call(g,c)})).add(K.events.timeRemained$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onTimeRemained)==null?void 0:M.call(g,c)})).add(K.events.ended$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onCompleted)==null?void 0:M.call(g,c)})).add(K.events.empty$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:g.call(c)})).add(K.events.clicked$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClicked)==null?void 0:M.call(g,c)})).add(K.events.closed$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClosed)==null?void 0:M.call(g,c)})).add(K.events.error$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onError)==null?void 0:M.call(g,c)})).add(K.events.paused$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:g.call(c)})).add(K.events.resumed$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:g.call(c)}));let bt=new lt.Subscription,Ut=()=>{var je,Vt,zt;let{debugLog:c}=pe,g,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Yt}=c;g=c.tag,M=(je=Yt==null?void 0:Yt[0])!=null?je:M,ie=(zt=(Vt=Yt==null?void 0:Yt[1])!=null?Vt:Yt==null?void 0:Yt[0])!=null?zt:ie}let Se=g?`: ${g}`:"";bt.add(D.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${Yt.component}`,Yt.message)})).add(Ge.log$.subscribe(Yt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${Yt.component}.`,Yt.message)}))},W=()=>{bt.unsubscribe()},Nt=(c,g)=>{G.log("start camera manual rotation",{mx:c,my:g}),D.startCameraManualRotation(c,g)},di=(c=!1)=>{G.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},gt=(c,g,M)=>{G.log("move camera focus px",{xpx:c,ypx:g,dt:M}),D.moveCameraFocusPX(c,g,M)},ii=()=>{D.holdCamera()},$t=()=>{D.releaseCamera()},st=Rr(D.info.position$.getValue(),c=>{let g,M,ie=()=>{let Se=D.info.playbackState$.getValue(),je=D.info.isLive$.getValue(),Vt=D.info.duration$.getValue(),zt=D.info.position$.getValue();if(Se&&[_i.PlaybackState.PLAYING,_i.PlaybackState.PAUSED].includes(Se)){let Yt=je?zt-Vt:D.getExactTime();Yt!==M&&c(Yt),M=Yt}g=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(g)}),Fi=ai(D.info.playbackState$),Mi=ai(D.info.isBuffering$),gn=gi([Fi,Mi],([c,g])=>g?"buffering":c),hn=ai(D.info.currentBuffer$),Vi=ai(D.info.isEnded$),Ui=ai(D.info.isLive$),Hn=pe.features.playbackRate?ai(D.info.canChangePlaybackSpeed$):Rr(!1),xo=ai(D.info.liveBufferTime$),lo=ai(D.info.volume$),Ai=ai(D.info.muted$),Bo=Uu(D.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===_i.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.TRAFFIC_SAVING),Ho=Uu(D.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===_i.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.HIGH_QUALITY),_n=ai(D.info.autoQualityLimitingAvailable$),Or=ai(D.info.availableQualities$),Br=ai(D.info.availableQualitiesFps$),Hr=ai(D.info.chromecastState$),ws=ai(D.info.chromecastDeviceName$),Fr=ai(D.info.currentFormat$),nr=ai(D.info.throughputEstimation$),Ur=ai(D.info.videoBitrate$),bn=ai(D.info.intrinsicVideoSize$),$n=ai(D.info.duration$),_r=ai(D.info.isAudioAvailable$),br=()=>{fi&&clearTimeout(fi),fi=null},nn=gi([$n,Ui],([c,g])=>g?-c:c),$r=gi([Fi],([c])=>c===_i.PlaybackState.PLAYING),yr=ai(D.info.atLiveEdge$),rr=ai(D.info.atLiveDurationEdge$),Fn=ai(D.info.position$),cs=gi([Fn,$n],([c,g])=>isFinite(c)&&isFinite(g)&&!!g),Fo=gi([Hr],([c])=>c===_i.ChromecastState.CONNECTED),xr=ai(D.info.availableVideoStreams$),zi=pe.features.audioLanguages?ai(D.info.availableAudioStreams$):Rr([]),wr=ai(D.info.currentVideoStream$),Un=ai(D.info.currentAudioStream$),vt=c=>{c.language&&nm(c.language),D.setVideoStream(c)},ni=(c,g)=>{D.setAudioStream(c),zo(g)&&(c.language&&nm(c.language),pe.features.userVideoPrefs&&i&&am(pe.userSalt,String(i),{audioTrackId:c.id}))},Sr=c=>{let g;if(c.length===1&&(g=c.at(0)),g!=null||(g=c.find(ie=>"isDefault"in ie&&ie.isDefault)),pe.features.userVideoPrefs&&i){let ie=Qu(pe.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(je=>je.id===ie.audioTrackId);g=Se!=null?Se:g}}let M=z_();return M&&(g!=null||(g=c.find(({language:ie})=>M===ie))),g!=null||(g=c.at(0)),g},zr=c=>{G.log("change audio stream",{id:c});let g=D.info.availableAudioStreams$.getValue().find(M=>M.id===c);g&&ni(g,!0)},Wr=!1;Te.add(D.info.availableAudioStreams$.subscribe(c=>{if(!Wr&&c.length){let g=Sr(c);g&&(D.setAudioStream(g),Wr=!0)}})),zi.subscribe(c=>{var g;(g=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||g.call(s,c.map(({label:M="",id:ie="",language:Se=""})=>({label:M,language:Se,id:ie})))}),Un.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onAudioStreamChanged)==null?void 0:g.call(s,c.id))});let zn=!1;Te.add(D.info.availableVideoStreams$.subscribe(c=>{if(!zn&&c.length){let g=Sr(c);g&&(D.setVideoStream(g),zn=!0)}}));let sr=de(void 0),wo=ai(D.info.isAutoQualityEnabled$,c=>c&&sr.set(void 0)),Wn=ai(D.info.currentQuality$,()=>sr.set(void 0)),ar=gi([sr,Wn],([c,g])=>c!=null?c:g),Kn=gi(Fr,c=>c!==_i.VideoFormat.MPEG),yn=gi([Or,Br,wo,ar,Kn],([c,g,M,ie,Se])=>{let je=[];Se&&je.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let Vt=c.filter(zt=>!(0,lt.isInvariantQuality)(zt));for(let zt of Vt){let Yt=g[zt];je.push({value:zt,displayValue:`${zt}${Yt?Lb(Yt):""}`,selected:M?!1:zt===ie})}return je}),xn=ai(D.info.currentPlaybackRate$),wn=gi([xn,yr,rr],([c,g,M])=>{let ie=M||x?1:pe.controls.playbackRateMin,Se=g?1:pe.controls.playbackRateMax,je=pe.controls.playbackRateStep,Vt=[];for(let zt=ie;zt<=Se;zt+=je)Vt.push({value:zt,displayValue:zt===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Vt}),rn=()=>({displayValue:fe("subtitles_off"),value:Bn,language:""}),Wi=de(rn()),eo=gi([Wi,dt],([c],g)=>{c.value===Bn?g(rn()):g(c)}),sn=pe.features.subtitles?ai(D.info.availableTextTracks$):Rr([]),lr=A_(),Cr=gi([sn,eo],([c,g],M)=>{var je;let ie=[],Se=c.find(({id:Vt})=>Vt===g.value);if(Se!=null&&Se.url){let[,Vt]=(je=lr.find(Se.url))!=null?je:[];if(Vt){M(Vt);return}Ee.download(Se.url).then(zt=>{if(!zt||Ee.isDestroyed())return;let Yt=new Mb,Zs=Se.language;if(Zs){let O$=!!Se.isAuto,B$=Yt.parse(zt,Zs);ie.push({lang:Zs,subtitles:B$,isAuto:O$,id:Se.id})}lr.add(Se.url,ie),ye(eo).value===g.value&&M(ie)}).catch(zt=>{var Yt;(Yt=J==null?void 0:J.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),se==null||se.report(zt,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),Sn=gi([xn,$r,eo],([c,g,M],ie)=>{let Vt;if(D.info.isLive$.getValue()&&g&&M.value!==Bn){let Yt=()=>{let Zs=1e3/(3*c);Vt=setTimeout(Yt,Zs),ie(Date.now())};return Yt(),()=>clearTimeout(Vt)}}),Tr=gi([sn,eo],([c,g])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:je}of c){let Vt=ie&&yc(ie);ie&&Vt&&M.push({displayValue:Se?fe("subtitles_auto",{language:Vt}):Vt,value:je,selected:(g==null?void 0:g.value)===je,isAuto:Se,language:ie})}return M.length?(M.unshift(Gt(ke({},rn()),{selected:(g==null?void 0:g.value)===Bn})),M):[]}),ft={available:[],prev:[]},Et=()=>{var g,M;let c=D.experimental.getCurrentTime$.getValue();return(M=(g=c==null?void 0:c())!=null?g:Le==null?void 0:Le.currentTime)!=null?M:0},co=gi([st,eo,Cr,Sn],([c,g,M,ie])=>{var je;let Se=D.info.isLive$.getValue();if(Se&&ft.prev!==M){let Vt=M.find(({id:Yt})=>Yt===g.value),zt=ft.prev.find(({id:Yt})=>Yt===g.value);if(Vt){let Yt=Gt(ke({},Vt),{subtitles:[...(je=zt==null?void 0:zt.subtitles)!=null?je:[],...Vt.subtitles]});ft.available=[Yt],ft.prev=M}}if(g&&g.value!==Bn){let Vt=Se?Et():c,zt=Se?ft.available:M;return Nb(Vt,g,zt,Se)}}),Uo=gi([co],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(eo.subscribe(c=>{var g,M;if(c.value===Bn)(g=s==null?void 0:s.onSubtitleOff)==null||g.call(s);else{let ie=Object.entries(gp).find(([Se,je])=>je===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ie?ie[0]:"",c.value)}}));let So=de(!0),an=gi([hn,nn,Fn,xo],([c,g,M,ie])=>{var zt;let Se=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ie)return Se/g;let Vt=-M+ie-g;return(Se-Vt)/g}),uo=ai(D.info.availableSources$),Co=gi([uo],([c])=>Object.keys((c==null?void 0:c[_i.VideoFormat.MPEG])||{}).length>0),Pi=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=D.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[_i.VideoFormat.MPEG])||{}),g=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return(Se=Ne.sources[_i.VideoFormat.MPEG])==null?void 0:Se[g]},Kr=()=>{var g;let c=Pi();if(c)G.log("download video",{url:c}),E_(c,((g=Ne==null?void 0:Ne.meta)==null?void 0:g.title)||"video");else{let M="There is no URL for download video";G.log("download video",{message:M}),ce({message:M})}},qn=()=>{ce({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?qr(Ir(),!1):ln(!c,!1)},Ss=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!ye(Qt.ui.settingsSubMenu.visible$)){let g=ye(Qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&g){let ie=id(g),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Se,name:"settings"})}}G.log("close settings menu")},Ki=(c,g=()=>Promise.resolve())=>ht(null,null,function*(){var Se;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),yield g();let M=ye(Qt.ui.settingsMenu.ref$),ie=Ca();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let Vt=id(M),zt=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:zt,name:"settings"})}G.log("open settings menu",{wasOpenedByKeyboard:c})}),Cs=(c,g=!1)=>{var je;Qt.ui.settingsSubMenu.visible$.set(!1);let M=ye(Qt.ui.settingsMenu.ref$),ie=Ca(),Se=ye(Qt.ui.settingsMenu.visible$);if((je=s==null?void 0:s.uiInfo)!=null&&je.onSettingsMenu&&M&&ie)if(Se&&!g){let zt=id(M),Yt=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Yt,name:"settings"})}else{let zt=id(c),Yt={top:0,left:0,bottom:0,right:0},Zs=ye(Qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Yt,name:Zs})}G.log("close settings sub menu")},us=(c,g)=>{var ie;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(g),Qt.ui.settingsSubMenu.name$.set(c);let M=Ca();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&g&&M){let je=id(g),Vt=Us(g,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:je,position:Vt})}G.log("open settings sub menu",{name:c})},Ir=()=>{var g;let c=Math.max(pe.volumeMinRestore,(g=zu())!=null?g:0);return c===0?pe.volumeDefault:c},zo=c=>{let g=pe.features.savePreferredStatesOnUserActionOnly;return!g||g&&!c},qr=(c,g)=>{let M=c===0?Ir():c,ie=D.info.muted$.getValue();ce({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||We.is("ads");ie&&c>0&&Se&&(ie=!1,zo(g)&&im(!1)),D.setVolume(c,ie),K.setVolume(c),zo(g)&&Zf(M)},ln=(c,g)=>{let M=D.info.volume$.getValue();ce({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=We.is("ads");if(D.setMuted(c,ie),K.setVolume(c?0:M),zo(g)&&(!ie||!c)&&im(c),!c&&M===0){let Se=Ir();D.setVolume(Se),zo(g)&&Zf(Se),K.setVolume(Se)}},dn=de(!1),Ue=c=>{var g,M;G.log("set looped",{isLooped:c}),dn.set(c),D.setLooped(c),(M=(g=s==null?void 0:s.uiInfo)==null?void 0:g.onLoopedChanged)==null||M.call(g,c)};Ue(re);let Pt=()=>{var c,g;(g=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||g.call(c)},mi=(c,g=!1)=>{var M;ce({message:`set autoplayNextEnabled, value: ${c}`}),G.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),q_(c),g&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},Wo=c=>{ce({message:`set timerNextVideoRunning, value: ${c}`}),G.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},To=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{g=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(ie){ce({message:"onPrevVideoClick callback failed to execute"})}Z(!0),g&&X()},Ko=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onNextVideoClick))try{g=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(ie){ce({message:"onNextVideoClick callback failed to execute"})}Z(!1),g&&ae()},qi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Qn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Er=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Eo=()=>{D.prepare()},po=()=>{(0,lt.assertNonNullable)(Qt);let c=ye(Qt.ui.controls.disabledControls$),g=ye(Qt.playerPhase),M={playerPhase:g,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),g==="ads"){M.action="play",G.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var je;ce({message:"toggle play, call player.play"}),M.action="play",D.play(),(je=s==null?void 0:s.onPlay)==null||je.call(s)},Se=()=>{var je;ce({message:"toggle play, call player.pause"}),M.action="pause",D.pause(),(je=s==null?void 0:s.onPause)==null||je.call(s)};if(D.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),Hi.next(),xi.next(ys.SeekAction.REWIND),x){R==null||R();return}D.seekTime(0),ie()}else D.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING?ie():Se();G.log("toggle play",M)},Cn=(c,{changeReason:g="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{ce({message:`set quality, quality: ${c}`}),G.log("set quality",{quality:c}),ie&&Ei.next(c),D.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:je}=pe.features;Wu(),c!=="auto"?(je?(Ku({type:"exact_quality",quality:c,videoId:i},M),D.setPredefinedQualityLimits(_i.PredefinedQualityLimits.UNKNOWN)):Jf(i,c),sr.set(c),D.setQuality(c)):je&&g==="default"&&(Gr("auto_quality",M,Se),ye(Bo)&&qo(!1,void 0,Se),ye(Ho)&&Gn(!1,void 0,Se))},qo=(c,g="as-default",M)=>{ce({message:`set trafficSavingEnabled, value: ${c}`}),G.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?_i.PredefinedQualityLimits.TRAFFIC_SAVING:_i.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Qr(ie,g,M),Jd(!1)):(D.setPredefinedQualityLimits(ie),zo(M)&&Jd(c))},Gn=(c,g="as-default",M)=>{ce({message:`set highQualityEnabled, value: ${c}`}),G.log("set high quality enabled",{highQualityEnabled:c}),Qr(c?_i.PredefinedQualityLimits.HIGH_QUALITY:_i.PredefinedQualityLimits.UNKNOWN,g,M)},Qr=(c,g,M)=>{c!==_i.PredefinedQualityLimits.UNKNOWN&&(ye(_n)&&!ye(wo)&&Cn("auto",{appliesTo:g,changeReason:"limit-changed"},M),Gr(c,g,M)),D.setPredefinedQualityLimits(c)},Gr=(c,g,M)=>{zo(M)&&(Ku({type:c,videoId:i},g),g==="as-default"&&Ku({type:c,videoId:i},"to-video"))},Yn=(c,g=!0)=>{G.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),pe.features.saveRate&&we&&!D.info.isLive$.getValue()&&g&&W_(c)},Je=()=>{let c=ye(Hn),g=ye(wn),M=g.findIndex(({selected:Se})=>Se);if(M===g.length-1||!c)return g[M];let ie=g[M+1];return Yn(ie.value),ie},ei=()=>{let c=ye(Hn),g=ye(wn),M=g.findIndex(({selected:Se})=>Se);if(M===0||!c)return g[M];let ie=g[M-1];return Yn(ie.value),ie},wi=(c=Gt(ke({},rn()),{selected:!1}),g)=>{G.log("set subtitles",ke({},c)),c.value!==Bn&&oi.next(c.isAuto?c.value+"_auto":c.value),nt.next({enabled:c.value!==Bn,lang:c.language,auto:!!c.isAuto}),Wi.set(c),zo(g)&&(sm(c.value===Bn?void 0:c.language),pe.features.userVideoPrefs&&i&&am(pe.userSalt,String(i),{subtitleTrackId:c.value===Bn?void 0:c.value}))},Po=c=>{G.log("toggle subtitles");let g=ye(eo);(g==null?void 0:g.value)===Bn?jn(c):Qo(c)},Tn=(c,g)=>{G.log("change subtitle",{enabled:c}),c?jn(!0,g):Qo(!0)},jn=(c,g)=>{G.log("subtitle on");let M=ye(Tr),ie=ye(Ve),Se=Fe!=null?Fe:ie,je;g&&(je=M.find(Vt=>Vt.value===g)),je!=null||(je=M.filter(Vt=>Vt.value!==Bn).find(Vt=>Vt.language===Se)),wi(je!=null?je:M[1],c)},Qo=c=>{G.log("subtitle off"),wi(void 0,c)};Te.add(D.info.availableTextTracks$.subscribe(c=>{var M;function g(){let ie=[];for(let{language:Se,isAuto:je,id:Vt}of c){let zt=Se&&yc(Se);Se&&zt&&ie.push({id:Vt,language:Se,title:je?fe("subtitles_auto",{language:zt}):zt})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,g())}));let dr=de(!0),ps=c=>{dr.set(c)},Pr=(c,g,M=!0)=>{var ie;if(ce({message:`seek to time, time: ${c}`}),G.log("seek to time",{time:c,action:g,forcePrecise:M}),xi.next(g),D.info.isLive$.getValue()){let Se=D.info.duration$.getValue(),je=Math.min(0,Se+c);D.seekTime(je,M)}else{if(T!=null&&T.getValue())return;D.info.isEnded$.getValue()&&(ce({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),D.seekTime(cn(c),M)}},Ts=c=>{ce({message:`seek to episode start time: ${c}`}),G.log("seek to episode start time",{time:c}),Pr(c,ys.SeekAction.EPISODE,!0)},Gs=(c,g,M=!1)=>{ce({message:`seek to percent, percent: ${c}`}),G.log("seek to percent",{percent:c,action:g});let ie=ye(nn)*c;Pr(ie,g,M)},ba=c=>{ce({message:`seek external, time: ${c}`}),G.log("seek external",{time:c}),xi.next(ys.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},ct=c=>{var ie,Se;let g=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";ce({message:`set auto quality limitation. Max: ${g}. Min: ${M}`}),G.log("set auto quality limits",{max:g,min:M}),D.setAutoQualityLimits(c)},ci=c=>{ce({message:`seek external to episode start time: ${c}`}),G.log("seek external to episode start time",{time:c}),Pr(c,ys.SeekAction.EPISODE,!0)},ko=c=>{ce({message:`set playback rate to: ${c}`}),G.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},Si=de(!1),In=de(!1),En=gi([nn],([c])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!x),Is=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Es=gi([Mt],([c])=>{let g=od(c);return Is?!g:g});Te.add(We.subscribe(c=>{c!=="video"&&Si.set(!1)})),Si.subscribe(c=>{var g;(g=s==null?void 0:s.onRichSeekActiveChanged)==null||g.call(s,c)});let Qi=de(void 0),ki=de(!1),he=c=>{ce({message:`start scrubbing, progress: ${c}`}),G.log("start scrubbing",{progress:c}),ki.set(!0),yt(c)},yt=c=>{Qi.set(c)},ri,Zt,Ao=()=>{Qi.set(void 0),ki.set(!1)},fo=()=>{clearTimeout(Zt),clearTimeout(ri),ri=window.setTimeout(()=>{Ao()},500),Le==null||Le.removeEventListener("seeked",fo)},Go=(c,g=!1)=>{ce({message:`complete scrubbing, progress: ${c}`}),G.log("complete scrubbing",{progress:c}),Gs(c,ys.SeekAction.SLIDER,g),ye(Qt.ui.isMobile)&&ye(Qt.state.currentFormat$)===_i.VideoFormat.HLS?(Le==null||Le.addEventListener("seeked",fo),Zt=window.setTimeout(()=>{fo()},300)):Ao()},Ps=gi([st,nn,Qi],([c,g,M],ie)=>{ie((0,lt.isNonNullable)(M)?M*g:c)}),Yr=de(!1),kr=()=>{Yr.set(!0)},$a=()=>{Yr.set(!1)},Ys=gi([li],([{width:c}],g)=>{let M=Tb(c);g(M)}),ya=z.filter(c=>P_(c)),jr=gi([Ys,At],([c,g])=>g?ya.filter(M=>!M.hideOnMobile):ya.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Pn=de(z.filter(c=>k_(c))),gl=gi([Pn,Ys],([c,g])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(g))})),xa=gi([gl,jr],([c,g])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?g.map((M,ie)=>{var Se;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Se=M.ariaLabel)!=null?Se:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!v.disabledAdditionalButtonIds.includes(M.id))),Xr=de(F),hl=gi([Xr],([c])=>pe.features.additionalSettingsMenuItems?c.map(g=>g.type==="SWITCH"?Gt(ke({},g),{onClick:g.onChangeEnabled}):g):[]),_d=(c,g)=>{let M=ye(Pn).map(ie=>ie.id!==c?ie:ke(ke({},ie),g));Pn.set(M)},wa=c=>{let g=ye(Pn);if(g.some(M=>M.id===c.id)){ce({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Pn.set(g)},bd=c=>{let g=ye(Pn);if(!g.some(M=>M.id===c)){ce({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Pn.set(g)},_l=c=>{xi.next(ys.SeekAction.LIVE),ce({message:"live switch to low latency "+c}),G.log("live switch to low latency "+c),D.setLiveLowLatency(c)},bl=(c,g)=>{let M=ye(Xr).map(ie=>ie.id!==c?ie:ke(ke({},ie),g));Xr.set(M)},Sa=c=>{let g=ye(Xr);if(g.some(M=>M.id===c.id)){ce({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Xr.set(g)},mt=c=>{let g=ye(Xr);if(!g.some(M=>M.id===c)){ce({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Xr.set(g)},rt=de(U),to=gi([rt],([c])=>pe.features.additionalContextMenuItems?c:[]),Lo=(c,g)=>{let M=ye(rt).map(ie=>ie.id!==c?ie:ke(ke({},ie),g));rt.set(M)},io=c=>{let g=ye(rt);if(g.some(M=>M.id===c.id)){ce({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),rt.set(g)},bi=c=>{let g=ye(rt);if(!g.some(M=>M.id===c)){ce({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),rt.set(g)},Gi=gi([At,le],([c,g],M)=>{M(c&&g)}),js=()=>{xi.next(ys.SeekAction.LIVE),ce({message:"switch to active live"}),G.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},$d=()=>{G.log("skip adman"),K.skip()},Jc=(c=!0)=>{var ie;(0,lt.assertNonNullable)(Qt),ce({message:`switch from ads to video, callPlay: ${c}`}),G.log("switch from ads to video",{callPlay:c}),Be.set("video"),c&&D.play(),l&&ln(!0,!0);let g=(ie=ye(Ct))==null?void 0:ie.muted,M=!D.info.muted$.getValue();g!==void 0&&!M&&ln(g,!0),Ct.set(void 0)},Kp=()=>{(0,lt.assertNonNullable)(Qt),ce({message:"switch from video to ads"}),G.log("switch from video to ads"),Qt.actions.internal.pause(),Oo(),Be.set("ads")},eu=c=>{(0,lt.assertNonNullable)(Qt);let g=c?"LiveWaitingStart":"thumb";G.log("set live waiting start",{state:c,playerPhase:g}),Be.set(g)},qp=c=>{(0,lt.assertNonNullable)(Qt);let g=c?"LiveWaitingRecover":"thumb";G.log("set live waiting recover",{state:c,playerPhase:g}),Be.set(g)},tu=c=>{(0,lt.assertNonNullable)(Qt);let g=c?"LiveWaitingRecord":"thumb";G.log("set live waiting record",{state:c,playerPhase:g}),Be.set(g)},Qp=()=>((0,lt.assertNonNullable)(Qt),G.log("get debug text data"),T_(D,Ne,Qt,Qe.getTraceId(),Ce)),iu=()=>((0,lt.assertNonNullable)(Qt),JSON.stringify(Qe.getFinishedSpans())),Gp=()=>((0,lt.assertNonNullable)(Qt),I_(D,Ne,Qt)),Ca=()=>Le,ou=()=>{ce({message:"toggle chromecast"}),G.log("toggle chromecast"),D.toggleChromecast()},Xs=c=>{var M;if((0,lt.assertNonNullable)(Qt),D.info.isEnded$.getValue())return;let g=!c;if(ye(Qt.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${g}`}),G.log("pause ads",{internalCall:g}),K.pause();return}ce({message:`pause video, internalCall: ${g}`}),G.log("pause video",{internalCall:g}),g&&((M=s==null?void 0:s.onPause)==null||M.call(s)),D.pause()},$l=c=>{var M;(0,lt.assertNonNullable)(Qt);let g=!c;if(ye(Qt.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${g}`}),G.log("play ads",{internalCall:g}),K.play();return}ce({message:`play video, internalCall: ${g}`}),G.log("play video",{internalCall:g}),g&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),D.play()},nu=c=>{(0,lt.assertNonNullable)(Qt);let g=!c;if(ye(Qt.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${g}`}),A==null||A()},ru=(c,g)=>{(0,lt.assertNonNullable)(Qt),ce({message:`first start, show ads: ${c}, internalCall: ${!g}`}),G.log("first start",{showAds:c,external:g}),c?Be.set("ads"):(Be.set("video"),g?D.play():Qt.actions.internal.togglePlay())},yl=()=>(ce({message:"getting time codes"}),m),su=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue();return c.find(M=>M.time>g)},au=c=>{let g=c;g||(g=su());let M=D.info.position$.getValue();G.log("seek to next episode",ke({currentTime:M},g)),g&&(ce({message:"seek to next episode"}),Pr(g.time,ys.SeekAction.EPISODE,!0))},lu=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue(),M=c.findIndex(Se=>Se.time>g),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},Yp=c=>{let g=c;g||(g=lu());let M=D.info.position$.getValue();G.log("seek to prev episode",ke({currentTime:M},g)),g&&(ce({message:"seek to prev episode"}),Pr(g.time,ys.SeekAction.EPISODE,!0))},jp=()=>(ce({message:"getting preview thumbs data"}),G.log("get preview thumbs data",ke({},p)),p),ze=()=>ht(null,null,function*(){let c=xe==null?void 0:xe.isActive(),g="none";xe!=null&&xe.isActive()?(g="exit",yield xe==null?void 0:xe.exit()):(g="request",yield xe==null?void 0:xe.request()),G.log("toggle picture in picture",{isActive:c,action:g})}),$i=(c=-90)=>{G.log("rotate video",{alphaDiff:c}),Mt.update(g=>g+c)},mo=de([]);I==null||I.subscribe(c=>{let g=[];for(let M=0;M<c.length;M++){let{range:[ie,Se],subjects:je}=c[M];M===0&&ie!==0&&g.push({time:0,text:"",interactive:!1,completed:!0}),g.push({time:ie/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!je.length||je.every(Vt=>Vt.isRemoved):!je.length}),Se!==1/0&&g.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}mo.set(g)});let Ar=de(!1);T==null||T.subscribe(c=>{c&&ye(ki)&&Ao()});let cn=c=>{if(!x)return c;let g=ye(mo),M=ye(nn),Se=ye(Fn)/M,je=g.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Se);return typeof(je==null?void 0:je.time)=="number"?Math.min(c,je.time-.05):c},A$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},L$=()=>{G.log("destroy store"),clearTimeout(Zt),clearTimeout(ri),Te.unsubscribe(),bt.unsubscribe(),D.destroy(),K.destroy(),J==null||J.destroy(),se==null||se.destroy(),Pe.unsubscribe(),Ti==null||Ti.disconnect(),Ti=null,Ee.destroy()},M$=gi([yr,We,Hn],([c,g,M])=>v.features.doubleForwardAvailable&&!c&&g==="video"&&M),Xp=de(!1),wg=2,du=null,Sg=c=>{if(!ye($r)&&c)return;let g=D.info.currentPlaybackRate$.getValue();c?g!==wg&&(du=g,Yn(wg,!1),Xp.set(!0)):(du&&Yn(du,!1),Xp.set(!1),du=null)};We.subscribe(c=>{c!=="video"&&Sg(!1)});let V$=()=>{Xs(!1),Si.set(!0)},R$=()=>{$l(!1),Si.set(!1)},Zp=!1,N$=()=>{In.set(!0),Zp=D.info.playbackState$.getValue()===_i.PlaybackState.PLAYING,Xs(!1)},D$=()=>{In.set(!1),!ye(Si)&&Zp&&$l(!1),Zp=!1};D.events.playing$.subscribe(()=>{ye(Si)&&Xs(!1)});let Qt={interfaceLanguage$:Ve,isCyrillicRelatedInterface$:St,initVideo:vi,videoId:i,isClip:o,playerPhase:We,vsid:Tt,state:{positionExact$:st,positionWithScrubbing$:Ps,duration$:nn,playbackState$:Fi,playbackStateRealistic$:gn,isPlaying$:$r,isLoaderVisible:Bt,bufferedProgress$:an,isLive$:Ui,canChangePlaybackSpeed$:Hn,isActiveLive$:yr,isOldestAvailableLive$:rr,isRewindableLive$:cs,isEnded$:Vi,muted$:Ai,volume$:lo,trafficSavingEnabled$:Bo,highQualityEnabled$:Ho,autoQualityLimitingAvailable$:_n,availableVideoStreams$:xr,availableAudioStreams$:zi,videoStream$:wr,audioStream$:Un,currentQuality$:ar,isAutoQualityEnabled$:wo,availableQualities$:yn,currentPlaybackRate$:xn,availablePlaybackRates$:wn,currentSubtitle$:eo,availableTextTracks$:sn,availableSubtitlesList$:Tr,currentSubtitleCaptions$:Uo,isAutoSubtitleCaptionVisible$:So,chromecastState$:Hr,chromecastDeviceName$:ws,chromecastConnected$:Fo,currentFormat$:Fr,throughputEstimation$:nr,videoBitrate$:Ur,videoSize$:bn,errorLog$:Y,crashed$:le,isAudioAvailable$:_r,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:uo,hasMpegSources$:Co,isInteractive:x,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!ye(mo).length,interactiveEpisodes$:mo,isInteractiveTime$:T?ai(T):de(!1),isInteractiveExpectation$:Ar,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:dn,loadedMetadata$:Ft,isAutoQualityAvailable$:Kn,previewTrackActive:Si,previewTrackDragInProgress:In},ui:{t:fe,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:z.length?z.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:It},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Rt,isFullscreenOpenedByKeyboard:pt,rotateAlpha:Mt,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:li,isMobile:At,mobileNotReportControlHidden$:Gi,icon3DVideoVisible:de(!1),scrubbingInProgress:ki,volumeChangingInProgress:Yr,is3DVideo:qt,currentGridType$:Ys,additionalButtonsDeprecated$:jr,additionalDesktopControlPanelRightButtons$:xa,additionalSettingsMenuItems$:hl,additionalContextMenuItems$:to,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:dr,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$:Xp,doubleForwardAvailable$:M$,previewTrackNotificationVisible:de(!1),previewTrackActive:Si,previewTrackDragInProgress:In,previewTrackAvailable:En,isPreviewTrackHorizontallyAligned:Es},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:xe,annotationsApi:He,slotsApi:it,focusManager:ne},actions:{internal:{preload:Eo,firstStart:c=>ru(c,!1),play:()=>$l(!1),pause:()=>Xs(!1),togglePlay:po,toggleMuted:qn,openSettingsMenu:Ki,closeSettingsMenu:Ss,openSettingsSubMenu:us,closeSettingsSubMenu:Cs,setVolume:c=>qr(c,!1),setMuted:c=>ln(c,!1),startVolumeChanging:kr,stopVolumeChanging:$a,setVideoStream:vt,setAudioStream:c=>ni(c,!1),setQuality:(c,g)=>Cn(c,g,!1),setTrafficSavingEnabled:(c,g)=>qo(c,g,!1),setHighQualityEnabled:(c,g)=>Gn(c,g,!1),setPlaybackRate:Yn,incrementPlaybackRate:Je,decrementPlaybackRate:ei,setSubtitle:c=>wi(c,!1),toggleSubtitle:()=>Po(!1),togglePictureInPicture:ze,startScrubbing:he,progressScrubbing:yt,completeScrubbing:Go,toggleChromecast:ou,switchToActiveLive:js,switchFromAdsToVideo:Jc,switchFromVideoToAds:Kp,skipAd:$d,setLiveWaitingStart:eu,setLiveWaitingRecover:qp,setLiveWaitingRecord:tu,getDebugTextData:Qp,getTraceTextData:iu,getDebugPanelData:Gp,getVideoElement:Ca,seekTime:(c,g,M)=>Pr(c,g,M),clearDelayedBufferingCheckTimeout:br,seekEpisodeStartTime:Ts,seekToPercent:Gs,getNextEpisode:su,seekToNextEpisode:au,getPrevEpisode:lu,seekToPrevEpisode:Yp,startLogging:Ut,stopLogging:W,startCameraManualRotation:Nt,stopCameraManualRotation:di,moveCameraFocusPX:gt,holdCamera:ii,releaseCamera:$t,getVideoEpisodes:yl,getPreviewThumbsData:jp,downloadVideo:Kr,addLanguage:lm,setLanguage:$e,nextMovie:Jt,videoRotate:$i,correctSeekTimeToInteractive:cn,replayInteractive:R,setLooped:Ue,reportProblem:Pt,setAutoplayNextEnabled:mi,setTimerNextVideoRunning:Wo,prevVideoClick:To,nextVideoClick:Ko,nextVideoAnnouncementShow:qi,nextVideoAnnouncementClick:Io,nextVideoAnnouncementAuto:Qn,nextVideoAnnouncementCancel:Er,checkFullscreenSupport:Lt,changeDoubleForwardOn:Sg,closePreviewTrack:R$,previewTrackOpened:V$,previewTrackDragStarted:N$,previewTrackDragFinished:D$},external:{firstStart:c=>ru(c,!0),play:()=>$l(!0),pause:()=>Xs(!0),stop:()=>nu(!0),seekTime:c=>ba(c),seekEpisodeStartTime:c=>ci(c),setPlaybackRate:c=>ko(c),setAutoQualityLimits:c=>ct(c),setMuted:c=>ln(c,!0),toggleSubtitle:()=>Po(!0),changeSubtitle:Tn,setVolume:c=>qr(c,!0),returnFocusToEpisodes:A$,updateAdditionalSettingsItem:bl,addAdditionalSettingsItem:Sa,removeAdditionalSettingsItem:mt,updateAdditionalContextItem:Lo,addAdditionalContextItem:io,removeAdditionalContextItem:bi,updateAdditionalButton:_d,addAdditionalButton:wa,removeAdditionalButton:bd,setLiveLowLatency:_l,hideControls:()=>ps(!1),showControls:()=>ps(!0),setQuality:c=>Cn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>qo(c,"to-video",!0),setHighQualityEnabled:c=>Gn(c,"to-video",!0),changeAudioStream:zr}},callbacks:s,setUiCallbacks:c=>{et=ke({},c)},getAdmanWrapper:()=>K,getLogger:()=>Ge,getPlayer:()=>D,destroy:L$};return Qt};function ir(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}=Us(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 r2=["disabledControls$","additionalButtons"],s2=["interactiveTimeIndicator"],rd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!r2.includes(r)){let l=o||s2.includes(r);a.set(ir(t,i,r,l))}}};var _p=(t,e,i)=>ht(null,null,function*(){yield _o(),e&&i&&(i.focus(),t.set(!1))});var a2=Ie('<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 Jm(t){Ze(t,{children:(e,i)=>{var o=a2();$(e,o)},$$slots:{default:!0}})}function ev(t,e){B(e,!0);let[i,o]=De(),r=()=>w(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=be(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,b=q(void 0);Oe(()=>{n(b)&&kt(()=>{v.set(n(b))})});let y=T=>{let R=pa(T),A=hb(n(b));p.set(A),u.set(R),s.set(!r())},_=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>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:x,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(T){N(b,T,!0)},children:(T,R)=>{Jm(T,{})},$$slots:{default:!0}}),H(),o()}var l2=t=>{t.stopPropagation()},d2=L("<div><!> <div></div> <div></div></div>"),c2={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 wc(t,e){var K;B(e,!0),Q(t,c2);let[i,o]=De(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(E,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w(_,"$interactiveControlsOpacity$",i),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=q(void 0),b=be(),y=yo(),{interactiveControlsOpacity$:_}=y,x=b.ui.isMobile,I=b.ui.isFullscreen,T=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,P=(K=b.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,E=b.ui.currentGridType$,z=f(()=>!r()&&a()),F=f(()=>Fs(l(),"s")),U=f(()=>!d()||!!s()||n(z)),X=q(!1);Oe(()=>{N(X,n(U),!0)});let ae=()=>{N(X,!0)},Z=()=>{var se;re(),(se=n(v))==null||se.addEventListener("animationiteration",ae,{once:!0})},re=()=>{var se;N(X,!1),(se=n(v))==null||se.removeEventListener("animationiteration",ae)},J=se=>{R.set(se)},we=f(()=>u()&&!n(U));Oe(()=>{u()?Z():re()});let me=()=>{n(U)||(R.set(!0),P==null||P())};fn(()=>{R.clearTimeout(),re()});let ee=()=>{R.set(!1)},_e=j("tooltip_interactive_interaction_time_indicator");var Ce=d2();let ge;Ce.__mousemove=[l2],Ce.__click=me;var pe=C(Ce);No(pe,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(se){p(se)},children:(se,xe)=>{mc(se,{completed:!0})},$$slots:{default:!0}});var Qe=k(pe,2);let G;Xe(Qe,se=>p(se),()=>p());var D=k(Qe,2);let Ge;Xe(D,se=>N(v,se),()=>n(v)),S(Ce),O((se,xe,He)=>{ge=oe(Ce,1,"interactive-episode-icon-animated s-26",null,ge,se),G=oe(Qe,1,"ref-block s-26",null,G,xe),Ge=oe(D,1,"pulse s-26",null,Ge,He)},[()=>({mobile:r(),fullscreen:m(),invisible:n(U),"icon-small":n(F)}),()=>({hidden:n(U)}),()=>({paused:n(X)})]),ut("mouseleave",Ce,ee),$(t,Ce),H(),o()}Ye(["mousemove","click"]);function bp(t,e){B(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),a=h(e,"ref",15),l=h(e,"tooltipVisible",3,!1);No(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=Me();let m=f(()=>e.buttonComponent);var p=ue(u);Di(p,()=>n(m),(v,b)=>{b(v,rs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),H()}var zs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var p2=Ie('<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 ha(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${mn(e.size)}${n(o)}`),a=f(()=>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=p2();$(l,s)},$$slots:{default:!0}}),H()}var f2=L('<div class="icon-background-mobile s-23"><!></div>'),m2={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 il(t,e){B(e,!0),Q(t,m2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=be().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`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,p)=>{var v=Me(),b=ue(v);{var y=x=>{var I=f2(),T=C(I);let R=f(()=>e.type==="prev");ha(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),$(x,I)},_=x=>{let I=f(()=>e.type==="prev");ha(x,{get size(){return"24"},get reversed(){return n(I)}})};V(b,x=>{o()?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var v2=Ie('<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 Sc(t,e){B(e,!0);let i=f(()=>mn(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=v2();$(o,a)},$$slots:{default:!0}}),H()}var Bb=require("@vkontakte/videoplayer-shared/es2015");var g2=L('<div class="icon-background-mobile s-27"></div>'),h2=L("<!> <div><!></div>",1),_2={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 sd(t,e){B(e,!0),Q(t,_2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=h(e,"className",3,""),l=h(e,"click",3,Bb.noop),d=j("tooltip_restart"),s=f(()=>`${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 bs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=h2(),v=ue(p);{var b=T=>{var R=g2();$(T,R)};V(v,T=>{o()&&T(b)})}var y=k(v,2);let _;var x=C(y);let I=f(()=>o()?"48":"24");Sc(x,{get size(){return n(I)}}),S(y),O(T=>_=oe(y,1,"s-27",null,_,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),H()}var b2=Ie('<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 Ws(t,e){B(e,!0);let i=f(()=>mn(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=b2();$(o,a)},$$slots:{default:!0}}),H()}var Hb=require("@vkontakte/videoplayer-shared/es2015");var $2=L('<div class="icon-background-mobile s-22"><!></div>'),y2={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 ad(t,e){B(e,!0),Q(t,y2);let[i,o]=De(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=yo(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),s=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),m=h(e,"className",3,""),p=h(e,"click",3,Hb.noop),b=be().ui.t,{toggle:y}=a,_=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),R=f(()=>n(I)?Ws:Dn),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),P=f(()=>n(x)?n(_):p());Kt(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return bs.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,z)=>{var F=Me();let U=f(()=>n(R));var X=ue(F);{var ae=re=>{var J=$2(),we=C(J);Di(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"48"}})}),S(J),$(re,J)},Z=re=>{var J=Me(),we=ue(J);Di(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"24"}})}),$(re,J)};V(X,re=>{d()?re(ae):re(Z,!1)})}$(E,F)},$$slots:{default:!0}}),H(),o()}var x2=Ie('<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 tv(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=x2();$(e,o)},$$slots:{default:!0}})}function Cc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_go_back"),l=f(()=>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)=>{tv(d,{})},$$slots:{default:!0}}),H()}var w2=L('<span class="gutter s-25"><span><!></span></span>'),S2={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 Tc(t,e){B(e,!0),Q(t,S2);let[i,o]=De(),r=()=>w(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=be(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",b="#000",y=f(()=>r()?"true":"false");Kt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,x)=>{var I=w2(),T=C(I);let R;var A=C(T);{var P=z=>{Dn(z,{get size(){return v},fill:b})},E=z=>{Ws(z,{get size(){return v},fill:b})};V(A,z=>{r()?z(P):z(E,!1)})}S(T),S(I),O(z=>R=oe(T,1,"toggler s-25",null,R,z),[()=>({enabled:r()})]),$(_,I)},$$slots:{default:!0}}),H(),o()}var C2=Ie('<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 iv(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=C2();pi(),$(e,o)},$$slots:{default:!0}})}function Ic(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_seek"),l=f(()=>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)=>{iv(d,{})},$$slots:{default:!0}}),H()}var T2=Ie('<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>'),I2=Ie('<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 ov(t,e){let i=h(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=I2(),d=k(ue(l));{var s=u=>{var m=T2();$(u,m)};V(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=h(e,"graphIsOpened",3,!1),d=be().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>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,p)=>{let v=f(()=>!!a());ov(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var nv=require("@vkontakte/videoplayer-core/es2015");function Pc(t,e){B(e,!0);let[i,o]=De(),r=()=>w(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=be(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===nv.PlaybackState.PAUSED&&p()}),b=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),_=f(()=>l()&&r()===nv.PlaybackState.PLAYING);Kt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{nc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var rv=require("@vkontakte/videoplayer-shared/es2015");var E2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),P2=L('<img class="icon" aria-hidden="true"/>');function ol(t,e){"use strict";let i=q(!1),o=()=>{N(i,!0)};var r=Me(),a=ue(r);{var l=s=>{var u=E2();$(s,u)},d=s=>{var u=P2();O(()=>Re(u,"src",e.icon)),ut("error",u,o),Da(u),$(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function sv(t,e){B(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,rv.noop),r=h(e,"ref",15),a=f(()=>o()===rv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");No(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=f(()=>{var p;return(p=e.testId)!=null?p: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:(p,v)=>{ol(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Fb=t=>!!t.buttonComponent;var Ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var $p=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(ir(t,i,r,o))};var yp=require("@vkontakte/videoplayer-shared/es2015"),Ub=10,zb=40,av=.2,A2=.5,L2=65,M2=114,V2=4,Wb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?L2:M2),r=q(!1),a=q(0),l=q(0),d=f(()=>n(o)+Ub-zb-V2),s=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,-n(d)])),u=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,zb])),m=f(()=>(0,yp.interpolate)(n(a),[av,1],[0,n(o)+Ub]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var x;N(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:_=>{if(!n(r))return;let x=Math.max(Math.min(_.clientY-n(l),0),-n(d));N(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=A2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var R2=t=>t;function xs(t,{delay:e=0,duration:i=400,easing:o=R2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var N2=L('<span class="root s-2b"> </span>'),D2={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 lv(t,e){Q(t,D2);var i=N2(),o=C(i,!0);S(i),O(()=>ve(o,e.time)),$(t,i)}var O2=L('<div class="tooltip-wrapper s-u"><div><!></div></div>'),B2={hash:"s-u",code:'.tooltip-wrapper.s-u{display:block;position:relative}.tooltip.s-u{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-u: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-u{opacity:1;visibility:visible}'};function dv(t,e){Q(t,B2);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),a=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),s=q(void 0),u=q(void 0);function m(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=f(()=>m(r()));var v=O2(),b=C(v);let y;var _=C(b);si(_,()=>{var x;return(x=e.children)!=null?x:_t}),S(b),Xe(b,x=>N(u,x),()=>n(u)),S(v),Xe(v,x=>N(s,x),()=>n(s)),O(x=>{qe(v,`transform: translate(${n(p)}px, ${a()}px);`),y=oe(b,1,"tooltip s-u",null,y,x),qe(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var Kb=t=>Math.abs(t)/90%4===1;var H2=L('<div class="preview s-v"></div>'),F2=L('<div class="time s-v"> </div>'),U2=L('<div><!> <div class="episode s-v"><!></div> <!></div>'),z2={hash:"s-v",code:".timeline-preview.s-v{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-v{bottom:72px}.preview.s-v{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-v{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-v,.time.s-v{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-v{color:var(--white)}"};function cv(t,e){B(e,!0),Q(t,z2);let[i,o]=De(),r=()=>w(y,"$rotateAlpha",i),a=()=>w(_,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),s=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),m=h(e,"progress",3,0),p=h(e,"duration",3,0),v=h(e,"isInteractive",3,!1),b=be(),y=b.ui.rotateAlpha,_=b.ui.playerSize,x=q(0),I=q(0),T=q(""),R=q(0),A=q(0),P=q(0),E=q(0),z=f(()=>up(m(),p(),u())),F=f(()=>od(r())),U=f(()=>Kb(r())),X=f(re),ae=f(()=>(n(U)?1:-1)*(n(x)/2-n(I)/2)),Z=f(()=>n(ae)*-1);Oe(()=>{(K=>{N(x,K.width,!0),N(I,K.height,!0)})(we())}),Oe(()=>{(K=>{N(T,K.imgSrc,!0),N(R,K.imgWidth,!0),N(A,K.imgHeight,!0),N(P,K.imgOffsetX,!0),N(E,K.imgOffsetY,!0)})(me(m()))});function re(){var He;let K=s()?l.MOBILE:l.DESKTOP,{isVertical:se}=J(),xe=30;return(He=n(z))!=null&&He.text&&(xe+=16),(se||n(F))&&(xe+=18,xe+=50),Math.min(Math.max(a().height-xe,0),K)}function J(){let K=e.previewThumbsData.frameWidth,se=e.previewThumbsData.frameHeight,xe=se>K;return{width:K,height:se,isHorizontal:!xe,isVertical:xe}}function we(){let{height:K,isHorizontal:se,isVertical:xe,width:He}=J();return se&&(K=K/He*n(X),He=n(X)),xe&&(He=He/K*n(X),K=n(X)),{width:He,height:K}}function me(K){let se;e.previewThumbsData.isUV?se=Math.floor(p()*K/e.previewThumbsData.frequency):se=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let xe=Math.floor(se/e.previewThumbsData.countPerImage),He=Math.floor(se%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),it=se%e.previewThumbsData.countPerRow,ne=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ne=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ne++);let ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ne=n(x)*ce,Le=n(I)*ne,et=-it*n(x),Ee=-He*n(I);return{imgSrc:e.previewThumbsData.links[xe],imgWidth:Ne,imgHeight:Le,imgOffsetX:et,imgOffsetY:Ee}}var ee=U2();let _e;var Ce=C(ee);{var ge=K=>{var se=H2();O(()=>qe(se,`width: ${n(x)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(P)}px ${n(E)}px;
61
+ transform: rotate(${r()}deg) ${n(F)?`translate(${n(ae)}px, ${n(Z)}px)`:""};
62
+ `)),$(K,se)};V(Ce,K=>{n(T)&&K(ge)})}var pe=k(Ce,2),Qe=C(pe);{var G=K=>{var se=Me(),xe=ue(se);{var He=ne=>{var ce=_s();O(Ne=>ve(ce,Ne),[()=>j("tooltip_episode_unfinished")]),$(ne,ce)},it=ne=>{var ce=_s();O(()=>ve(ce,n(z).text||"")),$(ne,ce)};V(xe,ne=>{v()&&n(z).completed===!1?ne(He):ne(it,!1)})}$(K,se)};V(Qe,K=>{n(z)&&K(G)})}S(pe);var D=k(pe,2);{var Ge=K=>{var se=F2(),xe=C(se,!0);S(se),O(()=>ve(xe,d())),$(K,se)};V(D,K=>{v()||K(Ge)})}S(ee),O(K=>{_e=oe(ee,1,"timeline-preview s-v",null,_e,K),qe(ee,`width: ${n(F)?n(I):n(x)}px;`)},[()=>({mobile:s()})]),$(t,ee),H(),o()}var W2=L('<span class="time s-g"> </span>'),K2=L("<!> <!>",1),q2={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 uv(t,e){var le,$e,Ve,dt,St;B(e,!0),Q(t,q2);let[i,o]=De(),r=()=>w(Z,"$interactiveEpisodes$",i),a=()=>w(E,"$duration$",i),l=()=>w(P,"$position$",i),d=()=>w(we,"$isInteractiveExpectation$",i),s=()=>w(J,"$isInteractiveTime$",i),u=()=>w(Ce,"$previewTrackActive",i),m=()=>w(z,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(U,"$isMobile",i),b=()=>w(F,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),_=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=be(),R=Ot(),A=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,z=T.state.isLive$,F=T.state.isActiveLive$,U=T.ui.isMobile,X=R.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),Z=T.state.interactiveEpisodes$,re=T.state.isInteractive,J=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,me=T.actions.internal.correctSeekTimeToInteractive,ee=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ce=T.ui.previewTrackActive,ge=(Ve=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,pe=(St=(dt=T.callbacks)==null?void 0:dt.uiInfo)==null?void 0:St.onTimelineMouseLeave,Qe=T.ui.t,G=R.features.interactiveResponsiveUi,D=f(()=>re?r():X),Ge=f(()=>tn(a())),K=f(()=>tn(l())),se=f(()=>l()/a()),xe=f(()=>d()||s()),He=q(!1),it=q(""),ne=q(0),ce=q(0),Ne=q(0),Le=f(()=>({containerWidth:n(ce),translateXPx:n(ne),translateYPx:re&&ae?-36:-16,active:n(He)&&_()&&!n(xe)&&!G&&!u(),pointer:!R.features.timelinePreview||!ae||m()})),et=Qe("aria_timeline"),Ee=f(()=>Qe("aria_timeline_value",{position:n(K),duration:n(Ge)}));function Te(fe){return!me||!re?fe:me(fe*a())/a()}function Fe(fe,Be){var We;(We=e.onSliderPointerDown)==null||We.call(e,Be),T.actions.internal.startScrubbing(Te(fe))}function At(fe){s()||T.actions.internal.progressScrubbing(Te(fe))}function Tt(fe){var Be;T.actions.internal.completeScrubbing(Te(fe)),N(He,!1),(Be=e.onSliderPointerUp)==null||Be.call(e)}function Rt(fe,Be,We){var Ct;(Ct=e.onSliderPointerEnter)==null||Ct.call(e,fe),ti(fe,Be,We),N(He,!0)}function pt(fe,Be,We,Ct){var Xt;(Xt=e.onSliderMove)==null||Xt.call(e,Ct,fe),ti(fe,Be,We),N(He,!0)}function Lt(){var fe;N(He,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function ti(fe,Be,We){N(Ne,Te(fe),!0),N(ne,Be,!0),We&&N(ce,We,!0),N(it,Mt(fe),!0)}function Mt(fe){let Be=tn((m()?1-fe:fe)*a());return m()?`-${Be}`:Be}let Ft=f(()=>p().has("TIMELINE"));var qt=K2(),Y=ue(qt);dv(Y,rs(()=>n(Le),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Be)=>{var We=Me(),Ct=ue(We);{var Xt=li=>{cv(li,{get time(){return n(it)},get isMobile(){return v()},get videoEpisodes(){return n(D)},get previewThumbsData(){return ae},get progress(){return n(Ne)},get duration(){return a()},get isInteractive(){return re}})},It=li=>{var fi=W2(),Bi=C(fi,!0);S(fi),O(()=>ve(Bi,n(it))),$(li,fi)};V(Ct,li=>{R.features.timelinePreview&&ae&&!m()?li(Xt):li(It,!1)})}$(fe,We)},$$slots:{default:!0}}));var Pe=k(Y,2);el(Pe,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return et},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ee)},get loadedProgress(){return y()},get filledProgress(){return n(se)},get handleProgress(){return n(se)},get videoEpisodes(){return n(D)},onPointerDown:Fe,onHandleMove:At,onPointerMove:pt,onPointerUp:Tt,onPointerEnter:Rt,onPointerLeave:Lt,get onMouseEnter(){return ge},get onMouseLeave(){return pe},get onDisabledClick(){return ee},get isInteractive(){return re},get disabled(){return n(Ft)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:Tt,get ref(){return I()},set ref(fe){I(fe)}}),$(t,qt),H(),o()}var Q2={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 kc(t,e){B(e,!0),Q(t,Q2);let[i,o]=De(),r=()=>w(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=be(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>tn(l())),p=f(()=>tn(a())),v=f(()=>a()/l()),b=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));el(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(b)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var G2=L("<div><!></div>"),Y2=L("<div></div>"),j2={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 nl(t,e){B(e,!0),Q(t,j2);let[i,o]=De(),r=()=>w(x,"$isLive$",i),a=()=>w(R,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),b=h(e,"ref",15,void 0),y=be(),_=Ot(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,A=de(!1),P=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Me(),z=ue(E);{var F=X=>{var ae=G2();let Z;var re=C(ae);{var J=me=>{kc(me,{get position(){return d()},get duration(){return s()}})},we=me=>{uv(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},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 b()},set ref(ee){b(ee)}})};V(re,me=>{u()?me(J):me(we,!1)})}S(ae),Ds(ae,()=>Gl(m()&&_.features.usePerformanceFix,A,_.disableInvisibleComponentsTimeout)),O(me=>Z=oe(ae,1,"timeline s-a",null,Z,me),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(X,ae)},U=X=>{var ae=Y2();let Z;O(re=>Z=oe(ae,1,"timeline-stub s-a",null,Z,re),[()=>({mobile:a()})]),$(X,ae)};V(z,X=>{n(P)?X(F):X(U,!1)})}$(t,E),H(),o()}var qb=require("@vkontakte/videoplayer-shared/es2015");var X2=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},Z2=L("<div></div>"),J2=L('<div><div class="track s-2d"></div></div>'),ew={hash:"s-2d",code:'.root.s-2d{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2d,.root.vertically-rotated.s-2d{height:var(--preview-track-frame-height-vertical)}.root.s-2d: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-2d{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2d,.track.s-2d{position:absolute}.frame.s-2d{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-2d .frame:where(.s-2d){transform-origin:0 0}.rotate-1.s-2d{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2d{transform:rotate(-180deg)}.rotate-3.s-2d{transform:rotate(-270deg) translateY(-100%)}'};function fv(t,e){B(e,!0),Q(t,ew);let[i,o]=De(),r=()=>w(R,"$rotateAlpha",i),a=()=>w(_,"$position$",i),l=()=>w(y,"$duration$",i),d=be(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,A=q(void 0),P=q(!1),E=q(0),z=q(0),F=q(0),U=q(0),X=f(()=>v<=b),ae=f(()=>od(r())),Z=f(()=>n(X)?!n(ae):n(ae)),re=114,J=65,we=3,me=f(()=>n(Z)?re:J),ee=f(()=>n(X)?re:J),_e=f(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ce=f(()=>m*n(me)),ge=q(0);Oe(()=>{N(U,Math.ceil(-n(F)/n(me))-1),N(F,-n(Ce)*a()/l())});let pe=()=>{T(Qe(),!0)},Qe=()=>l()*-n(F)/n(Ce)/l(),G=!1,D=Ee=>{if(!n(P))return!1;let Te=Ee.clientX-n(E);N(F,n(z)+Te),N(F,Math.max(Math.min(n(F),0),-n(Ce)),!0),Math.abs(Te)>1&&(G=!0),I(Qe())},Ge=Ee=>{n(P)&&(N(P,!1),!G&&Ee&&N(F,-(Ee.offsetX-n(ge)/2)),G=!1,pe())},K=()=>{n(P)&&Ge()},se=f(()=>s/u),xe=(Ee,Te)=>{if(Ee!==p.length-1)return u;let Fe=0,At=Te*u;for(let Tt=1;Tt<=u;Tt++)Ee*s+Fe+At<m&&Fe++;return Fe},He=f(()=>Math.floor(n(U)/s)),it=f(()=>(0,qb.getRangeAroundIndex)(3,n(He),p.length-1)),ne=(Ee,Te,Fe)=>{let At=s*n(me);return Ee*At+Te*n(me)*u+n(ge)/2-we/2+Fe*n(me)},ce=f(()=>[`--row-numbers: ${n(se)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(_e)}`].join(";"));var Ne=J2();let Le;var et=C(Ne);et.__pointerdown=[X2,P,E,z,F,x,Qe],et.__pointermove=D,et.__pointerup=Ge,yi(et,20,()=>n(it),Ee=>Ee,(Ee,Te)=>{var Fe=Me(),At=ue(Fe);yi(At,16,()=>Array.from({length:n(se)},(Tt,Rt)=>Rt),Tt=>Tt,(Tt,Rt)=>{var pt=Me(),Lt=ue(pt);yi(Lt,16,()=>Array.from({length:xe(Te,Rt)},(ti,Mt)=>Mt),ti=>ti,(ti,Mt)=>{var Ft=Z2();O((qt,Y)=>{qe(Ft,qt),oe(Ft,1,Y,"s-2d")},[()=>`--row-index: ${Rt}; --column-index: ${Mt}; left: ${ne(Te,Rt,Mt)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(ti,Ft)}),$(Tt,pt)}),$(Ee,Fe)}),S(et),S(Ne),Xe(Ne,Ee=>N(A,Ee),()=>n(A)),O(Ee=>{Le=oe(Ne,1,"root s-2d",null,Le,Ee),qe(Ne,n(ce)),qe(et,`transform: translateX(${n(F)}px); width: ${n(Ce)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(ae)})]),ut("mouseleave",et,K),Rn(Ne,"clientWidth",Ee=>N(ge,Ee)),$(t,Ne),H(),o()}Ye(["pointerdown","pointermove","pointerup"]);var tw=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),iw={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function mv(t,e){B(e,!1),Q(t,iw);let i=340,{ui:{t:o}}=be();$o();var r=tw(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],kn),ns(3,r,()=>xs,()=>({duration:i})),$(t,r),H()}var Qb=require("@vkontakte/videoplayer-shared/es2015"),ow=L('<div class="preview-track-close tooltip s-29"><!></div>'),nw=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),rw=L('<div class="wrapper-preview-track s-29"><!></div>'),sw=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),aw={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 vv(t,e){B(e,!0),Q(t,aw);let[i,o]=De(),r=()=>w(_,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w(b,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=be(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=m.state,{playerSize:_,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),P=q(!Z_()),E=()=>{n(P)&&(X_(),N(P,!1))},z=me=>{let ee=Math.floor(a()*me/R),_e=Math.floor(ee/I),Ce=(0,Qb.getRangeAroundIndex)(3,_e,T.length-1);for(let ge of Ce){let pe=new Image;pe.src=T[ge]}},F=(me,ee)=>{z(ee),!l()&&e.onTimelineMove(me)};var U=sw(),X=C(U);{var ae=me=>{var ee=nw(),_e=C(ee);let Ce=f(()=>tn(d()));lv(_e,{get time(){return n(Ce)}});var ge=k(_e,2),pe=C(ge);Hs(pe,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(ge);var Qe=k(ge,2);{var G=D=>{var Ge=ow(),K=C(Ge);mv(K,{}),S(Ge),$(D,Ge)};V(Qe,D=>{n(P)&&D(G)})}S(ee),ut("mouseleave",ge,E),ns(3,ee,()=>xs,()=>({duration:p})),$(me,ee)};V(X,me=>{l()&&me(ae)})}var Z=k(X,2);let re=f(()=>!n(A));nl(Z,{get isHidden(){return n(re)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:z,get ref(){return u()},set ref(me){u(me)}});var J=k(Z,2);{var we=me=>{var ee=rw(),_e=C(ee);fv(_e,{}),S(ee),O(()=>qe(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),$(me,ee)};V(J,me=>{e.previewTrackAvailable&&me(we)})}S(U),O(()=>qe(U,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,U),H(),o()}var dw=L('<div><!> <div class="controls s-14" data-testid="player_controls"><div class="controls-left s-14"><!> <!> <!></div> <div class="controls-right s-14"></div></div></div> <!>',1),cw={hash:"s-14",code:'.wrapper-bottom.s-14{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-14:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-14>:where(.s-14){pointer-events:auto}.controls.s-14{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-14,.controls-right.s-14{align-content:center;display:flex}.controls-left.s-14{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-14 >:not(:first-child),.controls-right.s-14 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-14{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-14{transition:none}'};function hv(t,e){var bl,Sa;B(e,!0),Q(t,cw);let[i,o]=De(),r=()=>w(on,"$disabledControls$",i),a=()=>w(st,"$adPlaybackState",i),l=()=>w(It,"$playbackState$",i),d=()=>w(Ei,"$currentSubtitle$",i),s=()=>w(Bi,"$isEnded$",i),u=()=>w(gn,"$currentGridType$",i),m=()=>w(Bt,"$isLive$",i),p=()=>w(at,"$chromecastState$",i),v=()=>w(ot,"$isPictureInPictureActive",i),b=()=>w(Jt,"$pictureInPictureType$",i),y=()=>w(nt,"$availableSubtitlesList$",i),_=()=>w(Ut,"$contextMenuOpenedByKeyboard$",i),x=()=>w(bt,"$showContextMenuBtn$",i),I=()=>w(vi,"$isRewindableLive$",i),T=()=>w(bo,"$isActiveLive$",i),R=()=>w(Fr,"$graphIsOpened$",i),A=()=>w(Oo,"$contextMenuVisible$",i),P=()=>w(Fi,"$isFullscreen",i),E=()=>w(Vi,"$autoplayNextEnabled",i),z=()=>w(n(Uo),"$prevButton",i),F=()=>w(n(So),"$replayButton",i),U=()=>w(n(an),"$playButton",i),X=()=>w(n(uo),"$nextButton",i),ae=()=>w(n(Co),"$playPrevChapterButton",i),Z=()=>w(n(Pi),"$seekToInteractiveButton",i),re=()=>w(n(Kr),"$interactiveGraphButton",i),J=()=>w(n(qn),"$liveButton",i),we=()=>w(n(Ss),"$time",i),me=()=>w(n(Ki),"$episodes",i),ee=()=>w(n(Cs),"$vkLogo",i),_e=()=>w(n(us),"$volume",i),Ce=()=>w(n(Ir),"$subtitles",i),ge=()=>w(n(zo),"$settings",i),pe=()=>w(n(qr),"$context",i),Qe=()=>w(n(ln),"$fullscreen",i),G=()=>w(n(dn),"$chromecast",i),D=()=>w(hn,"$additionalDesktopControlPanelRightButtons$",i),Ge=()=>w(Mi,"$playerSize",i),K=()=>w(Bo,"$isInteractiveTime$",i),se=()=>w(ci,"$previewTrackActive",i),xe=()=>w(Hi,"$settingsMenuVisible",i),He=()=>w(qi,"$settingButtonRef$",i),it=()=>w(W,"$startedByKeyboard$",i),ne=()=>w(li,"$isAudioAvailable$",i),ce=()=>w(qt,"$fakeIsPlaying$",i),Ne=()=>w(ws,"$seekToInteractiveDisabledTooltip$",i),Le=()=>w(In,"$isPreviewTrackHorizontallyAligned$",i),et=()=>w(Si,"$previewTrackAvailable",i),Ee=()=>w(ko,"$previewTrackDragInProgress",i),Te=()=>w($t,"$adPosition",i),Fe=()=>w(Xt,"$position$",i),At=()=>w(ii,"$adDuration",i),Tt=()=>w(Ct,"$duration$",i),Rt=h(e,"playerControlsWrapperRef",15,void 0),pt=h(e,"playerControlsRef",15,void 0),Lt=h(e,"isAds",3,!1),ti=h(e,"logoTargetUrl",3,""),Mt=h(e,"isOneVideoPlaylist",3,!1),Ft=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:qt}=yo(),Y=be(),Pe=yo(),le=Ot(),$e=Y.actions.internal.toggleMuted,Ve=Y.actions.internal.togglePlay,dt=Y.actions.internal.pause,St=Y.actions.internal.toggleSubtitle,fe=Y.actions.internal.checkFullscreenSupport,Be=(bl=Y.callbacks)==null?void 0:bl.onAudioDoesNotExistHint,We=(Sa=Y.callbacks)==null?void 0:Sa.onAudioDisabledHint,Ct=Y.state.duration$,Xt=Y.state.positionWithScrubbing$,It=Y.state.playbackState$,li=Y.state.isAudioAvailable$,fi=Y.state.isAudioDisabled,Bi=Y.state.isEnded$,Bt=Y.state.isLive$,bo=Y.state.isActiveLive$,vi=Y.state.isRewindableLive$,{isActive$:ot,type$:Jt}=Pe.pictureInPicture$,Hi=Y.ui.settingsMenu.visible$,xi=Y.ui.settingsMenu.openedByBtnKeyboard$,oi=Y.ui.controls,Ti=Y.actions.internal.getVideoEpisodes(),at=Y.state.chromecastState$,nt=Y.state.availableSubtitlesList$,Ei=Y.state.currentSubtitle$,on=oi.disabledControls$,Oo=Y.ui.contextMenu.visible$,bt=Y.ui.contextMenu.showContextMenuBtn$,Ut=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,Nt=Y.ui.controlBlocks,di=Y.ui.previewTrackNotificationVisible,gt=Y.ui.t,ii=Y.ads.duration,$t=Y.ads.position,st=Y.ads.playbackState,Fi=Y.ui.isFullscreen,Mi=Y.ui.playerSize,gn=Y.ui.currentGridType$,hn=Y.ui.additionalDesktopControlPanelRightButtons$,Vi=Y.ui.autoplayNextEnabled$,Ui=Y.actions.internal.getVideoElement,Hn=Y.actions.internal.replayInteractive,xo=Y.actions.internal.prevVideoClick,lo=Y.actions.internal.nextVideoClick,Ai=Y.state.isInteractive,Bo=Y.state.isInteractiveTime$,Ho=Y.state.showInteractiveGraph,_n=Y.state.showSeekToInteractive,Or=Y.state.showPlayPrevChapter,Br=Y.state.showInteractiveTimeIndicator,Hr=Y.state.playPrevChapterDisabledTooltip,ws=Pe.seekToInteractiveDisabledTooltip$,Fr=Pe.graphIsOpened$,nr=le.features.interactiveResponsiveUi,Ur=f(()=>r().has("EPISODE_BUTTON")),bn=f(()=>r().has("GRAPH_BUTTON")),$n=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),_r=f(()=>r().has("PLAY_BUTTON")),br=f(()=>r().has("REPLAY_BUTTON")),nn=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),$r=()=>Y.actions.internal.toggleChromecast(),yr=f(()=>Lt()?a()==="playing":l()===rl.PlaybackState.PLAYING),rr=f(()=>d().value!=="off"),Fn=f(()=>s()&&!Lt()||Ai),cs=f(()=>nr?n(Fn)&&ro(u(),"m"):n(Fn)),Fo=f(()=>!s()||Ai||Lt()),xr=f(()=>ro(u(),"m")),zi=f(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Lt()&&e.nextButtonActive),wr=f(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Lt()&&e.prevButtonActive),Un=f(()=>!Lt()&&!!m()),vt=f(()=>p()!==rl.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&ro(u(),"m")&&!Ai),ni=f(()=>e.showAutoplayNext&&!Mt()&&ro(u(),"s")),Sr=f(()=>y().length>0&&ro(u(),"m")),zr=f(()=>_()||x()),Wr=f(()=>ro(u(),"s")&&!Lt()),zn=f(()=>!e.logoHidden&&!Lt()),sr=f(()=>le.features.fullscreen&&fe()&&(e.logoHidden||ro(u(),nr?"xs":"s"))&&!(v()&&b()===1)&&(Ai?Ft():!0)),wo=f(()=>(!m()||Lt())&&!(le.features.interactiveHideTime&&Ai)),Wn=f(()=>Ho&&ro(u(),"m")),ar=f(()=>nr?_n&&ro(u(),"s"):_n),Kn=f(()=>nr?Or&&ro(u(),"s"):Or),yn=f(()=>!Lt()&&!m()&&!!(Ti!=null&&Ti.length)&&n(xr)&&!n(Ur)),xn=f(()=>!I()||!!T()),wn=f(()=>R()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),rn=f(()=>A()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),Wi=(mt,rt)=>mt?rt&&rt===rl.PlaybackState.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),eo=f(()=>Wi(n(xn),l())),sn=f(()=>le.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),lr=f(()=>n(rr)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),Cr=f(()=>P()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),Sn=f(()=>p()===rl.ChromecastState.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),Tr=f(()=>E()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),ft=q(0),Et=ui({}),co=ui({}),Uo=f(()=>oi.prevButton),So=f(()=>oi.replayButton),an=f(()=>oi.playButton),uo=f(()=>oi.nextButton),Co=f(()=>oi.playPrevChapterButton),Pi=f(()=>oi.seekToInteractiveButton),Kr=f(()=>oi.interactiveGraphButton),qn=f(()=>oi.liveButton),Ss=f(()=>oi.time),Ki=f(()=>oi.episodes),Cs=f(()=>oi.vkLogo),us=f(()=>oi.volume),Ir=f(()=>oi.subtitles),zo=f(()=>oi.settings),qr=f(()=>oi.context),ln=f(()=>oi.fullscreen),dn=f(()=>oi.chromecast),Ue=f(()=>({prevButton:z()?z().right-z().left:0,replayButton:F()?F().right-F().left:0,playButton:U()?U().right-U().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:J()?J().right-J().left:0,time:we()?we().right-we().left:0,episodes:me()?me().right-me().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:_e()?_e().right-_e().left:0,subtitles:Ce()?Ce().right-Ce().left:0,settings:ge()?ge().right-ge().left:0,context:pe()?pe().right-pe().left:0,fullscreen:Qe()?Qe().right-Qe().left:0,chromecast:G()?G().right-G().left:0,additionalButtons:D().length?D().reduce(mt=>[...mt,40],[]):[]})),Pt=q(0);Oe(()=>{(!n(Pt)||n(Pt)<n(Ue).time)&&kt(()=>N(Pt,n(Ue).time,!0))});let mi=q(!1);Oe(()=>{let mt=0;n(yn)&&(ro(u(),"xl")?mt=n(Ue).time:mt=60);let rt=n(Ue).prevButton+n(Ue).playButton+n(Ue).nextButton+n(Ue).seekToInteractiveButton+n(Ue).interactiveGraphButton+n(Ue).liveButton+n(Pt)+mt;N(mi,n(wo)&&n(ft)>=rt,!0)});let Wo=f(()=>n(mi)&&ro(u(),"m")),To=(0,gv.debounceFn)(rd,260),Ko=(0,gv.debounceFn)($p,260);Oe(()=>{Ge(),K(),se(),To(Ui(),oi,Et,e.showControls),Ko(Ui(),Nt,co,e.showControls)}),Oe(()=>{co.bottom=Rt()});let qi=de();Oe(()=>{xe(),He()&&kt(()=>jl(He(),xe(),xi))});let Io;Oe(()=>{it(),kt(()=>_p(W,it(),Io))});function Qn(){fa({isAudioDisabled:fi,isAudioAvailable:ne(),isAds:Lt(),audioIsNotExistHintCallback:Be,audioDisabledHintCallback:We})&&$e()}let Er=Ai?Hn:Ve,Eo=f(()=>ce()!==null),po=f(()=>n(Eo)?ce():n(yr)),Cn=f(()=>n(po)?gt("tooltip_pause"):gt("tooltip_play")),qo=gt("tooltip_episodes"),Gn=f(()=>{var mt,rt,to,Lo;return n(wr)?{id:"prevButton",type:"desktop-control-panel-left",weight:zs.prevButton,buttonComponent:il,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:xo.bind(null,!0)},tooltipEnabled:!((rt=(mt=Y.callbacks)==null?void 0:mt.uiInfo)!=null&&rt.onPrevButtonMouseEnter)&&!((Lo=(to=Y.callbacks)==null?void 0:to.uiInfo)!=null&&Lo.onPrevButtonMouseLeave),mouseEnter:()=>{var io,bi,Gi;(Gi=(bi=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:bi.onPrevButtonMouseEnter)==null||Gi.call(bi,ir(Ui(),Et,"prevButton",e.showControls))},mouseLeave:()=>{var io,bi,Gi;(Gi=(bi=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:bi.onPrevButtonMouseLeave)==null||Gi.call(bi,ir(Ui(),Et,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Qr=f(()=>n(cs)?{id:"replayButton",type:"desktop-control-panel-left",weight:zs.replayButton,buttonComponent:sd,buttonComponentProps:{disabled:n(br),click:Er},tooltipText:gt("tooltip_restart"),disabled:n(br)}:void 0),Gr=f(()=>n(Fo)?{id:"playButton",type:"desktop-control-panel-left",weight:zs.playButton,buttonComponent:ad,buttonComponentProps:{disabled:n(_r),isPlaying:n(yr),click:Ve},tooltipText:n(Cn),disabled:n(_r)}:void 0),Yn=f(()=>{var mt,rt,to,Lo;return n(zi)?{id:"nextButton",type:"desktop-control-panel-left",weight:zs.nextButton,buttonComponent:il,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:lo.bind(null,!0)},tooltipEnabled:!((rt=(mt=Y.callbacks)==null?void 0:mt.uiInfo)!=null&&rt.onNextButtonMouseEnter)&&!((Lo=(to=Y.callbacks)==null?void 0:to.uiInfo)!=null&&Lo.onNextButtonMouseLeave),mouseEnter:()=>{var io,bi,Gi;(Gi=(bi=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:bi.onNextButtonMouseEnter)==null||Gi.call(bi,ir(Ui(),Et,"nextButton",e.showControls))},mouseLeave:()=>{var io,bi,Gi;(Gi=(bi=(io=Y.callbacks)==null?void 0:io.uiInfo)==null?void 0:bi.onNextButtonMouseLeave)==null||Gi.call(bi,ir(Ui(),Et,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Je=f(()=>Ai&&n(Kn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:zs.playPrevChapterButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(nn),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(Hr),disabled:n(nn)}:void 0),ei=f(()=>Ai&&n(ar)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:zs.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n($n),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:n($n),disabledTooltipContent:gt(Ne())}:void 0),wi=f(()=>Ai&&n(Wn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:zs.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(bn),click:Fr.toggle,graphIsOpened:R()},tooltipText:n(wn)}:void 0),Po=f(()=>n(Un)?{id:"liveButton",type:"desktop-control-panel-left",weight:zs.liveButton,buttonComponent:Pc,buttonComponentProps:{isLiveActive:n(xn),ariaLabel:n(eo)},tooltipText:n(eo),disabled:n(xn)&&l()===rl.PlaybackState.PLAYING}:void 0),Tn=f(()=>[n(Gn),n(Qr),n(Gr),n(Yn),n(Je),n(ei),n(wi),n(Po)].filter(mt=>!!mt).sort(Ya)),jn=f(()=>n(zn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ks.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:dt},tooltipText:n(sn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Qo=f(()=>n(ni)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ks.autoplayNext,buttonComponent:Tc,tooltipText:n(Tr)}:void 0),dr=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ks.volume,buttonComponent:Um,buttonComponentProps:{click:Qn,isAds:Lt()}})),ps=f(()=>n(Sr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ks.subtitles,buttonComponent:Om,buttonComponentProps:{isSubtitlesEnabled:n(rr),click:St},tooltipText:n(lr)}:void 0),Pr=f(()=>n(Wr)?{id:"settings",type:"desktop-control-panel-right",weight:Ks.settings,buttonComponent:td,buttonComponentProps:{ref$:qi},tooltipText:xe()?void 0:gt("tooltip_settings_off")}:void 0),Ts=f(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ks.context,buttonComponent:ev,buttonComponentProps:{ariaLabel:gt("aria_label_context_menu")},className:n(zr)?"":"out-of-view",tooltipText:n(rn)}:void 0),Gs=f(()=>n(sr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ks.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(Cr)}:void 0),ba=f(()=>n(vt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ks.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:$r},tooltipText:n(Sn)}:void 0),ct=f(()=>[n(jn),n(Qo),n(dr),n(ps),n(Pr),n(Ts),n(Gs),n(ba),...D()].filter(mt=>!!mt).sort(Ya)),ci=Y.ui.previewTrackActive,ko=Y.ui.previewTrackDragInProgress,Si=Y.ui.previewTrackAvailable,In=Y.ui.isPreviewTrackHorizontallyAligned,En=f(()=>Wb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>Et.timeline,isHorizontal:Le()})),Is=f(()=>n(En).progressBarY),Es=f(()=>n(En).controlsY),Qi=f(()=>n(En).onPointerDown),ki=f(()=>n(En).onPointerMove),he=f(()=>n(En).onPointerUp),yt=f(()=>n(En).calculatedHeight),ri=f(()=>n(En).closePreviewTrack);Oe(()=>{se()?di.set(!1):n(ri)()});let Zt;Dt(()=>()=>Zt&&clearTimeout(Zt));let Ao=mt=>{se()||!et()||(n(Qi)(mt),Zt=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},fo=()=>{se()||n(he)(),Zt&&clearTimeout(Zt),Ee()&&Y.actions.internal.previewTrackDragFinished()},Go=mt=>{n(ki)(mt),!se()&&et()&&!se()&&di.set(!0)},Ps=()=>{di.set(!1)};var Yr=dw(),kr=ue(Yr);let $a;var Ys=C(kr);{var ya=mt=>{let rt=f(()=>n(Is)()),to=f(()=>n(yt)());vv(mt,{get animatedOffsetY(){return n(rt)},get animatedPreviewTrackHeight(){return n(to)},get canRewindLive(){return e.canRewindLive},get isAds(){return Lt()},onTimelineMove:Go,onTimelinePointerDown:Ao,onTimelinePointerUp:fo,onTimelinePointerLeave:Ps,get previewTrackAvailable(){return et()},get timelineRef(){return Et.timeline},set timelineRef(Lo){Et.timeline=Lo}})};V(Ys,mt=>{e.showControls&&mt(ya)})}var jr=k(Ys,2),Pn=C(jr),gl=C(Pn);yi(gl,17,()=>n(Tn),mt=>mt.id,(mt,rt)=>{bp(mt,{get buttonComponent(){return n(rt).buttonComponent},get buttonComponentProps(){return n(rt).buttonComponentProps},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(rt).disabled},get className(){return n(rt).className},get tooltipEnabled(){return n(rt).tooltipEnabled},get mouseEnter(){return n(rt).mouseEnter},get mouseLeave(){return n(rt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Et[n(rt).id]},set ref(to){Et[n(rt).id]=to}})});var xa=k(gl,2);{var Xr=mt=>{let rt=f(()=>!e.showControls),to=f(()=>Lt()?Te():Fe()),Lo=f(()=>Lt()?At():Tt());fc(mt,{get isHidden(){return n(rt)},isMobile:!1,get showDuration(){return n(Wo)},get position(){return n(to)},get duration(){return n(Lo)},get ref(){return Et.time},set ref(io){Et.time=io}})};V(xa,mt=>{n(wo)&&mt(Xr)})}var hl=k(xa,2);let _d=f(()=>!n(yn));No(hl,{className:"w-max",get disabled(){return n(_d)},get tooltipContent(){return qo},get tooltipVisible(){return e.showControls},get ref(){return Et.episodes},set ref(mt){Et.episodes=mt},children:(mt,rt)=>{var to=Me(),Lo=ue(to);{var io=bi=>{$c(bi,{get position(){return Fe()},get duration(){return Tt()},get timeCodes(){return Ti}})};V(Lo,bi=>{n(yn)&&bi(io)})}$(mt,to)},$$slots:{default:!0}}),S(Pn);var wa=k(Pn,2);yi(wa,21,()=>n(ct),mt=>mt.id,(mt,rt)=>{var to=Me(),Lo=ue(to);{var io=Gi=>{bp(Gi,{get buttonComponent(){return n(rt).buttonComponent},get buttonComponentProps(){return n(rt).buttonComponentProps},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(rt).disabled},get className(){return n(rt).className},get tooltipVisible(){return e.showControls},get ref(){return Et[n(rt).id]},set ref(js){Et[n(rt).id]=js}})},bi=Gi=>{let js=f(()=>!!n(rt).disabled);sv(Gi,{get id(){return n(rt).id},get testId(){return n(rt).testId},get icon(){return n(rt).icon},get ariaLabel(){return n(rt).ariaLabel},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(js)},get onClick(){return n(rt).onClick},get disableMouseupTooltipShow(){return n(rt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Et[n(rt).id]},set ref($d){Et[n(rt).id]=$d}})};V(Lo,Gi=>{Fb(n(rt))?Gi(io):Gi(bi,!1)})}$(mt,to)}),S(wa),S(jr),Xe(jr,mt=>pt(mt),()=>pt()),S(kr),Xe(kr,mt=>Rt(mt),()=>Rt());var bd=k(kr,2);{var _l=mt=>{wc(mt,{get ref(){return Et.interactiveTimeIndicator},set ref(rt){Et.interactiveTimeIndicator=rt}})};V(bd,mt=>{Br&&mt(_l)})}O((mt,rt)=>{$a=oe(kr,1,"wrapper-bottom s-14",null,$a,mt),qe(jr,rt),jr.inert=se()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ee()}),()=>`transform: translateY(${n(Es)()}px);`]),Rn(Pn,"clientWidth",mt=>N(ft,mt)),$(t,Yr),H(),o()}var ld=require("@vkontakte/videoplayer-core/es2015");var _v=require("@vkontakte/videoplayer-shared/es2015");var uw=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),pw=L('<img class="icon s-20" aria-hidden="true"/>'),fw={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 bv(t,e){Q(t,fw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,_v.noop),r=f(()=>o()===_v.noop),a=f(()=>n(r)||i()),l=q(!1),d=()=>{N(l,!0)},s=f(()=>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 p=Me(),v=ue(p);{var b=_=>{var x=uw();$(_,x)},y=_=>{var x=pw();O(()=>Re(x,"src",e.iconUrl)),ut("error",x,d),Da(x),$(_,x)};V(v,_=>{n(l)?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}})}var mw=Ie('<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 $v(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=mw();$(e,o)},$$slots:{default:!0}})}var Gb=require("@vkontakte/videoplayer-shared/es2015");function xp(t,e){B(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,Gb.noop),r=h(e,"ref",15,void 0),l=be().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>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 p=Me(),v=ue(p);{var b=_=>{$v(_,{})},y=_=>{ga(_,{get size(){return"24"}})};V(v,_=>{i()?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var vw=Ie('<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>'),gw=Ie('<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>'),hw=Ie('<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 yv(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=hw(),d=k(ue(l));{var s=m=>{var p=vw();$(m,p)},u=m=>{var p=gw();$(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}var Yb=require("@vkontakte/videoplayer-shared/es2015");function xv(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Yb.noop),a=j("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)=>{yv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var wv=require("@vkontakte/videoplayer-shared/es2015");var _w=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},bw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},$w=L("<div><!></div>"),yw=L("<div><!></div>"),xw=L("<div><!></div>"),ww=L("<!> <!> <!>",1),Sw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Cw=L('<div class="wrapper-middle s-12"><!></div>'),Tw=L("<div><!></div> <!> <div><!></div>",1),Iw=L('<div aria-hidden="true">·</div> <!>',1),Ew=L('<!> <!> <div><div><div class="controls mobile s-12" data-testid="bottom-controls"><div class="controls-group contain s-12"><!> <!> <!> <!></div> <div class="controls-group s-12"><!> <!> <!></div></div> <!></div></div> <!>',1),Pw={hash:"s-12",code:".wrapper-bottom.s-12{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-12>:where(.s-12){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-12{height:9px;padding:0 4px 4px}.wrapper-middle.s-12{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-12,.wrapper-top-right.s-12{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-12{right:8px;top:4px}.wrapper-top-left.s-12{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-12,.wrapper-middle-left-second.s-12,.wrapper-middle-right.s-12{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-12{left:12px}.wrapper-middle-left-second.s-12{left:64px}.wrapper-middle-right.s-12{right:12px}.controls.s-12{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-12,.controls-group.s-12{display:flex}.controls-group.contain.s-12{min-width:0}.controls-group.s-12 >:not(:first-child){margin-left:8px}.hidden.s-12{opacity:0;visibility:hidden}.controls-hidden.s-12{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-12{transition:none}.overlay-mobile.s-12{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-12,.wrapper-top-right.fullscreen.s-12{top:16px}.controls-wrapper.fullscreen.s-12{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-12{left:44px;top:12px}.wrapper-top-right.fullscreen.s-12{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-12{left:44px}.wrapper-middle-left-second.fullscreen.s-12{left:96px}.wrapper-middle-right.fullscreen.s-12{right:44px}.controls-wrapper.fullscreen.s-12{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Sv(t,e){var ln,dn;B(e,!0),Q(t,Pw);let[i,o]=De(),r=()=>w(Mi,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(oi,"$disabledControls$",i),l=()=>w(Mt,"$playbackState$",i),d=()=>w(on,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(bt,"$playerSize",i),m=()=>w(St,"$scrubbingInProgress",i),p=()=>w(Hi,"$chromecastState$",i),v=()=>w(Be,"$isPictureInPictureActive",i),b=()=>w(We,"$pictureInPictureType$",i),y=()=>w(fe,"$mobileNotReportControlHidden$",i),_=()=>w(vi,"$chromecastHidden",i),x=()=>w(pt,"$playerPhase",i),I=()=>w(Bt,"$pipHidden",i),T=()=>w(at,"$currentGridType$",i),R=()=>w(fi,"$vkLogoHidden",i),A=()=>w(li,"$volumeHidden",i),P=()=>w(Pe,"$isLive$",i),E=()=>w(Ct,"$settingsMenuVisible",i),z=()=>w(dt,"$isRewindableLive$",i),F=()=>w(Ve,"$isActiveLive$",i),U=()=>w(Ft,"$isAudioAvailable$",i),X=()=>w($e,"$muted$",i),ae=()=>w(le,"$volume$",i),Z=()=>w(gt,"$isInteractiveTime$",i),re=()=>w(ar,"$settingButtonRef$",i),J=()=>w(Ti,"$startedByKeyboard$",i),we=()=>w(Oo,"$isFullscreen",i),me=()=>w(Ut,"$additionalButtons$",i),ee=()=>w(Bi,"$autoplayNextToggleHidden",i),_e=()=>w(xi,"$crashed$",i),Ce=()=>w(bo,"$settingsHidden",i),ge=()=>w(gn,"$graphIsOpened$",i),pe=()=>w(Ei,"$adPosition",i),Qe=()=>w(nt,"$adDuration",i),G=()=>w(ti,"$position$",i),D=()=>w(Lt,"$duration$",i),Ge=h(e,"playerControlsWrapperRef",15,void 0),K=h(e,"playerControlsRef",15,void 0),se=h(e,"isAds",3,!1),xe=h(e,"logoTargetUrl",3,""),He=h(e,"isOneVideoPlaylist",3,!1),it=h(e,"customFullscreenSupported",3,!0),ne=be(),ce=yo(),Ne=Ot(),Le=ne.actions.internal.toggleMuted,et=ne.actions.internal.togglePlay,Ee=ne.actions.internal.pause,Te=ne.actions.internal.prevVideoClick,Fe=ne.actions.internal.nextVideoClick,At=ne.actions.internal.checkFullscreenSupport,Tt=(ln=ne.callbacks)==null?void 0:ln.onAudioDoesNotExistHint,Rt=(dn=ne.callbacks)==null?void 0:dn.onAudioDisabledHint,pt=ne.playerPhase,Lt=ne.state.duration$,ti=ne.state.positionWithScrubbing$,Mt=ne.state.playbackState$,Ft=ne.state.isAudioAvailable$,qt=ne.state.isAudioDisabled,Y=ne.state.isEnded$,Pe=ne.state.isLive$,le=ne.state.volume$,$e=ne.state.muted$,Ve=ne.state.isActiveLive$,dt=ne.state.isRewindableLive$,St=ne.ui.scrubbingInProgress,fe=ne.ui.mobileNotReportControlHidden$,{isActive$:Be,type$:We}=ce.pictureInPicture$,Ct=ne.ui.settingsMenu.visible$,Xt=ne.ui.settingsMenu.openedByBtnKeyboard$,It=ne.ui.controls,{volume:li,vkLogo:fi,autoplayNextToggle:Bi,pip:Bt,settings:bo,chromecast:vi}=ne.ui.hiddenControls,ot=ne.actions.internal.getVideoEpisodes(),Jt=ne.webApi.pictureInPictureApi,Hi=ne.state.chromecastState$,xi=ne.state.crashed$,oi=It.disabledControls$,Ti=ne.ui.startedByKeyboard$,at=ne.ui.currentGridType$,nt=ne.ads.duration,Ei=ne.ads.position,on=ne.ads.playbackState,Oo=ne.ui.isFullscreen,bt=ne.ui.playerSize,Ut=ne.ui.additionalButtonsDeprecated$,W=ne.actions.internal.getVideoElement,Nt=ne.actions.internal.replayInteractive,di=ne.state.isInteractive,gt=ne.state.isInteractiveTime$,ii=ne.state.showInteractiveGraph,$t=ne.state.showSeekToInteractive,st=ne.state.showPlayPrevChapter,Fi=ne.state.showInteractiveTimeIndicator,Mi=ce.seekToInteractiveDisabledTooltip$,gn=ce.graphIsOpened$,hn=ne.ui.controlBlocks,Vi=f(()=>j(ne.state.playPrevChapterDisabledTooltip)),Ui=f(()=>j(r())),Hn=f(()=>a().has("EPISODE_BUTTON")),xo=f(()=>a().has("GRAPH_BUTTON")),lo=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ai=f(()=>a().has("PLAY_BUTTON")),Bo=f(()=>a().has("REPLAY_BUTTON")),Ho=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),_n=f(()=>l()===ld.PlaybackState.PLAYING),Or=f(()=>d()==="paused"),Br=f(()=>s()&&!se()&&!di),Hr=f(()=>!s()||se()),ws=f(()=>e.showNextPrevButtons&&!se()&&e.prevButtonActive),Fr=f(()=>e.showNextPrevButtons&&!se()&&e.nextButtonActive),nr=f(()=>u().width>300),Ur=f(()=>u().width>400),bn=f(m),$n=f(()=>p()!==ld.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&!y()&&!di&&!_()),_r=f(()=>x()==="LiveWaitingStart"),br=f(()=>!!Jt&&p()!==ld.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(_r)||!n(_r))&&!n(bn)&&!di&&!I()),nn=q(!1);Dt(()=>{let Ue=Jt==null?void 0:Jt.info.isActive$.subscribe(Pt=>N(nn,Pt,!0));return()=>Ue==null?void 0:Ue.unsubscribe()});let $r=f(()=>!n(bn)&&ro(T(),"s")),yr=f(()=>!e.logoHidden&&u().width>350&&!R()),rr=f(()=>Ne.features.fullscreen&&At()&&!(v()&&b()===1)&&(di?it():!0)&&!n(bn)&&!n(nn)),Fn=f(()=>!A()&&!n(bn)),cs=f(()=>(!P()||se())&&u().width>260&&!n(bn)&&!(Ne.features.interactiveHideTime&&di)),Fo=f(()=>E()||e.showControls),xr=f(()=>!se()&&!P()&&!!(ot!=null&&ot.length)&&n(nr)&&!n(Hn)&&!n(bn)),zi=f(()=>!z()||!!F()),wr=f(()=>ii&&ro(T(),"m")),Un=f(()=>!U()||X()||ae()===0),vt=ui({}),ni=ui({}),Sr=(0,wv.debounceFn)(rd,260),zr=(0,wv.debounceFn)($p,260);Oe(()=>{u(),Z(),Sr(W(),It,vt,e.showControls),zr(W(),hn,ni,e.showControls)});let Wr=()=>ne.actions.internal.toggleChromecast();function zn(){return ht(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function sr(){fa({isAudioDisabled:qt,audioDisabledHintCallback:Rt,isAudioAvailable:U(),audioIsNotExistHintCallback:Tt,isAds:se()})&&Le()}let wo=q(""),Wn=(Ue,Pt)=>{if(!Ue){N(wo,j("tooltip_live"),!0);return}Pt&&Pt===ld.PlaybackState.PAUSED&&N(wo,j("tooltip_play"),!0)};Oe(()=>{Wn(n(zi),l())});let ar=de();Oe(()=>{re()&&jl(re(),E(),Xt)}),Oe(()=>{_p(Ti,J(),vt.playButton)});var Kn=Ew(),yn=ue(Kn);{var xn=Ue=>{var Pt=Sw(),mi=ue(Pt);let Wo;var To=k(mi,2);let Ko;Xe(To,ct=>ni.topLeft=ct,()=>ni==null?void 0:ni.topLeft);var qi=k(To,2);let Io;var Qn=C(qi);yi(Qn,1,me,({iconUrl:ct,ariaLabel:ci,testId:ko,onClick:Si,tooltip:In})=>ct,(ct,ci)=>{let ko=()=>n(ci).iconUrl,Si=()=>n(ci).ariaLabel,In=()=>n(ci).testId,En=()=>n(ci).onClick,Is=()=>n(ci).tooltip,Es=f(()=>{var Qi;return(Qi=Si())!=null?Qi:Is()});bv(ct,{get iconUrl(){return ko()},get ariaLabel(){return n(Es)},get testId(){return In()},get onClick(){return En()}})});var Er=k(Qn,2);{var Eo=ct=>{Tc(ct,{get ref(){return vt.autoplayNextToggle},set ref(ci){vt.autoplayNextToggle=ci}})};V(Er,ct=>{e.showAutoplayNext&&!He()&&!ee()&&ct(Eo)})}var po=k(Er,2);{var Cn=ct=>{bc(ct,{isMobile:!0,click:Wr,get state(){return p()},get ref(){return vt.chromecast},set ref(ci){vt.chromecast=ci}})};V(po,ct=>{n($n)&&ct(Cn)})}var qo=k(po,2);{var Gn=ct=>{xv(ct,{click:zn,get isPictureInPictureActive(){return v()},get ref(){return vt.pip},set ref(ci){vt.pip=ci}})};V(qo,ct=>{n(br)&&ct(Gn)})}var Qr=k(qo,2);{var Gr=ct=>{td(ct,{get ref$(){return ar}})};V(Qr,ct=>{_e()&&!Ce()&&ct(Gr)})}var Yn=k(Qr,2);{var Je=ct=>{hc(ct,{get click(){return Ee},get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(ci){vt.vkLogo=ci}})};V(Yn,ct=>{n(yr)&&ct(Je)})}S(qi),Xe(qi,ct=>ni.topRight=ct,()=>ni==null?void 0:ni.topRight);var ei=k(qi,2);let wi;var Po=C(ei);{var Tn=ct=>{let ci=f(()=>Te.bind(null,!0));il(ct,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(ko){vt.prevButton=ko}})};V(Po,ct=>{n(ws)&&ct(Tn)})}var jn=k(Po,2);{var Qo=ct=>{ad(ct,{get disabled(){return n(Ai)},get click(){return et},isMobile:!0,get isPlaying(){return n(_n)},get ref(){return vt.playButton},set ref(ci){vt.playButton=ci}})};V(jn,ct=>{n(Hr)&&ct(Qo)})}var dr=k(jn,2);{var ps=ct=>{sd(ct,{get disabled(){return n(Bo)},get click(){return et},isMobile:!0,get ref(){return vt.replayButton},set ref(ci){vt.replayButton=ci}})};V(dr,ct=>{n(Br)&&ct(ps)})}var Pr=k(dr,2);{var Ts=ct=>{let ci=f(()=>Fe.bind(null,!0));il(ct,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(ko){vt.nextButton=ko}})};V(Pr,ct=>{n(Fr)&&ct(Ts)})}S(ei),Xe(ei,ct=>ni.middle=ct,()=>ni==null?void 0:ni.middle);var Gs=k(ei,2);{var ba=ct=>{var ci=ww(),ko=ue(ci);{var Si=Qi=>{var ki=$w();let he;ki.__click=[_w,Ho,e,Vi];var yt=C(ki);let ri=f(()=>!e.showControls);Cc(yt,{get hidden(){return n(ri)},get disabled(){return n(Ho)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(Zt){vt.playPrevChapterButton=Zt}}),S(ki),O(Zt=>he=oe(ki,1,"wrapper-middle-left s-12",null,he,Zt),[()=>({fullscreen:we(),hidden:!e.showControls})]),$(Qi,ki)};V(ko,Qi=>{st&&Qi(Si)})}var In=k(ko,2);{var En=Qi=>{var ki=yw();let he;var yt=C(ki);let ri=f(()=>!e.showControls&&!ge());Ec(yt,{get hidden(){return n(ri)},get disabled(){return n(xo)},get click(){return gn.toggle},get graphIsOpened(){return ge()},get ref(){return vt.interactiveGraphButton},set ref(Zt){vt.interactiveGraphButton=Zt}}),S(ki),O(Zt=>he=oe(ki,1,Wd(st?"wrapper-middle-left-second":"wrapper-middle-left"),"s-12",he,Zt),[()=>({fullscreen:we(),hidden:!e.showControls&&!ge()})]),$(Qi,ki)};V(In,Qi=>{n(wr)&&Qi(En)})}var Is=k(In,2);{var Es=Qi=>{var ki=xw();let he;ki.__click=[bw,lo,e,Ui];var yt=C(ki);let ri=f(()=>!e.showControls);Ic(yt,{get hidden(){return n(ri)},get disabled(){return n(lo)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(Zt){vt.seekToInteractiveButton=Zt}}),S(ki),O(Zt=>he=oe(ki,1,"wrapper-middle-right s-12",null,he,Zt),[()=>({fullscreen:we(),hidden:!e.showControls})]),$(Qi,ki)};V(Is,Qi=>{$t&&Qi(Es)})}$(ct,ci)};V(Gs,ct=>{di&&!m()&&ct(ba)})}O((ct,ci,ko,Si)=>{Wo=oe(mi,1,"overlay-mobile s-12",null,Wo,ct),Ko=oe(To,1,"wrapper-top-left s-12",null,Ko,ci),Io=oe(qi,1,"wrapper-top-right s-12",null,Io,ko),wi=oe(ei,1,"wrapper-middle s-12",null,wi,Si)},[()=>({hidden:!n(Fo)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(Ue,Pt)};V(yn,Ue=>{se()||Ue(xn)})}var wn=k(yn,2);{var rn=Ue=>{var Pt=Tw(),mi=ue(Pt);let Wo;var To=C(mi);xp(To,{get muted(){return X()},click:sr,get ref(){return vt.volume},set ref(Eo){vt.volume=Eo}}),S(mi);var Ko=k(mi,2);{var qi=Eo=>{var po=Cw(),Cn=C(po);let qo=f(()=>!n(Or));ad(Cn,{get disabled(){return n(Ai)},get click(){return et},isMobile:!0,get isPlaying(){return n(qo)},get ref(){return vt.playButton},set ref(Gn){vt.playButton=Gn}}),S(po),$(Eo,po)};V(Ko,Eo=>{n(Or)&&Eo(qi)})}var Io=k(Ko,2);let Qn;var Er=C(Io);kc(Er,{get position(){return pe()},get duration(){return Qe()}}),S(Io),O((Eo,po)=>{Wo=oe(mi,1,"wrapper-top-right s-12",null,Wo,Eo),Qn=oe(Io,1,"wrapper-bottom ads-timeline-mobile s-12",null,Qn,po)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),$(Ue,Pt)};V(wn,Ue=>{se()&&d()!=="inactive"&&Ue(rn)})}var Wi=k(wn,2);let eo;var sn=C(Wi);let lr;var Cr=C(sn),Sn=C(Cr),Tr=C(Sn);{var ft=Ue=>{No(Ue,{get disabled(){return n(Bo)},get ref(){return vt.replayButton},set ref(Pt){vt.replayButton=Pt},children:(Pt,mi)=>{sd(Pt,{get disabled(){return n(Bo)},get click(){return Nt}})},$$slots:{default:!0}})};V(Tr,Ue=>{di&&Ue(ft)})}var Et=k(Tr,2);{var co=Ue=>{No(Ue,{get ref(){return vt.liveButton},set ref(Pt){vt.liveButton=Pt},children:(Pt,mi)=>{Pc(Pt,{get isLiveActive(){return n(zi)},isMobile:!0,get ariaLabel(){return n(wo)}})},$$slots:{default:!0}})};V(Et,Ue=>{!se()&&P()&&Ue(co)})}var Uo=k(Et,2);{var So=Ue=>{let Pt=f(()=>se()?pe():G()),mi=f(()=>se()?Qe():D()),Wo=f(()=>!e.showControls);fc(Ue,{get showDuration(){return n(Ur)},get position(){return n(Pt)},get duration(){return n(mi)},isMobile:!0,get isHidden(){return n(Wo)},get ref(){return vt.time},set ref(To){vt.time=To}})};V(Uo,Ue=>{n(cs)&&Ue(So)})}var an=k(Uo,2);let uo=f(()=>!n(xr));No(an,{className:"w-max",get disabled(){return n(uo)},get ref(){return vt.episodes},set ref(Ue){vt.episodes=Ue},children:(Ue,Pt)=>{var mi=Me(),Wo=ue(mi);{var To=Ko=>{var qi=Iw(),Io=k(ue(qi),2);$c(Io,{get position(){return G()},get duration(){return D()},get timeCodes(){return ot}}),$(Ko,qi)};V(Wo,Ko=>{n(xr)&&Ko(To)})}$(Ue,mi)},$$slots:{default:!0}}),S(Sn),Xe(Sn,Ue=>ni.bottomLeft=Ue,()=>ni==null?void 0:ni.bottomLeft);var Co=k(Sn,2),Pi=C(Co);{var Kr=Ue=>{No(Ue,{get ref(){return vt.volume},set ref(Pt){vt.volume=Pt},children:(Pt,mi)=>{xp(Pt,{get muted(){return n(Un)},click:sr})},$$slots:{default:!0}})};V(Pi,Ue=>{n(Fn)&&Ue(Kr)})}var qn=k(Pi,2);{var Ss=Ue=>{No(Ue,{get ref(){return vt.settings},set ref(Pt){vt.settings=Pt},children:(Pt,mi)=>{td(Pt,{get ref$(){return ar}})},$$slots:{default:!0}})};V(qn,Ue=>{n($r)&&Ue(Ss)})}var Ki=k(qn,2);{var Cs=Ue=>{No(Ue,{get ref(){return vt.fullscreen},set ref(Pt){vt.fullscreen=Pt},children:(Pt,mi)=>{gc(Pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};V(Ki,Ue=>{n(rr)&&Ue(Cs)})}S(Co),Xe(Co,Ue=>ni.bottomRight=Ue,()=>ni==null?void 0:ni.bottomRight),S(Cr),Xe(Cr,Ue=>K(Ue),()=>K());var us=k(Cr,2);let Ir=f(()=>!e.showControls);nl(us,{get isHidden(){return n(Ir)},get isAds(){return se()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return vt.timeline},set ref(Ue){vt.timeline=Ue}}),S(sn),Xe(sn,Ue=>ni.bottom=Ue,()=>ni==null?void 0:ni.bottom),S(Wi),Xe(Wi,Ue=>Ge(Ue),()=>Ge());var zo=k(Wi,2);{var qr=Ue=>{wc(Ue,{get ref(){return vt.interactiveTimeIndicator},set ref(Pt){vt.interactiveTimeIndicator=Pt}})};V(zo,Ue=>{Fi&&Ue(qr)})}O((Ue,Pt)=>{eo=oe(Wi,1,"wrapper-bottom mobile s-12",null,eo,Ue),lr=oe(sn,1,"controls-wrapper s-12",null,lr,Pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),$(t,Kn),H(),o()}Ye(["click"]);function Ac(t,e){B(e,!0);let[i,o]=De(),r=()=>w(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),b=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,Cv.noop),_=h(e,"onDisabledSeekToInteractiveClick",3,Cv.noop),I=be().ui.isMobile,T=q(!1);Dt(()=>{let E=setTimeout(()=>N(T,!0),0);return()=>clearTimeout(E)});var R=Me(),A=ue(R);{var P=E=>{var z=Me(),F=ue(z);{var U=ae=>{Sv(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 p()},get customFullscreenSupported(){return v()},get endScreenShown(){return b()},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(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=ae=>{hv(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 m()},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(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(F,ae=>{r()?ae(U):ae(X,!1)})}$(E,z)};V(A,E=>{n(T)&&E(P)})}$(t,R),H(),o()}var kw=Ie('<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 Lc(t,e){B(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${mn(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=kw();$(r,l)},$$slots:{default:!0}}),H()}var Aw=Ie('<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 Tv(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`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=Aw();$(a,d)},$$slots:{default:!0}}),H()}var Lw=L('<span class="hot-key-helpers-text s-1a"> </span>'),Mw=L('<div data-testid="hotkey-helper-icon" class="s-1a"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Vw=L("<div><!></div>"),Rw={hash:"s-1a",code:'.hot-key-helpers-container.s-1a{align-items:center;animation:s-1a-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-1a{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-1a{left:calc(75% - 100px)}.hot-key-helpers-text.s-1a{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-1a{animation:s-1a-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-1a-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-1a-fadeOut{0%{opacity:1}to{opacity:0}}'};function Iv(t,e){B(e,!0),Q(t,Rw);let[i,o]=De(),r=()=>w(e.data,"$data",i),a=be(),{features:l}=Ot(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{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 b=Vw();let y;var _=C(b);{var x=I=>{var T=Mw(),R=ue(T),A=C(R);{var P=K=>{let se=f(()=>n(p)==="BACKWARD_SEEK");Tv(K,{get reversed(){return n(se)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(P)})}var E=k(A,2);{var z=K=>{Ws(K,{get size(){return"48"},shadow:!0})};V(E,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(z)})}var F=k(E,2);{var U=K=>{Dn(K,{get size(){return"48"},shadow:!0})};V(F,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(U)})}var X=k(F,2);{var ae=K=>{Sc(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(ae)})}var Z=k(X,2);{var re=K=>{va(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(re)})}var J=k(Z,2);{var we=K=>{va(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(we)})}var me=k(J,2);{var ee=K=>{let se=f(()=>n(p)==="RATE_DOWN");Lc(K,{get size(){return"48"},get reversed(){return n(se)},testId:"rate-change-icon",shadow:!0})};V(me,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var _e=k(me,2);{var Ce=K=>{let se=f(()=>n(p)==="EPISODE_PREV");ha(K,{get size(){return"48"},get reversed(){return n(se)},shadow:!0})};V(_e,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(Ce)})}var ge=k(_e,2);{var pe=K=>{ga(K,{get size(){return"48"},volume:0,shadow:!0})};V(ge,K=>{n(p)==="MUTE"&&K(pe)})}var Qe=k(ge,2);{var G=K=>{ga(K,{get size(){return"48"},volume:1,shadow:!0})};V(Qe,K=>{n(p)==="VOLUME"&&K(G)})}S(R);var D=k(R,2);{var Ge=K=>{var se=Lw(),xe=C(se,!0);S(se),O(()=>ve(xe,n(v))),$(K,se)};V(D,K=>{n(v)&&K(Ge)})}O(()=>Re(R,"data-type",n(p))),$(I,T)};V(_,I=>{!n(s)&&n(p)&&I(x)})}S(b),O(I=>y=oe(b,1,"hot-key-helpers-container s-1a",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),$(t,b),H(),o()}var Nw=(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}},Dw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ow=L('<div tabindex="0" role="button"><div class="button-block s-m" aria-hidden="true"><div class="button-row s-m"><div class="button button-up s-m"><!></div> <div class="button button-right s-m"><!></div></div> <div class="button-row s-m"><div class="button button-left s-m"><!></div> <div class="button button-down s-m"><!></div></div></div></div>'),Bw={hash:"s-m",code:".immersive-controls.s-m{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-m{left:20px;top:50px}.button-block.s-m{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-m{display:flex;flex-direction:row;position:relative}.button.s-m{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-m svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-m svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-m svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-m svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-m svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-m:hover svg{opacity:1}"};function Mc(t,e){B(e,!0),Q(t,Bw);let i=h(e,"isShifted",3,!1),o=be(),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=j("aria_label_spherical_control");var p=Ow();let v;p.__keydown=[Nw,r,a,l,s,d],p.__keyup=[Dw,r,u];var b=C(p),y=C(b),_=C(y);_.__mousedown=a,_.__mouseup=u;var x=C(_);Nr(x,{direction:"up",useBtnColor:!0}),S(_);var I=k(_,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Nr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=k(y,2),A=C(R);A.__mousedown=s,A.__mouseup=u;var P=C(A);Nr(P,{direction:"up",useBtnColor:!0}),S(A);var E=k(A,2);E.__mousedown=l,E.__mouseup=u;var z=C(E);Nr(z,{direction:"up",useBtnColor:!0}),S(E),S(R),S(b),S(p),O(F=>{v=oe(p,1,"immersive-controls s-m",null,v,F),Re(p,"aria-label",m)},[()=>({"m-shifted":i()})]),ut("mouseleave",_,u),ut("mouseleave",I,u),ut("mouseleave",A,u),ut("mouseleave",E,u),$(t,p),H()}Ye(["keydown","keyup","mousedown","mouseup"]);var qs=require("@vkontakte/videoplayer-shared/es2015");var jb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var wp=class{constructor(){this.flickeringTimeout=jb(1e3);this.subscriptions=new qs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new qs.ValueSubject([]);this.captionsPrepared$=new qs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,qs.filter)(()=>this.isEnabled()),(0,qs.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 Hw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Fw=L('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),Uw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),zw=L('<div><span class="caption s-c"><!></span></div>'),Ww=L("<div><!></div>"),Kw={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 al(t,e){B(e,!0),Q(t,Kw);let[i,o]=De(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w(_,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w(b,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=be(),p=Ot(),v=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),R=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=q(null);Oe(()=>{var Z,re,J;(Z=n(P))==null||Z.setIsAuto(n(I)),(re=n(P))==null||re.setIsLive(n(T)),(J=n(P))==null||J.setCaptions(e.captions)});let E=q(ui([[]]));Dt(()=>{N(P,new wp().subscribe(),!0);let Z=n(P).captionsPrepared$.subscribe(re=>{N(E,re,!0)});return()=>{var re;(re=n(P))==null||re.destroy(),Z.unsubscribe()}}),Dt(()=>{if(n(I)){let Z=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else b.set(!1)});let z=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=Ww();let U;var X=C(F);{var ae=Z=>{var re=zw();let J;var we=C(re),me=C(we);{var ee=Ce=>{var ge=Hw(),pe=C(ge),Qe=C(pe,!0);S(pe),S(ge),O(G=>{var D;qe(pe,`font-size: ${(D=n(A))!=null?D:""}px`),ve(Qe,G)},[()=>j("subtitles_auto_caption")]),$(Ce,ge)},_e=(Ce,ge)=>{{var pe=G=>{var D=Me(),Ge=ue(D);yi(Ge,17,()=>n(E),Ud,(K,se)=>{var xe=Fw(),He=C(xe);yi(He,21,()=>n(se),({value:it,timeAppeared:ne})=>ne,(it,ne)=>{let ce=()=>n(ne).value,Ne=()=>n(ne).timeAppeared;var Le=Me(),et=ue(Le);{var Ee=Te=>{var Fe=_s();O(()=>ve(Fe,ce())),$(Te,Fe)};V(et,Te=>{(!Ne()||Ne()<=e.position)&&Te(Ee)})}$(it,Le)}),S(He),S(xe),O(()=>{var it;return qe(He,`font-size: ${(it=n(A))!=null?it:""}px`)}),$(K,xe)}),$(G,D)},Qe=G=>{var D=Me(),Ge=ue(D);yi(Ge,17,()=>e.captions,({value:K})=>K,(K,se)=>{let xe=()=>n(se).value;var He=Uw(),it=C(He),ne=C(it,!0);S(it),S(He),O(()=>{var ce;qe(it,`font-size: ${(ce=n(A))!=null?ce:""}px`),ve(ne,xe())}),$(K,He)}),$(G,D)};V(Ce,G=>{var D;n(I)&&((D=n(E))!=null&&D.length)?G(pe):G(Qe,!1)},ge)}};V(me,Ce=>{n(I)&&s()?Ce(ee):Ce(_e,!1)})}S(we),S(re),O(Ce=>{var ge;J=oe(re,1,"subtitles-caption s-c",null,J,Ce),qe(re,`--subtitles-caption-margin: ${(ge=n(z))!=null?ge:""}%`)},[()=>({mobile:u()})]),$(Z,re)};V(X,Z=>{var re;(e.captions.length||(re=n(E))!=null&&re.length)&&Z(ae)})}S(F),O(Z=>U=oe(F,1,"subtitles-container s-c",null,U,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(t,F),H(),o()}var Xb=require("@vkontakte/videoplayer-core/es2015");var qw=L('<div class="text s-j"> </div>'),Qw=L('<div><div class="icon_wrapper s-j"><!></div> <!></div>'),Gw={hash:"s-j",code:".wrapper.s-j{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-j{background-size:cover}.icon_wrapper.s-j{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-j{margin-top:20px}"};function Vc(t,e){B(e,!0),Q(t,Gw);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Ot();var r=Qw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);_c(d,{get size(){return"48"},get iconState(){return Xb.ChromecastState.CONNECTED}}),S(l);var s=k(l,2);{var u=m=>{var p=qw(),v=C(p);S(p),O(()=>{var b;return ve(v,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),$(m,p)};V(s,m=>{i()&&m(u)})}S(r),O(m=>{a=oe(r,1,"wrapper s-j",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})]),$(t,r),H()}Ye(["contextmenu","click","dblclick"]);var Yw=Ie('<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 Ev(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Yw();$(e,o)},$$slots:{default:!0}})}var jw=L('<div class="container s-4"><!></div>'),Xw={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 ll(t){Q(t,Xw);var e=jw(),i=C(e);Ev(i,{}),S(e),$(t,e)}var Zw=L('<div class="playButton s-b" tabindex="0" role="button"><div class="playButtonBackground s-b"></div> <!></div>'),Jw=L('<div data-testid="unstarted-thumb"><!></div>'),eS={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 dl(t,e){B(e,!0),Q(t,eS);let i=h(e,"iconVisible",3,!0),o=be(),r=Ot(),a=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=b=>{var _;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=b=>{var y,_;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,b)};var u=Jw();let m;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var p=C(u);{var v=b=>{var y=Zw();y.__keydown=d;var _=k(C(y),2);Dn(_,{get size(){return"48"}}),S(y),O(()=>Re(y,"aria-label",l)),$(b,y)};V(p,b=>{i()&&b(v)})}return S(u),O(b=>{m=oe(u,1,"container s-b",null,m,b),qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),H({handlePressKey:d,handleClick:s})}Ye(["click","contextmenu","keydown"]);var tS=L('<span class="text s-1b"> </span>'),iS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},oS=L('<a target="_blank" class="link s-1b"><!></a>'),nS=(t,e)=>e.onTitleClicked(),rS=L("<button><!></button>"),sS=L('<div data-testid="video_title"><!></div>'),aS={hash:"s-1b",code:".title.s-1b{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-1b,.title.s-1b{color:var(--white)}.link.s-1b{pointer-events:auto;text-decoration:none}.link.s-1b:hover{text-decoration:underline}.text.s-1b{pointer-events:auto}.size-sm.s-1b{font-size:14px;font-weight:500;line-height:18px}.hidden.s-1b{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Pv(t,e){B(e,!0),Q(t,aS);let i=b=>{var y=tS(),_=C(y,!0);S(y),Xe(y,x=>l(x),()=>l()),O(()=>ve(_,o())),ut("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),ut("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),$(b,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=q(void 0);Dt(()=>{var y;requestAnimationFrame(()=>{var _;(_=e.onVisibilityChanged)==null||_.call(e,!0)});function b(_){var x;_.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var _;return(_=n(d))==null?void 0:_.removeEventListener("transitionend",b)}});var s=sS();let u;var m=C(s);{var p=b=>{var y=oS();y.__click=[iS,e];var _=C(y);i(_),S(y),O(()=>Re(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var _=I=>{var T=rS();T.__click=[nS,e];var R=C(T);i(R),S(T),$(I,T)},x=I=>{i(I)};V(b,I=>{e.onTitleClicked?I(_):I(x,!1)},y)}};V(m,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),Xe(s,b=>N(d,b),()=>n(d)),O(b=>u=oe(s,1,`title size-${a()}`,"s-1b",u,b),[()=>({hidden:r()})]),$(t,s),H()}Ye(["click"]);var Zb=require("@vkontakte/videoplayer-shared/es2015");var lS=L('<div class="timer__cell cell s-y"><span class="cell__value s-y"> </span> <span class="cell__unit s-y"> </span></div> <span class="timer__points s-y"> </span>',1),dS=L('<div class="timer__cell cell s-y"><span class="cell__value s-y"> </span> <span class="cell__unit s-y"> </span></div> <span class="timer__points s-y"> </span>',1),cS=L('<div class="timer__cell cell s-y"><span class="cell__value s-y"> </span> <span class="cell__unit s-y"> </span></div> <span class="timer__points s-y"> </span>',1),uS=L('<div class="timer__cell cell s-y"><span class="cell__value s-y"> </span> <span class="cell__unit s-y"> </span></div>'),pS=L("<div><!> <!> <!> <!></div>"),fS={hash:"s-y",code:".timer__container.s-y{align-items:flex-start;display:flex;justify-content:center}.cell.s-y{align-items:center;display:flex;flex-direction:column}.cell__value.s-y{font-size:48px;font-weight:600;line-height:1.2}.small.s-y .cell__value:where(.s-y){font-size:24px}.cell__unit.s-y{font-size:14px;font-weight:400;line-height:1.2}.small.s-y .cell__unit:where(.s-y){font-size:12px}.timer__points.s-y{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-y .timer__points:where(.s-y){font-size:20px}"};function kv(t,e){B(e,!0),Q(t,fS);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*m(F)}px`,v=F=>{let U=Math.floor(F/86400);U&&(F-=U*86400,N(i,u(U),!0));let X=Math.floor(F/3600);N(o,u(X),!0);let ae=Math.floor(F/60)%60;N(r,u(ae),!0);let Z=F%60;N(a,u(Z),!0)},b=()=>{let F=Math.floor(Date.now()/1e3),U=e.startTime-F;v(U),U>=1?l=requestAnimationFrame(b):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(b)}),fn(()=>{cancelAnimationFrame(l)});var y=pS();let _;var x=C(y);{var I=F=>{var U=lS(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=qe(X,"",ae,{width:_e}),ve(re,n(i)),ve(we,Ce),ve(ee,ge)},[()=>p(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),$(F,U)};V(x,F=>{n(i)&&F(I)})}var T=k(x,2);{var R=F=>{var U=dS(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=qe(X,"",ae,{width:_e}),ve(re,n(o)),ve(we,Ce),ve(ee,ge)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),$(F,U)};V(T,F=>{n(o)&&F(R)})}var A=k(T,2);{var P=F=>{var U=cS(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=qe(X,"",ae,{width:_e}),ve(re,n(r)),ve(we,Ce),ve(ee,ge)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),$(F,U)};V(A,F=>{n(r)&&F(P)})}var E=k(A,2);{var z=F=>{var U=uS();let X;var ae=C(U),Z=C(ae,!0);S(ae);var re=k(ae,2),J=C(re,!0);S(re),S(U),O((we,me)=>{X=qe(U,"",X,{width:we}),ve(Z,n(a)),ve(J,me)},[()=>p(n(a)),()=>j("waiting_live_second_value")]),$(F,U)};V(E,F=>{n(a)&&F(z)})}S(y),O(F=>_=oe(y,1,"timer__container s-y",null,_,F),[()=>({small:e.isSmallSize})]),$(t,y),H()}var mS=L('<div class="waiting s-k"><span> </span></div>'),vS=L('<div class="upcoming-timer timer s-k"><span> </span> <!></div>'),gS=L('<div class="waiting-container s-k"><!></div>'),hS={hash:"s-k",code:'.waiting-container.s-k{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-k,.waiting-container.s-k:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-k:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-k{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-k{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-k{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-k{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-k{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-k{font-size:15px}.medium.s-k{font-size:17px}'};function Rc(t,e){B(e,!0),Q(t,hS);let i=h(e,"startTime",3,0),o=f(()=>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=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{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,Zb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Oe(()=>{n(s),n(d),n(o),p==null||p()}),fn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=gS();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 b=C(v);{var y=x=>{var I=mS(),T=C(I);let R;var A=C(T,!0);S(T),S(I),Xe(I,P=>N(r,P),()=>n(r)),O((P,E)=>{R=oe(T,1,"waiting__title s-k",null,R,P),ve(A,E)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_upcoming_title")]),$(x,I)},_=x=>{var I=vS(),T=C(I);let R;var A=C(T,!0);S(T);var P=k(T,2);let E=f(()=>n(u)||n(m)),z=f(()=>i()||0);kv(P,{get isSmallSize(){return n(E)},get startTime(){return n(z)},onTimerOver:()=>N(o,!0)}),S(I),Xe(I,F=>N(a,F),()=>n(a)),O((F,U)=>{R=oe(T,1,"timer__title s-k",null,R,F),ve(A,U)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_timer_title")]),$(x,I)};V(b,x=>{n(o)?x(y):x(_,!1)})}S(v),O(()=>qe(v,`background-image: url(${e.thumbUrl})`)),Rn(v,"clientWidth",x=>N(d,x)),Rn(v,"clientHeight",x=>N(s,x)),$(t,v),H()}Ye(["contextmenu","click"]);var _S=L('<div class="waiting-container s-n"><div class="waiting-caption s-n"><!> <p class="waiting-title s-n"> </p></div></div>'),bS={hash:"s-n",code:'.waiting-container.s-n{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-n,.waiting-container.s-n:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-n:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-n{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-n{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function cl(t,e){B(e,!0),Q(t,bS);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=_S();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);Xa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{qe(a,`background-image: url('${i()}')`),ve(u,n(r))}),$(t,a),H()}Ye(["contextmenu","click"]);var $S=Ie('<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 Av(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=$S();$(e,o)},$$slots:{default:!0}})}var yS=L('<div class="select-icon s-1x"><!></div>'),xS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(t){Q(t,xS);var e=yS(),i=C(e);Av(i,{}),S(e),$(t,e)}var wS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},SS=(t,e)=>{Xl(t,()=>e.item.selectItem(e.item.value))},CS=L("<p> </p>"),TS=L('<p class="sublabel s-1u"> </p>'),IS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),ES={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 Lv(t,e){B(e,!0),Q(t,ES);let i=h(e,"isMobile",3,!1);var o=IS();let r;o.__click=[wS,e],o.__keydown=[SS,e];var a=C(o);{var l=y=>{Nc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=C(d);{var m=y=>{var _=Me(),x=ue(_);Di(x,()=>e.item.valueComponent,(I,T)=>{T(I,rs(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(y,_)},p=y=>{var _=CS();let x;var I=C(_,!0);S(_),O(T=>{var R;x=oe(_,1,"label s-1u",null,x,T),ve(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),$(y,_)};V(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=k(u,2);{var b=y=>{var _=TS(),x=C(_,!0);S(_),O(()=>ve(x,e.item.sublabel)),$(y,_)};V(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),O((y,_,x)=>{var I;r=oe(o,1,"item",null,r,y),Re(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Re(o,"aria-label",_),Re(o,"data-testid",e.item.dataTestid),s=oe(d,1,"menu-item-value s-1u",null,s,x),Re(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()})]),$(t,o),H()}Ye(["click","keydown"]);var PS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Mv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>_=>op(_,n(r)));var l=PS();let d;l.__click=function(..._){var x;(x=n(r))==null||x.apply(this,_)},l.__keydown=function(..._){var x;(x=n(a))==null||x.apply(this,_)};var s=C(l);{var u=_=>{Nc(_,{})};V(s,_=>{e.item.selected&&_(u)})}var m=k(s,2);let p;var v=C(m);{var b=_=>{var x=Me();let I=f(()=>e.item.valueComponent);var T=ue(x);Di(T,()=>n(I),(R,A)=>{A(R,rs(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(_,x)},y=_=>{var x=_s();O(()=>ve(x,e.item.label)),$(_,x)};V(v,_=>{e.item.valueComponent?_(b):_(y,!1)})}S(m),S(l),Xe(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),O((_,x)=>{var I;d=oe(l,1,"item",null,d,_),Re(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Re(l,"data-testid",e.item.id),p=oe(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}Ye(["click","keydown"]);var ds={"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 AS=(t,e)=>{vb(t,e.returnFromSubMenu,e.closeSettingsMenu)},LS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},MS=(t,e)=>{ac(t)&&(Dr(t),e.returnFromSubMenu())},VS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),RS={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 Rv(t,e){B(e,!0),Q(t,RS);let[i,o]=De(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Dt(()=>{let Z=e.items.findIndex(re=>re.selected);u().children[Z+1].focus()});let m=be(),p=m.ui.isFullscreen,v=m.ui.playerSize,b=q(void 0),y=q(0),_=q(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(_)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=VS();let R;var A=C(T);let P;A.__keydown=[AS,e];var E=C(A);let z;E.__click=[LS,e],E.__keydown=[MS,e];var F=C(E);Nr(F,{direction:"left"});var U=k(F,2),X=C(U,!0);S(U),S(E),Xe(E,Z=>N(b,Z),()=>n(b));var ae=k(E,2);yi(ae,17,()=>e.items,Ud,(Z,re)=>{var J=Me(),we=ue(J);{var me=_e=>{Lv(_e,{get item(){return n(re)},get isMobile(){return l()}})},ee=(_e,Ce)=>{{var ge=pe=>{Mv(pe,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,pe=>{n(re).type==="OPEN_SUB_MENU"&&pe(ge)},Ce)}};V(we,_e=>{n(re).type==="SELECT_VALUE"?_e(me):_e(ee,!1)})}$(Z,J)}),S(A),Xe(A,Z=>u(Z),()=>u()),S(T),O((Z,re,J)=>{R=oe(T,1,"sub-menu menu s-1l",null,R,Z),Re(T,"data-testid",`${e.id}-sub-menu`),qe(T,`min-width: ${n(I)}px`),P=oe(A,1,"items s-1l",null,P,re),qe(A,n(x)),z=oe(E,1,"item header back s-1l",null,z,J),Re(E,"aria-label",s()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Rn(E,"clientWidth",Z=>N(y,Z)),Rn(E,"clientHeight",Z=>N(_,Z)),$(t,T),H(),o()}Ye(["keydown","click"]);var e$=require("@vkontakte/videoplayer-shared/es2015");var NS=(t,e)=>op(t,e()),DS=(t,e)=>{t.stopPropagation(),e()()},OS=L('<div class="value s-1k"> </div>'),BS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),HS={hash:"s-1k",code:".value.s-1k{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Nv(t,e){B(e,!0),Q(t,HS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,e$.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=BS();let s;d.__click=[DS,o],d.__keydown=[NS,o];var u=C(d),m=C(u);{var p=T=>{ol(T,{get icon(){return e.icon}})},v=T=>{var R=Me();let A=f(()=>e.icon);var P=ue(R);Di(P,()=>n(A),(E,z)=>{z(E,rs(a))}),$(T,R)};V(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var b=k(u,2),y=C(b,!0);S(b);var _=k(b,2);{var x=T=>{var R=Me();let A=f(r);var P=ue(R);Di(P,()=>n(A),(E,z)=>{z(E,{})}),$(T,R)},I=T=>{var R=OS(),A=C(R,!0);S(R),O(()=>ve(A,e.value)),$(T,R)};V(_,T=>{r()?T(x):T(I,!1)})}S(d),Xe(d,T=>l(T),()=>l()),O(T=>{s=oe(d,1,"item",null,s,T),Re(d,"aria-label",e.ariaLabel),Re(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,d),H()}Ye(["click","keydown"]);var Dv=require("@vkontakte/videoplayer-shared/es2015");var FS=(t,e)=>{Xl(t,()=>e())},US=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),zS=L('<img class="icon" aria-hidden="true"/>'),WS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),KS={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Ov(t,e){B(e,!0),Q(t,KS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Dv.noop),r=h(e,"closeSettings",3,Dv.noop),a=q(!1),l=()=>{N(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=WS();let u;s.__click=d,s.__keydown=[FS,d];var m=C(s),p=C(m);{var v=x=>{var I=Me(),T=ue(I);{var R=P=>{var E=US();$(P,E)},A=P=>{var E=zS();O(()=>Re(E,"src",e.icon)),ut("error",E,l),Da(E),$(P,E)};V(T,P=>{n(a)?P(R):P(A,!1)})}$(x,I)},b=x=>{var I=Me();let T=f(()=>e.icon);var R=ue(I);Di(R,()=>n(T),(A,P)=>{P(A,{})}),$(x,I)};V(p,x=>{typeof e.icon=="string"?x(v):x(b,!1)})}S(m);var y=k(m,2),_=C(y,!0);S(y),S(s),O(x=>{var I;u=oe(s,1,"item",null,u,x),Re(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Re(s,"data-testid",e.id),ve(_,e.label)},[()=>({mobile:i()})]),$(t,s),H()}Ye(["click","keydown"]);var t$=require("@vkontakte/videoplayer-shared/es2015");var qS=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),QS={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 Bv(t,e){Q(t,QS);let i=h(e,"enabled",3,!1);var o=qS(),r=C(o);let a;pi(2),S(o),O(l=>a=oe(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),$(t,o)}var GS=(t,e,i)=>{gb(t,e(),o=>i()(o))},YS=(t,e,i)=>{t.stopPropagation(),e()(!i())},jS=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),XS=L('<li role="menuitem" tabindex="0"><!></li>');function Hv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,t$.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=XS();let s;d.__click=[YS,o,r],d.__keydown=[GS,r,o];var u=C(d);Ja(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=jS();let b;var y=C(v),_=C(y);{var x=P=>{ol(P,{get icon(){return e.icon}})},I=P=>{var E=Me();let z=f(()=>e.icon);var F=ue(E);Di(F,()=>n(z),(U,X)=>{X(U,{})}),$(P,E)};V(_,P=>{typeof e.icon=="string"?P(x):P(I,!1)})}S(y);var T=k(y,2),R=C(T,!0);S(T);var A=k(T,2);Bv(A,{get enabled(){return r()}}),S(v),O(P=>{b=oe(v,1,"switch-wrapper",null,b,P),ve(R,e.label)},[()=>({mobile:i()})]),$(m,v)},$$slots:{default:!0}}),S(d),O(m=>{var p;s=oe(d,1,"item switch-item",null,s,m),Re(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Re(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}Ye(["click","keydown"]);var Oc=require("@vkontakte/videoplayer-shared/es2015");var i$=()=>{let t=q(ui([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var o$=require("@vkontakte/videoplayer-shared/es2015");var ZS=L('<div class="quality-icon s-1o"><!></div>'),JS=L('<div class="quality-label s-1o"><span> </span> <!></div>'),eC={hash:"s-1o",code:".quality-label.s-1o{position:relative}.quality.s-1o{font-size:13px;line-height:18px}.quality.sub.s-1o{opacity:.7}.quality-icon.s-1o{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1o svg{color:var(--blue-light)}"};function ul(t,e){B(e,!0),Q(t,eC);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,o$.getVideoQualityLabel)(e.quality):""),r=f(()=>dp(e.quality));var a=JS(),l=C(a);let d;var s=C(l,!0);S(l);var u=k(l,2);{var m=p=>{var v=ZS();let b=f(()=>n(r));var y=C(v);Di(y,()=>n(b),(_,x)=>{x(_,{})}),S(v),O(()=>Re(v,"data-testid",`${n(o)}-icon`)),$(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),O(p=>{d=oe(l,1,"s-1o",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),H()}var a$=require("@vkontakte/videoplayer-shared/es2015");var Fv=require("@vkontakte/videoplayer-core/es2015");var n$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},r$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=n$({quality:t,availableQualities:e});return i?t===Fv.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},s$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Fv.VideoQuality.INVARIANT?i:`${i}${n$({quality:t,availableQualities:e})}`:"...";var tC=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),iC={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function dd(t,e){B(e,!0),Q(t,iC);let[i,o]=De(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=be(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==a$.VideoQuality.INVARIANT?p:"")),b=f(()=>s$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=tC(),_=C(y);let x=f(()=>e.selected?r():void 0);ul(_,{get quality(){return n(x)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),H(),o()}var oC=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")},nC={br:!0,span:!0},Uv=(t,e={})=>{var d,s,u,m,p,v,b;if(!t)return t;let i=ke(ke({},nC),e),o=Object.keys(i);if(!o.length)return t;let r=oC(o),a=[],l=0;for(let y of t.matchAll(r)){let _=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)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+_.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Uv(y.groups.childrenhtml,i):"",R=(v=y.groups)!=null&&v.childrenhtml?_.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>T||""):_;a.push(t.slice(l,I),R),l=I+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Dc(t,e){B(e,!1);let i=h(e,"message",8),o=Uv(i());$o();var r=Me(),a=ue(r);{var l=d=>{var s=Me(),u=ue(s);zd(u,()=>o),$(d,s)};V(a,d=>{o&&d(l)})}$(t,r),H()}var rC=L('<p class="quality-applies sublabel s-1s"><!></p>'),sC={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 zv(t,e){B(e,!1),Q(t,sC),$o();var i=rC(),o=C(i);let r=kn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));Dc(o,{get message(){return n(r)}}),S(i),$(t,i),H()}var d$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:j("other_quality"),selected:o,valueComponent:dd,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"quality-other-settings"}},Wv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?dd:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),c$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:zv,bottomBordered:!0,children:"quality-appliance"}),Kv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?dd:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),qv=({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:j("traffic_saving_quality"),valueComponent:t?dd:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var Sp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Cp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=yc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let s=Sp(t,d);return j("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=Sp(t,d);return j("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=Sp(t,d);return j("audio_stream_display_language_index",{language:r,index:s})}}let a=Sp(t,e);return j("audio_stream_display_unknown",{index:a})};var aC={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Wv,selected:e&&!o&&!r||!1}),a.push({handler:qv,selected:o},{handler:Kv,selected:r}),{title:j("submenu_quality"),id:"quality-settings",items:[c$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),d$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ul,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:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Wv,selected:((i=qu())==null?void 0:i.type)==="auto_quality"},{handler:qv,selected:((o=qu())==null?void 0:o.type)==="traffic_saving"},{handler:Kv,selected:((r=qu())==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:j("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:Cp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bn?"sub_off":void 0}))})},u$=({subMenuId:t,context:e})=>t?[aC[t](e)]:[];var lC=Ie('<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 Qv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=lC();$(e,o)},$$slots:{default:!0}})}var dC=Ie('<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 Gv(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=dC();$(e,o)},$$slots:{default:!0}})}var cC=Ie('<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 Yv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=cC();$(e,o)},$$slots:{default:!0}})}var uC=Ie('<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 jv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=uC();$(e,o)},$$slots:{default:!0}})}var pC=Ie('<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 Xv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=pC();$(e,o)},$$slots:{default:!0}})}var fC=Ie('<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 Tp(t){Ze(t,{children:(e,i)=>{var o=fC();$(e,o)},$$slots:{default:!0}})}var mC=Ie('<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 Zv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=mC();$(e,o)},$$slots:{default:!0}})}var vC=L('<div class="menu-item-value-wrapper s-1v"><!></div>'),gC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function Jv(t,e){B(e,!0),Q(t,gC);let[i,o]=De(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=be(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=f(()=>r$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=vC(),_=C(y);ul(_,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(t,y),H(),o()}var _C={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:pc,label:j("menu_quality"),value:e,valueComponent:Jv,weight:ds["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ds["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Qv,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=Cp(t,e);return{id:"audio-tracks-settings",weight:ds["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:Gv,label:j("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:ds["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:Yv,label:j("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ds["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:va,iconProps:{type:"outline"},label:j("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ds.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:jv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ds.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Xv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ds["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:Tp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ds["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:Tp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ds["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:Zv,isHiddenFor:["desktop"]})},p$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>_C[r](e)),...i.map(r=>Gt(ke({},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(Ya)};var $C=(t,e)=>{ip(t,e)},yC=L('<div><div> </div> <div class="close s-s"></div></div>'),xC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),wC=L("<div><!> <!></div>"),SC={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 Bc(t,e){B(e,!0),Q(t,SC);let[i,o]=De(),r=()=>w(He,"$settingsMenuVisible",i),a=()=>w(it,"$settingsMenuOpenedByKeyboard",i),l=()=>w(Fe,"$debugPanelVisible",i),d=()=>w(ce,"$isMobile",i),s=()=>w(Te,"$playerSize",i),u=()=>w(xe,"$hasMpegSources$",i),m=()=>w(Ne,"$mobileNotReportControlHidden$",i),p=()=>w(ge,"$autoQualityLimitingAvailable$",i),v=()=>w(K,"$availableSubtitlesList$",i),b=()=>w(Le,"$isLiveWithPlaybackSpeed",i),y=()=>w(ee,"$availableAudioStreams$",i),_=()=>w(D,"$availablePlaybackRates$",i),x=()=>w(me,"$currentAudioStream$",i),I=()=>w(G,"$currentPlaybackRate$",i),T=()=>w(et,"$trafficSavingEnabled",i),R=()=>w(_e,"$currentQuality$",i),A=()=>w(pe,"$isAutoQualityEnabled$",i),P=()=>w(Ge,"$currentSubtitle$",i),E=()=>w(Tt,"$additionalSettingsMenuItems$",i),z=()=>w(Qe,"$isAutoQualityAvailable$",i),F=()=>w(Ce,"$availableQualities$",i),U=()=>w(Ee,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),Z=ui({}),re=ui({}),J=be(),we=Ot(),me=J.state.audioStream$,ee=J.state.availableAudioStreams$,_e=J.state.currentQuality$,Ce=J.state.availableQualities$,ge=J.state.autoQualityLimitingAvailable$,pe=J.state.isAutoQualityEnabled$,Qe=J.state.isAutoQualityAvailable$,G=J.state.currentPlaybackRate$,D=J.state.availablePlaybackRates$,Ge=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,se=J.state.canDownload,xe=J.state.hasMpegSources$,He=J.ui.settingsMenu.visible$,it=J.ui.settingsMenu.openedByBtnKeyboard$,ne=J.ui.settingsMenu.ref$,ce=J.ui.isMobile,Ne=J.ui.mobileNotReportControlHidden$,Le=J.state.canChangePlaybackSpeed$,et=J.state.trafficSavingEnabled$,Ee=J.state.highQualityEnabled$,Te=J.ui.playerSize,Fe=J.ui.debugPanelVisible,At=J.state.isInteractiveTime$,Tt=J.ui.additionalSettingsMenuItems$,Rt=J.ui.t,pt=J.actions.internal.downloadVideo,Lt=J.actions.internal.closeSettingsMenu,ti=J.actions.internal.openSettingsSubMenu,Mt=J.actions.internal.closeSettingsSubMenu,Ft=q(!1),qt=q(void 0),Y=i$();Oe(()=>{!r()&&Y.current&&(Mt(re[Y.current]),Y.popAllSubMenus())}),Oe(()=>{r()||N(qt,void 0)}),Oe(()=>{!Y.current&&n(qt)&&mb(Z,n(qt))}),Oe(()=>{X()&&ne.set(X())});function Pe(bt){return ht(this,null,function*(){var W;Y.pushSubMenu(bt),yield _o(),ti(bt,re[bt]);let Ut=(W=X())==null?void 0:W.firstElementChild;Ut&&_m(Ut)})}function le(bt){var Ut;bt==null||bt.stopPropagation(),a()||(Ut=e.returnFocus)==null||Ut.call(e),Lt(),N(Ft,!1)}function $e(bt,Ut){J.actions.internal.setQuality(bt,{appliesTo:Ut,byUser:!0}),le()}function Ve(bt){J.actions.internal.setAudioStream(bt),le()}function dt(bt,Ut){J.actions.internal.setTrafficSavingEnabled(bt,Ut),we.features.qualityDetailsSubMenuEnabled&&le()}function St(bt,Ut){J.actions.internal.setHighQualityEnabled(bt,Ut),le()}function fe(bt){J.actions.internal.setPlaybackRate(bt),le()}function Be(bt){J.actions.internal.setSubtitle(bt),le()}function We(){pt()}function Ct(){(0,Oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Xt(){Yl(J.actions.internal.getDebugTextData())}let It=()=>{let bt=J.actions.internal.getTraceTextData(),Ut=new Blob([...bt],{type:"application/json"}),W=window.URL.createObjectURL(Ut);za(W,"vk_player_trace_info","json")};function li(){Fe.set(!l())}function fi(){N(Ft,!0)}function Bi(){N(Ft,!1)}function Bt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let bo=f(()=>se&&u()&&!m()),vi=f(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),ot=f(()=>v().length>0&&!m()),Jt=f(()=>!!b()&&!m()),Hi=f(()=>we.features.audioLanguages&&y().length>=2&&!m()),xi=f(()=>!m());Dt(()=>At.subscribe(bt=>{bt&&!d()&&!n(Ft)&&!a()&&le()}));let oi=f(()=>{let bt=[n(xi)&&"quality-settings",n(Hi)&&"audio-tracks-settings",n(Jt)&&"playback-rate-settings",n(ot)&&"subtitles-settings",n(vi)&&"traffic-saving-switch",n(bo)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ut=>!!Ut);return p$({items:bt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:dt,currentQuality:R()||Oc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:We,onCopyDataClick:Xt,onReportProblemClick:Ct,onSaveTraceDataClick:It,toggleShowDebugInfo:li},additionalSettingsMenuItems:E()})}),Ti=f(()=>u$({subMenuId:Y.current,context:{availablePlaybackRates:_(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:dt,currentQuality:R()||Oc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:z()||!1,availableQualities:F(),highQualityEnabled:U(),toggleHighQuality:St,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Lt,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:$e,selectSubtitle:Be}}));var at=wC();let nt;var Ei=C(at);{var on=bt=>{var Ut=xC();let W;Ut.__keydown=[$C,Lt];var Nt=C(Ut);{var di=$t=>{var st=yC();let Fi;var Mi=C(st),gn=C(Mi,!0);S(Mi);var hn=k(Mi,2);hn.__click=le,S(st),O((Vi,Ui)=>{Fi=oe(st,1,"item header s-s",null,Fi,Vi),ve(gn,Ui)},[()=>({mobile:d()}),()=>Rt("submenu_settings")]),$($t,st)};V(Nt,$t=>{d()&&$t(di)})}var gt=k(Nt,2);let ii;yi(gt,21,()=>n(oi),$t=>$t.id,($t,st)=>{var Fi=Me(),Mi=ue(Fi);{var gn=Vi=>{Nv(Vi,{get isMobile(){return d()},get id(){return n(st).id},get icon(){return n(st).icon},get iconProps(){return n(st).iconProps},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get value(){return n(st).value},get valueComponent(){return n(st).valueComponent},onClick:()=>{Pe(n(st).children),N(qt,n(st).id,!0)},get ref(){return Z[n(st).id]},set ref(Ui){Z[n(st).id]=Ui}})},hn=(Vi,Ui)=>{{var Hn=lo=>{let Ai=f(()=>`${n(st).id}-menu-item`);Ov(lo,{get isMobile(){return d()},get id(){return n(Ai)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},closeSettings:le})},xo=(lo,Ai)=>{{var Bo=Ho=>{let _n=f(()=>`${n(st).id}-menu-item`);Hv(Ho,{get isMobile(){return d()},get id(){return n(_n)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get enabled(){return n(st).enabled},get tooltipText(){return n(st).tooltipText},get maxTooltipWidth(){return n(st).maxTooltipWidth}})};V(lo,Ho=>{n(st).type==="SWITCH"&&Ho(Bo)},Ai)}};V(Vi,lo=>{n(st).type==="CLICK"?lo(Hn):lo(xo,!1)},Ui)}};V(Mi,Vi=>{n(st).type==="OPEN_SUB_MENU"?Vi(gn):Vi(hn,!1)})}$($t,Fi)}),S(gt),Xe(gt,$t=>X($t),()=>X()),S(Ut),O(($t,st,Fi)=>{W=oe(Ut,1,"settings-menu menu s-s",null,W,$t),ii=oe(gt,1,"items",null,ii,st),qe(gt,Fi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),Bt]),ut("mouseenter",Ut,fi),ut("mouseleave",Ut,Bi),$(bt,Ut)};V(Ei,bt=>{r()&&bt(on)})}var Oo=k(Ei,2);yi(Oo,17,()=>n(Ti),bt=>bt.id,(bt,Ut)=>{let W=f(()=>{var Nt;return(Nt=n(Ut).minWidth)!=null?Nt:137});Rv(bt,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return Lt},openSubMenuList:Pe,get items(){return n(Ut).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return re[n(Ut).id]},set listRef(Nt){re[n(Ut).id]=Nt}})}),S(at),O(bt=>nt=oe(at,1,"settings-menu-container s-s",null,nt,bt),[()=>({mobile:d(),hidden:!r()})]),$(t,at),H(),o()}Ye(["keydown","click"]);var CC=L('<button class="btn s-11"> </button>'),TC={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 eg(t,e){Q(t,TC);var i=CC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),O(()=>ve(o,e.label)),$(t,i)}Ye(["click"]);var IC=L('<div class="container s-l"><div class="notification s-l"><div><p class="description s-l"><!></p> <!></div> <!></div></div>'),EC={hash:"s-l",code:".container.s-l{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-l{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-l{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Hc(t,e){B(e,!0),Q(t,EC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ot(),{ui:{t:r}}=be(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=IC(),d=C(l),s=C(d),u=C(s),m=C(u);Dc(m,{get message(){return a}}),S(u);var p=k(u,2);{var v=y=>{let _=f(()=>r("slow_video_notification_button"));eg(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var b=k(s,2);Hs(b,{get onClick(){return e.onClose}}),S(d),S(l),ns(3,d,()=>xs,()=>({duration:i})),$(t,l),H()}var Fc=require("@vkontakte/videoplayer-shared/es2015");var pl="annotation",Ip=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",pl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}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"}}runHidingControlsWhenIntersected(r,a){return ht(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver(b=>b.forEach(()=>{let y=Us(d,this.shadowRootContainer);o.forEach(_=>{let x=s==null?void 0:s[_],I=x?ye(x):null,T=u==null?void 0:u[_];I&&(T==null||T.set((0,Fc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Fc.Subscription;o.forEach(b=>{s&&p.add(s[b].subscribe(y=>{let _=u==null?void 0:u[b];y&&y.isDisplayed?_==null||_.set((0,Fc.isIntersecting)(y,Us(d,this.shadowRootContainer))):_==null||_.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return ht(this,null,function*(){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(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)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,b;(b=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var PC=L('<div class="container s-5"><!></div>'),kC={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 Uc(t,e){B(e,!0),Q(t,kC);let i=h(e,"reversed",3,!1);var o=Me(),r=ue(o);Rs(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`)),$(a,l)}),$(t,o),H()}var tg=require("@vkontakte/videoplayer-core/es2015"),AC=L('<div class="container s-1c"><!></div>'),LC={hash:"s-1c",code:".container.s-1c{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function ig(t,e){B(e,!0),Q(t,LC);let[i,o]=De(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=be(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Ot(),y=0,_=q(null),x=q(!1);Oe(()=>{r()===tg.PlaybackState.PLAYING?N(_,Dn,!0):r()===tg.PlaybackState.PAUSED?N(_,Ws,!0):N(_,null)}),Oe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,N(_,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(x)&&(N(x,!0),N(_,null))});var I=Me(),T=ue(I);{var R=A=>{var P=AC(),E=C(P);Uc(E,{get duration(){return b},get Icon(){return n(_)}}),S(P),$(A,P)};V(T,A=>{n(_)&&v&&A(R)})}$(t,I),H(),o()}var MC=L('<div><div data-testid="video-container"></div></div>'),VC={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 fl(t,e){B(e,!0),Q(t,VC);let[i,o]=De(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w(b,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=be(),{isSmoothVideoRotate:_}=Ot(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=MC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let A;Xe(R,P=>u(P),()=>u()),S(I),O((P,E)=>{T=oe(I,1,"video-wrapper s-e",null,T,P),A=oe(R,1,"video-container s-e",null,A,E),qe(R,`transform: rotate(${r()}deg) scale(${n(x)})`),Re(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!_})]),$(t,I),H(),o()}Ye(["contextmenu","mousedown","mouseup","click","dblclick"]);var RC=L('<div><span class="text s-1e"> </span> <!></div>'),NC={hash:"s-1e",code:".root.s-1e{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-1e,.root.visible.s-1e{transform:translateX(-50%)}.root.visible.s-1e{opacity:1;visibility:visible}.text.s-1e{font-size:13px;font-weight:600;line-height:16px}"};function og(t,e){B(e,!0),Q(t,NC);let{ui:{t:i}}=be();var o=RC();let r;var a=C(o),l=C(a,!0);S(a);var d=k(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=oe(o,1,"root s-1e",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),H()}var DC=L('<div class="container s-17" role="button" data-testid="preview-track-overlay"><div class="icon s-17"><!></div></div>'),OC={hash:"s-17",code:".container.s-17{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-17,.icon.s-17{align-items:center;display:flex;justify-content:center}.icon.s-17{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-17:hover .icon:where(.s-17){transform:scale(1.15)}"};function ng(t,e){B(e,!1),Q(t,OC);let o=be().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};$o();var l=DC();l.__click=a;var d=C(l),s=C(d);return Dn(s,{get size(){return"32"}}),S(d),S(l),ns(3,l,()=>xs,()=>({duration:r})),$(t,l),Uf(e,"handleClick",a),H({handleClick:a})}Ye(["click"]);var BC=L('<div class="container s-19"><div class="notification s-19"><span class="text s-19"> </span></div></div>'),HC={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 rg(t,e){B(e,!1),Q(t,HC);let{ui:{t:i}}=be();$o();var o=BC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),O(d=>ve(l,d),[()=>i("preview_track_notification_text")],kn),ns(3,r,()=>xs,()=>({duration:340})),$(t,o),H()}var FC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},UC=L("<div><!></div>"),zC=L('<div class="spherical-video-icon s-9"><!></div>'),WC=L("<div><!></div>"),KC=L('<div class="settings-menu s-9"><!></div>'),qC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),QC=L("<!> <!> <!>",1),GC=L('<div class="blocked s-9"></div>'),YC=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),jC={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 ag(t,e){B(e,!0),Q(t,jC);let[i,o]=De(),r=()=>w(zr,"$notificationsToShow$",i),a=()=>w(vi,"$playerPhase",i),l=()=>w(on,"$isLoaderVisible",i),d=()=>w(Bi,"$adPlaybackState",i),s=()=>w(gt,"$crashed",i),u=()=>w(Ui,"$isInteractiveTime$",i),m=()=>w(xi,"$settingsMenuVisible",i),p=()=>w(Hn,"$isInteractiveExpectation$",i),v=()=>w(Hi,"$controlsVisible",i),b=()=>w(lo,"$touched",i),y=()=>w(cs,"$graphIsOpened$",i),_=()=>w(ot,"$isFullscreen",i),x=()=>w(nr,"$autoplayNextEnabled$",i),I=()=>w(W,"$postrollPassed",i),T=()=>w(Oo,"$isEnded$",i),R=()=>w(xn,"$cursorInside",i),A=()=>w(bn,"$isControlsAvailable",i),P=()=>w(_r,"$doubleForwardOn$",i),E=()=>w(rr,"$fakeIsPlaying$",i),z=()=>w(Wn,"$bottomNoSmooth",i),F=()=>w(Or,"$interactiveTimeIndicator",i),U=()=>w(Mi,"$playerSize",i),X=()=>w(gn,"$is3DVideo",i),ae=()=>w(br,"$doubleForwardAvailable$",i),Z=()=>w(nt,"$contextMenuVisible$",i),re=()=>w(fi,"$playbackState$",i),J=()=>w(Ai,"$hotKeyMapData",i),we=()=>w(Ti,"$scrubbingInProgress",i),me=()=>w(at,"$volumeChangingInProgress",i),ee=()=>w(bt,"$chromecastConnected$",i),_e=()=>w(Kn,"$controlsTimeoutActive",i),Ce=()=>w(oi,"$settingsMenuOpenedByKeyboard",i),ge=()=>w(Po,"$contextMenuOpenedByKeyboard$",i),pe=()=>w(Qo,"$contextMenuOpenedByHotKey$",i),Qe=()=>w(Tn,"$contextMenuButtonRef$",i),G=()=>w(dr,"$contextMenuLastActiveElem$",i),D=()=>w(Jt,"$isFullscreenOpenedByKeyboard",i),Ge=()=>w(Ho,"$positionExact$",i),K=()=>w(li,"$language$",i),se=()=>w(Pr,"$previewTrackActive$",i),xe=()=>w(hn,"$icon3DVideoVisible",i),He=()=>w(Ut,"$chromecastDeviceName$",i),it=()=>w(st,"$currentSubtitle$",i),ne=()=>w(Fi,"$currentSubtitleCaptions$",i),ce=()=>w(Bt,"$position$",i),Ne=()=>w(bo,"$duration$",i),Le=()=>w(Nt,"$isLive$",i),et=()=>w(di,"$isPlaying$",i),Ee=()=>w(Hr,"$contextMenuPosition$",i),Te=()=>w(nn,"$previewTrackNotificationVisible$",i),Fe=()=>w(Bo,"$showHotKeyMap",i),At=()=>w(Ei,"$debugPanelVisible",i),Tt=()=>w(Ur,"$userActionsDisabled$",i),Rt=h(e,"videoContainer",15),pt=h(e,"adsSlotId",3,void 0),Lt=h(e,"adsParams",3,void 0),ti=h(e,"adsAutoplayParam",3,void 0),Mt=h(e,"duration",3,void 0),Ft=h(e,"logoTargetUrl",3,""),qt=h(e,"showNextPrevButtons",3,!1),Y=h(e,"nextButtonActive",3,!1),Pe=h(e,"prevButtonActive",3,!1),le=h(e,"endScreenVideoTitle",3,void 0),$e=h(e,"endScreenVideoThumb",3,void 0),Ve=h(e,"isOneVideoPlaylist",3,!1),dt=h(e,"shadowRootContainer",3,void 0),St=h(e,"outerContainerRef",3,void 0),fe=h(e,"playerStarted",3,!1),Be=h(e,"fullScreenTarget",3,void 0),We=h(e,"showMiniTimer",3,!1),Ct=h(e,"showEndScreen",3,!0),Xt=h(e,"keyboardControls",15),It=e.store.getLogger().createComponentLog("Root component"),li=e.store.interfaceLanguage$,fi=e.store.state.playbackState$,Bi=e.store.ads.playbackState,Bt=e.store.state.positionWithScrubbing$,bo=e.store.state.duration$,vi=e.store.playerPhase,ot=e.store.ui.isFullscreen,Jt=e.store.ui.isFullscreenOpenedByKeyboard,Hi=e.store.ui.controlsVisible,xi=e.store.ui.settingsMenu.visible$,oi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ti=e.store.ui.scrubbingInProgress,at=e.store.ui.volumeChangingInProgress,nt=e.store.ui.contextMenu.visible$,Ei=e.store.ui.debugPanelVisible,on=e.store.state.isLoaderVisible,Oo=e.store.state.isEnded$,bt=e.store.state.chromecastConnected$,Ut=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Nt=e.store.state.isLive$,di=e.store.state.isPlaying$,gt=e.store.state.crashed$,ii=e.store.webApi.annotationsApi,$t=e.store.webApi.pictureInPictureApi,st=e.store.state.currentSubtitle$,Fi=e.store.state.currentSubtitleCaptions$,Mi=e.store.ui.playerSize,gn=e.store.ui.is3DVideo,hn=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Ui=e.store.state.isInteractiveTime$,Hn=e.store.state.isInteractiveExpectation$,xo=e.store.state.hasInteractiveBranches,lo=e.store.ui.touched,Ai=e.store.ui.modals.hotKeyMap.data,Bo=e.store.ui.modals.hotKeyMap.show,Ho=e.store.state.positionExact$,_n=e.store.ui.overlayContainer$,Or=e.store.ui.controls.interactiveTimeIndicator,Br=e.store.state.showInteractiveTimeIndicator,Hr=e.store.ui.contextMenu.position$,ws=e.store.actions.internal.setQuality,Fr=e.store.actions.internal.closeSettingsMenu,nr=e.store.ui.autoplayNextEnabled$,Ur=e.store.ui.userActionsDisabled,bn=e.store.ui.isControlsAvailable,$n=e.store.ui.videoTitleInfo,_r=e.store.ui.doubleForwardOn$,br=e.store.ui.doubleForwardAvailable$,nn=e.store.ui.previewTrackNotificationVisible,$r=e.store.actions.internal.getVideoElement,yr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:rr,notifications$:Fn,graphIsOpened$:cs}=yo(),Fo=q(void 0),xr=q(void 0),zi=q(void 0),wr=q(void 0),Un,vt,ni;Ai.set(ab());let{closeNotification:Sr,notificationsToShow$:zr}=Fn,Wr=f(()=>!!r().slow_video),zn=()=>Sr("slow_video"),sr=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),wo=q(void 0),Wn=de(!1),ar,Kn=de(!1),yn=de(),xn=de(!1),wn=q(!1),rn=q(!1),Wi=q(!1),eo=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),sn=f(()=>u()&&!m()&&!(n(wn)||n(rn))&&!(n(Wi)&&!p())),lr=!0,Cr=f(()=>e.uiConfig.features.thumbTimer&&We()&&a()==="video"&&!v()&&!s()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Sn=e.uiConfig.titleShowBehaviour,Tr=f(()=>!["video","thumb"].includes(a())||Sn==="never"||y()?!1:Sn==="fullscreen"?_():!0),ft=f(()=>Sn==="always"||a()==="thumb"?!1:!v()),Et=q(!1),co=f(()=>(Ct()||e.showAutoplayNext&&x())&&!!le()&&!!$e()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(Et)&&!xo),Uo=f(()=>R()&&!(v()||n(co))&&!u()&&A()&&!P()),So=q(!1),an=f(()=>E()!==null),{toggle:uo}=rr,Co=!1,Pi=null;$t==null||$t.setContext(Td());let Kr=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Kr});let qn=()=>{window.clearTimeout(Un),Kn.set(!1)},Ss=()=>{window.clearTimeout(vt),yn.set(null)},Ki=he=>{qn(),Kn.set(!0),Un=window.setTimeout(()=>Kn.set(!1),he);let yt=he-100;ar=window.setTimeout(()=>{z()&&Wn.set(!1)},yt>0?yt:he)},Cs=(he,yt)=>{Ss(),yn.set(yt),vt=window.setTimeout(()=>yn.set(null),he)},us=gn.subscribe(he=>{hn.set(he),he&&(window.clearTimeout(ni),ni=window.setTimeout(()=>hn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ir=()=>ht(null,null,function*(){var yt,ri,Zt,Ao;let he=da();if(he){let fo=tc(),Go=ln();he=fo===Go||fo===dt()}if(he){Ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield $t==null?void 0:$t.exit()}catch(fo){It({message:String(fo)})}}ot.set(he),e.store.getAdmanWrapper().setFullscreen(he),_()?(ri=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||ri.call(yt):(Ao=(Zt=e.store.callbacks)==null?void 0:Zt.onFullscreenExit)==null||Ao.call(Zt)}),zo=he=>{let{width:yt,height:ri}=he.target;Mi.set({width:yt,height:ri})},qr=()=>{let{width:he,height:yt}=n(Fo).getBoundingClientRect();Mi.set({width:he,height:yt})};Dt(()=>{var yt;return ep(Ir),e.uiConfig.features.annotationsInside&&(ii==null||ii.init(n(Fo))),Qa($t)&&($t==null||$t.assignPlayerContainer(n(Fo)),$t==null||$t.setExternalEventHandlers({resize:zo,leavepictureinpicture:qr})),e.interactiveContainer&&((yt=Rt().parentElement)==null||yt.insertBefore(e.interactiveContainer,Rt().nextSibling)),()=>{window.clearTimeout(Un),window.clearTimeout(ar),window.clearTimeout(vt),window.clearTimeout(ni),us(),$t==null||$t.dispose().catch(ri=>{It({message:String(ri)})}),tp(Ir)}});let ln=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!St()?n(Fo):St(),yt=he.getRootNode(),ri=yt instanceof ShadowRoot?yt.host:yt,Zt=Be()instanceof HTMLElement&&Be().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&Be()&&Zt?Be():he},dn=()=>{nt.set(!1)},Ue=()=>{Fr(),dn()},Pt=()=>ht(null,null,function*(){if(!yr()){It({message:"fullscreen disabled"});return}dn(),da()?(yield Ju(document),It({message:"exit fullscreen"})):(It({message:"request fullscreen"}),yield Zu(ln()))}),mi=he=>{y()||(he.preventDefault(),nt.set(!0),Hr.set({left:he.clientX,top:he.clientY}))};function Wo(){xn.set(!0),Vi||Ki(e.uiConfig.controls.hideTimeoutCursor)}function To(he){var Ao,fo;let{relatedTarget:yt}=he,Zt=!!(yt&&((Ao=n(zi))!=null&&Ao.contains(yt)))&&((fo=Xt())==null?void 0:fo.isFocused());!Vi&&!Zt&&(Wn.set(!0),Ki(e.uiConfig.controls.hideTimeoutCursor))}function Ko(){xn.set(!1),N(rn,!1),N(wn,!1),Co=!1,e.store.actions.internal.releaseCamera(),Ki(e.uiConfig.controls.hideTimeout),P()&&qo()}function qi(he){return he?he.offsetTop+qi(he.offsetParent):0}function Io(he){return he?he.offsetLeft+Io(he.offsetParent):0}function Qn(he){if(F()&&Br){let yt=he.currentTarget,ri=qi(yt),Zt=Io(yt),Ao=he.pageX-Zt,fo=he.pageY-ri,{left:Go,bottom:Ps,right:Yr}=F(),kr=Yr-Go;return Ao>=Go-kr&&fo<=Ps+kr}}function Er(he){if(n(Fo)){let yt=qi(he.currentTarget),ri=U().height,Zt=he.pageY-yt;if(Qn(he)){N(rn,!1);return}Zt<40?N(rn,!0):Zt>ri-40?N(wn,!0):(N(rn,!1),m()||N(wn,!1))}}function Eo(he){Er(he),!n(sn)&&!P()&&Ki(e.uiConfig.controls.hideTimeoutCursor),X()&&Co&&Pi&&e.store.actions.internal.moveCameraFocusPX(Pi.clientX-he.clientX,Pi.clientY-he.clientY,he.timeStamp-Pi.timeStamp),Pi=he}let po=null,Cn=()=>{po=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),qn()},e.uiConfig.doubleForwardActivationTime)},qo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),po&&clearTimeout(po),po=null},Gn=he=>{he.preventDefault(),he.button===0&&(Co=!0,e.store.actions.internal.holdCamera(),ae()&&Cn()),!Co&&Ki(e.uiConfig.controls.hideTimeoutCursor)},Qr=he=>{he.preventDefault(),he.button===0&&(Pi=he,Co=!1,e.store.actions.internal.releaseCamera()),!P()&&Ki(e.uiConfig.controls.hideTimeoutCursor)},Gr=he=>{he.preventDefault(),lr&&(It({message:"double click on video"}),Pt(),Ki(e.uiConfig.controls.hideTimeoutCursor))},Yn=he=>{var yt;if(he.preventDefault(),P()){qo();return}if(po&&qo(),Z()||m()){Ue();return}if(!(T()&&!xo)){if(n(an))return uo();if((yt=Xt())==null||yt.focus(),!fe()){e.firstStart(),Ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==sg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ki(e.uiConfig.controls.hideTimeoutCursor)}},Je=he=>{Ue(),lo.set(!0),Ki(e.uiConfig.controls.hideTimeout),he&&Cs(e.uiConfig.controls.hideHotKeyHelpers,he)},ei=()=>{var he,yt;Ue(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(J()):Bo.update(ri=>!ri)},wi=()=>{lo.set(!0)},Po=e.store.ui.contextMenu.openedByBtnKeyboard$,Tn=e.store.ui.contextMenu.btnRef$,jn=q(void 0),Qo=e.store.ui.contextMenu.openedByHotKey$,dr=e.store.ui.contextMenu.lastActiveElem$,ps=q(!1),Pr=e.store.ui.previewTrackActive;Oe(()=>{_n.set(n(wo))}),Oe(()=>{N(Wi,n(eo)&&re()!==sg.PlaybackState.PLAYING,!0),n(eo)||kt(()=>N(eo,!0))}),Oe(()=>{var yt,ri;let he=(n(Wi)||T()||m()||we()||me()||ee()||_e()||n(ps))&&!n(sn)&&(a()==="video"||a()==="ads")&&!s()&&A();Hi.set(he),!he&&!_e()&&((yt=n(zi))!=null&&yt.contains(lp()))&&((ri=Xt())==null||ri.focus())}),Oe(()=>{!we()&&n(So)&&!u()&&Ki(e.uiConfig.controls.hideTimeoutCursor),kt(()=>N(So,we(),!0))}),Oe(()=>{n(wr),m(),Ce(),kt(()=>lc(n(wr),m(),Ce()))}),Oe(()=>{n(jn),Z(),ge(),pe(),kt(()=>{let he=ge()||pe();lc(n(jn),Z(),he)})}),Oe(()=>{let he=Qe();he&&(Z(),kt(()=>jl(he,Z(),Po)))}),Oe(()=>{let he=G();he&&(Z(),kt(()=>fb(he,Z(),Qo)))}),Oe(()=>{var he;!D()&&_()&&(kt(()=>Jt.set(!1)),(he=Xt())==null||he.focus())}),Oe(()=>{y()&&Ue()});let Ts=q(void 0),Gs=he=>{$n.set(ir($r(),{title:n(Ts)},"title",he))},ba=(he,yt)=>{var fo,Go;let ri=(Go=(fo=e.store.callbacks)==null?void 0:fo.uiInfo)==null?void 0:Go.onUpcomingLiveViewStateChanged;if(!ri)return;let Zt=!!yt,Ao=ke(ke({},ir(n(Fo),{upcomingLiveScreen:yt},"upcomingLiveScreen",Zt)),he);ri(Ao)},ct="",ci=f(()=>{var he;return n(ft)?ct:(he=e.getVideoDeeplink)==null?void 0:he.call(e,Ge())});Oe(()=>{ct=n(ci)});var ko=YC();ut("blur",Ma,Ue);var Si=ue(ko);Si.__mousemove=Eo;var In=C(Si);let En=f(()=>a()==="ads"),Is=f(()=>n(an)?uo:void 0);Xe(Tm(In,{startDoubleForwardActivationTimer:Cn,stopDoubleForward:qo,toggleFullscreen:Pt,hideContextMenu:Ue,showHotKeyHelpers:Je,showKeyMap:ei,get isAds(){return n(En)},get fakePlayButtonHandler(){return n(Is)},get nextButtonActive(){return Y()},get prevButtonActive(){return Pe()},children:(he,yt)=>{var ri=QC(),Zt=ue(ri);fl(Zt,{get hideCursor(){return n(Uo)},onClick:Yn,onContextMenu:mi,onMouseDown:Gn,onMouseUp:Qr,onDblClick:Gr,get videoContainer(){return Rt()},set videoContainer(Go){Rt(Go)}});var Ao=k(Zt,2);Ba(Ao,()=>"slot",!1,(Go,Ps)=>{no(Go,()=>({name:pl}))});var fo=k(Ao,2);Rs(fo,K,Go=>{var Ps=qC(),Yr=ue(Ps);let kr=f(()=>a()!=="thumb"||s()||Vi&&e.autoplay);dl(Yr,{get hidden(){return n(kr)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:mi,onClick:dn});var $a=k(Yr,2);{var Ys=ze=>{ng(ze,{})};V($a,ze=>{se()&&ze(Ys)})}var ya=k($a,2);ig(ya,{});var jr=k(ya,2);og(jr,{get isVisible(){return P()}});var Pn=k(jr,2);{var gl=ze=>{let $i=f(()=>{var mo;return(mo=e.live)==null?void 0:mo.startTime});Rc(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n($i)},onUpcomingLiveViewStateChanged:ba,onContextMenu:mi,onClick:dn})};V(Pn,ze=>{a()==="LiveWaitingStart"&&ze(gl)})}var xa=k(Pn,2);{var Xr=ze=>{cl(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:mi,onClick:dn})};V(xa,ze=>{a()==="LiveWaitingRecover"&&ze(Xr)})}var hl=k(xa,2);{var _d=ze=>{cl(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:mi,onClick:dn})};V(hl,ze=>{a()==="LiveWaitingRecord"&&ze(_d)})}var wa=k(hl,2);{var bd=ze=>{var $i=UC();let mo;var Ar=C($i);oc(Ar,{get adsSlotId(){return pt()},get adsParams(){return Lt()},get adsAutoplayParam(){return ti()},get duration(){return Mt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S($i),O(cn=>mo=oe($i,1,"ads-container s-9",null,mo,cn),[()=>({hidden:a()!=="ads"})]),$(ze,$i)};V(wa,ze=>{e.showAds&&fe()&&ze(bd)})}var _l=k(wa,2);{var bl=ze=>{let $i=f(()=>!Ct()&&e.showAutoplayNext&&x());wm(ze,{get title(){return le()},get thumb(){return $e()},get isHide(){return n($i)},clickCloseIcon:()=>N(Et,!0)})};V(_l,ze=>{n(co)&&le()&&$e()&&ze(bl)})}var Sa=k(_l,2);{var mt=ze=>{let $i=f(()=>_()?"md":"sm"),mo=f(()=>{var Ar;return(Ar=e.store.callbacks)==null?void 0:Ar.onTitleClicked});Pv(ze,{get title(){return e.title},get isHidden(){return n(ft)},onVisibilityChanged:Gs,get titleLinkHref(){return n(ci)},onMouseEnter:()=>{N(ps,!0)},onMouseLeave:()=>{N(ps,!1)},get size(){return n($i)},get onTitleClicked(){return n(mo)},get ref(){return n(Ts)},set ref(Ar){N(Ts,Ar,!0)}})};V(Sa,ze=>{n(Tr)&&ze(mt)})}var rt=k(Sa,2);{var to=ze=>{let $i=f(()=>a()==="video"&&v());Mc(ze,{get isShifted(){return n($i)}})};V(rt,ze=>{X()&&ze(to)})}var Lo=k(rt,2);{var io=ze=>{var $i=zC(),mo=C($i);ec(mo,{}),S($i),$(ze,$i)};V(Lo,ze=>{xe()&&ze(io)})}var bi=k(Lo,2);{var Gi=ze=>{Vc(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()},onClick:Yn,onContextMenu:mi,onDblClick:Gr})};V(bi,ze=>{ee()&&ze(Gi)})}var js=k(bi,2);{var $d=ze=>{al(ze,{get shifted(){return v()},get captions(){return ne()},get position(){return ce()},get playerSize(){return U()}})};V(js,ze=>{it().value!=="off"&&ze($d)})}var Jc=k(js,2);{var Kp=ze=>{var $i=WC();$i.__contextmenu=mi,$i.__click=[FC,Z,nt,m,xi,Ue];var mo=C($i);ll(mo,{}),S($i),$(ze,$i)};V(Jc,ze=>{s()&&ze(Kp)})}var eu=k(Jc,2);{var qp=ze=>{let $i=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),mo=f(()=>a()==="ads"),Ar=f(()=>e.canRewindLive&&Ne()!==0);Ac(ze,{get bottomHidden(){return n($i)},get bottomNoSmooth(){return z()},get showControls(){return v()},get isAds(){return n(mo)},get canRewindLive(){return n(Ar)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qt()},get nextButtonActive(){return Y()},get prevButtonActive(){return Pe()},get isOneVideoPlaylist(){return Ve()},customFullscreenSupported:lr,toggleFullscreen:Pt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(xr)},set playerControlsWrapperRef(cn){N(xr,cn,!0)},get playerControlsRef(){return n(zi)},set playerControlsRef(cn){N(zi,cn,!0)}})};V(eu,ze=>{fe()&&ze(qp)})}var tu=k(eu,2);{var Qp=ze=>{var $i=KC(),mo=C($i);let Ar=f(()=>{var cn;return(cn=n(zi))==null?void 0:cn.clientHeight});Bc(mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Ar)},returnFocus:()=>{var cn;return(cn=Xt())==null?void 0:cn.focus()},get ref(){return n(wr)},set ref(cn){N(wr,cn,!0)}}),S($i),$(ze,$i)};V(tu,ze=>{!ee()&&a()!=="ads"&&ze(Qp)})}var iu=k(tu,2);let Gp=f(()=>!n(Cr));sc(iu,{get isLive(){return Le()},get isHidden(){return n(Gp)},get isPlaying(){return et()},get position(){return ce()},get duration(){return Ne()}});var Ca=k(iu,2);Iv(Ca,{get data(){return yn}});var ou=k(Ca,2);ym(ou,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=Xt())==null?void 0:ze.focus()},get visible(){return Z()},get playerContainerRef(){return n(Fo)},get position(){return Ee()},get menuElementRef(){return n(jn)},set menuElementRef(ze){N(jn,ze,!0)}});var Xs=k(ou,2);{var $l=ze=>{Hc(ze,{onClose:zn,onSelectAutoQuality:()=>{ws("auto"),zn()}})};V(Xs,ze=>{n(Wr)&&ze($l)})}var nu=k(Xs,2);{var ru=ze=>{rg(ze,{})};V(nu,ze=>{Te()&&ze(ru)})}var yl=k(nu,2);{var su=ze=>{Xa(ze,{})};V(yl,ze=>{n(sr)&&ze(su)})}var au=k(yl,2);{var lu=ze=>{Pm(ze,{})};V(au,ze=>{Fe()&&ze(lu)})}var Yp=k(au,2);{var jp=ze=>{cc(ze,{})};V(Yp,ze=>{At()&&ze(jp)})}$(Go,Ps)}),$(he,ri)},$$slots:{default:!0}}),he=>Xt(he),()=>Xt());var Es=k(In,2);Xe(Es,he=>N(wo,he),()=>n(wo)),S(Si),Xe(Si,he=>N(Fo,he),()=>n(Fo));var Qi=k(Si,2);{var ki=he=>{var yt=GC();$(he,yt)};V(Qi,he=>{Tt()&&he(ki)})}ut("mouseenter",Si,Wo),ut("mouseleave",Si,Ko),ut("click",Si,wi,!0),ut("focusin",Si,To,!0),$(t,ko),H(),o()}Ye(["mousemove","contextmenu","click"]);var _a=require("@vkontakte/videoplayer-core/es2015"),b$=require("@vkontakte/videoplayer-shared/es2015");var XC=L('<div></div> <div class="info s-r"><div class="triangles-wrapper s-r"><div></div> <div></div> <div></div></div> <p class="step-caption s-r"> </p></div>',1),ZC=L("<div><!></div>"),JC={hash:"s-r",code:".double-click-area.s-r{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-r{left:0}.double-click-area.right.s-r{right:0}.semicircle.s-r{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-r{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-r{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-r{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-r,.triangles-wrapper.s-r{display:flex;justify-content:center}.triangles-wrapper.s-r{margin-bottom:10px;position:relative}.triangle.s-r{animation:s-r-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-r:nth-child(3),.triangle.right.s-r:first-child{animation-delay:0s}.triangle.left.s-r:nth-child(2),.triangle.right.s-r:nth-child(2){animation-delay:.1s}.triangle.left.s-r:first-child,.triangle.right.s-r:nth-child(3){animation-delay:.2s}@keyframes s-r-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-r{border-right:8px solid var(--white)}.triangle.right.s-r{border-left:8px solid var(--white)}.triangle.s-r:not(:last-child){margin-right:5px}.step-caption.s-r{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Ep(t,e){B(e,!0),Q(t,JC);let i=h(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(ui(i())),d=p=>{p.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};fn(()=>{window.clearTimeout(r)});var s=ZC();s.__click=d;var u=C(s);{var m=p=>{var v=XC(),b=ue(v),y=k(b,2),_=C(y),x=C(_),I=k(x,2),T=k(I,2);S(_);var R=k(_,2),A=C(R,!0);S(R),S(y),O(P=>{var E,z,F,U;oe(b,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-r"),oe(x,1,`triangle ${(z=e.side)!=null?z:""}`,"s-r"),oe(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-r"),oe(T,1,`triangle ${(U=e.side)!=null?U:""}`,"s-r"),ve(A,P)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};V(u,p=>{n(o)&&p(m)})}S(s),O(()=>{var p;return oe(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-r")}),$(t,s),H()}Ye(["click"]);var eT=(t,e,i)=>{e(!1),i()},tT=L('<div class="overlay s-i"></div> <div class="next-video s-i"><div class="top s-i"><div class="caption s-i"> </div> <!></div> <div class="row s-i"><div class="column s-i"><div class="thumb s-i"><div></div> <!></div></div> <div class="column s-i"><div class="title s-i"> </div></div></div></div>',1),iT={hash:"s-i",code:".overlay.s-i{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-i{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-i{display:flex;justify-content:space-between}.caption.s-i{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-i{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-i{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-i{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-i,.thumb-overlay.s-i{height:100%;width:100%}.thumb-overlay.s-i{position:absolute}.thumb-overlay.withOpacity.s-i{background:var(--black);opacity:.3}.title.s-i{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function lg(t,e){B(e,!0),Q(t,iT);let[i,o]=De(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},_=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Me(),I=ue(x);{var T=R=>{var A=tT(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Hs(U,{onClick:_}),S(E);var X=k(E,2);X.__click=[eT,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{uc(ge,{get isRunning(){return a()},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),qe(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-i",null,J,pe),ve(Ce,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(R,A)};V(I,R=>{e.isHide||R(T)})}$(t,x),H(),o()}Ye(["click"]);var m$=require("@vkontakte/videoplayer-core/es2015");var v$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{m$.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))}),fn(()=>{i==null||i(),clearTimeout(o)})};var g$=require("@vkontakte/videoplayer-core/es2015");var Pp=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 h$=require("@vkontakte/videoplayer-core/es2015"),_$=({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=()=>h$.clientChecker.device.isIOS&&ye(l)===g$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!m()||!b)return;let y=u();if(!y)return;let _=new Pp(y),x=ye(d),I=ye(a),T=ye(r);for(let P of x)I.some(z=>z.value===P.id)&&_.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)_.updateSrc(E)}),A=()=>{let P=_.getCurrentShowingId();o(ye(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",A),s=()=>{R(),_.detachAll(),y.textTracks.removeEventListener("change",A)}};Dt(()=>i.subscribe(v)),fn(p)};var oT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},nT=L("<!> <!>",1),rT=L("<div><!></div>"),sT=L('<div class="spherical-video-icon s-8"><!></div>'),aT=L("<div><!></div>"),lT=L('<div class="settings-mobile s-8"><!></div>'),dT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),cT=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),uT={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%}.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-mobile.s-8{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 dg(t,e){var Sn,Tr;B(e,!0),Q(t,uT);let[i,o]=De(),r=()=>w(Ve,"$playerPhase",i),a=()=>w(fi,"$isLoaderVisible",i),l=()=>w(Pe,"$adPlaybackState",i),d=()=>w(oi,"$crashed",i),s=()=>w(ws,"$notificationsToShow$",i),u=()=>w(Y,"$playbackState$",i),m=()=>w(Mt,"$graphIsOpened$",i),p=()=>w(Be,"$interactiveHideMobileControls",i),v=()=>w(Bi,"$isEnded$",i),b=()=>w(gt,"$isInteractiveExpectation$",i),y=()=>w(St,"$controlsVisible",i),_=()=>w(st,"$touched",i),x=()=>w(Mi,"$autoplayNextEnabled$",i),I=()=>w(vi,"$postrollPassed",i),T=()=>w(Ur,"$bottomNoSmooth",i),R=()=>w(nt,"$videoSize",i),A=()=>w(bt,"$playerSize",i),P=()=>w(dt,"$isFullscreen",i),E=()=>w(le,"$position$",i),z=()=>w($e,"$duration$",i),F=()=>w(gn,"$loadedMetadata",i),U=()=>w(We,"$settingsMenuVisible",i),X=()=>w(Xt,"$scrubbingInProgress",i),ae=()=>w(It,"$volumeChangingInProgress",i),Z=()=>w(Bt,"$chromecastConnected$",i),re=()=>w(fe,"$isControlsAvailable",i),J=()=>w(di,"$isInteractiveTime$",i),we=()=>w(Hi,"$isActiveLive",i),me=()=>w(Ct,"$settingsMenuOpenedByKeyboard",i),ee=()=>w(qt,"$language$",i),_e=()=>w($t,"$disabledControls$",i),Ce=()=>w(Ut,"$is3DVideo",i),ge=()=>w(W,"$icon3DVideoVisible",i),pe=()=>w(bo,"$chromecastDeviceName$",i),Qe=()=>w(Ei,"$currentSubtitle$",i),G=()=>w(on,"$currentSubtitleCaptions$",i),D=()=>w(Oo,"$realDuration$",i),Ge=()=>w(ot,"$isLive$",i),K=()=>w(Jt,"$isPlaying$",i),se=()=>w(li,"$debugPanelVisible",i),xe=h(e,"videoContainer",15),He=h(e,"adsSlotId",3,void 0),it=h(e,"adsParams",3,void 0),ne=h(e,"adsAutoplayParam",3,void 0),ce=h(e,"duration",3,void 0),Ne=h(e,"logoTargetUrl",3,""),Le=h(e,"showNextPrevButtons",3,!1),et=h(e,"nextButtonActive",3,!1),Ee=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),Fe=h(e,"endScreenVideoThumb",3,void 0),At=h(e,"isOneVideoPlaylist",3,!1),Tt=h(e,"showMiniTimer",3,!1),Rt=h(e,"fullScreenTarget",3,void 0),pt=h(e,"playerStarted",3,!1),Lt=h(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Mt}=yo(),Ft=e.store.getLogger().createComponentLog("Root component"),qt=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,Pe=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Ve=e.store.playerPhase,dt=e.store.ui.isFullscreen,St=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Be=e.store.ui.interactiveHideMobileControls,We=e.store.ui.settingsMenu.visible$,Ct=e.store.ui.settingsMenu.openedByBtnKeyboard$,Xt=e.store.ui.scrubbingInProgress,It=e.store.ui.volumeChangingInProgress,li=e.store.ui.debugPanelVisible,fi=e.store.state.isLoaderVisible,Bi=e.store.state.isEnded$,Bt=e.store.state.chromecastConnected$,bo=e.store.state.chromecastDeviceName$,vi=e.store.ads.postrollPassed,ot=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Hi=e.store.state.isActiveLive$,xi=e.store.state.isRewindableLive$,oi=e.store.state.crashed$,Ti=e.store.webApi.annotationsApi,at=e.store.webApi.pictureInPictureApi,nt=e.store.state.videoSize$,Ei=e.store.state.currentSubtitle$,on=e.store.state.currentSubtitleCaptions$,Oo=e.store.state.duration$,bt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Nt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,gt=e.store.state.isInteractiveExpectation$,ii=e.store.state.hasInteractiveBranches,$t=e.store.ui.controls.disabledControls$,st=e.store.ui.touched,Fi=e.store.ui.overlayContainer$,Mi=e.store.ui.autoplayNextEnabled$,gn=e.store.state.loadedMetadata$,hn=e.store.actions.internal.closeSettingsMenu,Vi=(Sn=e.store.callbacks)==null?void 0:Sn.onDisabledPlayPrevChapterClick,Ui=(Tr=e.store.callbacks)==null?void 0:Tr.onDisabledSeekToInteractiveClick,Hn=e.store.actions.internal.setQuality,xo=q(void 0),lo=q(void 0),Ai=q(void 0),Bo=q(void 0),Ho,_n,Or=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Br=q(void 0),{closeNotification:Hr,notificationsToShow$:ws}=ti,Fr=f(()=>!!s().slow_video),nr=()=>Hr("slow_video"),Ur=de(!1),bn,$n=q(!1),_r=f(()=>u()!==_a.PlaybackState.PLAYING),br=q(!1),nn=f(()=>m()||p()||!n($n)&&(v()&&!!ii||n(_r)&&b())),$r=q(!0),yr=f(()=>e.uiConfig.features.thumbTimer&&Tt()&&r()==="video"&&!y()&&!d()&&!Nt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),rr=q(!1),Fn=f(()=>(Lt()||e.showAutoplayNext&&x())&&!!Te()&&!!Fe()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(rr)),cs=q(!1);at==null||at.setContext(Td());let Fo=ft=>{ft&&!Nt&&zi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Fo});let xr=()=>{clearTimeout(Ho),N($n,!1),p()&&Be.set(!1)},zi=ft=>{xr(),N($n,!0),Ho=setTimeout(()=>N($n,!1),ft);let Et=ft-100;bn=setTimeout(()=>{T()&&Ur.set(!1)},Et>0?Et:ft)},wr=Ut.subscribe(ft=>{W.set(ft),ft&&(clearTimeout(_n),_n=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Un=(...Et)=>ht(null,[...Et],function*(ft=da()){var co,Uo,So,an,uo,Co;if(ft&&!_a.clientChecker.device.isIOS){let Pi=tc(),Kr=zn(),qn=_a.clientChecker.browser.isSamsungBrowser&&Pi===e.shadowRootContainer;ft=Pi===Kr||qn}if(ft){zi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield at==null?void 0:at.exit()}catch(Pi){Ft({message:String(Pi)})}try{let Pi=(co=R())!=null&&co.width&&((Uo=R())!=null&&Uo.height)?R():A();yield sb(Pi)}catch(Pi){Ft({message:String(Pi)})}}dt.set(ft),e.store.getAdmanWrapper().setFullscreen(ft),P()?(an=(So=e.store.callbacks)==null?void 0:So.onFullscreenEnter)==null||an.call(So):(Co=(uo=e.store.callbacks)==null?void 0:uo.onFullscreenExit)==null||Co.call(uo)}),vt=ft=>{let Et=ft,{width:co,height:Uo}=Et.target;bt.set({width:co,height:Uo})},ni=()=>{let{width:ft,height:Et}=n(xo).getBoundingClientRect();bt.set({width:ft,height:Et})};Dt(()=>{var ft;return ep(Un),e.uiConfig.features.annotationsInside&&(Ti==null||Ti.init(n(xo))),Qa(at)&&(at==null||at.assignPlayerContainer(n(xo)),at==null||at.setExternalEventHandlers({resize:vt,leavepictureinpicture:ni})),N($r,!_a.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ft=xe().parentElement)==null||ft.insertBefore(e.interactiveContainer,xe().nextSibling)),()=>{clearTimeout(Ho),clearTimeout(bn),clearTimeout(_n),wr(),at==null||at.dispose().catch(Et=>{Ft({message:String(Et)})}),tp(Un)}});let Sr=q(!0),zr=q(!0),Wr=ft=>{let Et=E()+(ft==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Et<0?(N(Sr,!1),Et=0):Et>=z()&&(N(zr,!1),Et=z()),N(br,!0),e.seekTime(Et)},zn=()=>_a.clientChecker.device.isIOS?n(xo):!e.uiConfig.allowChangingFullscreenTarget||!Rt()?e.outerContainerRef:Rt().contains(e.outerContainerRef)?Rt():e.outerContainerRef,sr=()=>ht(null,null,function*(){try{if(da())yield Ju(document),Ft({message:"exit fullscreen"});else{if(Ft({message:"request fullscreen"}),_a.clientChecker.device.isIOS&&!F())return;yield Zu(zn())}}catch(ft){Ft({message:String(ft)})}}),wo=()=>{hn()},Wn=ft=>{if(ft.preventDefault(),U()){wo();return}if(!pt()){e.firstStart(),zi(e.uiConfig.controls.hideTimeoutCursor);return}N(br,!1),y()?xr():zi(e.uiConfig.controls.hideTimeoutMobile)},ar=()=>{st.set(!0)},Kn=()=>{Nt||(Ur.set(!0),zi(e.uiConfig.controls.hideTimeoutCursor))},yn=ft=>{Vi&&(Vi(ft),zi(e.uiConfig.controls.hideTimeoutMobile))},xn=ft=>{Ui&&(Ui(ft),zi(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Fi.set(n(Br))}),Oe(()=>{St.set((n(_r)||U()||X()||ae()||Z()||!n(Fn)&&(v()||n($n)&&!n(br)))&&!n(nn)&&r()==="video"&&!d()&&re())}),Oe(()=>{!X()&&n(cs)&&!J()&&zi(e.uiConfig.controls.hideTimeoutMobile),N(cs,X(),!0)}),Oe(()=>{N(Sr,E()>0),N(zr,!we()&&E()<z(),!0)}),Oe(()=>{lc(n(Bo),U(),me(),!0)});let wn=j("aria_label_video_player");v$({fullScreenChangeHandler:Un,getFullscreenTarget:zn}),_$({store:e.store,getFullscreenTarget:zn});let rn=(ft,Et)=>{var an,uo;let co=(uo=(an=e.store.callbacks)==null?void 0:an.uiInfo)==null?void 0:uo.onUpcomingLiveViewStateChanged;if(!co)return;let Uo=!!Et,So=ke(ke({},ir(n(xo),{upcomingLiveScreen:Et},"upcomingLiveScreen",Uo)),ft);co(So)};var Wi=cT();ut("blur",Ma,wo);var eo=C(Wi);fl(eo,{onClick:Wn,get videoContainer(){return xe()},set videoContainer(ft){xe(ft)}});var sn=k(eo,2);Ba(sn,()=>"slot",!1,(ft,Et)=>{no(ft,()=>({name:pl}))});var lr=k(sn,2);Rs(lr,ee,ft=>{var Et=dT(),co=ue(Et);let Uo=f(()=>r()!=="thumb"||d()||Nt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);dl(co,{get hidden(){return n(Uo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var So=k(co,2);{var an=Je=>{var ei=nT(),wi=ue(ei);{var Po=Qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(Qo,{side:"left",get seekStep(){return n(dr)},handleSingleFirstClick:Wn,handleSecondClick:()=>Wr("backward")})};V(wi,Qo=>{n(Sr)&&Qo(Po)})}var Tn=k(wi,2);{var jn=Qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(Qo,{side:"right",get seekStep(){return n(dr)},handleSingleFirstClick:Wn,handleSecondClick:()=>Wr("forward")})};V(Tn,Qo=>{n(zr)&&Qo(jn)})}$(Je,ei)};V(So,Je=>{e.canRewindLive&&xi&&!_e().has("TIMELINE")&&Je(an)})}var uo=k(So,2);{var Co=Je=>{let ei=f(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});Rc(Je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ei)},onUpcomingLiveViewStateChanged:rn})};V(uo,Je=>{r()==="LiveWaitingStart"&&Je(Co)})}var Pi=k(uo,2);{var Kr=Je=>{cl(Je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Pi,Je=>{r()==="LiveWaitingRecover"&&Je(Kr)})}var qn=k(Pi,2);{var Ss=Je=>{cl(Je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(qn,Je=>{r()==="LiveWaitingRecord"&&Je(Ss)})}var Ki=k(qn,2);{var Cs=Je=>{var ei=rT();let wi;var Po=C(ei);oc(Po,{get adsSlotId(){return He()},get adsParams(){return it()},get adsAutoplayParam(){return ne()},get duration(){return ce()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(ei),O(Tn=>wi=oe(ei,1,"ads-container s-8",null,wi,Tn),[()=>({hidden:r()!=="ads"})]),$(Je,ei)};V(Ki,Je=>{e.showAds&&pt()&&Je(Cs)})}var us=k(Ki,2);{var Ir=Je=>{let ei=f(()=>!Lt()&&e.showAutoplayNext&&x());lg(Je,{get title(){return Te()},get thumb(){return Fe()},get isHide(){return n(ei)},clickCloseIcon:()=>N(rr,!0)})};V(us,Je=>{n(Fn)&&Te()&&Fe()&&Je(Ir)})}var zo=k(us,2);{var qr=Je=>{Mc(Je,{})};V(zo,Je=>{Ce()&&Je(qr)})}var ln=k(zo,2);{var dn=Je=>{var ei=sT(),wi=C(ei);ec(wi,{}),S(ei),$(Je,ei)};V(ln,Je=>{ge()&&Je(dn)})}var Ue=k(ln,2);{var Pt=Je=>{Vc(Je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return pe()},onClick:Wn})};V(Ue,Je=>{Z()&&Je(Pt)})}var mi=k(Ue,2);{var Wo=Je=>{al(Je,{get shifted(){return y()},get captions(){return G()},get position(){return E()},get playerSize(){return A()},isMobile:!0})};V(mi,Je=>{Qe().value!=="off"&&Je(Wo)})}var To=k(mi,2);{var Ko=Je=>{var ei=aT();ei.__click=[oT,U,We,wo];var wi=C(ei);ll(wi,{}),S(ei),$(Je,ei)};V(To,Je=>{d()&&Je(Ko)})}var qi=k(To,2);{var Io=Je=>{let ei=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),wi=f(()=>r()==="ads"),Po=f(()=>e.canRewindLive&&D()!==0);Ac(Je,{get bottomHidden(){return n(ei)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(wi)},get canRewindLive(){return n(Po)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return et()},get prevButtonActive(){return Ee()},get isOneVideoPlaylist(){return At()},get customFullscreenSupported(){return n($r)},get endScreenShown(){return n(Fn)},toggleFullscreen:sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:yn,onDisabledSeekToInteractiveClick:xn,get playerControlsWrapperRef(){return n(lo)},set playerControlsWrapperRef(Tn){N(lo,Tn,!0)},get playerControlsRef(){return n(Ai)},set playerControlsRef(Tn){N(Ai,Tn,!0)}})};V(qi,Je=>{pt()&&Je(Io)})}var Qn=k(qi,2);{var Er=Je=>{var ei=lT(),wi=C(ei);Bc(wi,{get supportLink(){return e.supportLink},get returnFocus(){return b$.noop},get ref(){return n(Bo)},set ref(Po){N(Bo,Po,!0)}}),S(ei),$(Je,ei)};V(Qn,Je=>{U()&&Je(Er)})}var Eo=k(Qn,2);let po=f(()=>!n(yr));sc(Eo,{get isLive(){return Ge()},get isHidden(){return n(po)},get isPlaying(){return K()},get position(){return E()},get duration(){return z()}});var Cn=k(Eo,2);{var qo=Je=>{Xa(Je,{})};V(Cn,Je=>{n(Or)&&Je(qo)})}var Gn=k(Cn,2);{var Qr=Je=>{cc(Je,{})};V(Gn,Je=>{se()&&Je(Qr)})}var Gr=k(Gn,2);{var Yn=Je=>{Hc(Je,{onClose:nr,onSelectAutoQuality:()=>{Hn("auto"),nr()}})};V(Gr,Je=>{n(Fr)&&Je(Yn)})}$(ft,Et)});var Cr=k(lr,2);Xe(Cr,ft=>N(Br,ft),()=>n(Br)),S(Wi),Xe(Wi,ft=>N(xo,ft),()=>n(xo)),O(()=>Re(Wi,"aria-label",wn)),ut("click",Wi,ar,!0),ut("focusin",Wi,Kn,!0),$(t,Wi),H(),o()}Ye(["click"]);function kp(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),ao(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ao(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}var $$=require("@vkontakte/videoplayer-shared/es2015");var pT=L('<div class="time-container s-7"><!></div>'),fT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),mT={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 cg(t,e){B(e,!0),Q(t,mT);let[i,o]=De(),r=()=>w(J,"$scrubbingInProgress",i),a=()=>w(Z,"$playerSize",i),l=()=>w(E,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(U,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(R,"$crashed$",i),p=()=>w(z,"$currentSubtitle$",i),v=()=>w(F,"$currentSubtitleCaptions$",i),b=()=>w(P,"$positionExact$",i),y=()=>w(X,"$isLive$",i),_=()=>w(ae,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:A,positionExact$:P,isPlaying$:E,currentSubtitle$:z,currentSubtitleCaptions$:F,positionWithScrubbing$:U,isLive$:X,isRewindableLive$:ae},ui:{playerSize:Z,controls:re,scrubbingInProgress:J},actions:{internal:{getVideoElement:we}}}=be(),me=8,ee=q(!1),_e=ui({}),Ce=q(!1),ge=f(()=>!r()&&!n(Ce)),pe=()=>{N(ee,!0)},Qe=()=>{N(ee,!1)},G=(0,$$.debounceFn)(rd,260);Oe(()=>{a(),G(we(),re,_e,n(ee))});let D=f(()=>l()?tn(d()-s()):tn(isFinite(d())?d():x()));var Ge=fT(),K=C(Ge);fl(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var se=k(K,2);Ba(se,()=>"slot",!1,(Te,Fe)=>{no(Te,()=>({name:pl}))});var xe=k(se,2);let He=f(()=>u()!=="thumb"||m());dl(xe,{get hidden(){return n(He)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var it=k(xe,2);{var ne=Te=>{al(Te,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};V(it,Te=>{p().value!=="off"&&n(ge)&&Te(ne)})}var ce=k(it,2);{var Ne=Te=>{var Fe=pT(),At=C(Fe);rc(At,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(D)}}),S(Fe),$(Te,Fe)};V(ce,Te=>{n(ge)&&Te(Ne)})}var Le=k(ce,2);let et;var Ee=C(Le);nl(Ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:me,tooltipRightOffset:me,get ref(){return _e.timeline},set ref(Te){_e.timeline=Te}}),S(Le),S(Ge),O(Te=>et=oe(Le,1,"timeline s-7",null,et,Te),[()=>({visible:n(ee)})]),ut("mouseenter",Ge,pe),ut("mouseleave",Ge,Qe),ut("mouseenter",Le,()=>N(Ce,!0)),ut("mouseleave",Le,()=>N(Ce,!1)),$(t,Ge),H(),o()}var vT=L("<div><!></div>"),gT={hash:"s-0",code:'.vk-vp-root.s-0{--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-0{overflow:visible}.vk-vp-root.s-0 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-0 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-0 p{margin:0}.vk-vp-root.s-0 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-0 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-0 :focus,.vk-vp-root.s-0 :focus-visible{outline:none}.vk-vp-root.s-0 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-0 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-0 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-0 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-0 .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-0 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-0 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ug(t,e){B(e,!0),Q(t,gT);let[i,o]=De(),r=()=>w(pt,"$isLive$",i),a=()=>w(Ti,"$availableSubtitlesList$",i),l=()=>w(at,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),b=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),_=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),P=h(e,"volume",7,void 0),E=h(e,"muted",7,void 0),z=h(e,"fromTime",7),F=h(e,"canRewindLive",7),U=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),Z=h(e,"adsAutoplayParam",7,void 0),re=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),we=h(e,"logoHidden",7),me=h(e,"isMobile",7),ee=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),Ce=h(e,"prevButtonActive",7,!1),ge=h(e,"endScreenVideoTitle",7,void 0),pe=h(e,"endScreenVideoThumb",7,void 0),Qe=h(e,"isOneVideoPlaylist",7,!1),G=h(e,"supportLink",7),D=h(e,"shadowRootContainer",7),Ge=h(e,"outerContainerRef",7),K=h(e,"fullScreenTarget",7,void 0),se=h(e,"failoverHosts",7,void 0),xe=h(e,"showMiniTimer",7,!1),He=h(e,"saveRate",7),it=h(e,"seekToInteractive",7,ml.noop),ne=h(e,"playPrevChapter",7,ml.noop),ce=h(e,"volumeMultiplier",7),Ne=h(e,"showAutoplayNext",7),Le=h(e,"showEndScreen",7,!0),et=h(e,"keyboardControls",15,void 0),{subscribers:Ee,stores:Te}=u();m_(p());let Fe=Ot(),At=p().logoLink,Tt=s().ui.debugPanelVisible,Rt=s().ui.playerSize,pt=s().state.isLive$,ti=s().state.isInteractive&&cd.clientChecker.device.isAndroid,Mt=q(void 0),Ft=null,qt=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}),C_(s(),Te),Oe(()=>{var W,Nt;s().ui.isMobile.set(me()),(Nt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Nt.call(W)});let Y=(W=!1)=>{N(qt,!0),W?s().actions.external.firstStart(U()):s().actions.internal.firstStart(U())},Pe=()=>{if(Fe.features.qualityDetailsSubMenuEnabled){let W=G_(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{Y_(s().videoId),om()&&s().actions.internal.setTrafficSavingEnabled(!0);let Nt=em(s().videoId);Nt&&s().actions.internal.setQuality(Nt)}};function le(W){var $t,st,Fi;let Nt=d()||W;Nt&&s().initVideo({container:n(Mt),sources:Nt,failoverHosts:se(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ce()});let di=ml.safeStorage.get(Gd)==="true";Tt.set(di),z()>0&&s().actions.external.seekTime(z());let gt=me()?Fe.volumeDefault:(st=($t=P())!=null?$t:zu())!=null?st:Fe.volumeDefault,ii=(Fi=E())!=null?Fi:U_();if(s().actions.external.setVolume(gt),s().actions.external.setMuted(ii),s().getAdmanWrapper().setInitialVolume(ii?0:gt),Pe(),Fe.features.saveRate&&He()){let Mi=K_();Mi&&!r()&&s().actions.internal.setPlaybackRate(Mi)}if(Ne()){let Mi=Q_();Mi&&s().actions.internal.setAutoplayNextEnabled(Mi)}s().ui.isAutoplay.set(A()),A()&&Y(),R()&&Fe.features.preload&&s().actions.internal.preload()}let $e=W=>{if(window.ResizeObserver){let Nt,di;Ft=new ResizeObserver((0,ml.throttleFn)(gt=>{let ii=gt[0];if(ii.contentBoxSize){let $t=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Nt=$t.inlineSize,di=$t.blockSize}else ii.contentRect&&(Nt=ii.contentRect.width,di=ii.contentRect.height);Rt.set({width:Nt,height:di})},300)),Ft.observe(W)}W.clientWidth&&W.clientHeight&&Rt.set({width:W.clientWidth,height:W.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var di,gt,ii,$t;ti&&document.addEventListener("visibilitychange",Ve),Fe.debugLog&&s().actions.internal.startLogging(),$e(n(Mt));let W=Ee.map(st=>st.init({store:s(),microStores:Te,config:m(),interactiveController:_(),uiConfig:p()})),Nt=()=>{ti&&document.removeEventListener("visibilitychange",Ve),Ft==null||Ft.disconnect(),W.forEach(st=>st.unsubscribe()),s().destroy()};return((di=T())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Nt):((gt=T())==null?void 0:gt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Nt):(((ii=T())==null?void 0:ii.status)==="finished"||(($t=T())==null?void 0:$t.status)==="postlive")&&!(d()&&(0,cd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Nt):(le(),Nt)});function dt(){n(qt)?s().actions.external.play():Y(!0)}function St(){s().actions.external.pause()}function fe(W){s().actions.external.setMuted(W)}function Be(){s().actions.external.toggleSubtitle()}function We(W,Nt){s().actions.external.changeSubtitle(W,Nt)}function Ct(W){s().actions.external.changeAudioStream(W)}function Xt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function It(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function li(W){me()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function fi(W){s().actions.internal.seekTime(W,y$.SeekAction.UNKNOWN)}function Bi(W){s().actions.external.seekEpisodeStartTime(W)}function Bt(){s().actions.external.returnFocusToEpisodes()}function bo(W){s().actions.external.setPlaybackRate(W)}function vi(W){s().actions.external.setAutoQualityLimits(W)}function ot(){s().actions.external.setQuality("auto")}function Jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Hi(W){s().actions.external.setHighQualityEnabled(W)}let xi=kp(Fe.view),oi=m().playerView==="preview",Ti=s().state.availableSubtitlesList$;if(Fe.features.initSubtitles){let W=!1;Oe(()=>{var Nt;if(!W&&a().length){W=!0;let di;if(Fe.features.userVideoPrefs&&s().videoId){let ii=Qu(Fe.userSalt,String(s().videoId));ii!=null&&ii.subtitleTrackId&&(di=a().find($t=>$t.value===ii.subtitleTrackId))}let gt=(Nt=I())!=null?Nt:rm();gt&&(di=a().find(ii=>ii.language===gt)),s().actions.internal.setSubtitle(di)}})}let at=s().ui.isPreviewTrackHorizontallyAligned;var nt=vT();let Ei;var on=C(nt);{var Oo=W=>{dg(W,{get store(){return s()},get uiConfig(){return Fe},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return At},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(qt)},get seekToInteractive(){return it()},get playPrevChapter(){return ne()},firstStart:Y,seekTime:fi,get showEndScreen(){return Le()},get showAutoplayNext(){return Ne()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Mt)},set videoContainer(Nt){N(Mt,Nt,!0)}})},bt=W=>{var Nt=Me(),di=ue(Nt);{var gt=$t=>{cg($t,{get thumbUrl(){return b()},get outsideDuration(){return re()},get canRewindLive(){return F()},get videoContainer(){return n(Mt)},set videoContainer(st){N(Mt,st,!0)}})},ii=$t=>{ag($t,{get store(){return s()},get uiConfig(){return Fe},get title(){return v()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return At},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(qt)},get seekToInteractive(){return it()},get playPrevChapter(){return ne()},firstStart:Y,get showEndScreen(){return Le()},get showAutoplayNext(){return Ne()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Mt)},set videoContainer(st){N(Mt,st,!0)},get keyboardControls(){return et()},set keyboardControls(st){et(st)}})};V(di,$t=>{oi?$t(gt):$t(ii,!1)})}$(W,Nt)};V(on,W=>{me()?W(Oo):W(bt,!1)})}S(nt),O(W=>{Ei=oe(nt,1,"vk-vp-root s-0",null,Ei,W),qe(nt,xi)},[()=>({"root--miui-browser":cd.clientChecker.device.isMobile&&cd.clientChecker.browser.isMiuiBrowser,"visible-outside":oi,"preview-track-horizontally-alinged":l()})]),$(t,nt);var Ut=H({initVideo:le,play:dt,pause:St,setMuted:fe,toggleSubtitle:Be,changeSubtitle:We,changeAudioStream:Ct,hideControls:Xt,showControls:It,setVolume:li,seekTime:fi,seekEpisodeStartTime:Bi,returnFocusToEpisodes:Bt,setPlaybackRate:bo,setAutoQualityLimits:vi,setAutoQuality:ot,toggleTrafficSaving:Jt,toggleHighQuality:Hi,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 m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return b()},set thumbUrl(W){b(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return _()},set interactiveController(W){_(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 R()},set preload(W){R(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return E()},set muted(W){E(W)},get fromTime(){return z()},set fromTime(W){z(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return U()},set showAds(W){U(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return ae()},set adsParams(W){ae(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return me()},set isMobile(W){me(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return Ce()},set prevButtonActive(W){Ce(W)},get endScreenVideoTitle(){return ge()},set endScreenVideoTitle(W){ge(W)},get endScreenVideoThumb(){return pe()},set endScreenVideoThumb(W){pe(W)},get isOneVideoPlaylist(){return Qe()},set isOneVideoPlaylist(W){Qe(W)},get supportLink(){return G()},set supportLink(W){G(W)},get shadowRootContainer(){return D()},set shadowRootContainer(W){D(W)},get outerContainerRef(){return Ge()},set outerContainerRef(W){Ge(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return se()},set failoverHosts(W){se(W)},get showMiniTimer(){return xe()},set showMiniTimer(W){xe(W)},get saveRate(){return He()},set saveRate(W){He(W)},get showAutoplayNext(){return Ne()},set showAutoplayNext(W){Ne(W)},get seekToInteractive(){return it()},set seekToInteractive(W){it(W)},get playPrevChapter(){return ne()},set playPrevChapter(W){ne(W)},get volumeMultiplier(){return ce()},set volumeMultiplier(W){ce(W)},get showEndScreen(){return Le()},set showEndScreen(W){Le(W)},get keyboardControls(){return et()},set keyboardControls(W){et(W)}});return o(),Ut}var hT=Ie('<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 pg(t,e){let i=h(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=hT();pi(9),$(r,l)},$$slots:{default:!0}})}var _T=L('<div class="title s-2"> </div>'),bT=L('<div class="playerStub s-2"><!> <!></div>'),$T={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 fg(t,e){Q(t,$T);var i=bT(),o=C(i);{var r=d=>{var s=_T(),u=C(s,!0);S(s),O(()=>ve(u,e.title)),$(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);pg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var yT=L('<div class="playerError s-1"><!></div>'),xT={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 mg(t){Q(t,xT);var e=yT(),i=C(e);ll(i,{}),S(e),$(t,e)}var zp=require("@vkontakte/videoplayer-shared/es2015"),Oi=require("@vkontakte/videoplayer-shared/es2015"),Zc=require("@vkontakte/videoplayer-core/es2015"),gd=require("@vkontakte/videoplayer-statistics/es2015");var Lp=require("@vkontakte/videoplayer-shared/es2015"),Ap=class{constructor(){this.subscription=new Lp.Subscription,this.logger=new Lp.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=ye(e.state.currentPlaybackRate$),r=ye(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 pd=require("@vkontakte/videoplayer-shared/es2015");var wT=Ie('<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),ST=L('<div><div><!></div> <span class="title s-6"> </span></div>'),CT={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 vg(t,e){B(e,!0),Q(t,CT);let[i,o]=De(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=be(),d=Ot(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),b=kp(d.view);var y=ST();let _;var x=C(y);let I;var T=C(x);Ze(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var z=wT();pi(),$(P,z)},$$slots:{default:!0}}),S(x);var R=k(x,2),A=C(R,!0);S(R),S(y),O((P,E)=>{_=oe(y,1,"player-pip-dummy s-6",null,_,P),qe(y,b),I=oe(x,1,"dummy-image s-6",null,I,E),ve(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),H(),o()}var TT=Object.defineProperty,IT=(t,e,i)=>e in t?TT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ud=(t,e,i)=>IT(t,typeof e!="symbol"?e+"":e,i),gg=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),ET=460,PT=280,zc=class{constructor({enabled:e=!0}={enabled:!0}){ud(this,"playerDomElement"),ud(this,"playerParentShadowRoot"),ud(this,"playerDummyElement"),ud(this,"svelteContext"),ud(this,"pipWindow"),ud(this,"info",{isActive$:new pd.ValueSubject(!1),isEnabled$:new pd.ValueSubject(!1),type:1}),this.info.isEnabled$=new pd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,pd.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}request(){return gg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:ET,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=is(vg,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||(Oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return gg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return gg(this,null,function*(){yield 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 x$(t){return t instanceof zc}var Mp=class{static getLatestSupportedVersion(e){let i=new qa(e),o=new zc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Wc(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 w$="Inner error. Unexpectedly root annotation container null reference exception",S$="Annotation with such name already exists",C$="Annotation with such name does not exist";var fd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var md=require("@vkontakte/videoplayer-shared/es2015"),kT="1",AT=100,Vp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new md.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,md.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"},AT);this.subscriptions.add((0,md.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 fd(w$);if(this.annotations.has(e))throw new fd(S$);i.style.zIndex=(o=i.style.zIndex)!=null?o:kT,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 fd(C$);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 vl=require("@vkontakte/videoplayer-shared/es2015"),vn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,vl.assertNonNullable)(e),(0,vl.assertNonNullable)(i),(0,vl.assertNonNullable)(r),r.interactiveData&&(0,vl.assertNonNullable)(o),this.subscription=new vl.Subscription,this.subscription}};var Kc=class extends vn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Gt(ke({},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 qc=class extends vn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Gt(ke({},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:m}=a.ui,p=ye(m),v=()=>p&&ye(u);return o.add(u.subscribe(b=>{if(!p)return;let y=ye(l);ye(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||v())})),o.add(l.subscribe(b=>{if(b===null)return;let y=ye(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Qc=class extends vn{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 T$=require("@vkontakte/videoplayer-shared/es2015");var hg=de(!1),Rp=null,Gc=class extends vn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Gt(ke({},hg),{set:(i,o=!1)=>{i!==ye(hg)&&(this.clearTimeout(),hg.set(i),!i&&Rp&&(Rp=!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=>{ye(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,T$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,_;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Rp===null&&(Rp=!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 Np=require("@vkontakte/videoplayer-shared/es2015");var Yc=class extends vn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Gt(ke({},de(null)),{toggle:Np.noop});this.checkIfShouldHide=i=>Fs(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=()=>ht(this,null,function*(){if(this.checkIfShouldHide(ye(l)))return;let s=ye(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=ye(u),b=ye(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Qf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Qf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Np.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>ht(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}}))),o}};var _g=require("@vkontakte/videoplayer-shared/es2015"),jc=class extends vn{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 _g.ValueSubject(!1),isEnabled$:new _g.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 Op=require("@vkontakte/videoplayer-shared/es2015");var Dp=require("@vkontakte/videoplayer-shared/es2015");var I$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?LT({maxCount:t}):void 0,e!==0?MT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},LT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Dp.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}}},MT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Dp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Dp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(Gt(ke({},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 Xc=class extends vn{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=I$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Op.filterChanged)(),(0,Op.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 E$=()=>[Kc,qc,Qc,Gc,Yc,jc,Xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Gt(ke({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var vd=require("@vkontakte/videoplayer-shared/es2015");var Bp=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 Hp=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 Bp(()=>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 VT=L('<div class="root s-3"><!></div>'),RT={hash:"s-3",code:".root.s-3{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function bg(t,e){B(e,!0),Q(t,RT);let i=null,o=q(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Me(),l=ue(a);{var d=s=>{var u=Me(),m=ue(u);Rs(m,()=>n(o),p=>{var v=VT(),b=C(v);let y=f(()=>n(o)==="prev");Uc(b,{get duration(){return e.animationDuration},get Icon(){return ha},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),H({startVideoChangedAnimation:r})}var P$=require("@vkontakte/videoplayer-shared/es2015"),$g=(0,P$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var NT=Object.defineProperty,DT=Object.defineProperties,OT=Object.getOwnPropertyDescriptors,k$=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,xg=(t,e,i)=>e in t?NT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qs=(t,e)=>{for(var i in e||(e={}))BT.call(e,i)&&xg(t,i,e[i]);if(k$)for(var i of k$(e))HT.call(e,i)&&xg(t,i,e[i]);return t},FT=(t,e)=>DT(t,OT(e)),jt=(t,e,i)=>xg(t,typeof e!="symbol"?e+"":e,i),Fp=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),UT={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,Zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},or=q(void 0),yg=ui({animationDuration:0,playbackStatusShow:!1}),Up=class extends $g{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"sveltePersistentLayerComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"stateContainer"),jt(this,"shadowRootContainer"),jt(this,"playerId"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"metaConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"postponedInitParams",null),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new zp.ValueSubject(null)),jt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:b,isMobile:y,isTouch:_,refDomain:x,deviceId:I,interactiveData:T}=Wc(this.videoConfig,i),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new gd.OneStat(Qs({movieId:P,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:E,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),Qs({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(F){console.error(F),this.log({message:F.message})}}),vd.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=is(mg,{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=ui({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=is(fg,l),this.sveltePersistentLayerComponent=is(bg,{target:this.playerContainer,props:yg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;yg.animationDuration=e,yg.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(),vd.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}=Wc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new gd.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,p,v,b;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:x,preload:I,autoplay:T,volume:R,muted:A,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:X={},adsAutoplayParam:ae,interfaceLanguage:Z,isCyrillicRelatedInterface:re,logoClickable:J,logoHidden:we,isMobile:me,isTouch:ee,isAudioDisabled:_e,isLiveCatchUpMode:Ce,fullScreenTarget:ge,failoverHosts:pe,canDownload:Qe,callbacks:G,interactiveData:D,showThumbTimer:Ge,additionalButtons:K=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:xe=[],repeat:He,loop:it,saveRate:ne,volumeMultiplier:ce,showEndScreen:Ne,showAutoplayNext:Le,mediascopePixels:et}=Wc(this.videoConfig,i),{sources:Ee,title:Te,thumbUrl:Fe,unitedVideoId:At,isClip:Tt=!1,duration:Rt,adsParams:pt={},videoEpisodes:Lt,previewThumbsData:ti,subtitles:Mt,subtitlesForcedLanguage:Ft,live:qt,adsExternalApi:Y,adsJson:Pe}=e;if(!Ee&&!qt){let vi=new Error("empty sources and live");this.fatalError$.next(vi),(r=G.onCrashed)==null||r.call(G,vi.message);return}let le=Qs(Qs({},X),pt),$e=this.getNextVideoInfo(),Ve={sources:Ee,title:Te,thumbUrl:Fe,subtitles:Mt,subtitlesForcedLanguage:Ft,unitedVideoId:At,isClip:Tt,live:qt,albumId:y,statPlace:_,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Rt,logoClickable:J,logoHidden:we,isTouch:ee!=null?ee:me,repeat:He,loop:it,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},dt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Ve)}`});let St=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),fe=(St==null?void 0:St.oneStat)||this.createOneStat(e,i),Be=this.createThinOneStat(e,i),We;et&&(We=new gd.MediascopePixel({pixels:et})),(fe||Be)&&(this.statistics=new hp(fe,Be,We,St==null?void 0:St.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ka(this.uiConfig.sentry,{version:Ua,env:Hu},{movieId:At,albumId:y,place:_,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:me,clip:Tt}),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=Qs(Qs({},this.sentry),Ka.getInstance());let Xt=!!D,It=[],li="tooltip_interactive_go_back_disabled_first";if(Xt&&this.interactiveController){let vi=this.interactiveController.state.isInitialChapter$.getValue(),ot=this.interactiveController.getHistoryState();vi&&It.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||It.push("SEEK_TO_INTERACTIVE_BUTTON"),ot.hasPrevChapter$.getValue()||(It.push("PLAY_PREV_CHAPTER_BUTTON"),vi||(ot.isGoBackLimited$.getValue()?li="tooltip_interactive_go_back_disabled_limit":li="tooltip_interactive_go_back_disabled"))}let fi=()=>{var vi;this.isInited=!1,this.prevIsid=void 0;let ot=(o==null?void 0:o.info.isEnded$.getValue())&&((vi=this.interactiveController)==null?void 0:vi.state.isEndChapter$.getValue());G.onReplayInteractiveVideo&&!ot?G.onReplayInteractiveVideo():this.replayInteractiveVideo()},Bi=He&&this.videoConfig.videos.length===1;this.store=Ob({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:re,videoId:At,isClip:Tt,isLiveCatchUpMode:Ce,isAudioDisabled:_e,statAuthToken:x,callbacks:G,webApi:dt,videoEpisodes:Lt,previewThumbsData:ti,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:It,isInteractive:Xt,saveRate:ne,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:fi,playPrevChapterDisabledTooltip:li,hasInteractiveBranches:!!((b=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:xe!=null?xe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:vi=>{var ot;return(ot=this.sveltePersistentLayerComponent)==null?void 0:ot.startVideoChangedAnimation(vi)},looped:this.uiConfig.features.useLoopSetting?it:Bi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Bt}=this.microStoresRoot=E$(),bo=()=>{var vi,ot,Jt,Hi,xi,oi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onCurrentFormatChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(Bt.interactiveControlsOpacity$.subscribe(at=>{var nt;at!==null&&((nt=this==null?void 0:this.interactiveController)==null||nt.setDisabledControls(at))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onThroughputEstimationChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onTrafficSavingEnabledChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onHighQualityEnabledChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onAutoQualityEnabledChanged)==null?void 0:nt.call(G,!!at)})),this.subscription.add(new Oi.Observable(at=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(nt=>at.next(nt)))}).pipe((0,Oi.skip)(1)).subscribe(at=>{var nt;return(nt=G==null?void 0:G.onCurrentPlaybackRateChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.volume$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onVolumeChange)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.muted$.subscribe(at=>{var nt,Ei,on,Oo;if(at)(nt=G==null?void 0:G.onMute)==null||nt.call(G);else{let bt=(on=((Ei=this.store)==null?void 0:Ei.state.volume$)&&ye(this.store.state.volume$))!=null?on:0;(Oo=G==null?void 0:G.onUnmute)==null||Oo.call(G,bt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onVideoBitrateChanged)==null?void 0:nt.call(G,at)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(at=>{var nt;let Ei=(nt=this.store)==null?void 0:nt.ui.controls.disabledControls$;Ei&&(at&&!Ei.includes(Yd)&&Ei.add(Yd),at||Ei.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(at=>Fp(this,null,function*(){var nt;if(!Zc.clientChecker.browser.isSamsungBrowser||!at||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((nt=this.videoConfig)==null?void 0:nt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(at=>{var nt;return(nt=G==null?void 0:G.onVSIDChanged)==null?void 0:nt.call(G,at)})),this.initMediaSession(),N(or,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Fe,subtitles:Mt,subtitlesForcedLanguage:Ft,live:qt,preload:I,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Rt,logoClickable:J,logoHidden:we,isMobile:ee!=null?ee:me,failoverHosts:pe,fullScreenTarget:ge,saveRate:ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ge,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ce,showEndScreen:Ne,showAutoplayNext:Le,adsExternalApi:Y,adsJson:Pe,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let Ti={target:this.playerContainer,props:n(or)};this.svelteRootComponent=is(ug,Ti),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Jt=(ot=(vi=this.videoConfig)==null?void 0:vi.callbacks)==null?void 0:ot.onInited)==null||Jt.call(ot)),(Hi=this.internalsExposure)==null||Hi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((oi=(xi=this.videoConfig)==null?void 0:xi.callbacks)!=null&&oi.onDevNullLog)?vd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):vd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zc.clientChecker.isInited$.subscribe(vi=>{vi&&(console.log("UI SDK async start"),bo())}):bo()}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)}initInteractives(){return Fp(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:b,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 x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=FT(Qs({},I.config),{title:(m==null?void 0:m.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 R,A,P,E,z,F;if(!this.store||!this.microStoresRoot)return;let U=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jd)),I==="action-choice-canceled"){let X=ye(this.store.state.isPlaying$)||U;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(E=this.videoConfig)==null?void 0:(z=E.callbacks).onDisabledInteractiveClick)==null||F.call(z)}})),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(jd)})),yield 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 R,A,P;T.length&&((P=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,A;(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),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,p,v,b,y,_,x,I,T,R,A,P,E,z,F,U,X,ae;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let Z=new Error("empty videos");this.fatalError$.next(Z),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,Z.message);return}else this.fatalError$.next(null);if(this.videoConfig=Wc(UT,(0,Oi.cloneDeepWith)(e,Z=>Z instanceof $g?Z:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=f_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,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))),vd.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,zp.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=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(x=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride=Qs({preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((z=this.uiConfig.showLogo)!=null?z:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U: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&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let Z={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Mp.getLatestSupportedVersion(Z):this.pictureInPictureApi=new qa(Z)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ap:void 0,this.slotsApi=this.uiConfig.features.slots?new Ip(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Vp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Hp(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]),x$(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(or)&&(n(or).showNextPrevButtons=this.needToShowNextPrevButtons(),n(or).nextButtonActive=this.isNextButtonActive(),n(or).prevButtonActive=this.isPrevButtonActive(),n(or).endScreenVideoTitle=o.nextVideoTitle,n(or).endScreenVideoThumb=o.nextVideoThumb,n(or).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}=Qs({},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(or)&&(n(or).needToRepeatPlaylist=this.needToRepeatPlaylist,n(or).showNextPrevButtons=this.needToShowNextPrevButtons(),n(or).nextButtonActive=this.isNextButtonActive(),n(or).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)}setLanguage(e){return Fp(this,null,function*(){var i;yield(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()}replayInteractiveChapter(e){return Fp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=ye(this.store.state.positionExact$),l=ye(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();yield 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&&Oa(e)}};var hd=require("@vkontakte/videoplayer-shared/es2015"),Wp=require("@vkontakte/videoplayer-core/es2015"),zT=()=>{window.customElements.define("vk-video-player",Up)};