@vkontakte/videoplayer 1.1.76-beta.2 → 1.1.76-dev.44b02f36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +388 -43
- package/es2015.esm.js +388 -43
- package/es2018.cjs.js +388 -43
- package/es2018.esm.js +388 -43
- package/es2024.cjs.js +386 -41
- package/es2024.esm.js +386 -41
- package/esnext.cjs.js +386 -41
- package/esnext.esm.js +386 -41
- package/evergreen.esm.js +386 -41
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +0 -1
- package/types/store/index.d.ts +2 -2
- package/types/components/Icons/constants.d.ts +0 -7
- package/types/components/Icons/utils.d.ts +0 -2
package/esnext.cjs.js
CHANGED
|
@@ -1,63 +1,408 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.76-
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.76-dev.44b02f36.0
|
|
3
|
+
* Mon, 10 Nov 2025 14:16:30 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var l_=Object.create;var Bc=Object.defineProperty;var d_=Object.getOwnPropertyDescriptor;var c_=Object.getOwnPropertyNames;var u_=Object.getPrototypeOf,p_=Object.prototype.hasOwnProperty;var f_=(t,e)=>{for(var i in e)Bc(t,i,{get:e[i],enumerable:!0})},ug=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c_(e))!p_.call(t,r)&&r!==i&&Bc(t,r,{get:()=>e[r],enumerable:!(o=d_(e,r))||o.enumerable});return t};var pg=(t,e,i)=>(i=t!=null?l_(u_(t)):{},ug(e||!t||!t.__esModule?Bc(i,"default",{value:t,enumerable:!0}):i,t)),m_=t=>ug(Bc({},"__esModule",{value:!0}),t);var ew={};f_(ew,{ControlButtonType:()=>Jd,GridTypes:()=>Or,InterfaceLanguage:()=>jl.InterfaceLanguage,MenuItemType:()=>Al,PlayerPhase:()=>Dr,VERSION:()=>$a,VKNumericLanguage:()=>jl.VKNumericLanguage,VideoFormat:()=>gp.VideoFormat,VideoQuality:()=>gp.VideoQuality,loadVKLangPack:()=>jl.loadVKLangPack,registerPlayerWebComponent:()=>J5});module.exports=m_(ew);var Ms="[",Ls="[!",oa="]",Yr={};var Di=Symbol(),$n=Symbol("filename"),fg=Symbol("hmr"),mg="http://www.w3.org/1999/xhtml",Hc="http://www.w3.org/2000/svg";var Sp="@attach";var Fc=!0;var vg=globalThis.process?.env?.NODE_ENV,Ie=vg&&!vg.toLowerCase().startsWith("prod");var Bn=Array.isArray,gg=Array.prototype.indexOf,Jl=Array.from,Cp=Object.keys,Qi=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,Tp=Object.prototype,hg=Array.prototype,na=Object.getPrototypeOf,kp=Object.isExtensible;function Vs(t){return typeof t=="function"}var oe=()=>{};function _g(t){return t()}function Rs(t){for(var e=0;e<t.length;e++)t[e]()}var Ao=Symbol("$state"),tl=Symbol("legacy props"),bg=Symbol(""),zc=Symbol("proxy path"),Wc=1,il=3,Hn=8;function Kc(t){return t===this.v}function ol(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function $g(t,e){return t!==e}function nl(t){return!ol(t,this.v)}function yg(){if(Ie){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function xg(t){if(Ie){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function wg(){if(Ie){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Sg(t){if(Ie){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Cg(){if(Ie){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Tg(){if(Ie){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function kg(){if(Ie){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Ig(t){if(Ie){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Eg(t){if(Ie){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Ag(t){if(Ie){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Pg(){if(Ie){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 Mg(){if(Ie){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 Lg(){if(Ie){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 Zr=!1,Xr=!1;function Vg(){Zr=!0}var ed=null;function fs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),r=[`
|
|
24
|
-
`];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||r.push(a)}}if(r.length===1)return null;Qi(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),Qi(e,"name",{value:`${t}Error`})}return e}function Ar(t,e){return t.label=e,qc(t.v,e),t}function qc(t,e){return t?.[zc]?.(e),t}function rl(t){if(Ie){let e=new Error(`lifecycle_outside_component
|
|
26
26
|
\`${t}(...)\` can only be used during component initialisation
|
|
27
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var
|
|
27
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ht=null;function td(t){Ht=t}var Fn=null;function id(t){Fn=t}function sl(t){return Ap("getContext").get(t)}function al(t,e){return Ap("setContext").set(t,e),e}function od(){return Ap("getAllContexts")}function F(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Zr&&!e&&(Ht.l={s:null,u:null,r1:[],r2:ur(!1)}),lo(()=>{o.d=!0}),Ie&&(Ht.function=i,Fn=i)}function U(t){let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=Et;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];ji(s.effect),ki(s.reaction),co(s.fn)}}finally{ji(i),ki(o)}}Ht=e.p,Ie&&(Fn=e.p?.function??null),e.m=!0}return t||{}}function Jr(){return!Zr||Ht!==null&&Ht.l===null}function Ap(t){return Ht===null&&rl(t),Ht.c??=new Map(g_(Ht)||void 0)}function g_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var h_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Zt(t){if(typeof t!="object"||t===null||Ao in t)return t;let e=na(t);if(e!==Tp&&e!==hg)return t;var i=new Map,o=Bn(t),r=K(0),s=Ie&&Xr?fs("CreatedAt"):null,a=Et,d=g=>{var v=Et;ki(a);var u=g();return ki(v),u};o&&i.set("length",K(t.length,s));var l="";function f(g){l=g,Ar(r,`${l} version`);for(let[v,u]of i)Ar(u,ra(l,v))}return new Proxy(t,{defineProperty(g,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Pg();var y=i.get(v);return y===void 0?y=d(()=>{var x=K(u.value,s);return i.set(v,x),Ie&&typeof v=="string"&&Ar(x,ra(l,v)),x}):L(y,u.value,!0),!0},deleteProperty(g,v){var u=i.get(v);if(u===void 0){if(v in g){let w=d(()=>K(Di,s));i.set(v,w),Pp(r),Ie&&Ar(w,ra(l,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),x=Number(v);Number.isInteger(x)&&x<y.v&&L(y,x)}L(u,Di),Pp(r)}return!0},get(g,v,u){if(v===Ao)return t;if(Ie&&v===zc)return f;var y=i.get(v),x=v in g;if(y===void 0&&(!x||Eo(g,v)?.writable)&&(y=d(()=>{var C=Zt(x?g[v]:Di),k=K(C,s);return Ie&&Ar(k,ra(l,v)),k}),i.set(v,y)),y!==void 0){var w=n(y);return w===Di?void 0:w}return Reflect.get(g,v,u)},getOwnPropertyDescriptor(g,v){var u=Reflect.getOwnPropertyDescriptor(g,v);if(u&&"value"in u){var y=i.get(v);y&&(u.value=n(y))}else if(u===void 0){var x=i.get(v),w=x?.v;if(x!==void 0&&w!==Di)return{enumerable:!0,configurable:!0,value:w,writable:!0}}return u},has(g,v){if(v===Ao)return!0;var u=i.get(v),y=u!==void 0&&u.v!==Di||Reflect.has(g,v);if(u!==void 0||gt!==null&&(!y||Eo(g,v)?.writable)){u===void 0&&(u=d(()=>{var w=y?Zt(g[v]):Di,C=K(w,s);return Ie&&Ar(C,ra(l,v)),C}),i.set(v,u));var x=n(u);if(x===Di)return!1}return y},set(g,v,u,y){var x=i.get(v),w=v in g;if(o&&v==="length")for(var C=u;C<x.v;C+=1){var k=i.get(C+"");k!==void 0?L(k,Di):C in g&&(k=d(()=>K(Di,s)),i.set(C+"",k),Ie&&Ar(k,ra(l,C)))}if(x===void 0)(!w||Eo(g,v)?.writable)&&(x=d(()=>K(void 0,s)),L(x,Zt(u)),i.set(v,x),Ie&&Ar(x,ra(l,v)));else{w=x.v!==Di;var T=d(()=>Zt(u));L(x,T)}var N=Reflect.getOwnPropertyDescriptor(g,v);if(N?.set&&N.set.call(y,u),!w){if(o&&typeof v=="string"){var A=i.get("length"),R=Number(v);Number.isInteger(R)&&R>=A.v&&L(A,R+1)}Pp(r)}return!0},ownKeys(g){n(r);var v=Reflect.ownKeys(g).filter(x=>{var w=i.get(x);return w===void 0||w.v!==Di});for(var[u,y]of i)y.v!==Di&&!(u in g)&&v.push(u);return v},setPrototypeOf(){Mg()}})}function ra(t,e){return typeof e=="symbol"?`${t}[Symbol(${e.description??""})]`:h_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Pp(t,e=1){L(t,t.v+e)}function ll(t){try{if(t!==null&&typeof t=="object"&&Ao in t)return t[Ao]}catch{}return t}function Mp(t,e){return Object.is(ll(t),ll(e))}function Pr(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:Kc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??gt};return Ie&&Xr&&(o.created=fs("CreatedAt")),o}function p(t){let e=Pr(t);return Gc(e),e}function sn(t){let e=Pr(t);return e.equals=nl,e}function Qc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ii(e[i])}}var Lp=[];function __(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Np(t){var e,i=gt;if(ji(__(t)),Ie){let o=sa;Vp(new Set);try{Lp.includes(t)&&yg(),Lp.push(t),Qc(t),e=jc(t)}finally{ji(i),Vp(o),Lp.pop()}}else try{Qc(t),e=jc(t)}finally{ji(i)}return e}function Op(t){var e=Np(t);if(t.equals(e)||(t.v=e,t.wv=nd()),!ms){var i=(vs||(t.f&256)!==0)&&t.deps!==null?4096:1024;an(t,i)}}var sa=new Set,dl=new Map;function Vp(t){sa=t}function ur(t,e){var i={f:0,v:t,reactions:null,equals:Kc,rv:0,wv:0};return Ie&&Xr&&(i.created=e??fs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=ur(t,e);return Gc(i),i}function es(t,e=!1,i=!0){let o=ur(t);return e||(o.equals=nl),Zr&&i&&Ht!==null&&Ht.l!==null&&(Ht.l.s??=[]).push(o),o}function L(t,e,i=!1){Et!==null&&(!Kn||(Et.f&262144)!==0)&&Jr()&&(Et.f&262162)!==0&&!(zn?.[1].includes(t)&&zn[0]===Et)&&Lg();let o=i?Zt(e):e;return Ie&&qc(o,t.label),cl(t,o)}function cl(t,e){if(!t.equals(e)){var i=t.v;if(ms?dl.set(t,e):dl.set(t,i),t.v=e,Ie&&Xr&&(t.updated=fs("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Np(t),an(t,(t.f&256)===0?1024:4096)),t.wv=nd(),Ng(t,2048),Jr()&>!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(Wn===null?Og([t]):Wn.push(t)),Ie&&sa.size>0){let o=Array.from(sa);for(let r of o)(r.f&1024)!==0&&an(r,4096),la(r)&&ul(r);sa.clear()}}return e}function Ng(t,e){var i=t.reactions;if(i!==null)for(var o=Jr(),r=i.length,s=0;s<r;s++){var a=i[s],d=a.f;if((d&2048)===0&&!(!o&&a===gt)){if(Ie&&(d&262144)!==0){sa.add(a);continue}an(a,e),(d&1280)!==0&&((d&2)!==0?Ng(a,4096):sd(a))}}}var pl="font-weight: bold",fl="font-weight: normal";function Dg(t,e,i){Ie?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`,
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,pl,fl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Bg(t){Ie?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`,
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,pl,fl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ns(t){Ie?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`,
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,pl,fl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Hg(){Ie?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`,
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,pl,fl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Fg(){Ie?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",pl,fl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yc(t){Ie?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`,
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,pl,fl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function Gi(t){et=t}var ht;function ci(t){if(t===null)throw Ns(),Yr;return ht=t}function Ei(){return ci(Mo(ht))}function m(t){if(et){if(Mo(ht)!==null)throw Ns(),Yr;ht=t}}function ye(t=1){if(et){for(var e=t,i=ht;e--;)i=Mo(i);ht=i}}function da(){for(var t=0,e=ht;;){if(e.nodeType===Hn){var i=e.data;if(i===oa){if(t===0)return e;t-=1}else(i===Ms||i===Ls)&&(t+=1)}var o=Mo(e);e.remove(),e=o}}function Zc(t){if(!t||t.nodeType!==Hn)throw Ns(),Yr;return t.data}function Ug(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,a){let d=i.call(this,s,a);if(d===-1){for(let l=a??0;l<this.length;l+=1)if(ll(this[l])===s){Yc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,a){let d=o.call(this,s,a??this.length-1);if(d===-1){for(let l=0;l<=(a??this.length-1);l+=1)if(ll(this[l])===s){Yc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,a){let d=r.call(this,s,a);if(!d){for(let l=0;l<this.length;l+=1)if(ll(this[l])===s){Yc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ca,zg,ad,Wg,Kg;function Xc(){if(ca===void 0){ca=window,zg=document,ad=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Wg=Eo(e,"firstChild").get,Kg=Eo(e,"nextSibling").get,kp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),kp(i)&&(i.__t=void 0),Ie&&(t.__svelte_meta=null,Ug())}}function ln(t=""){return document.createTextNode(t)}function fi(t){return Wg.call(t)}function Mo(t){return Kg.call(t)}function _(t,e){if(!et)return fi(t);var i=fi(ht);if(i===null)i=ht.appendChild(ln());else if(e&&i.nodeType!==il){var o=ln();return i?.before(o),ci(o),o}return ci(i),i}function ce(t,e){if(!et){var i=fi(t);return i.nodeType===8&&i.data===""?Mo(i):i}if(e&&ht?.nodeType!==il){var o=ln();return ht?.before(o),ci(o),o}return ht}function I(t,e=1,i=!1){let o=et?ht:t;for(var r;e--;)r=o,o=Mo(o);if(!et)return o;if(i&&o?.nodeType!==il){var s=ln();return o===null?r?.after(s):o.before(s),ci(s),s}return ci(o),o}function ld(t){t.textContent=""}function Hp(t){gt===null&&Et===null&&Sg(t),Et!==null&&(Et.f&256)!==0&>===null&&wg(),ms&&xg(t)}function b_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ua(t,e,i,o=!0){var r=gt;if(Ie)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ht,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(Ie&&(s.component_function=Fn),i)try{ul(s),s.f|=32768}catch(l){throw Ii(s),l}else e!==null&&sd(s);var a=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!a&&o&&(r!==null&&b_(s,r),Et!==null&&(Et.f&2)!==0)){var d=Et;(d.effects??=[]).push(s)}return s}function lo(t){let e=ua(8,null,!1);return an(e,1024),e.teardown=t,e}function Ne(t){Hp("$effect");var e=gt!==null&&(gt.f&32)!==0&&Ht!==null&&!Ht.m;if(Ie&&Qi(t,"name",{value:"$effect"}),e){var i=Ht;(i.e??=[]).push({fn:t,effect:gt,reaction:Et})}else{var o=co(t);return o}}function ud(t){return Hp("$effect.pre"),Ie&&Qi(t,"name",{value:"$effect.pre"}),Lo(t)}function tu(t){let e=ua(64,t,!0);return()=>{Ii(e)}}function Qg(t){let e=ua(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Sn(e,()=>{Ii(e),o(void 0)}):(Ii(e),o(void 0))})}function co(t){return ua(4,t,!1)}function Lo(t){return ua(8,t,!0)}function O(t,e=[],i=Pr){if(Ie)return Lo(()=>{var r=gt,s=()=>t(...a.map(n));Qi(r.fn,"name",{value:"{expression}"}),Qi(s,"name",{value:"{expression}"});let a=e.map(i);Ai(s)});let o=e.map(i);return Ai(()=>t(...o.map(n)))}function Ai(t,e=0){return ua(24|e,t,!0)}function $i(t,e=!0){return ua(40,t,!0,e)}function Fp(t){var e=t.teardown;if(e!==null){let i=ms,o=Et;Dp(!0),ki(null);try{e.call(null)}finally{Dp(i),ki(o)}}}function Up(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:Ii(i,e),i=o}}function jg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ii(e),e=i}}function Ii(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(zp(t.nodes_start,t.nodes_end),i=!0),Up(t,e&&!i),pd(t,0),an(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Fp(t);var r=t.parent;r!==null&&r.first!==null&&Wp(t),Ie&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function zp(t,e){for(;t!==null;){var i=t===e?null:Mo(t);t.remove(),t=i}}function Wp(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 Sn(t,e){var i=[];iu(t,i,!0),Kp(i,()=>{Ii(t),e&&e()})}function Kp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function iu(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;iu(o,e,s?i:!1),o=r}}}function hs(t){Gg(t,!0)}function Gg(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;Gg(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var fd=[],qp=[];function Yg(){var t=fd;fd=[],Rs(t)}function $_(){var t=qp;qp=[],Rs(t)}function dn(t){fd.length===0&&queueMicrotask(Yg),fd.push(t)}function Zg(){fd.length>0&&Yg(),qp.length>0&&$_()}function Jg(t){var e=gt;if(Ie&&t instanceof Error&&y_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else md(t,e)}function md(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}var Xg=new WeakSet;function y_(t,e){if(Xg.has(t))return;Xg.add(t);let i=Eo(t,"message");if(!(i&&!i.configurable)){for(var o=ad?" ":" ",r=`
|
|
38
38
|
${o}in ${e.fn?.name||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
|
|
39
|
-
${o}in ${s.function?.[
|
|
39
|
+
${o}in ${s.function?.[$n].split("/").pop()}`,s=s.p;Qi(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
|
-
`}),t.stack&&
|
|
41
|
+
`}),t.stack&&Qi(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(a=>!a.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var ha=!1,yl=null,_a=!1,ms=!1;function zp(t){ms=t}var yd=[],xd=[],St=null,Jn=!1;function Ii(t){St=t}var ft=null;function Zi(t){ft=t}var Xn=null;function tu(t){St!==null&&St.f&2097152&&(Xn===null?Xn=[St,[t]]:Xn[1].push(t))}var fn=null,er=0,Zn=null;function xg(t){Zn=t}var Fg=1,cu=0,vs=!1,uu=null;function cd(){return++Fg}function fa(t){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,s,a=(e&512)!==0,d=o&&ft!==null&&!vs,l=i.length;if(a||d){var p=t,f=p.parent;for(r=0;r<l;r++)s=i[r],(a||!s?.reactions?.includes(p))&&(s.reactions??=[]).push(p);a&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(r=0;r<l;r++)if(s=i[r],fa(s)&&Up(s),s.wv>t.wv)return!0}(!o||ft!==null&&!vs)&&cn(t,1024)}return!1}function Ug(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Xn?.[1].includes(t)&&Xn[0]===St||((s.f&2)!==0?Ug(s,e,!1):e===s&&(i?cn(s,2048):(s.f&1024)!==0&&cn(s,4096),pd(s)))}}function eu(t){var e=fn,i=er,o=Zn,r=St,s=vs,a=Xn,d=Ot,l=Jn,p=t.f;fn=null,er=0,Zn=null,vs=(p&256)!==0&&(Jn||!_a||St===null),St=(p&96)===0?t:null,Xn=null,ad(t.ctx),Jn=!1,cu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(fn!==null){var m;if(_d(t,er),v!==null&&er>0)for(v.length=er+fn.length,m=0;m<fn.length;m++)v[er+m]=fn[m];else t.deps=v=fn;if(!vs||(p&2)!==0&&t.reactions!==null)for(m=er;m<v.length;m++)(v[m].reactions??=[]).push(t)}else v!==null&&er<v.length&&(_d(t,er),v.length=er);if(ts()&&Zn!==null&&!Jn&&v!==null&&(t.f&6146)===0)for(m=0;m<Zn.length;m++)Ug(Zn[m],t);return r!==null&&r!==t&&(cu++,Zn!==null&&(o===null?o=Zn:o.push(...Zn))),f}catch(b){Og(b)}finally{fn=e,er=i,Zn=o,St=r,vs=s,Xn=a,ad(d),Jn=l,t.f^=2097152}}function d$(t,e){let i=e.reactions;if(i!==null){var o=tg.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&&(fn===null||!fn.includes(e))&&(cn(e,4096),(e.f&768)===0&&(e.f^=512),Jc(e),_d(e,0))}function _d(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)d$(t,i[o])}function _l(t){var e=t.f;if((e&16384)===0){cn(t,1024);var i=ft,o=_a;if(ft=t,_a=!0,Ce){var r=Yn;ld(t.component_function)}try{(e&16)!==0?Mg(t):Qp(t),qp(t);var s=eu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Fg,Ce&&es&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=cd(),a.set_during_effect=!1);Ce&&xd.push(t)}finally{_a=o,ft=i,Ce&&ld(r)}}}function Bg(){console.error("Last ten effects were: ",xd.slice(-10).map(t=>t.fn)),xd=[]}function c$(){try{cg()}catch(t){if(Ce&&Xi(t,"stack",{value:""}),yl!==null)if(Ce)try{$d(t,yl)}catch(e){throw Bg(),e}else $d(t,yl);else throw Ce&&Bg(),t}}function Jp(){var t=_a;try{var e=0;for(_a=!0;yd.length>0;){e++>1e3&&c$();var i=yd,o=i.length;yd=[];for(var r=0;r<o;r++){var s=p$(i[r]);u$(s)}gl.clear()}}finally{ha=!1,_a=t,yl=null,Ce&&(xd=[])}}function u$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&fa(o)&&(_l(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Yp(o):o.fn=null))}}function pd(t){ha||(ha=!0,queueMicrotask(Jp));for(var e=yl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}yd.push(e)}function p$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:fa(i)&&_l(i);var a=i.first;if(a!==null){i=a;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function xl(t){var e;for(t&&(ha=!0,Jp(),ha=!0,e=t());;){if(Ng(),yd.length===0)return ha=!1,yl=null,Ce&&(xd=[]),e;ha=!0,Jp()}}async function eo(){await Promise.resolve(),xl()}function n(t){var e=t.f,i=(e&2)!==0;if(uu!==null&&uu.add(t),St!==null&&!Jn){if(!Xn?.[1].includes(t)||Xn[0]!==St){var o=St.deps;t.rv<cu&&(t.rv=cu,fn===null&&o!==null&&o[er]===t?er++:fn===null?fn=[t]:(!vs||!fn.includes(t))&&fn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,fa(r)&&Up(r)),Ce&&es&&!Jn&&sd!==null&&St!==null&&sd.reaction===St)if(t.trace)t.trace();else{var a=fs("TracedAt");if(a){var d=sd.entries.get(t);d===void 0&&(d={traces:[]},sd.entries.set(t,d));var l=d.traces[d.traces.length-1];a.stack!==l?.stack&&d.traces.push(a)}}return ms&&gl.has(t)?gl.get(t):t.v}function $t(t){var e=Jn;try{return Jn=!0,t()}finally{Jn=e}}var f$=-7169;function cn(t,e){t.f=t.f&f$|e}function fu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Eo in t)pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Eo 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{}let i=da(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Gc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function ef(t,e){if(e){let i=document.body;t.autofocus=!0,pn(()=>{document.activeElement===i&&t.focus()})}}function wd(t){var e=St,i=ft;Ii(null),Zi(null);try{return t()}finally{Ii(e),Zi(i)}}var tf=new Set,mu=new Set;function ba(t){if(!Xe)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 of(t,e,i,o={}){function r(s){if(o.capture||wl.call(e,s),!s.cancelBubble)return wd(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?pn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function ut(t,e,i,o,r){var s={capture:o,passive:r},a=of(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&po(()=>{e.removeEventListener(t,a,s)})}function et(t){for(var e=0;e<t.length;e++)tf.add(t[e]);for(var i of mu)i(t)}function wl(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,d=t.__root;if(d){var l=r.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=r.indexOf(e);if(p===-1)return;l<=p&&(a=l)}if(s=r[a]||t.target,s!==e){Xi(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=St,v=ft;Ii(null),Zi(null);try{for(var m,b=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Qn(x)){var[S,...I]=x;S.apply(s,[t,...I])}else x.call(s,t)}catch(C){m?b.push(C):m=C}if(t.cancelBubble||y===e||y===null)break;s=y}if(m){for(let C of b)queueMicrotask(()=>{throw C});throw m}}finally{t.__root=e,delete t.currentTarget,Ii(f),Zi(v)}}}var v$;function zg(){v$=void 0}function Sl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function mo(t,e){var i=ft;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function E(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(Xe)return mo(mt,null),mt;r===void 0&&(r=Sl(s?t:"<!>"+t),i||(r=fi(r)));var a=o||fd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=fi(a),l=a.lastChild;mo(d,l)}else mo(a,a);return a}}function _$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(Xe)return mo(mt,null),mt;if(!a){var d=Sl(s),l=fi(d);if(r)for(a=document.createDocumentFragment();fi(l);)a.appendChild(fi(l));else a=fi(l)}var p=a.cloneNode(!0);if(r){var f=fi(p),v=p.lastChild;mo(f,v)}else mo(p,p);return p}}function xe(t,e){return _$(t,e,"svg")}function os(t=""){if(!Xe){var e=un(t+"");return mo(e,e),e}var i=mt;return i.nodeType!==dl&&(i.before(i=un()),pi(i)),mo(i,i),i}function Ie(){if(Xe)return mo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=un();return t.append(e,i),mo(e,i),t}function h(t,e){if(Xe){ft.nodes_end=mt,Ei();return}t!==null&&t.before(e)}var b$=/\r/g;function Kg(t){t=t.replace(b$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function qg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var $$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qg(t){return $$.includes(t)}var y$=["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 x$={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 Gg(t){return t=t.toLowerCase(),x$[t]??t}var wk=[...y$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var w$=["touchstart","touchmove"];function Yg(t){return w$.includes(t)}var S$=["$state","$state.raw","$derived","$derived.by"],Sk=[...S$,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var T$=["textarea","script","style","title"];function jg(t){return T$.includes(t)}function vu(t){return t?.replace(/\//g,"/")}var Sd=!0;function gu(t){Sd=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Br(t,e){return Xg(t,e)}function rf(t,e){nu(),e.intro=e.intro??!1;let i=e.target,o=Xe,r=mt;try{for(var s=fi(i);s&&(s.nodeType!==Gn||s.data!==Ns);)s=Ao(s);if(!s)throw Zr;Ji(!0),pi(s),Ei();let a=Xg(t,{...e,anchor:s});if(mt===null||mt.nodeType!==Gn||mt.data!==la)throw Hs(),Zr;return Ji(!1),a}catch(a){if(a===Zr)return e.recover===!1&&ug(),nu(),md(i),Ji(!1),Br(t,e);throw a}finally{Ji(o),pi(r),zg()}}var Tl=new Map;function Xg(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){nu();var d=new Set,l=v=>{for(var m=0;m<v.length;m++){var b=v[m];if(!d.has(b)){d.add(b);var y=Yg(b);e.addEventListener(b,wl,{passive:y});var x=Tl.get(b);x===void 0?(document.addEventListener(b,wl,{passive:y}),Tl.set(b,1)):Tl.set(b,x+1)}}};l(rd(tf)),mu.add(l);var p=void 0,f=Lg(()=>{var v=i??e.appendChild(un());return yi(()=>{if(s){O({});var m=Ot;m.c=s}r&&(o.$$events=r),Xe&&mo(v,null),Sd=a,p=t(v,o)||{},Sd=!0,Xe&&(ft.nodes_end=mt),s&&B()}),()=>{for(var m of d){e.removeEventListener(m,wl);var b=Tl.get(m);--b===0?(document.removeEventListener(m,wl),Tl.delete(m)):Tl.set(m,b)}mu.delete(l),v!==i&&v.parentNode?.removeChild(v)}});return nf.set(p,f),p}var nf=new WeakMap;function $a(t,e){let i=nf.get(t);return i?(nf.delete(t),i(e)):(Ce&&Tg(),Promise.resolve())}function qt(t,e,...i){var o=t,r=ct,s;Pi(()=>{r!==(r=e())&&(s&&(ki(s),s=null),Ce&&r==null&&pg(),s=yi(()=>r(o,...i)))},65536),Xe&&(o=mt)}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;vg(e)},set:o=>{i=o}})}};E$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var E$;function Ct(t){Ot===null&&pl("onMount"),Jr&&Ot.l!==null?k$(Ot).m.push(t):Pe(()=>{let e=$t(t);if(typeof e=="function")return e})}function Zo(t){Ot===null&&pl("onDestroy"),Ct(()=>()=>$t(t))}function k$(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var Zg=new Map;function Jg(t,e){var i=Zg.get(t);i||(i=new Set,Zg.set(t,i)),i.add(e)}function A(t,e,[i,o]=[0,0]){Xe&&i===0&&Ei();var r=t,s=null,a=null,d=Vi,l=i>0?65536:0,p=!1;let f=(m,b=!0)=>{p=!0,v(b,m)},v=(m,b)=>{if(d===(d=m))return;let y=!1;if(Xe&&o!==-1){if(i===0){let S=ou(r);S===Ns?o=0:S===Ds?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(r=ma(),pi(r),Ji(!1),y=!0,o=-1)}d?(s?hs(s):b&&(s=yi(()=>b(r))),a&&Pn(a,()=>{a=null})):(a?hs(a):b&&(a=yi(()=>b(r,[i+1,o]))),s&&Pn(s,()=>{s=null})),y&&Ji(!0)};Pi(()=>{p=!1,e(f),p||v(null,null)},l),Xe&&(r=mt)}function _s(t,e,i){Xe&&Ei();var o=t,r=Vi,s,a=ts()?rg:cl;Pi(()=>{a(r,r=e())&&(s&&Pn(s),s=yi(()=>i(o)))}),Xe&&(o=mt)}var Us=null;function lf(t){Us=t}function Td(t,e){return e}function L$(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)lu(e[a].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var l=i.parentNode;md(l),l.append(i),o.clear(),Fs(t,e[0].prev,e[s-1].next)}jp(r,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Fs(t,f.prev,f.next)),ki(f.e,!d)}})}function ui(t,e,i,o,r,s=null){var a=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;a=Xe?pi(fi(p)):p.appendChild(un())}Xe&&Ei();var f=null,v=!1,m=dn(()=>{var b=i();return Qn(b)?b:b==null?[]:rd(b)});Pi(()=>{var b=n(m),y=b.length;if(v&&y===0)return;v=y===0;let x=!1;if(Xe){var S=ou(a)===Ds;S!==(y===0)&&(a=ma(),pi(a),Ji(!1),x=!0)}if(Xe){for(var I=null,C,V=0;V<y;V++){if(mt.nodeType===Gn&&mt.data===la){a=mt,x=!0,Ji(!1);break}var P=b[V],R=o(P,V);C=ih(mt,d,I,null,P,R,V,r,e,i),d.items.set(R,C),I=C}y>0&&pi(ma())}Xe||M$(b,d,a,r,e,o,i),s!==null&&(y===0?f?hs(f):f=yi(()=>s(a)):f!==null&&Pn(f,()=>{f=null})),x&&Ji(!0),n(m)}),Xe&&(a=mt)}function M$(t,e,i,o,r,s,a){var d=(r&8)!==0,l=(r&3)!==0,p=t.length,f=e.items,v=e.first,m=v,b,y=null,x,S=[],I=[],C,V,P,R;if(d)for(R=0;R<p;R+=1)C=t[R],V=s(C,R),P=f.get(V),P!==void 0&&(P.a?.measure(),(x??=new Set).add(P));for(R=0;R<p;R+=1){if(C=t[R],V=s(C,R),P=f.get(V),P===void 0){var U=m?m.e.nodes_start:i;y=ih(U,e,y,y===null?e.first:y.next,C,V,R,o,r,a),f.set(V,y),S=[],I=[],m=y.next;continue}if(l&&R$(P,C,R,r),(P.e.f&8192)!==0&&(hs(P.e),d&&(P.a?.unfix(),(x??=new Set).delete(P))),P!==m){if(b!==void 0&&b.has(P)){if(S.length<I.length){var N=I[0],H;y=N.prev;var te=S[0],ie=S[S.length-1];for(H=0;H<S.length;H+=1)eh(S[H],N,i);for(H=0;H<I.length;H+=1)b.delete(I[H]);Fs(e,te.prev,ie.next),Fs(e,y,te),Fs(e,ie,N),m=N,y=ie,R-=1,S=[],I=[]}else b.delete(P),eh(P,m,i),Fs(e,P.prev,P.next),Fs(e,P,y===null?e.first:y.next),Fs(e,y,P),y=P;continue}for(S=[],I=[];m!==null&&m.k!==V;)(m.e.f&8192)===0&&(b??=new Set).add(m),I.push(m),m=m.next;if(m===null)continue;P=m}S.push(P),y=P,m=P.next}if(m!==null||b!==void 0){for(var de=b===void 0?[]:rd(b);m!==null;)(m.e.f&8192)===0&&de.push(m),m=m.next;var Z=de.length;if(Z>0){var J=(r&4)!==0&&p===0?i:null;if(d){for(R=0;R<Z;R+=1)de[R].a?.measure();for(R=0;R<Z;R+=1)de[R].a?.fix()}L$(e,de,J,f)}}d&&pn(()=>{if(x!==void 0)for(P of x)P.a?.apply()}),ft.first=e.first&&e.first.e,ft.last=y&&y.e}function R$(t,e,i,o){(o&1)!==0&&hl(t.v,e),(o&2)!==0?hl(t.i,i):t.i=i}function ih(t,e,i,o,r,s,a,d,l,p){var f=Us,v=(l&1)!==0,m=(l&16)===0,b=v?m?is(r,!1,!1):mr(r):r,y=(l&2)===0?a:mr(a);Ce&&v&&(b.trace=()=>{var S=typeof y=="number"?a:y.v;p()[S]});var x={i:y,v:b,k:s,a:null,e:null,prev:i,next:o};Us=x;try{return x.e=yi(()=>d(t,b,y,p),Xe),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Us=f}}function eh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=Ao(s);r.before(s),s=a}}function Fs(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 V$(t,e,i){if(!e||e===Kg(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:Yn?.[Cn]&&(o=`in ${Yn[Cn]}`),Sg(vu(o))}function Cd(t,e,i=!1,o=!1,r=!1){var s=t,a="";D(()=>{var d=ft;if(a===(a=e()??"")){Xe&&Ei();return}if(d.nodes_start!==null&&(Gp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),a!==""){if(Xe){for(var l=mt.data,p=Ei(),f=p;p!==null&&(p.nodeType!==Gn||p.data!=="");)f=p,p=Ao(p);if(p===null)throw Hs(),Zr;Ce&&!r&&V$(p.parentNode,l,a),mo(mt,f),s=pi(p);return}var v=a+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var m=Sl(v);if((i||o)&&(m=fi(m)),mo(fi(m),m.lastChild),i||o)for(;fi(m);)s.before(fi(m));else s.before(m)}})}function xi(t,e,i){Xe&&Ei();var o=t,r,s;Pi(()=>{r!==(r=e())&&(s&&(Pn(s),s=null),r&&(s=yi(()=>i(o,r))))},65536),Xe&&(o=mt)}function ya(t,e,i,o,r,s){let a=Xe;Xe&&Ei();var d=Ce&&s&&Ot?.function[Cn],l,p,f=null;Xe&&mt.nodeType===jc&&(f=mt,Ei());var v=Xe?mt:t,m,b=Us;Pi(()=>{let y=e()||null;var x=r?r():i||y==="svg"?qc:null;if(y!==l){var S=Us;lf(b),m&&(y===null?Pn(m,()=>{m=null,p=null}):y===p?hs(m):(ki(m),gu(!1))),y&&y!==p&&(m=yi(()=>{if(f=Xe?f:x?document.createElementNS(x,y):document.createElement(y),Ce&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),mo(f,f),o){Xe&&jg(y)&&f.append(document.createComment(""));var I=Xe?fi(f):f.appendChild(un());Xe&&(I===null?Ji(!1):pi(I)),o(f,I)}ft.nodes_end=f,v.before(f)})),l=y,l&&(p=l),gu(!0),lf(S)}},65536),a&&(Ji(!0),pi(v))}var cf;function oh(t){return cf=t.target,new df(t)}var df=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var d=is(a,!1,!1);return i.set(s,d),d};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===ll?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,d){return M(i.get(a)??o(a,d),d),Reflect.set(s,a,d)}});this.#e=(e.hydrate?rf:Br)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&xl(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Xi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{$a(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function W(t,e){pn(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??cf?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),Ce&&Jg(e.hash,r)}})}function bs(t,e){var i=void 0,o;Pi(()=>{i!==(i=e())&&(o&&(ki(o),o=null),i&&(o=yi(()=>{fo(()=>i(t))})))})}function nh(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=nh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function rh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=nh(t))&&(o&&(o+=" "),o+=e);return o}function Id(t){return typeof t=="object"?rh(t):t??""}var sh=[...`
|
|
44
|
-
\r\f \v\uFEFF`];function lh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var d=a+s;(a===0||sh.includes(o[a-1]))&&(d===o.length||sh.includes(o[d]))?o=(a===0?"":o.substring(0,a))+o.substring(d+1):a=d}}return o===""?null:o}function ah(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function uf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dh(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 s=!1,a=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(uf)),r&&l.push(...Object.keys(r).map(uf));var p=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var m=t[v];if(d?m==="/"&&t[v-1]==="*"&&(d=!1):s?s===m&&(s=!1):m==="/"&&t[v+1]==="*"?d=!0:m==='"'||m==="'"?s=m:m==="("?a++:m===")"&&a--,!d&&s===!1&&a===0){if(m===":"&&f===-1)f=v;else if(m===";"||v===x-1){if(f!==-1){var b=uf(t.substring(p,f).trim());if(!l.includes(b)){m!==";"&&v++;var y=t.substring(p,v).trim();i+=" "+y+";"}}p=v+1,f=-1}}}}return o&&(i+=ah(o)),r&&(i+=ah(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,r,s){var a=t.__className;if(Xe||a!==i||a===void 0){var d=lh(i,o,s);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var l in s){var p=!!s[l];(r==null||p!==!!r[l])&&t.classList.toggle(l,p)}return s}function pf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function ze(t,e,i,o){var r=t.__style;if(Xe||r!==e){var s=dh(e,o);(!Xe||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(pf(t,i?.[0],o[0]),pf(t,i?.[1],o[1],"important")):pf(t,i,o));return o}function kd(t,e,i){if(t.multiple){if(e==null)return;if(!Qn(e))return Cg();for(var o of t.options)o.selected=e.includes(ch(o));return}for(o of t.options){var r=ch(o);if(Dp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function ff(t){var e=new MutationObserver(()=>{kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),po(()=>{e.disconnect()})}function ch(t){return"__value"in t?t.__value:t.value}var Cl=Symbol("class"),Il=Symbol("style"),fh=Symbol("is custom element"),mh=Symbol("is html");function vh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var r=hh(t);if(Xe&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||z$(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[ng]=i),i==null?t.removeAttribute(e):typeof i!="string"&&_h(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function gh(t,e,i,o,r=!1){var s=hh(t),a=s[fh],d=!s[mh];let l=Xe&&a;l&&Ji(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Id(i.class):(o||i[Cl])&&(i.class=null),i[Il]&&(i.style??=null);var m=_h(t);for(let P in i){let R=i[P];if(f&&P==="value"&&R==null){t.value=t.__value="",p[P]=R;continue}if(P==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,b,R,o,e?.[Cl],i[Cl]),p[P]=R,p[Cl]=i[Cl];continue}if(P==="style"){ze(t,R,e?.[Il],i[Il]),p[P]=R,p[Il]=i[Il];continue}var y=p[P];if(!(R===y&&!(R===void 0&&t.hasAttribute(P)))){p[P]=R;var x=P[0]+P[1];if(x!=="$$")if(x==="on"){let U={},N="$$"+P,H=P.slice(2);var S=Qg(H);if(qg(H)&&(H=H.slice(0,-7),U.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(H,p[N],U),p[N]=null}if(R!=null)if(S)t[`__${H}`]=R,et([H]);else{let te=function(ie){p[P].call(this,ie)};var V=te;p[N]=of(H,t,te,U)}else S&&(t[`__${H}`]=void 0)}else if(P==="style")Oe(t,P,R);else if(P==="autofocus")ef(t,!!R);else if(!a&&(P==="__value"||P==="value"&&R!=null))t.value=t.__value=R;else if(P==="selected"&&f)vh(t,R);else{var I=P;d||(I=Gg(I));var C=I==="defaultValue"||I==="defaultChecked";if(R==null&&!a&&!C)if(s[P]=null,I==="value"||I==="checked"){let U=t,N=e===void 0;if(I==="value"){let H=U.defaultValue;U.removeAttribute(I),U.defaultValue=H,U.value=U.__value=N?H:null}else{let H=U.defaultChecked;U.removeAttribute(I),U.defaultChecked=H,U.checked=N?H:!1}}else t.removeAttribute(P);else C||m.includes(I)&&(a||typeof R!="string")?t[I]=R:typeof R!="function"&&Oe(t,I,R,r)}}}return l&&Ji(!0),p}function Ni(t,e,i=[],o,r=!1,s=Nr){let a=i.map(s);var d=void 0,l={},p=t.nodeName==="SELECT",f=!1;if(Pi(()=>{var m=e(...a.map(n)),b=gh(t,d,m,o,r);f&&p&&"value"in m&&kd(t,m.value,!1);for(let x of Object.getOwnPropertySymbols(l))m[x]||ki(l[x]);for(let x of Object.getOwnPropertySymbols(m)){var y=m[x];x.description===Ep&&(!d||y!==d[x])&&(l[x]&&ki(l[x]),l[x]=yi(()=>bs(t,()=>y))),b[x]=y}d=b}),p){var v=t;fo(()=>{kd(v,d.value),ff(v)})}f=!0}function hh(t){return t.__attributes??={[fh]:t.nodeName.includes("-"),[mh]:t.namespaceURI===Jv}}var uh=new Map;function _h(t){var e=uh.get(t.nodeName);if(e)return e;uh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Gc(o);for(var s in i)i[s].set&&e.push(s);o=da(o)}return e}function z$(t,e,i){Ce&&(e==="srcset"&&W$(t,i)||mf(t.getAttribute(e)??"",i)||wg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function mf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ph(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function W$(t,e){var i=ph(t.srcset),o=ph(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(mf(i[a][0],r)||mf(r,i[a][0])))}var K$=Qc?()=>performance.now():()=>Date.now(),Hr={tick:t=>(Qc?requestAnimationFrame:ct)(t),now:()=>K$(),tasks:new Set};function bh(){let t=Hr.now();Hr.tasks.forEach(e=>{e.c(t)||(Hr.tasks.delete(e),e.f())}),Hr.tasks.size!==0&&Hr.tick(bh)}function $h(t){let e;return Hr.tasks.size===0&&Hr.tick(bh),{promise:new Promise(i=>{Hr.tasks.add(e={c:t,f:i})}),abort(){Hr.tasks.delete(e)}}}function hu(t,e){wd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Y$(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 yh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=Y$(r.trim());e[a]=s.trim()}return e}var j$=t=>t;function Fr(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,d=(t&4)!==0,l=a?"both":r?"in":"out",p,f=e.inert,v=e.style.overflow,m,b;function y(){var V=St,P=ft;Ii(null),Zi(null);try{return p??=i()(e,o?.()??{},{direction:l})}finally{Ii(V),Zi(P)}}var x={is_global:d,in(){if(e.inert=f,!r){b?.abort(),b?.reset?.();return}s||m?.abort(),hu(e,"introstart"),m=vf(e,y(),b,1,()=>{hu(e,"introend"),m?.abort(),m=p=void 0,e.style.overflow=v})},out(V){if(!s){V?.(),p=void 0;return}e.inert=!0,hu(e,"outrostart"),b=vf(e,y(),m,0,()=>{hu(e,"outroend"),V?.()})},stop:()=>{m?.abort(),b?.abort()}},S=ft;if((S.transitions??=[]).push(x),r&&Sd){var I=d;if(!I){for(var C=S.parent;C&&(C.f&65536)!==0;)for(;(C=C.parent)&&(C.f&16)===0;);I=!C||(C.f&32768)!==0}I&&fo(()=>{$t(()=>x.in())})}}function vf(t,e,i,o,r){var s=o===1;if(Os(e)){var a,d=!1;return pn(()=>{if(!d){var S=e({direction:s?"in":"out"});a=vf(t,S,i,o,r)}}),{abort:()=>{d=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:ct,deactivate:ct,reset:ct,t:()=>o};let{delay:l=0,css:p,tick:f,easing:v=j$}=e;var m=[];if(s&&i===void 0&&(f&&f(0,1),p)){var b=yh(p(0,1));m.push(b,b)}var y=()=>1-o,x=t.animate(m,{duration:l,fill:"forwards"});return x.onfinish=()=>{x.cancel();var S=i?.t()??1-o;i?.abort();var I=o-S,C=e.duration*Math.abs(I),V=[];if(C>0){var P=!1;if(p)for(var R=Math.ceil(C/16.666666666666668),U=0;U<=R;U+=1){var N=S+I*v(U/R),H=yh(p(N,1-N));V.push(H),P||=H.overflow==="hidden"}P&&(t.style.overflow="hidden"),y=()=>{var te=x.currentTime;return S+I*v(te/C)},f&&$h(()=>{if(x.playState!=="running")return!1;var te=y();return f(te,1-te),!0})}x=t.animate(V,{duration:C,fill:"forwards"}),x.onfinish=()=>{y=()=>o,f?.(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ct)},deactivate:()=>{r=ct},reset:()=>{o===0&&f?.(1,0)},t:()=>y()}}function gf(t,e,i){var o=ko(t,e);o&&o.set&&(t[e]=i,po(()=>{t[e]=null}))}var hf=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var r=this.#t.get(e);r.delete(i),r.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var X$=new hf({box:"border-box"});function mn(t,e,i){var o=X$.observe(t,()=>i(t[e]));fo(()=>($t(()=>i(t[e])),o))}function xh(t,e){return t===e||t?.[Eo]===e}function Je(t={},e,i,o){return fo(()=>{var r,s;return Lo(()=>{r=s,s=o?.()||[],$t(()=>{t!==i(...s)&&(e(t,...s),r&&xh(i(...r),t)&&e(null,...r))})}),()=>{pn(()=>{s&&xh(i(...s),t)&&e(null,...s)})}}),t}function ao(t=!1){let e=Ot,i=e.l.u;if(!i)return;let o=()=>fu(e.s);if(t){let r=0,s={},a=Nr(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==s[p]&&(s[p]=l[p],d=!0);return d&&r++,r});o=()=>n(a)}i.b.length&&hd(()=>{wh(e,o),Bs(i.b)}),Pe(()=>{let r=$t(()=>i.m.map(og));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Pe(()=>{wh(e,o),Bs(i.a)})}function wh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Ed(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ct;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var kl=[];function vr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=ct){let i=null,o=new Set;function r(d){if(cl(t,d)&&(t=d,i)){let l=!kl.length;for(let p of o)p[1](),kl.push(p,t);if(l){for(let p=0;p<kl.length;p+=2)kl[p][0](kl[p+1]);kl.length=0}}}function s(d){r(d(t))}function a(d,l=ct){let p=[d,l];return o.add(p),o.size===1&&(i=e(r,s)||ct),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function ri(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 s=e.length<2;return vr(i,(a,d)=>{let l=!1,p=[],f=0,v=ct,m=()=>{if(f)return;v();let y=e(o?p[0]:p,a,d);s?a(y):v=typeof y=="function"?y:ct},b=r.map((y,x)=>Ed(y,S=>{p[x]=S,f&=~(1<<x),l&&m()},()=>{f|=1<<x}));return l=!0,m(),function(){Bs(b),v(),l=!1}})}function ge(t){let e;return Ed(t,i=>e=i)(),e}var bu=!1,_f=Symbol();function _(t,e,i){let o=i[e]??={store:null,source:is(void 0),unsubscribe:ct};if(o.store!==t&&!(_f in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=ct;else{var r=!0;o.unsubscribe=Ed(t,s=>{r?o.source.v=s:M(o.source,s)}),r=!1}return t&&_f in i?ge(t):n(o.source)}function Ee(){let t={};function e(){po(()=>{for(var i in t)t[i].unsubscribe();Xi(t,_f,{enumerable:!1,value:!0})})}return[t,e]}function bf(t){var e=bu;try{return bu=!1,[t(),bu]}finally{bu=e}}var ny={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&mg(`${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 vn(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},ny)}var ry={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Os(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];Os(r)&&(r=r());let s=ko(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Os(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=ko(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Eo||e===ll)return!1;for(let i of t.props)if(Os(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Os(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 $s(...t){return new Proxy({props:t},ry)}function Sh(t){return t.ctx?.d??!1}function g(t,e,i,o){var r=(i&1)!==0,s=!Jr||(i&2)!==0,a=(i&8)!==0,d=(i&16)!==0,l=!1,p;a?[p,l]=bf(()=>t[e]):p=t[e];var f=Eo in t||ll in t,v=a&&(ko(t,e)?.set??(f&&e in t&&(N=>t[e]=N)))||void 0,m=o,b=!0,y=!1,x=()=>(y=!0,b&&(b=!1,d?m=$t(o):m=o),m);p===void 0&&o!==void 0&&(v&&s&&fg(e),p=x(),v&&v(p));var S;if(s)S=()=>{var N=t[e];return N===void 0?x():(b=!0,y=!1,N)};else{var I=(r?Nr:dn)(()=>t[e]);I.f|=131072,S=()=>{var N=n(I);return N!==void 0&&(m=void 0),N===void 0?m:N}}if((i&4)===0&&s)return S;if(v){var C=t.$$legacy;return function(N,H){return arguments.length>0?((!s||!H||C||l)&&v(H?S():N),N):S()}}var V=!1,P=!1,R=is(p),U=Nr(()=>{var N=S(),H=n(R);return V?(V=!1,P=!0,H):(P=!1,R.v=N)});return a&&n(U),r||(U.equals=ul),function(N,H){if(uu!==null&&(V=P,S(),n(R)),arguments.length>0){let te=H?n(U):s&&a?Yt(N):N;if(!U.equals(te)){if(V=!0,M(R,te),y&&m!==void 0&&(m=te),Sh(U))return N;$t(()=>n(U))}return N}return Sh(U)?U.v:n(U)}}var sy;typeof HTMLElement=="function"&&(sy=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),h(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=ay(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=$f(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=oh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=au(()=>{Lo(()=>{this.$$r=!0;for(let r of Pp(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=$f(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=$f(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Pp(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function $f(t,e,i,o){let r=i[t]?.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;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 ay(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Th="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Th);var Yl=require("@vkontakte/videoplayer-core"),HX=require("@vkontakte/videoplayer-core"),Xa=require("@vkontakte/videoplayer-shared"),Lb=require("@vkontakte/videoplayer-statistics");var xa=require("@vkontakte/videoplayer-shared");var ly={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:xa.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:xa.VideoQuality.Q_480P,highQualityLimit:xa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},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},Ch=t=>(0,xa.fillWithDefault)(t,ly),Ih=t=>ml("ui-config",t),wt=()=>fl("ui-config");var Pd="vk_player_debug_panel_opened";var kh="videoplayer",Eh="videoplayer";var ns={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ph=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ah=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lh=new Set(["ShiftRight","ShiftLeft"]);var Mh=["TIMELINE"],Ad=[...Mh,"GRAPH_BUTTON"],yf=[...Mh,"PLAY_BUTTON"],Ld=[...Ad,"PLAY_BUTTON"];var Ur=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Ur||{}),Sa={xs:0,s:1,m:2,l:3,xl:4};var Md=require("@vkontakte/videoplayer-shared"),Rh=require("@vkontakte/videoplayer-core"),Vh=require("@vkontakte/videoplayer-statistics");var $u="prod",Ta="1.1.76-beta.2";var Ca=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Nh=Symbol("storeContext"),Dh=Symbol("microStoresContext"),Oh=(t,e)=>{ml(Nh,t),ml(Dh,e),$u==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=fl(Nh);return(0,Md.assertNonNullable)(t,"Store context is empty!"),t},lo=()=>{let t=fl(Dh);return(0,Md.assertNonNullable)(t,"MicroStores context is empty!"),t},jt=(t,e)=>xu(t,t.getValue(),e),xu=(t,e,i)=>vr(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),Bh=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=ge(i.ui.playerSize),d=r.throughputEstimation$.getValue()?.toFixed(0)??0,l=r.rttEstimation$.getValue()?.toFixed(0)??0,p=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ta} (core: ${Rh.VERSION}, stat: ${Vh.VERSION}, shared: ${Md.VERSION})`,v=ge(i.state.errorLog$),m=v.length?`
|
|
45
|
-
`+v.map((
|
|
46
|
-
`,
|
|
47
|
-
`,
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,
|
|
50
|
-
`)},Hh=(t,e,i)=>{let o=t.info,{width:r,height:s}=ge(i.ui.playerSize),a={version:Ta,viewport:`${r}x${s}`,volume:Math.round(ge(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(a.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),m=o.liveBufferTime$.getValue();f&&(v&&m?a.buffer=f.end-m:a.buffer=Math.max(f.end-ge(i.state.positionExact$),0)),a.position=ge(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(a.speed=b);let y=o.videoBitrate$.getValue();y&&(a.bitrate=y);let x=o.liveLatency$.getValue();x&&(a.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(a.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(a.currentAudioSegmentLength=I);let C=ge(i.vsid);typeof C=="string"&&(a.vsid=C);let V=t.info.currentVideoStream$.getValue()?.codec;V&&(a.videoCodec=V);let P=t.info.currentAudioStream$.getValue()?.codec;P&&(a.audioCodec=P),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let U=t.info.currentAudioStream$.getValue()?.language;return U&&(a.audioLanguage=U),a},Fh=(t,e)=>Ca(t,e,"mp4"),Uh=t=>!t.type,zh=t=>!!t.type,Wh=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},yu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var si=require("@vkontakte/videoplayer-shared"),BV=require("@vkontakte/videoplayer-core"),dy="vk_player_",Kh="vk_player_prefer_traffic_saving_enabled",qh="vk_player_preferred_volume",Qh="vk_player_prefer_volume_mute",Tf="vk_player_preferred_quality",xf="vk_player_preferred_default_quality_settings",wf="vk_player_preferred_quality_settings_by_video",Gh="vk_player_preferred_stream_language",Yh="vk_player_preferred_rate",jh="vk_player_preferred_autoplay_next",Sf="vk_player_preferred_subtitles_language",Xh="vk_player_user_video_prefs",Zh=`${dy}preview_track_close_tooltip`,Jh=t=>t>1?1:t<0?0:t,Cf=t=>si.safeStorage.set(qh,Jh(t).toString(10)),wu=()=>{let t=si.safeStorage.get(qh);return(0,si.isNullable)(t)?void 0:Jh(parseFloat(t))},If=(t,e)=>si.safeStorage.set(Tf,JSON.stringify({videoId:t,value:e})),Su=()=>si.safeStorage.remove(Tf),kf=t=>{let e=si.safeStorage.get(Tf);if((0,si.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Su();return}return o},Ef=(t,e)=>{e?si.safeStorage.set(t,"true"):si.safeStorage.remove(t)},Pf=t=>si.safeStorage.get(t)==="true",Af=t=>Ef(Qh,t),e_=()=>Pf(Qh),Rd=t=>Ef(Kh,t),Lf=()=>Pf(Kh),t_=()=>si.safeStorage.get(Gh),Mf=t=>si.safeStorage.set(Gh,t),Rf=()=>si.safeStorage.get(Sf),Vf=t=>{t?si.safeStorage.set(Sf,t):si.safeStorage.remove(Sf)},i_=t=>si.safeStorage.set(Yh,JSON.stringify({rate:t})),o_=()=>{let t=si.safeStorage.get(Yh);if((0,si.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},n_=t=>Ef(jh,t),r_=()=>Pf(jh),cy=()=>{let t=f=>{si.safeStorage.set(xf,JSON.stringify(f))},e=()=>{try{let f=si.safeStorage.get(xf);return f?JSON.parse(f):null}catch{return null}},i=()=>{try{let f=si.safeStorage.get(wf);return f?JSON.parse(f):null}catch{return null}},o=f=>{si.safeStorage.set(wf,JSON.stringify(f))},r=f=>{p(f);let v=f?i():null;if(v&&v?.videoId===f)return{...v,appliesTo:"to-video"};v&&s();let m=e();return m?{...m,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{si.safeStorage.remove(wf)},a=()=>{si.safeStorage.remove(xf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},l=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":Rd(!0);break;case"exact_quality":If(f,v.quality)}s(),a()}},p=f=>{let v=kf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Lf()&&t({type:"traffic_saving",videoId:f}),Rd(!1),Su()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Rf,savePreferredSubtitlesLanguage:Vf}},{getPreferredQualitySettings:s_,migrateSettingsToLegacyWay:a_,savePreferredQualitySettings:Tu,savePreferredDefaultQualitySettings:HV,removePreferredQualitySettingsByVideo:FV,getPreferredDefaultQualitySettings:Cu}=cy(),uy=3,py=3,l_=()=>{let t=si.safeStorage.get(Xh);if(t)try{return JSON.parse(t)}catch{return null}return null},Iu=(t,e)=>l_()?.[t]?.[e]??null,Nf=(t,e,i)=>{let o=l_()??{},r=o[t]?.[e]??{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=fy(o);si.safeStorage.set(Xh,JSON.stringify(s))};function fy(t){let e=Object.entries(t).reduce((o,[r,s])=>{let a=0;return Object.values(s).forEach(d=>{a<d.updatedTs&&(a=d.updatedTs)}),o.push([r,a]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(py),e.reduce((o,[r])=>(o[r]=my(t[r]),o),{})}function my(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(uy),Object.fromEntries(e)}function d_(){si.safeStorage.set(Zh,JSON.stringify(!0))}function c_(){let t=si.safeStorage.get(Zh);try{return t?JSON.parse(t):!1}catch{return!1}}var Mv=require("@vkontakte/videoplayer-core");bg();var zs="var(--btn-color, #fff)";var vy=xe('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ye(t,e){O(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,zs),s=e.viewBox??`0 0 ${i()} ${o()}`;var a=vy(),d=w(a);qt(d,()=>e.children),$(a),D(()=>{Oe(a,"aria-label",e.ariaLabel),Oe(a,"aria-hidden",!e.ariaLabel),Oe(a,"width",i()),Oe(a,"height",o()),Oe(a,"viewBox",s),Oe(a,"fill",r()),ze(a,e.style),Oe(a,"data-testid",e.testId)}),h(t,a),B()}var gy=xe('<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);function Vd(t,e){O(e,!0);let i=g(e,"width",19,()=>"48"),o=g(e,"height",19,()=>"48");Ye(t,{get width(){return i()},get height(){return o()},get ariaLabel(){return e.ariaLabel},get testId(){return e.testId},children:(r,s)=>{var a=gy(),d=se(a),l=w(d);qt(l,()=>e.children),$(d),Jt(),h(r,a)},$$slots:{default:!0}}),B()}var El=require("@vkontakte/videoplayer-shared");var hy={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
|
-
|
|
52
|
-
|
|
53
|
-
so
|
|
54
|
-
Try switching the
|
|
55
|
-
`),o,r;for(let s=0;s<i.length;++s){if(o
|
|
56
|
-
`).filter(i=>!!i)[0]}function Cy(t){try{let e=Ty(t);if(e)return e}catch{}return{value:m_(t),type:t&&t.name,stacktrace:{frames:[]}}}function Iy(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Eu=class{constructor(e){if(e&&e.dsn){let i=Sy.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Cy(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(wy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Iy(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function v_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ky(){return window}var Pu=class t extends Eu{constructor(e,i=ky()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:a=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>v_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>v_(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],d=Array.isArray(a)?a:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Ia=require("@vkontakte/videoplayer-shared");var Au=null,ka=class{constructor(e,i,o={}){!Au&&e.dsn&&(this.sentryClient=new Pu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ia.Subscription,this.options=e,this.context=o,Au=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Au=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:s,options:a}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=a,{errorType:m,category:b}=i;if((0,Ia.isNonNullable)(b)&&v.includes(b)||(0,Ia.isNonNullable)(m)&&f.includes(m))return;if(Math.random()<=d||(0,Ia.isNonNullable)(b)&&p.includes(b)||(0,Ia.isNonNullable)(m)&&l.includes(m)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{m&&r.captureMessage(m,i.fatal?Pl.fatal:Pl.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return Au}};var zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(zr||{});var Lu=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?.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Mu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),g_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,h_=t=>{let e=t;e?.webkitExitFullscreen&&e?.webkitExitFullscreen()},Dd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ws=()=>!!Dd(),Ru=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Vu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},__=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var Hf=require("@vkontakte/videoplayer-core"),b_=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_context_menu_description"),value:K("hotkey_map_item_show_context_menu_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")},{description:K("hotkey_map_item_next_video_description"),value:K("hotkey_map_item_next_video_value")},{description:K("hotkey_map_item_prev_video_description"),value:K("hotkey_map_item_prev_video_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:Hf.clientChecker.device.isApple?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:Hf.clientChecker.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});var Al=require("@vkontakte/videoplayer-shared"),Ea=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,Al.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Al.ValueSubject(!1),isEnabled$:new Al.ValueSubject(!1),type:0};this.info.isEnabled$=new Al.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{this.removeEventHandlers(),this.videoElement=this.playerContainer?.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e)}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Pa(t){return t instanceof Ea}var Ll=require("@vkontakte/videoplayer-shared");function Uf(t,e){O(e,!1);let i=ve();Ct(()=>{i.getAdmanWrapper().startPostroll()}),ao(),B()}var $_=require("@vkontakte/videoplayer-shared");var Ey=xe('<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>'),Py=xe('<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 gr(t,e){O(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=u(()=>["up","down"].includes(i())),s=u(()=>["right","down"].includes(i())),a=u(()=>`chevron-icon--${i()}`),d=u(()=>(()=>{let f="";return n(s)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),l=u(()=>o()?zs:"currentColor"),p=u(()=>n(r)?"7":"16");Ye(t,{width:"12",get height(){return n(p)},get fill(){return n(l)},get testId(){return n(a)},get style(){return n(d)},children:(f,v)=>{var m=Ie(),b=se(m);{var y=S=>{var I=Ey();h(S,I)},x=S=>{var I=Py();h(S,I)};A(b,S=>{n(r)?S(y):S(x,!1)})}h(f,m)},$$slots:{default:!0}}),B()}var Ay=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Ly=E('<div class="skip s-1h"> <!></div>'),My=E("<div><!></div>"),Ry={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 zf(t,e){O(e,!0),W(t,Ry);let[i,o]=Ee(),r=()=>_(p,"$isMobile",i),s=g(e,"position",3,0),a=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,$_.noop),p=ve().ui.isMobile,f=u(()=>s()>0&&s()>=a());var v=My();let m;v.__click=[Ay,f,d];var b=w(v);{var y=S=>{var I=Ly(),C=w(I),V=k(C);gr(V,{direction:"right"}),$(I),D(P=>ue(C,`${P??""} `),[()=>K("skip_ads_now")]),h(S,I)},x=S=>{var I=os();D(C=>ue(I,C),[()=>K("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),h(S,I)};A(b,S=>{n(f)?S(y):S(x,!1)})}$(v),D(S=>m=ee(v,1,"container s-1h",null,m,S),[()=>({"container-mobile":r(),skippable:n(f)})]),h(t,v),B(),o()}et(["click"]);var Vy=E('<button class="go-to-site s-1g"> </button>'),Ny={hash:"s-1g",code:"button.go-to-site.s-1g{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 Wf(t,e){O(e,!1),W(t,Ny),ao();var i=Vy(),o=w(i,!0);$(i),D(r=>ue(o,r),[()=>K("visit_advertiser")],dn),h(t,i),B()}var Dy=E('<div class="top-gradient-mobile s-r"></div>'),Oy=E('<div class="container s-r"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),By={hash:"s-r",code:".container.s-r{height:100%;width:100%}.top-gradient-mobile.s-r{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 Bd(t,e){O(e,!0),W(t,By);let[i,o]=Ee(),r=()=>_(H,"$canSkipAd",i),s=()=>_(N,"$adPlaybackState",i),a=()=>_(C,"$isMobile",i),d=()=>_(te,"$adPosition",i),l=()=>_(ie,"$secondsToWatchBeforeSkipAd",i),p=()=>_(I,"$isVideoEnded",i),f=g(e,"adsSlotId",3,void 0),v=g(e,"adsParams",3,void 0),m=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),x=ve(),S=wt(),I=x.state.isEnded$,C=x.ui.isMobile,V=S.ads.isMobileGoToSiteButton,P=z(void 0),R=z(void 0),U=!1,N=x.ads.playbackState,H=x.ads.canSkip,te=x.ads.position,ie=x.ads.secondsToWatchBeforeSkip,de=u(()=>r()&&s()!=="inactive"),Z=u(()=>a()&&s()!=="inactive"&&V);Ct(()=>{let L=x.getAdmanWrapper();if(Ll.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ll.now)(),f()]}),!f()){L.onAdmanLoadingError();return}let Fe=()=>{let{width:De,height:Le}=ge(x.ui.playerSize),G=ge(x.ui.isFullscreen),Y=m()??ge(x.ui.isAutoplay),Ae=S.ads.paramsOverride;return{width:De,height:Le,isFullscreen:G,isAutoplay:Y,adsContainer:n(P),adsVideoElement:n(R),slotId:f(),params:v(),paramsOverride:Ae,duration:b(),externalApi:y()}},he=async De=>{De&&await eo();let Le=Fe();await L.initAdman(Le),U=!0},le=new AbortController,me=()=>{le.abort()};return window.AdmanHTML?he(!0).catch(()=>{L.onAdmanLoadingError()}):L.loadAdman(le.signal).then(()=>he(!1)).catch(()=>{L.onAdmanLoadingError()}),()=>{Ll.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ll.now)(),f()]}),!U&&me()}});var J=Oy(),Q=w(J);{var Te=L=>{var Fe=Dy();h(L,Fe)};A(Q,L=>{a()&&L(Te)})}var fe=k(Q,2);Je(fe,L=>M(R,L),()=>n(R));var pe=k(fe,2);{var ke=L=>{zf(L,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return x.actions.internal.skipAd}})};A(pe,L=>{n(de)&&L(ke)})}var we=k(pe,2);{var ne=L=>{Uf(L,{})};A(we,L=>{p()&&L(ne)})}var Ne=k(we,2);{var ce=L=>{Wf(L,{})};A(Ne,L=>{n(Z)&&L(ce)})}$(J),Je(J,L=>M(P,L),()=>n(P)),h(t,J),B(),o()}var Mo=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Hy=xe('<path fill="#fff"></path>'),Fy=xe("<path></path><!>",1);function Hd(t,e){let i=g(e,"isActive",3,!1),o=u(()=>i()?"live-active-icon":"live-icon"),r=u(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),s="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";Ye(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(a,d)=>{var l=Fy(),p=se(l),f=k(p);{var v=m=>{var b=Hy();Oe(b,"d",s),h(m,b)};A(f,m=>{i()&&m(v)})}D(()=>Oe(p,"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"+s}z`)),h(a,l)},$$slots:{default:!0}})}var Uy=E('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),zy=E('<div class="live-icon s-e"><!></div>'),Wy=E('<span class="text s-e"> </span>'),Ky=E("<div><!> <!></div>"),qy={hash:"s-e",code:".wrapper.s-e{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-e-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-e-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function Fd(t,e){W(t,qy);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var s=Ky();let a;var d=w(s);{var l=m=>{var b=Uy();h(m,b)};A(d,m=>{i()&&m(l)})}var p=k(d,2);{var f=m=>{var b=zy(),y=w(b);Hd(y,{isActive:!0}),$(b),h(m,b)},v=m=>{var b=Wy(),y=w(b,!0);$(b),D(()=>ue(y,e.time)),h(m,b)};A(p,m=>{o()?m(f):m(v,!1)})}$(s),D(m=>a=ee(s,1,"wrapper s-e",null,a,m),[()=>({live:o(),playing:r()})]),h(t,s)}var Ml=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Qy=E('<div role="timer" data-testid="thumb-timer"><!></div>'),Gy={hash:"s-k",code:".thumb-timer.s-k{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 Ud(t,e){O(e,!0),W(t,Gy);let[i,o]=Ee(),r=()=>_(f,"$disabled",i),s=g(e,"isHidden",3,!1),a=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),l=wt(),p=u(()=>Mo(e.duration-e.position)),f=re(!1);var v=Qy();let m;var b=w(v);Fd(b,{get time(){return n(p)},get isLive(){return a()},get isPlaying(){return d()},withEqualizer:!0}),$(v),bs(v,()=>Ml(s()&&l.features.usePerformanceFix,f,l.disableInvisibleComponentsTimeout)),D(y=>m=ee(v,1,"thumb-timer s-k",null,m,y),[()=>({"out-of-flow":r(),hidden:s()})]),h(t,v),B(),o()}var Rl=t=>{if(!navigator.clipboard){y_(t);return}navigator.clipboard.writeText(t).catch(()=>y_(t))};function y_(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 P_=require("@vkontakte/videoplayer-core");var qf=require("@vkontakte/videoplayer-core");var Kf="focus-hidden";var hr=t=>{t.stopPropagation(),t.preventDefault()},Qf=t=>{t.parentNode?.firstElementChild?.classList.remove(Kf)},jy=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Xy=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Zy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Jy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},x_=t=>t.code==="Escape",e1=t=>t.code==="ArrowLeft",zd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},w_=t=>{Zy(t)?(hr(t),Xy(t.target)):Jy(t)&&(hr(t),jy(t.target))},Qs=t=>!qf.clientChecker.device.isAndroid&&t?.detail===0||qf.clientChecker.device.isAndroid&&t?.pointerType==="",Vl=async(t,e,i)=>{await eo(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(await eo(),i.set(!1),t.focus())},S_=async(t,e,i)=>{await eo(),t&&!e&&ge(i)&&(i.set(!1),t.focus())},Wd=async(t,e,i,o=!1)=>{if(await eo(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(Kf,!i),s?.focus()}},T_=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Nu=(t,e)=>{w_(t),Qf(t.target),x_(t)&&(hr(t),e())},Du=async(t,e)=>{zd(t,["ArrowRight"])&&(hr(t),e())},C_=async(t,e,i)=>{if(w_(t),e1(t)){hr(t),e();return}x_(t)&&(hr(t),i())},Nl=(t,e)=>{zd(t)&&(hr(t),e())},I_=(t,e,i)=>{if(zd(t))hr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),hr(t);return}o==="ArrowRight"&&!e&&(i(!0),hr(t))}},k_=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},E_=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 Ma=require("@vkontakte/videoplayer-shared");var Wr={"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 Gf=require("@vkontakte/videoplayer-shared");var i1=(t,e)=>{Nl(t,()=>e())},o1=E('<li class="item s-1p" role="menuitem" tabindex="0"> </li>'),n1={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 Yf(t,e){O(e,!0),W(t,n1);let i=g(e,"onClick",3,Gf.noop),o=g(e,"closeContextMenu",3,Gf.noop),r=d=>{d?.stopPropagation(),i()(),o()()};var s=o1();s.__click=r,s.__keydown=[i1,r];var a=w(s,!0);$(s),D(()=>{Oe(s,"aria-label",e.ariaLabel??e.label),Oe(s,"data-testid",e.id),ue(a,e.label)}),h(t,s),B()}et(["click","keydown"]);var La=(t,e)=>t.weight-e.weight;var Dl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Dl||{});var r1=(t,e)=>{Nu(t,e)},s1=t=>{t.preventDefault()},a1=E('<ul role="menu" class="s-w"></ul>'),l1={hash:"s-w",code:"ul.s-w{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 jf(t,e){O(e,!0),W(t,l1);let[i,o]=Ee(),r=()=>_(Te,"$playerPhase",i),s=()=>_(de,"$isLive$",i),a=()=>_(fe,"$isPiPEnabled$",i),d=()=>_(ie,"$chromecastState$",i),l=()=>_(pe,"$pictureInPictureApiIsActive$",i),p=()=>_(Q,"$isLooped$",i),f=()=>_(Z,"$positionExact$",i),v=()=>_(N,"$additionalContextMenuItems$",i),m=g(e,"visible",3,!1),b=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),x=g(e,"menuElementRef",15,void 0),S=z(0),I=z(0),C=ve(),{pictureInPicture$:V}=lo(),P=wt(),R=C.ui.contextMenu.visible$,U=C.ui.debugPanelVisible,N=C.ui.additionalContextMenuItems$,H=C.ui.t,te=C.actions.internal.togglePictureInPicture,ie=C.state.chromecastState$,de=C.state.isLive$,Z=C.state.positionExact$,J=C.state.isInteractive,Q=C.state.looped$,Te=C.playerPhase,{isEnabled$:fe,isActive$:pe}=V,ke=u(()=>r()==="video"),we=u(()=>!!s()&&n(ke)),ne=u(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=u(()=>P.features.copyVideoLink&&C.callbacks?.onCopyVideoLink),ce=u(()=>n(Ne)&&!n(ne)&&!J&&!n(we)),L=u(()=>!!C.callbacks?.onCopyEmbedCodeClicked),Fe=u(()=>a()&&d()!==P_.ChromecastState.CONNECTED&&!J&&n(ke)),he=u(()=>!J&&!n(ne)&&!n(we)),le=u(()=>P.features.videoRotate&&!J&&!n(ne)),me=u(()=>P.showSupport&&!l()),De=u(()=>P.features.saveTraceInfoToFile),Le=()=>{R.set(!1),e.returnFocus?.()},G=(Me,Re)=>{if(!x()||!y())return;let st=x().getBoundingClientRect(),vt=y().getBoundingClientRect();M(S,Me-vt.left),M(I,Re-vt.top),n(S)+st.width>vt.width&&M(S,vt.width-st.width),n(I)+st.height>vt.height&&M(I,vt.height-st.height),M(S,Math.max(n(S),0),!0),M(I,Math.max(n(I),0),!0)};Pe(()=>{(async()=>{if(x()&&y()){await eo();let{top:Re,left:st,bottom:vt,right:mi}=b(),ei=st??0,hi=Re??0,Ai=x().getBoundingClientRect();(0,Ma.isNullable)(st)&&!(0,Ma.isNullable)(mi)&&(ei=mi-Ai.width),(0,Ma.isNullable)(Re)&&!(0,Ma.isNullable)(vt)&&(hi=vt-Ai.height),ei=Math.max(ei,0),hi=Math.max(hi,0),G(ei,hi)}})()});let Y=()=>{C.actions.internal.videoRotate()},Ae=()=>{(0,Ma.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),C.actions.internal.reportProblem(),C.actions.internal.pause()},Ue=()=>{let Me=C.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let Re=new Blob([...Me],{type:"plain/text"}),st=window.URL.createObjectURL(Re);Ca(st,"vk_player_debug_info","txt")}else Rl(C.actions.internal.getDebugTextData())},Se=()=>{let Me=C.actions.internal.getTraceTextData(),Re=new Blob([...Me],{type:"application/json"}),st=window.URL.createObjectURL(Re);Ca(st,"vk_player_trace_info","json")},Ke=()=>{U.set(!0)},Qe=async()=>{try{te()}finally{e.returnFocus?.()}},Ve=()=>{C.actions.internal.setLooped(!p())},He=()=>{if(n(L)){let Me=C.callbacks?.onCopyEmbedCodeClicked?.();Me&&Rl(Me)}},kt=(Me=!1)=>{if(C.callbacks?.onCopyVideoLink){let Re=C.callbacks?.onCopyVideoLink(Me,f());Re&&Rl(Re)}},je=u(()=>P.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Et=u(()=>n(Ne)?{id:"copy-link",weight:Wr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>kt()}:void 0),Dt=u(()=>n(ce)?{id:"copy-link-timestamp",weight:Wr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>kt(!0)}:void 0),gt=u(()=>n(L)?{id:"copy-embed-code",weight:Wr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:He}:void 0),Ft=u(()=>n(Fe)?{id:"pip",weight:Wr.pip,label:l()?H("menu_pip_close"):H("menu_pip"),onClick:Qe}:void 0),Pt=u(()=>n(he)?{id:"video-loop",weight:Wr["video-loop"],label:p()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ve}:void 0),be=u(()=>n(le)?{id:"rotate",weight:Wr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:Y}:void 0),$e=u(()=>n(me)?{id:"report",weight:Wr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Ae}:void 0),X=u(()=>({id:"save-debug",weight:Wr["save-debug"],label:n(je),onClick:Ue})),ye=u(()=>n(De)?{id:"save-trace",weight:Wr["save-trace"],label:H("menu_save_debug"),onClick:Se}:void 0),oe=u(()=>({id:"debug-info",weight:Wr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Ke})),rt=u(()=>[n(Et),n(Dt),n(gt),n(Ft),n(Pt),n(be),n($e),n(X),n(ye),n(oe),...v()].filter(Me=>!!Me).sort(La));var at=Ie(),nt=se(at);{var yt=Me=>{var Re=a1();Re.__contextmenu=[s1],Re.__keydown=[r1,Le],ui(Re,21,()=>n(rt),st=>st.id,(st,vt)=>{Yf(st,{get id(){return n(vt).id},get label(){return n(vt).label},get ariaLabel(){return n(vt).ariaLabel},get onClick(){return n(vt).onClick},closeContextMenu:Le})}),$(Re),Je(Re,st=>x(st),()=>x()),D(()=>ze(Re,`top: ${n(I)??""}px; left: ${n(S)??""}px;`)),h(Me,Re)};A(nt,Me=>{m()&&Me(yt)})}h(t,at),B(),o()}et(["contextmenu","keydown"]);var Ou=class{constructor(e){this.value=e,this.next=null}};var Ol=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ou(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 d1=E('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),c1={hash:"s-1f",code:".container.s-1f{display:inline-block;height:16px;width:120px}canvas.s-1f{margin-top:2px;transform:scaleY(-1)}"};function Kd(t,e){O(e,!0),W(t,c1);let i=g(e,"values",19,()=>[]),o=z(void 0),r=z(null),s=16,a=120,d=60,l=a/d;Ct(()=>{n(o).width=a,n(o).height=s,M(r,n(o).getContext("2d"),!0)});function p(m,b,y,x,S){S===0&&(S=1),m.fillStyle="#fff",m.fillRect(b,y,x,S)}Pe(()=>{let m="";if(n(r)){let b=i()[0];for(let x=1;x<i().length;x++)i()[x]>b&&(b=i()[x]);n(r).clearRect(0,0,a,s);let y=d-1;for(let x=i().length-1;x>=0;x--){let S=y*l,I=b>0?s*(i()[x]/b):0;p(n(r),S,0,l,I),m=I+" "+m,y--}}});var f=d1(),v=w(f);Je(v,m=>M(o,m),()=>n(o)),$(f),h(t,f),B()}var Xf=require("@vkontakte/videoplayer-shared");var u1=(t,e)=>{t.stopPropagation(),Xf.safeStorage.remove(Pd),e.set(!1)},p1=E('<div class="s-v"><div class="s-v">Video id</div> <span> </span></div>'),f1=E('<div class="s-v"><div class="s-v">VSID</div> <span> </span></div>'),m1=E('<div class="s-v"><div class="s-v">Provider</div> <span> </span></div>'),v1=E('<div class="s-v"><div class="s-v">Streams</div> <span> </span></div>'),g1=E('<div class="s-v"><div class="s-v">Viewport</div> <span> </span></div>'),h1=E('<div class="s-v"><div class="s-v">Video size</div> <span> </span></div>'),_1=E('<div class="s-v"><div class="s-v">CDN host</div> <span> </span></div>'),b1=E('<div class="s-v"><div class="s-v">Volume</div> <span> </span></div>'),$1=E('<div class="s-v"><div class="s-v">Position</div> <span> </span></div>'),y1=E('<div class="s-v"><div class="s-v">Buffer</div> <span> </span></div>'),x1=E('<div class="s-v"><div class="s-v">Live latency</div> <span> </span></div>'),w1=E('<div class="s-v"><div class="s-v">Segment</div> <span> </span></div>'),S1=E('<div class="s-v"><div class="s-v">Network</div> <!> <span> </span></div>'),T1=E('<div class="s-v"><div class="s-v">V bitrate</div> <!> <span> </span></div>'),C1=E('<div role="region"><button class="close s-v" title="закрыть">[x]</button> <div class="content s-v"><div class="s-v"><div class="s-v">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-v"><div class="s-v">Dropped</div> <span> </span></div> <!> <!> <div class="s-v"><div class="s-v">FPS</div> <!> <span> </span></div></div></div>'),I1={hash:"s-v",code:".container.s-v{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-v{left:16px;top:16px}button.close.s-v{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-v{padding:5px}.content.s-v>div:where(.s-v)>div:where(.s-v){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function qd(t,e){O(e,!0),W(t,I1);let[i,o]=Ee(),r=()=>_(d,"$isMobile",i),s=ve(),a=s.ui.debugPanelVisible,d=s.ui.isMobile,l=z(Yt(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=z(0),v=z(0),m=z(0),b=new Ol(60),y=new Ol(60),x=new Ol(60),S=z(Yt([])),I=z(Yt([])),C=z(Yt([])),V=K("aria_label_debug_panel");Ct(()=>{Xf.safeStorage.set(Pd,"true"),s.actions.internal.startLogging(),p&&(M(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),M(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let be=window.setInterval(()=>{M(l,s.actions.internal.getDebugPanelData(),!0)},500),$e;return p&&($e=window.setInterval(()=>{if(p){M(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let X=p.getVideoPlaybackQuality().totalVideoFrames;M(m,X-n(f)),M(f,X,!0),b.push(n(m)),n(l).speed&&y.push(n(l).speed),n(l).bitrate&&x.push(n(l).bitrate),M(S,b.getValuesFromBottom(),!0),M(I,y.getValuesFromBottom(),!0),M(C,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(be),$e&&clearInterval($e)}});var P=C1();let R;var U=w(P);U.__click=[u1,a];var N=k(U,2),H=w(N),te=k(w(H),2),ie=w(te,!0);$(te),$(H);var de=k(H,2);{var Z=be=>{var $e=p1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).id)),h(be,$e)};A(de,be=>{n(l).id&&be(Z)})}var J=k(de,2);{var Q=be=>{var $e=f1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).vsid)),h(be,$e)};A(J,be=>{n(l).vsid&&be(Q)})}var Te=k(J,2);{var fe=be=>{var $e=m1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).provider)),h(be,$e)};A(Te,be=>{n(l).provider&&be(fe)})}var pe=k(Te,2);{var ke=be=>{var $e=v1(),X=k(w($e),2),ye=w(X);$(X),$($e),D(()=>ue(ye,`Video: ${(n(l).videoCodec||"")??""} ${n(l).hdr?"(HDR)":""}
|
|
43
|
+
`)})}}var pa=!1,ml=null,fa=!1,ms=!1;function Dp(t){ms=t}var vd=[],gd=[],Et=null,Kn=!1;function ki(t){Et=t}var gt=null;function ji(t){gt=t}var zn=null;function Gc(t){Et!==null&&Et.f&2097152&&(zn===null?zn=[Et,[t]]:zn[1].push(t))}var cn=null,qn=0,Wn=null;function Og(t){Wn=t}var ih=1,nu=0,vs=!1,ru=null;function nd(){return++ih}function la(t){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,s,a=(e&512)!==0,d=o&>!==null&&!vs,l=i.length;if(a||d){var f=t,g=f.parent;for(r=0;r<l;r++)s=i[r],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=512),d&&g!==null&&(g.f&256)===0&&(f.f^=256)}for(r=0;r<l;r++)if(s=i[r],la(s)&&Op(s),s.wv>t.wv)return!0}(!o||gt!==null&&!vs)&&an(t,1024)}return!1}function oh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];zn?.[1].includes(t)&&zn[0]===Et||((s.f&2)!==0?oh(s,e,!1):e===s&&(i?an(s,2048):(s.f&1024)!==0&&an(s,4096),sd(s)))}}function jc(t){var e=cn,i=qn,o=Wn,r=Et,s=vs,a=zn,d=Ht,l=Kn,f=t.f;cn=null,qn=0,Wn=null,vs=(f&256)!==0&&(Kn||!fa||Et===null),Et=(f&96)===0?t:null,zn=null,td(t.ctx),Kn=!1,nu++,t.f|=2097152;try{var g=(0,t.fn)(),v=t.deps;if(cn!==null){var u;if(pd(t,qn),v!==null&&qn>0)for(v.length=qn+cn.length,u=0;u<cn.length;u++)v[qn+u]=cn[u];else t.deps=v=cn;if(!vs||(f&2)!==0&&t.reactions!==null)for(u=qn;u<v.length;u++)(v[u].reactions??=[]).push(t)}else v!==null&&qn<v.length&&(pd(t,qn),v.length=qn);if(Jr()&&Wn!==null&&!Kn&&v!==null&&(t.f&6146)===0)for(u=0;u<Wn.length;u++)oh(Wn[u],t);return r!==null&&r!==t&&(nu++,Wn!==null&&(o===null?o=Wn:o.push(...Wn))),g}catch(y){Jg(y)}finally{cn=e,qn=i,Wn=o,Et=r,vs=s,zn=a,td(d),Kn=l,t.f^=2097152}}function x_(t,e){let i=e.reactions;if(i!==null){var o=gg.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&&(cn===null||!cn.includes(e))&&(an(e,4096),(e.f&768)===0&&(e.f^=512),Qc(e),pd(e,0))}function pd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)x_(t,i[o])}function ul(t){var e=t.f;if((e&16384)===0){an(t,1024);var i=gt,o=fa;if(gt=t,fa=!0,Ie){var r=Fn;id(t.component_function)}try{(e&16)!==0?jg(t):Up(t),Fp(t);var s=jc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=ih,Ie&&Xr&&(t.f&2048)!==0&&t.deps!==null)for(var a of t.deps)a.set_during_effect&&(a.wv=nd(),a.set_during_effect=!1);Ie&&gd.push(t)}finally{fa=o,gt=i,Ie&&id(r)}}}function eh(){console.error("Last ten effects were: ",gd.slice(-10).map(t=>t.fn)),gd=[]}function w_(){try{Cg()}catch(t){if(Ie&&Qi(t,"stack",{value:""}),ml!==null)if(Ie)try{md(t,ml)}catch(e){throw eh(),e}else md(t,ml);else throw Ie&&eh(),t}}function jp(){var t=fa;try{var e=0;for(fa=!0;vd.length>0;){e++>1e3&&w_();var i=vd,o=i.length;vd=[];for(var r=0;r<o;r++){var s=C_(i[r]);S_(s)}dl.clear()}}finally{pa=!1,fa=t,ml=null,Ie&&(gd=[])}}function S_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&la(o)&&(ul(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Wp(o):o.fn=null))}}function sd(t){pa||(pa=!0,queueMicrotask(jp));for(var e=ml=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}vd.push(e)}function C_(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:la(i)&&ul(i);var a=i.first;if(a!==null){i=a;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function vl(t){var e;for(t&&(pa=!0,jp(),pa=!0,e=t());;){if(Zg(),vd.length===0)return pa=!1,ml=null,Ie&&(gd=[]),e;pa=!0,jp()}}async function Yi(){await Promise.resolve(),vl()}function n(t){var e=t.f,i=(e&2)!==0;if(ru!==null&&ru.add(t),Et!==null&&!Kn){if(!zn?.[1].includes(t)||zn[0]!==Et){var o=Et.deps;t.rv<nu&&(t.rv=nu,cn===null&&o!==null&&o[qn]===t?qn++:cn===null?cn=[t]:(!vs||!cn.includes(t))&&cn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,la(r)&&Op(r)),Ie&&Xr&&!Kn&&ed!==null&&Et!==null&&ed.reaction===Et)if(t.trace)t.trace();else{var a=fs("TracedAt");if(a){var d=ed.entries.get(t);d===void 0&&(d={traces:[]},ed.entries.set(t,d));var l=d.traces[d.traces.length-1];a.stack!==l?.stack&&d.traces.push(a)}}return ms&&dl.has(t)?dl.get(t):t.v}function wt(t){var e=Kn;try{return Kn=!0,t()}finally{Kn=e}}var T_=-7169;function an(t,e){t.f=t.f&T_|e}function au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ao in t)su(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ao in i&&su(i)}}}function su(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{su(t[o],e)}catch{}let i=na(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Uc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch{}}}}}function Gp(t,e){if(e){let i=document.body;t.autofocus=!0,dn(()=>{document.activeElement===i&&t.focus()})}}function hd(t){var e=Et,i=gt;ki(null),ji(null);try{return t()}finally{ki(e),ji(i)}}var Yp=new Set,lu=new Set;function ma(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Zp(t,e,i,o={}){function r(s){if(o.capture||gl.call(e,s),!s.cancelBubble)return hd(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?dn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function vt(t,e,i,o,r){var s={capture:o,passive:r},a=Zp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&lo(()=>{e.removeEventListener(t,a,s)})}function nt(t){for(var e=0;e<t.length;e++)Yp.add(t[e]);for(var i of lu)i(t)}function gl(t){var e=this,i=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],s=r[0]||t.target,a=0,d=t.__root;if(d){var l=r.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var f=r.indexOf(e);if(f===-1)return;l<=f&&(a=l)}if(s=r[a]||t.target,s!==e){Qi(t,"currentTarget",{configurable:!0,get(){return s||i}});var g=Et,v=gt;ki(null),ji(null);try{for(var u,y=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!=null&&(!s.disabled||t.target===s))if(Bn(w)){var[C,...k]=w;C.apply(s,[t,...k])}else w.call(s,t)}catch(T){u?y.push(T):u=T}if(t.cancelBubble||x===e||x===null)break;s=x}if(u){for(let T of y)queueMicrotask(()=>{throw T});throw u}}finally{t.__root=e,delete t.currentTarget,ki(g),ji(v)}}}var I_;function nh(){I_=void 0}function hl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function uo(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function E(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(et)return uo(ht,null),ht;r===void 0&&(r=hl(s?t:"<!>"+t),i||(r=fi(r)));var a=o||ad?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=fi(a),l=a.lastChild;uo(d,l)}else uo(a,a);return a}}function P_(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(et)return uo(ht,null),ht;if(!a){var d=hl(s),l=fi(d);if(r)for(a=document.createDocumentFragment();fi(l);)a.appendChild(fi(l));else a=fi(l)}var f=a.cloneNode(!0);if(r){var g=fi(f),v=f.lastChild;uo(g,v)}else uo(f,f);return f}}function xe(t,e){return P_(t,e,"svg")}function ts(t=""){if(!et){var e=ln(t+"");return uo(e,e),e}var i=ht;return i.nodeType!==il&&(i.before(i=ln()),ci(i)),uo(i,i),i}function Le(){if(et)return uo(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=ln();return t.append(e,i),uo(e,i),t}function b(t,e){if(et){gt.nodes_end=ht,Ei();return}t!==null&&t.before(e)}var M_=/\r/g;function sh(t){t=t.replace(M_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function ah(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var L_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function lh(t){return L_.includes(t)}var V_=["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 R_={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 dh(t){return t=t.toLowerCase(),R_[t]??t}var US=[...V_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var N_=["touchstart","touchmove"];function ch(t){return N_.includes(t)}var O_=["$state","$state.raw","$derived","$derived.by"],zS=[...O_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var D_=["textarea","script","style","title"];function uh(t){return D_.includes(t)}function du(t){return t?.replace(/\//g,"/\u200B")}var _d=!0;function cu(t){_d=t}function pe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Vr(t,e){return ph(t,e)}function Jp(t,e){Xc(),e.intro=e.intro??!1;let i=e.target,o=et,r=ht;try{for(var s=fi(i);s&&(s.nodeType!==Hn||s.data!==Ms);)s=Mo(s);if(!s)throw Yr;Gi(!0),ci(s),Ei();let a=ph(t,{...e,anchor:s});if(ht===null||ht.nodeType!==Hn||ht.data!==oa)throw Ns(),Yr;return Gi(!1),a}catch(a){if(a===Yr)return e.recover===!1&&Tg(),Xc(),ld(i),Gi(!1),Vr(t,e);throw a}finally{Gi(o),ci(r),nh()}}var _l=new Map;function ph(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:a=!0}){Xc();var d=new Set,l=v=>{for(var u=0;u<v.length;u++){var y=v[u];if(!d.has(y)){d.add(y);var x=ch(y);e.addEventListener(y,gl,{passive:x});var w=_l.get(y);w===void 0?(document.addEventListener(y,gl,{passive:x}),_l.set(y,1)):_l.set(y,w+1)}}};l(Jl(Yp)),lu.add(l);var f=void 0,g=Qg(()=>{var v=i??e.appendChild(ln());return $i(()=>{if(s){F({});var u=Ht;u.c=s}r&&(o.$$events=r),et&&uo(v,null),_d=a,f=t(v,o)||{},_d=!0,et&&(gt.nodes_end=ht),s&&U()}),()=>{for(var u of d){e.removeEventListener(u,gl);var y=_l.get(u);--y===0?(document.removeEventListener(u,gl),_l.delete(u)):_l.set(u,y)}lu.delete(l),v!==i&&v.parentNode?.removeChild(v)}});return Xp.set(f,g),f}var Xp=new WeakMap;function va(t,e){let i=Xp.get(t);return i?(Xp.delete(t),i(e)):(Ie&&Hg(),Promise.resolve())}function ge(t,e,...i){var o=t,r=oe,s;Ai(()=>{r!==(r=e())&&(s&&(Ii(s),s=null),Ie&&r==null&&kg(),s=$i(()=>r(o,...i)))},65536),et&&(o=ht)}if(Ie){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ag(e)},set:o=>{i=o}})}};U_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var U_;function Mt(t){Ht===null&&rl("onMount"),Zr&&Ht.l!==null?F_(Ht).m.push(t):Ne(()=>{let e=wt(t);if(typeof e=="function")return e})}function Ko(t){Ht===null&&rl("onDestroy"),Mt(()=>()=>wt(t))}function F_(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}var fh=new Map;function mh(t,e){var i=fh.get(t);i||(i=new Set,fh.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){et&&i===0&&Ei();var r=t,s=null,a=null,d=Di,l=i>0?65536:0,f=!1;let g=(u,y=!0)=>{f=!0,v(y,u)},v=(u,y)=>{if(d===(d=u))return;let x=!1;if(et&&o!==-1){if(i===0){let C=Zc(r);C===Ms?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(r=da(),ci(r),Gi(!1),x=!0,o=-1)}d?(s?hs(s):y&&(s=$i(()=>y(r))),a&&Sn(a,()=>{a=null})):(a?hs(a):y&&(a=$i(()=>y(r,[i+1,o]))),s&&Sn(s,()=>{s=null})),x&&Gi(!0)};Ai(()=>{f=!1,e(g),f||v(null,null)},l),et&&(r=ht)}function _s(t,e,i){et&&Ei();var o=t,r=Di,s,a=Jr()?$g:ol;Ai(()=>{a(r,r=e())&&(s&&Sn(s),s=$i(()=>i(o)))}),et&&(o=ht)}var Ds=null;function of(t){Ds=t}function bd(t,e){return e}function K_(t,e,i,o){for(var r=[],s=e.length,a=0;a<s;a++)iu(e[a].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var l=i.parentNode;ld(l),l.append(i),o.clear(),Os(t,e[0].prev,e[s-1].next)}Kp(r,()=>{for(var f=0;f<s;f++){var g=e[f];d||(o.delete(g.k),Os(t,g.prev,g.next)),Ii(g.e,!d)}})}function di(t,e,i,o,r,s=null){var a=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var f=t;a=et?ci(fi(f)):f.appendChild(ln())}et&&Ei();var g=null,v=!1,u=sn(()=>{var y=i();return Bn(y)?y:y==null?[]:Jl(y)});Ai(()=>{var y=n(u),x=y.length;if(v&&x===0)return;v=x===0;let w=!1;if(et){var C=Zc(a)===Ls;C!==(x===0)&&(a=da(),ci(a),Gi(!1),w=!0)}if(et){for(var k=null,T,N=0;N<x;N++){if(ht.nodeType===Hn&&ht.data===oa){a=ht,w=!0,Gi(!1);break}var A=y[N],R=o(A,N);T=hh(ht,d,k,null,A,R,N,r,e,i),d.items.set(R,T),k=T}x>0&&ci(da())}et||q_(y,d,a,r,e,o,i),s!==null&&(x===0?g?hs(g):g=$i(()=>s(a)):g!==null&&Sn(g,()=>{g=null})),w&&Gi(!0),n(u)}),et&&(a=ht)}function q_(t,e,i,o,r,s,a){var d=(r&8)!==0,l=(r&3)!==0,f=t.length,g=e.items,v=e.first,u=v,y,x=null,w,C=[],k=[],T,N,A,R;if(d)for(R=0;R<f;R+=1)T=t[R],N=s(T,R),A=g.get(N),A!==void 0&&(A.a?.measure(),(w??=new Set).add(A));for(R=0;R<f;R+=1){if(T=t[R],N=s(T,R),A=g.get(N),A===void 0){var V=u?u.e.nodes_start:i;x=hh(V,e,x,x===null?e.first:x.next,T,N,R,o,r,a),g.set(N,x),C=[],k=[],u=x.next;continue}if(l&&Q_(A,T,R,r),(A.e.f&8192)!==0&&(hs(A.e),d&&(A.a?.unfix(),(w??=new Set).delete(A))),A!==u){if(y!==void 0&&y.has(A)){if(C.length<k.length){var Z=k[0],B;x=Z.prev;var J=C[0],re=C[C.length-1];for(B=0;B<C.length;B+=1)vh(C[B],Z,i);for(B=0;B<k.length;B+=1)y.delete(k[B]);Os(e,J.prev,re.next),Os(e,x,J),Os(e,re,Z),u=Z,x=re,R-=1,C=[],k=[]}else y.delete(A),vh(A,u,i),Os(e,A.prev,A.next),Os(e,A,x===null?e.first:x.next),Os(e,x,A),x=A;continue}for(C=[],k=[];u!==null&&u.k!==N;)(u.e.f&8192)===0&&(y??=new Set).add(u),k.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),x=A,u=A.next}if(u!==null||y!==void 0){for(var le=y===void 0?[]:Jl(y);u!==null;)(u.e.f&8192)===0&&le.push(u),u=u.next;var Y=le.length;if(Y>0){var ne=(r&4)!==0&&f===0?i:null;if(d){for(R=0;R<Y;R+=1)le[R].a?.measure();for(R=0;R<Y;R+=1)le[R].a?.fix()}K_(e,le,ne,g)}}d&&dn(()=>{if(w!==void 0)for(A of w)A.a?.apply()}),gt.first=e.first&&e.first.e,gt.last=x&&x.e}function Q_(t,e,i,o){(o&1)!==0&&cl(t.v,e),(o&2)!==0?cl(t.i,i):t.i=i}function hh(t,e,i,o,r,s,a,d,l,f){var g=Ds,v=(l&1)!==0,u=(l&16)===0,y=v?u?es(r,!1,!1):ur(r):r,x=(l&2)===0?a:ur(a);Ie&&v&&(y.trace=()=>{var C=typeof x=="number"?a:x.v;f()[C]});var w={i:x,v:y,k:s,a:null,e:null,prev:i,next:o};Ds=w;try{return w.e=$i(()=>d(t,y,x,f),et),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Ds=g}}function vh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=Mo(s);r.before(s),s=a}}function Os(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 j_(t,e,i){if(!e||e===sh(String(i??"")))return;let o,r=t.__svelte_meta?.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:Fn?.[$n]&&(o=`in ${Fn[$n]}`),Bg(du(o))}function $d(t,e,i=!1,o=!1,r=!1){var s=t,a="";O(()=>{var d=gt;if(a===(a=e()??"")){et&&Ei();return}if(d.nodes_start!==null&&(zp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),a!==""){if(et){for(var l=ht.data,f=Ei(),g=f;f!==null&&(f.nodeType!==Hn||f.data!=="");)g=f,f=Mo(f);if(f===null)throw Ns(),Yr;Ie&&!r&&j_(f.parentNode,l,a),uo(ht,g),s=ci(f);return}var v=a+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=hl(v);if((i||o)&&(u=fi(u)),uo(fi(u),u.lastChild),i||o)for(;fi(u);)s.before(fi(u));else s.before(u)}})}function gi(t,e,i){et&&Ei();var o=t,r,s;Ai(()=>{r!==(r=e())&&(s&&(Sn(s),s=null),r&&(s=$i(()=>i(o,r))))},65536),et&&(o=ht)}function ga(t,e,i,o,r,s){let a=et;et&&Ei();var d=Ie&&s&&Ht?.function[$n],l,f,g=null;et&&ht.nodeType===Wc&&(g=ht,Ei());var v=et?ht:t,u,y=Ds;Ai(()=>{let x=e()||null;var w=r?r():i||x==="svg"?Hc:null;if(x!==l){var C=Ds;of(y),u&&(x===null?Sn(u,()=>{u=null,f=null}):x===f?hs(u):(Ii(u),cu(!1))),x&&x!==f&&(u=$i(()=>{if(g=et?g:w?document.createElementNS(w,x):document.createElement(x),Ie&&s&&(g.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),uo(g,g),o){et&&uh(x)&&g.append(document.createComment(""));var k=et?fi(g):g.appendChild(ln());et&&(k===null?Gi(!1):ci(k)),o(g,k)}gt.nodes_end=g,v.before(g)})),l=x,l&&(f=l),cu(!0),of(C)}},65536),a&&(Gi(!0),ci(v))}var rf;function _h(t){return rf=t.target,new nf(t)}var nf=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var d=es(a,!1,!1);return i.set(s,d),d};let r=new Proxy({...e.props||{},$$events:{}},{get(s,a){return n(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===tl?!0:(n(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,d){return L(i.get(a)??o(a,d),d),Reflect.set(s,a,d)}});this.#e=(e.hydrate?Jp:Vr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&vl(),this.#t=r.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Qi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(r,s)},this.#e.$destroy=()=>{va(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...r)=>i.call(this,...r);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(r=>r!==o)}}$destroy(){this.#e.$destroy()}};function z(t,e){dn(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??rf?.parentNode;if(!o?.querySelector("#"+e.hash)){let r=document.createElement("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r),Ie&&mh(e.hash,r)}})}function bs(t,e){var i=void 0,o;Ai(()=>{i!==(i=e())&&(o&&(Ii(o),o=null),i&&(o=$i(()=>{co(()=>i(t))})))})}function bh(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=bh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function $h(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=bh(t))&&(o&&(o+=" "),o+=e);return o}function yd(t){return typeof t=="object"?$h(t):t??""}var yh=[...`
|
|
44
|
+
\r\f\xA0\v\uFEFF`];function wh(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 s=r.length,a=0;(a=o.indexOf(r,a))>=0;){var d=a+s;(a===0||yh.includes(o[a-1]))&&(d===o.length||yh.includes(o[d]))?o=(a===0?"":o.substring(0,a))+o.substring(d+1):a=d}}return o===""?null:o}function xh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function sf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Sh(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 s=!1,a=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(sf)),r&&l.push(...Object.keys(r).map(sf));var f=0,g=-1;let w=t.length;for(var v=0;v<w;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?a++:u===")"&&a--,!d&&s===!1&&a===0){if(u===":"&&g===-1)g=v;else if(u===";"||v===w-1){if(g!==-1){var y=sf(t.substring(f,g).trim());if(!l.includes(y)){u!==";"&&v++;var x=t.substring(f,v).trim();i+=" "+x+";"}}f=v+1,g=-1}}}}return o&&(i+=xh(o)),r&&(i+=xh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,r,s){var a=t.__className;if(et||a!==i||a===void 0){var d=wh(i,o,s);(!et||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var l in s){var f=!!s[l];(r==null||f!==!!r[l])&&t.classList.toggle(l,f)}return s}function af(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Ye(t,e,i,o){var r=t.__style;if(et||r!==e){var s=Sh(e,o);(!et||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(af(t,i?.[0],o[0]),af(t,i?.[1],o[1],"important")):af(t,i,o));return o}function xd(t,e,i){if(t.multiple){if(e==null)return;if(!Bn(e))return Fg();for(var o of t.options)o.selected=e.includes(Ch(o));return}for(o of t.options){var r=Ch(o);if(Mp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function lf(t){var e=new MutationObserver(()=>{xd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),lo(()=>{e.disconnect()})}function Ch(t){return"__value"in t?t.__value:t.value}var bl=Symbol("class"),$l=Symbol("style"),Ih=Symbol("is custom element"),Eh=Symbol("is html");function Ah(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var r=Mh(t);if(et&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||ib(t,e,i??"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[bg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Lh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ph(t,e,i,o,r=!1){var s=Mh(t),a=s[Ih],d=!s[Eh];let l=et&&a;l&&Gi(!1);var f=e||{},g=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=yd(i.class):(o||i[bl])&&(i.class=null),i[$l]&&(i.style??=null);var u=Lh(t);for(let A in i){let R=i[A];if(g&&A==="value"&&R==null){t.value=t.__value="",f[A]=R;continue}if(A==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,y,R,o,e?.[bl],i[bl]),f[A]=R,f[bl]=i[bl];continue}if(A==="style"){Ye(t,R,e?.[$l],i[$l]),f[A]=R,f[$l]=i[$l];continue}var x=f[A];if(!(R===x&&!(R===void 0&&t.hasAttribute(A)))){f[A]=R;var w=A[0]+A[1];if(w!=="$$")if(w==="on"){let V={},Z="$$"+A,B=A.slice(2);var C=lh(B);if(ah(B)&&(B=B.slice(0,-7),V.capture=!0),!C&&x){if(R!=null)continue;t.removeEventListener(B,f[Z],V),f[Z]=null}if(R!=null)if(C)t[`__${B}`]=R,nt([B]);else{let J=function(re){f[A].call(this,re)};var N=J;f[Z]=Zp(B,t,J,V)}else C&&(t[`__${B}`]=void 0)}else if(A==="style")Oe(t,A,R);else if(A==="autofocus")Gp(t,!!R);else if(!a&&(A==="__value"||A==="value"&&R!=null))t.value=t.__value=R;else if(A==="selected"&&g)Ah(t,R);else{var k=A;d||(k=dh(k));var T=k==="defaultValue"||k==="defaultChecked";if(R==null&&!a&&!T)if(s[A]=null,k==="value"||k==="checked"){let V=t,Z=e===void 0;if(k==="value"){let B=V.defaultValue;V.removeAttribute(k),V.defaultValue=B,V.value=V.__value=Z?B:null}else{let B=V.defaultChecked;V.removeAttribute(k),V.defaultChecked=B,V.checked=Z?B:!1}}else t.removeAttribute(A);else T||u.includes(k)&&(a||typeof R!="string")?t[k]=R:typeof R!="function"&&Oe(t,k,R,r)}}}return l&&Gi(!0),f}function Te(t,e,i=[],o,r=!1,s=Pr){let a=i.map(s);var d=void 0,l={},f=t.nodeName==="SELECT",g=!1;if(Ai(()=>{var u=e(...a.map(n)),y=Ph(t,d,u,o,r);g&&f&&"value"in u&&xd(t,u.value,!1);for(let w of Object.getOwnPropertySymbols(l))u[w]||Ii(l[w]);for(let w of Object.getOwnPropertySymbols(u)){var x=u[w];w.description===Sp&&(!d||x!==d[w])&&(l[w]&&Ii(l[w]),l[w]=$i(()=>bs(t,()=>x))),y[w]=x}d=y}),f){var v=t;co(()=>{xd(v,d.value),lf(v)})}g=!0}function Mh(t){return t.__attributes??={[Ih]:t.nodeName.includes("-"),[Eh]:t.namespaceURI===mg}}var Th=new Map;function Lh(t){var e=Th.get(t.nodeName);if(e)return e;Th.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Uc(o);for(var s in i)i[s].set&&e.push(s);o=na(o)}return e}function ib(t,e,i){Ie&&(e==="srcset"&&ob(t,i)||df(t.getAttribute(e)??"",i)||Dg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function df(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function kh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function ob(t,e){var i=kh(t.srcset),o=kh(e);return o.length===i.length&&o.every(([r,s],a)=>s===i[a][1]&&(df(i[a][0],r)||df(r,i[a][0])))}var nb=Fc?()=>performance.now():()=>Date.now(),Rr={tick:t=>(Fc?requestAnimationFrame:oe)(t),now:()=>nb(),tasks:new Set};function Vh(){let t=Rr.now();Rr.tasks.forEach(e=>{e.c(t)||(Rr.tasks.delete(e),e.f())}),Rr.tasks.size!==0&&Rr.tick(Vh)}function Rh(t){let e;return Rr.tasks.size===0&&Rr.tick(Vh),{promise:new Promise(i=>{Rr.tasks.add(e={c:t,f:i})}),abort(){Rr.tasks.delete(e)}}}function uu(t,e){hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function lb(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 Nh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let a=lb(r.trim());e[a]=s.trim()}return e}var db=t=>t;function Nr(t,e,i,o){var r=(t&1)!==0,s=(t&2)!==0,a=r&&s,d=(t&4)!==0,l=a?"both":r?"in":"out",f,g=e.inert,v=e.style.overflow,u,y;function x(){var N=Et,A=gt;ki(null),ji(null);try{return f??=i()(e,o?.()??{},{direction:l})}finally{ki(N),ji(A)}}var w={is_global:d,in(){if(e.inert=g,!r){y?.abort(),y?.reset?.();return}s||u?.abort(),uu(e,"introstart"),u=cf(e,x(),y,1,()=>{uu(e,"introend"),u?.abort(),u=f=void 0,e.style.overflow=v})},out(N){if(!s){N?.(),f=void 0;return}e.inert=!0,uu(e,"outrostart"),y=cf(e,x(),u,0,()=>{uu(e,"outroend"),N?.()})},stop:()=>{u?.abort(),y?.abort()}},C=gt;if((C.transitions??=[]).push(w),r&&_d){var k=d;if(!k){for(var T=C.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);k=!T||(T.f&32768)!==0}k&&co(()=>{wt(()=>w.in())})}}function cf(t,e,i,o,r){var s=o===1;if(Vs(e)){var a,d=!1;return dn(()=>{if(!d){var C=e({direction:s?"in":"out"});a=cf(t,C,i,o,r)}}),{abort:()=>{d=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return r(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:f,tick:g,easing:v=db}=e;var u=[];if(s&&i===void 0&&(g&&g(0,1),f)){var y=Nh(f(0,1));u.push(y,y)}var x=()=>1-o,w=t.animate(u,{duration:l,fill:"forwards"});return w.onfinish=()=>{w.cancel();var C=i?.t()??1-o;i?.abort();var k=o-C,T=e.duration*Math.abs(k),N=[];if(T>0){var A=!1;if(f)for(var R=Math.ceil(T/16.666666666666668),V=0;V<=R;V+=1){var Z=C+k*v(V/R),B=Nh(f(Z,1-Z));N.push(B),A||=B.overflow==="hidden"}A&&(t.style.overflow="hidden"),x=()=>{var J=w.currentTime;return C+k*v(J/T)},g&&Rh(()=>{if(w.playState!=="running")return!1;var J=x();return g(J,1-J),!0})}w=t.animate(N,{duration:T,fill:"forwards"}),w.onfinish=()=>{x=()=>o,g?.(o,1-o),r()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=oe)},deactivate:()=>{r=oe},reset:()=>{o===0&&g?.(1,0)},t:()=>x()}}function uf(t,e,i){var o=Eo(t,e);o&&o.set&&(t[e]=i,lo(()=>{t[e]=null}))}var pf=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var r=this.#t.get(e);r.delete(i),r.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var cb=new pf({box:"border-box"});function un(t,e,i){var o=cb.observe(t,()=>i(t[e]));co(()=>(wt(()=>i(t[e])),o))}function Oh(t,e){return t===e||t?.[Ao]===e}function ot(t={},e,i,o){return co(()=>{var r,s;return Lo(()=>{r=s,s=o?.()||[],wt(()=>{t!==i(...s)&&(e(t,...s),r&&Oh(i(...r),t)&&e(null,...r))})}),()=>{dn(()=>{s&&Oh(i(...s),t)&&e(null,...s)})}}),t}function Vo(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>au(e.s);if(t){let r=0,s={},a=Pr(()=>{let d=!1,l=e.s;for(let f in l)l[f]!==s[f]&&(s[f]=l[f],d=!0);return d&&r++,r});o=()=>n(a)}i.b.length&&ud(()=>{Dh(e,o),Rs(i.b)}),Ne(()=>{let r=wt(()=>i.m.map(_g));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Ne(()=>{Dh(e,o),Rs(i.a)})}function Dh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function wd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var yl=[];function pr(t,e){return{subscribe:ie(t,e).subscribe}}function ie(t,e=oe){let i=null,o=new Set;function r(d){if(ol(t,d)&&(t=d,i)){let l=!yl.length;for(let f of o)f[1](),yl.push(f,t);if(l){for(let f=0;f<yl.length;f+=2)yl[f][0](yl[f+1]);yl.length=0}}}function s(d){r(d(t))}function a(d,l=oe){let f=[d,l];return o.add(f),o.size===1&&(i=e(r,s)||oe),d(t),()=>{o.delete(f),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}function ri(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 s=e.length<2;return pr(i,(a,d)=>{let l=!1,f=[],g=0,v=oe,u=()=>{if(g)return;v();let x=e(o?f[0]:f,a,d);s?a(x):v=typeof x=="function"?x:oe},y=r.map((x,w)=>wd(x,C=>{f[w]=C,g&=~(1<<w),l&&u()},()=>{g|=1<<w}));return l=!0,u(),function(){Rs(y),v(),l=!1}})}function me(t){let e;return wd(t,i=>e=i)(),e}var fu=!1,ff=Symbol();function $(t,e,i){let o=i[e]??={store:null,source:es(void 0),unsubscribe:oe};if(o.store!==t&&!(ff in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var r=!0;o.unsubscribe=wd(t,s=>{r?o.source.v=s:L(o.source,s)}),r=!1}return t&&ff in i?me(t):n(o.source)}function Me(){let t={};function e(){lo(()=>{for(var i in t)t[i].unsubscribe();Qi(t,ff,{enumerable:!1,value:!0})})}return[t,e]}function mf(t){var e=fu;try{return fu=!1,[t(),fu]}finally{fu=e}}var hb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ie&&Eg(`${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 Pe(t,e,i){return new Proxy(Ie?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},hb)}var _b={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Vs(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];Vs(r)&&(r=r());let s=Eo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Vs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Eo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ao||e===tl)return!1;for(let i of t.props)if(Vs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Vs(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 $s(...t){return new Proxy({props:t},_b)}function Bh(t){return t.ctx?.d??!1}function h(t,e,i,o){var r=(i&1)!==0,s=!Zr||(i&2)!==0,a=(i&8)!==0,d=(i&16)!==0,l=!1,f;a?[f,l]=mf(()=>t[e]):f=t[e];var g=Ao in t||tl in t,v=a&&(Eo(t,e)?.set??(g&&e in t&&(Z=>t[e]=Z)))||void 0,u=o,y=!0,x=!1,w=()=>(x=!0,y&&(y=!1,d?u=wt(o):u=o),u);f===void 0&&o!==void 0&&(v&&s&&Ig(e),f=w(),v&&v(f));var C;if(s)C=()=>{var Z=t[e];return Z===void 0?w():(y=!0,x=!1,Z)};else{var k=(r?Pr:sn)(()=>t[e]);k.f|=131072,C=()=>{var Z=n(k);return Z!==void 0&&(u=void 0),Z===void 0?u:Z}}if((i&4)===0&&s)return C;if(v){var T=t.$$legacy;return function(Z,B){return arguments.length>0?((!s||!B||T||l)&&v(B?C():Z),Z):C()}}var N=!1,A=!1,R=es(f),V=Pr(()=>{var Z=C(),B=n(R);return N?(N=!1,A=!0,B):(A=!1,R.v=Z)});return a&&n(V),r||(V.equals=nl),function(Z,B){if(ru!==null&&(N=A,C(),n(R)),arguments.length>0){let J=B?n(V):s&&a?Zt(Z):Z;if(!V.equals(J)){if(N=!0,L(R,J),x&&u!==void 0&&(u=J),Bh(V))return Z;wt(()=>n(V))}return Z}return Bh(V)?V.v:n(V)}}var bb;typeof HTMLElement=="function"&&(bb=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{let a=document.createElement("slot");r!=="default"&&(a.name=r),b(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=$b(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),i.default=!0):i[r]=e(r));for(let r of this.attributes){let s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=vf(s,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=_h({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=tu(()=>{Lo(()=>{this.$$r=!0;for(let r of Cp(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let s=vf(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(let r in this.$$l)for(let s of this.$$l[r]){let a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=vf(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Cp(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function vf(t,e,i,o){let r=i[t]?.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;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 $b(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Hh="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Hh);var Ul=require("@vkontakte/videoplayer-core"),mZ=require("@vkontakte/videoplayer-core"),qa=require("@vkontakte/videoplayer-shared"),q0=require("@vkontakte/videoplayer-statistics");var ha=require("@vkontakte/videoplayer-shared");var yb={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,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},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},Fh=t=>(0,ha.fillWithDefault)(t,yb),Uh=t=>al("ui-config",t),It=()=>sl("ui-config");var Sd="vk_player_debug_panel_opened";var zh="videoplayer",Wh="videoplayer";var is={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),qh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Qh=new Set(["ShiftRight","ShiftLeft"]);var jh=["TIMELINE"],Cd=[...jh,"GRAPH_BUTTON"],gf=[...jh,"PLAY_BUTTON"],Td=[...Cd,"PLAY_BUTTON"];var Or=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Or||{}),ba={xs:0,s:1,m:2,l:3,xl:4};var kd=require("@vkontakte/videoplayer-shared"),Gh=require("@vkontakte/videoplayer-core"),Yh=require("@vkontakte/videoplayer-statistics");var mu="prod",$a="1.1.76-dev.44b02f36.0";var ya=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Zh=Symbol("storeContext"),Xh=Symbol("microStoresContext"),Jh=(t,e)=>{al(Zh,t),al(Xh,e),mu==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=sl(Zh);return(0,kd.assertNonNullable)(t,"Store context is empty!"),t},io=()=>{let t=sl(Xh);return(0,kd.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>gu(t,t.getValue(),e),gu=(t,e,i)=>pr(e,o=>{let r=t.subscribe(s=>{o(s),i?.(s)});return()=>r.unsubscribe()}),e1=(t,e,i,o)=>{let r=t.info,{width:s,height:a}=me(i.ui.playerSize),d=r.throughputEstimation$.getValue()?.toFixed(0)??0,l=r.rttEstimation$.getValue()?.toFixed(0)??0,f=r.isAutoQualityEnabled$.getValue()?"auto":"manual",g=`${$a} (core: ${Gh.VERSION}, stat: ${Yh.VERSION}, shared: ${kd.VERSION})`,v=me(i.state.errorLog$),u=v.length?`
|
|
45
|
+
`+v.map((Z,B)=>{let J=`${B}) Type: ${Z.id}
|
|
46
|
+
`,re=`Message: ${Z.message} (${Z.thrown})
|
|
47
|
+
`,le=`Trace: ${Z.thrown?.stack}
|
|
48
|
+
`;return J+re+le}).join(`
|
|
49
|
+
`):void 0,y=i.state.isAudioDisabled?"disabled":me(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),C=[];x&&C.push(`Video: ${x?.codec??""}`+(x?.hdr?" (HDR)":"")),w&&C.push(`Audio: ${w?.codec??""}`+(w?.language?` (${w.language})`:""));let k=r.currentQuality$.getValue(),T="";if(k){let Z=r.availableQualitiesFps$.getValue()[k];T=Z?`${Z}fps`:""}let N=r.httpConnectionType$.getValue(),A=r.currentBuffer$.getValue()?.end??0,R=Math.max(A-me(i.state.positionExact$),0),V={Version:g,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:me(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":N?N+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${l}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e?.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${f} ${k??""} ${T}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${me(i.state.positionExact$)}s`,Buffer:`${R}s`,State:`${me(i.playerPhase)} ${r.playbackState$.getValue()??""}`,"Player size":`${s}x${a}`,URL:window.location.href,Errors:u};return Object.entries(V).filter(([Z,B])=>B!==void 0).map(([Z,B])=>`${Z}: ${B}`).join(`
|
|
50
|
+
`)},t1=(t,e,i)=>{let o=t.info,{width:r,height:s}=me(i.ui.playerSize),a={version:$a,viewport:`${r}x${s}`,volume:Math.round(me(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let f=o.intrinsicVideoSize$.getValue();f&&(a.videoSize=`${f.width}x${f.height}`);let g=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();g&&(v&&u?a.buffer=g.end-u:a.buffer=Math.max(g.end-me(i.state.positionExact$),0)),a.position=me(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(a.speed=y);let x=o.videoBitrate$.getValue();x&&(a.bitrate=x);let w=o.liveLatency$.getValue();w&&(a.liveLatency=w);let C=o.currentVideoSegmentLength$.getValue();C&&(a.currentVideoSegmentLength=C);let k=o.currentAudioSegmentLength$.getValue();k&&(a.currentAudioSegmentLength=k);let T=me(i.vsid);typeof T=="string"&&(a.vsid=T);let N=t.info.currentVideoStream$.getValue()?.codec;N&&(a.videoCodec=N);let A=t.info.currentAudioStream$.getValue()?.codec;A&&(a.audioCodec=A),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let V=t.info.currentAudioStream$.getValue()?.language;return V&&(a.audioLanguage=V),a},i1=(t,e)=>ya(t,e,"mp4"),o1=t=>!t.type,n1=t=>!!t.type,r1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},vu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var si=require("@vkontakte/videoplayer-shared"),nM=require("@vkontakte/videoplayer-core"),xb="vk_player_",s1="vk_player_prefer_traffic_saving_enabled",a1="vk_player_preferred_volume",l1="vk_player_prefer_volume_mute",$f="vk_player_preferred_quality",hf="vk_player_preferred_default_quality_settings",_f="vk_player_preferred_quality_settings_by_video",d1="vk_player_preferred_stream_language",c1="vk_player_preferred_rate",u1="vk_player_preferred_autoplay_next",bf="vk_player_preferred_subtitles_language",p1="vk_player_user_video_prefs",f1=`${xb}preview_track_close_tooltip`,m1=t=>t>1?1:t<0?0:t,yf=t=>si.safeStorage.set(a1,m1(t).toString(10)),hu=()=>{let t=si.safeStorage.get(a1);return(0,si.isNullable)(t)?void 0:m1(parseFloat(t))},xf=(t,e)=>si.safeStorage.set($f,JSON.stringify({videoId:t,value:e})),_u=()=>si.safeStorage.remove($f),wf=t=>{let e=si.safeStorage.get($f);if((0,si.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){_u();return}return o},Sf=(t,e)=>{e?si.safeStorage.set(t,"true"):si.safeStorage.remove(t)},Cf=t=>si.safeStorage.get(t)==="true",Tf=t=>Sf(l1,t),v1=()=>Cf(l1),Id=t=>Sf(s1,t),kf=()=>Cf(s1),g1=()=>si.safeStorage.get(d1),If=t=>si.safeStorage.set(d1,t),Ef=()=>si.safeStorage.get(bf),Af=t=>{t?si.safeStorage.set(bf,t):si.safeStorage.remove(bf)},h1=t=>si.safeStorage.set(c1,JSON.stringify({rate:t})),_1=()=>{let t=si.safeStorage.get(c1);if((0,si.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},b1=t=>Sf(u1,t),$1=()=>Cf(u1),wb=()=>{let t=g=>{si.safeStorage.set(hf,JSON.stringify(g))},e=()=>{try{let g=si.safeStorage.get(hf);return g?JSON.parse(g):null}catch{return null}},i=()=>{try{let g=si.safeStorage.get(_f);return g?JSON.parse(g):null}catch{return null}},o=g=>{si.safeStorage.set(_f,JSON.stringify(g))},r=g=>{f(g);let v=g?i():null;if(v&&v?.videoId===g)return{...v,appliesTo:"to-video"};v&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{si.safeStorage.remove(_f)},a=()=>{si.safeStorage.remove(hf)},d=(g,v="as-default")=>{g.type==="exact_quality"||v==="to-video"?o(g):t(g)},l=g=>{let v=r(g);if(v){switch(v.type){case"traffic_saving":Id(!0);break;case"exact_quality":xf(g,v.quality)}s(),a()}},f=g=>{let v=wf(g);if(v){o({type:"exact_quality",videoId:g,quality:v});return}kf()&&t({type:"traffic_saving",videoId:g}),Id(!1),_u()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Ef,savePreferredSubtitlesLanguage:Af}},{getPreferredQualitySettings:y1,migrateSettingsToLegacyWay:x1,savePreferredQualitySettings:bu,savePreferredDefaultQualitySettings:rM,removePreferredQualitySettingsByVideo:sM,getPreferredDefaultQualitySettings:$u}=wb(),Sb=3,Cb=3,w1=()=>{let t=si.safeStorage.get(p1);if(t)try{return JSON.parse(t)}catch{return null}return null},yu=(t,e)=>w1()?.[t]?.[e]??null,Pf=(t,e,i)=>{let o=w1()??{},r=o[t]?.[e]??{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Tb(o);si.safeStorage.set(p1,JSON.stringify(s))};function Tb(t){let e=Object.entries(t).reduce((o,[r,s])=>{let a=0;return Object.values(s).forEach(d=>{a<d.updatedTs&&(a=d.updatedTs)}),o.push([r,a]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(Cb),e.reduce((o,[r])=>(o[r]=kb(t[r]),o),{})}function kb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Sb),Object.fromEntries(e)}function S1(){si.safeStorage.set(f1,JSON.stringify(!0))}function C1(){let t=si.safeStorage.get(f1);try{return t?JSON.parse(t):!1}catch{return!1}}var Qv=require("@vkontakte/videoplayer-core");var Ib=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Ed(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ib();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var xl=require("@vkontakte/videoplayer-shared");var Eb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
|
|
51
|
+
\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
|
|
52
|
+
\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},T1=Eb;var Ab={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\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all 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
|
+
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
+
Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},k1=Ab;var ys=new Map;ys.set(xl.InterfaceLanguage.EN,k1);ys.set(xl.InterfaceLanguage.RU,T1);var I1=new Map,Mf=({language:t,pack:e,fallback:i})=>{if(ys.has(t)){let o=ys.get(t);ys.set(t,{...o,...e})}else ys.set(t,e);I1.set(t,i)},Lf=t=>ys.has(t),Vf=(t,e,i,o)=>{let s=ys.get(t)?.[e];if((0,xl.isNullable)(s)){let a=I1.get(t)??o;s=(a?ys.get(a):void 0)?.[e]}return(0,xl.isNullable)(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,d)=>i[d]??""):s},Q=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=me(i),r=It();return Vf(o,t,e,r.defaultLanguage)};var CM=require("@vkontakte/videoplayer-core");var wl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(wl||(wl={}));var Pb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Lb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xu="?",Vb="X-Sentry-Auth",Rb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let s=0;s<i.length;++s){if(o=Pb.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||xu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Lb.exec(i[s]))r={filename:o[2],function:o[1]||xu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Mb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||xu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=xu),e.push(r)}return e.length?{value:E1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function E1(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function Ob(t){try{let e=Nb(t);if(e)return e}catch{}return{value:E1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Db(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var wu=class{constructor(e){if(e&&e.dsn){let i=Rb.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Ob(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(Vb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Db(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function A1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Bb(){return window}var Su=class t extends wu{constructor(e,i=Bb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=f=>f,beforeBreadcrumb:s=f=>f,blacklistUrls:a=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(f=>new f(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>A1(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>A1(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,a=e[o],d=Array.isArray(a)?a:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var xa=require("@vkontakte/videoplayer-shared");var Cu=null,wa=class{constructor(e,i,o={}){!Cu&&e.dsn&&(this.sentryClient=new Su({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new xa.Subscription,this.options=e,this.context=o,Cu=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Cu=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:s,options:a}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:f=[],blackErrorIdList:g,blackErrorCategoryList:v}=a,{errorType:u,category:y}=i;if((0,xa.isNonNullable)(y)&&v.includes(y)||(0,xa.isNonNullable)(u)&&g.includes(u))return;if(Math.random()<=d||(0,xa.isNonNullable)(y)&&f.includes(y)||(0,xa.isNonNullable)(u)&&l.includes(u)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{u&&r.captureMessage(u,i.fatal?wl.fatal:wl.error),r.report(e)}catch(w){console.error(w)}}}static getInstance(){return Cu}};var Dr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Dr||{});var Tu=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?.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},ku=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),P1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,M1=t=>{let e=t;e?.webkitExitFullscreen&&e?.webkitExitFullscreen()},Ad=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Bs=()=>!!Ad(),Iu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Eu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},L1=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var Rf=require("@vkontakte/videoplayer-core"),V1=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")},{description:Q("hotkey_map_item_next_video_description"),value:Q("hotkey_map_item_next_video_value")},{description:Q("hotkey_map_item_prev_video_description"),value:Q("hotkey_map_item_prev_video_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:Rf.clientChecker.device.isApple?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:Rf.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var Sl=require("@vkontakte/videoplayer-shared"),Sa=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,Sl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Sl.ValueSubject(!1),isEnabled$:new Sl.ValueSubject(!1),type:0};this.info.isEnabled$=new Sl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.removeEventHandlers(),this.videoElement=this.playerContainer?.querySelector("video"),this.addEventHandlers())}addEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e)}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ca(t){return t instanceof Sa}var Cl=require("@vkontakte/videoplayer-shared");Vg();function Of(t,e){F(e,!1);let i=ve();Mt(()=>{i.getAdmanWrapper().startPostroll()}),Vo(),U()}var R1=require("@vkontakte/videoplayer-shared");var Hb=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Fb=E('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),Ub=E("<div><!></div>"),zb={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Df(t,e){F(e,!0),z(t,zb);let[i,o]=Me(),r=()=>$(f,"$isMobile",i),s=h(e,"position",3,0),a=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,R1.noop),f=ve().ui.isMobile,g=p(()=>s()>0&&s()>=a());var v=Ub();let u;v.__click=[Hb,g,d];var y=_(v);{var x=C=>{var k=Fb(),T=_(k);ye(),m(k),O(N=>pe(T,`${N??""} `),[()=>Q("skip_ads_now")]),b(C,k)},w=C=>{var k=ts();O(T=>pe(k,T),[()=>Q("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),b(C,k)};M(y,C=>{n(g)?C(x):C(w,!1)})}m(v),O(C=>u=ee(v,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":r(),skippable:n(g)})]),b(t,v),U(),o()}nt(["click"]);var Wb=E('<button class="go-to-site svelte-1dzpmjp"> </button>'),Kb={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Bf(t,e){F(e,!1),z(t,Kb),Vo();var i=Wb(),o=_(i,!0);m(i),O(r=>pe(o,r),[()=>Q("visit_advertiser")],sn),b(t,i),U()}var qb=E('<div class="top-gradient-mobile svelte-354ajf"></div>'),Qb=E('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),jb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
57
|
+
360deg,
|
|
58
|
+
rgba(0, 0, 0, 0) 0%,
|
|
59
|
+
rgba(0, 0, 0, 0.05) 12%,
|
|
60
|
+
rgba(0, 0, 0, 0.15) 25%,
|
|
61
|
+
rgba(0, 0, 0, 0.3) 45%,
|
|
62
|
+
rgba(0, 0, 0, 0.4) 57%,
|
|
63
|
+
rgba(0, 0, 0, 0.5) 77%,
|
|
64
|
+
rgba(0, 0, 0, 0.55) 88%,
|
|
65
|
+
rgba(0, 0, 0, 0.65) 100%
|
|
66
|
+
);}`};function Md(t,e){F(e,!0),z(t,jb);let[i,o]=Me(),r=()=>$(B,"$canSkipAd",i),s=()=>$(Z,"$adPlaybackState",i),a=()=>$(T,"$isMobile",i),d=()=>$(J,"$adPosition",i),l=()=>$(re,"$secondsToWatchBeforeSkipAd",i),f=()=>$(k,"$isVideoEnded",i),g=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),u=h(e,"adsAutoplayParam",3,void 0),y=h(e,"duration",3,0),x=h(e,"adsExternalApi",3,void 0),w=ve(),C=It(),k=w.state.isEnded$,T=w.ui.isMobile,N=C.ads.isMobileGoToSiteButton,A=K(void 0),R=K(void 0),V=!1,Z=w.ads.playbackState,B=w.ads.canSkip,J=w.ads.position,re=w.ads.secondsToWatchBeforeSkip,le=p(()=>r()&&s()!=="inactive"),Y=p(()=>a()&&s()!=="inactive"&&N);Mt(()=>{let P=w.getAdmanWrapper();if(Cl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Cl.now)(),g()]}),!g()){P.onAdmanLoadingError();return}let Ke=()=>{let{width:De,height:qe}=me(w.ui.playerSize),fe=me(w.ui.isFullscreen),j=u()??me(w.ui.isAutoplay),Ee=C.ads.paramsOverride;return{width:De,height:qe,isFullscreen:fe,isAutoplay:j,adsContainer:n(A),adsVideoElement:n(R),slotId:g(),params:v(),paramsOverride:Ee,duration:y(),externalApi:x()}},$e=async De=>{De&&await Yi();let qe=Ke();await P.initAdman(qe),V=!0},W=new AbortController,de=()=>{W.abort()};return window.AdmanHTML?$e(!0).catch(()=>{P.onAdmanLoadingError()}):P.loadAdman(W.signal).then(()=>$e(!1)).catch(()=>{P.onAdmanLoadingError()}),()=>{Cl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Cl.now)(),g()]}),!V&&de()}});var ne=Qb(),X=_(ne);{var Ce=P=>{var Ke=qb();b(P,Ke)};M(X,P=>{a()&&P(Ce)})}var ae=I(X,2);ot(ae,P=>L(R,P),()=>n(R));var be=I(ae,2);{var Ve=P=>{Df(P,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return w.actions.internal.skipAd}})};M(be,P=>{n(le)&&P(Ve)})}var ke=I(be,2);{var te=P=>{Of(P,{})};M(ke,P=>{f()&&P(te)})}var He=I(ke,2);{var ue=P=>{Bf(P,{})};M(He,P=>{n(Y)&&P(ue)})}m(ne),ot(ne,P=>L(A,P),()=>n(A)),b(t,ne),U(),o()}var Ro=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Gb=xe('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var Yb=xe('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="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.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function Ld(t,e){let i=h(e,"isActive",3,!1);var o=Le(),r=ce(o);{var s=d=>{Ff(d,{})},a=d=>{Hf(d,{})};M(r,d=>{i()?d(s):d(a,!1)})}b(t,o)}var Zb=E('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Xb=E('<div class="live-icon svelte-1s15d2i"><!></div>'),Jb=E('<span class="text svelte-1s15d2i"> </span>'),e$=E("<div><!> <!></div>"),t$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
|
|
67
|
+
opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
|
|
68
|
+
animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
|
|
69
|
+
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
70
|
+
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col2;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(3) {left:6px;
|
|
71
|
+
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col3;}.live-icon.svelte-1s15d2i {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
|
|
72
|
+
|
|
73
|
+
@keyframes svelte-1s15d2i-thumb-timer-equalizer-col1 {
|
|
74
|
+
0% {
|
|
75
|
+
transform: scaleY(0.1);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
25% {
|
|
79
|
+
transform: scaleY(0.8);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
50% {
|
|
83
|
+
transform: scaleY(0.4);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
75% {
|
|
87
|
+
transform: scaleY(0.6);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
100% {
|
|
91
|
+
transform: scaleY(0.1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes svelte-1s15d2i-thumb-timer-equalizer-col2 {
|
|
96
|
+
0% {
|
|
97
|
+
transform: scaleY(1);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
25% {
|
|
101
|
+
transform: scaleY(0.3);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
50% {
|
|
105
|
+
transform: scaleY(0.9);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
75% {
|
|
109
|
+
transform: scaleY(0.6);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
100% {
|
|
113
|
+
transform: scaleY(1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes svelte-1s15d2i-thumb-timer-equalizer-col3 {
|
|
118
|
+
0% {
|
|
119
|
+
transform: scaleY(0.6);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
25% {
|
|
123
|
+
transform: scaleY(0.9);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
50% {
|
|
127
|
+
transform: scaleY(0.1);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
75% {
|
|
131
|
+
transform: scaleY(0.9);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
100% {
|
|
135
|
+
transform: scaleY(0.6);
|
|
136
|
+
}
|
|
137
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Vd(t,e){z(t,t$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=e$();let a;var d=_(s);{var l=u=>{var y=Zb();b(u,y)};M(d,u=>{i()&&u(l)})}var f=I(d,2);{var g=u=>{var y=Xb(),x=_(y);Ld(x,{isActive:!0}),m(y),b(u,y)},v=u=>{var y=Jb(),x=_(y,!0);m(y),O(()=>pe(x,e.time)),b(u,y)};M(f,u=>{o()?u(g):u(v,!1)})}m(s),O(u=>a=ee(s,1,"wrapper svelte-1s15d2i",null,a,u),[()=>({live:o(),playing:r()})]),b(t,s)}var Tl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var i$=E('<div role="timer" data-testid="thumb-timer"><!></div>'),o$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
|
|
138
|
+
opacity var(--controls-transition-duration);}`};function Rd(t,e){F(e,!0),z(t,o$);let[i,o]=Me(),r=()=>$(g,"$disabled",i),s=h(e,"isHidden",3,!1),a=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),l=It(),f=p(()=>Ro(e.duration-e.position)),g=ie(!1);var v=i$();let u;var y=_(v);Vd(y,{get time(){return n(f)},get isLive(){return a()},get isPlaying(){return d()},withEqualizer:!0}),m(v),bs(v,()=>Tl(s()&&l.features.usePerformanceFix,g,l.disableInvisibleComponentsTimeout)),O(x=>u=ee(v,1,"thumb-timer svelte-c6gowj",null,u,x),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,v),U(),o()}var kl=t=>{if(!navigator.clipboard){N1(t);return}navigator.clipboard.writeText(t).catch(()=>N1(t))};function N1(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 K1=require("@vkontakte/videoplayer-core");var zf=require("@vkontakte/videoplayer-core");var Uf="focus-hidden";var fr=t=>{t.stopPropagation(),t.preventDefault()},Wf=t=>{t.parentNode?.firstElementChild?.classList.remove(Uf)},r$=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},s$=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},a$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},l$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},O1=t=>t.code==="Escape",d$=t=>t.code==="ArrowLeft",Nd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},D1=t=>{a$(t)?(fr(t),s$(t.target)):l$(t)&&(fr(t),r$(t.target))},Us=t=>!zf.clientChecker.device.isAndroid&&t?.detail===0||zf.clientChecker.device.isAndroid&&t?.pointerType==="",Il=async(t,e,i)=>{await Yi(),t&&!t.classList.contains("opened")&&!e&&me(i)&&(await Yi(),i.set(!1),t.focus())},B1=async(t,e,i)=>{await Yi(),t&&!e&&me(i)&&(i.set(!1),t.focus())},Od=async(t,e,i,o=!1)=>{if(await Yi(),!!t&&e&&!o){let s=t.children[0];s?.classList.toggle(Uf,!i),s?.focus()}},H1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Au=(t,e)=>{D1(t),Wf(t.target),O1(t)&&(fr(t),e())},Pu=async(t,e)=>{Nd(t,["ArrowRight"])&&(fr(t),e())},F1=async(t,e,i)=>{if(D1(t),d$(t)){fr(t),e();return}O1(t)&&(fr(t),i())},El=(t,e)=>{Nd(t)&&(fr(t),e())},U1=(t,e,i)=>{if(Nd(t))fr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),fr(t);return}o==="ArrowRight"&&!e&&(i(!0),fr(t))}},z1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},W1=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 Ia=require("@vkontakte/videoplayer-shared");var Br={"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 Kf=require("@vkontakte/videoplayer-shared");var u$=(t,e)=>{El(t,()=>e())},p$=E('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),f$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function qf(t,e){F(e,!0),z(t,f$);let i=h(e,"onClick",3,Kf.noop),o=h(e,"closeContextMenu",3,Kf.noop),r=d=>{d?.stopPropagation(),i()(),o()()};var s=p$();s.__click=r,s.__keydown=[u$,r];var a=_(s,!0);m(s),O(()=>{Oe(s,"aria-label",e.ariaLabel??e.label),Oe(s,"data-testid",e.id),pe(a,e.label)}),b(t,s),U()}nt(["click","keydown"]);var ka=(t,e)=>t.weight-e.weight;var Al=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Al||{});var m$=(t,e)=>{Au(t,e)},v$=t=>{t.preventDefault()},g$=E('<ul role="menu" class="svelte-1p5ukkp"></ul>'),h$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Qf(t,e){F(e,!0),z(t,h$);let[i,o]=Me(),r=()=>$(Ce,"$playerPhase",i),s=()=>$(le,"$isLive$",i),a=()=>$(ae,"$isPiPEnabled$",i),d=()=>$(re,"$chromecastState$",i),l=()=>$(be,"$pictureInPictureApiIsActive$",i),f=()=>$(X,"$isLooped$",i),g=()=>$(Y,"$positionExact$",i),v=()=>$(Z,"$additionalContextMenuItems$",i),u=h(e,"visible",3,!1),y=h(e,"position",19,()=>({top:0,left:0})),x=h(e,"playerContainerRef",3,void 0),w=h(e,"menuElementRef",15,void 0),C=K(0),k=K(0),T=ve(),{pictureInPicture$:N}=io(),A=It(),R=T.ui.contextMenu.visible$,V=T.ui.debugPanelVisible,Z=T.ui.additionalContextMenuItems$,B=T.ui.t,J=T.actions.internal.togglePictureInPicture,re=T.state.chromecastState$,le=T.state.isLive$,Y=T.state.positionExact$,ne=T.state.isInteractive,X=T.state.looped$,Ce=T.playerPhase,{isEnabled$:ae,isActive$:be}=N,Ve=p(()=>r()==="video"),ke=p(()=>!!s()&&n(Ve)),te=p(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),He=p(()=>A.features.copyVideoLink&&T.callbacks?.onCopyVideoLink),ue=p(()=>n(He)&&!n(te)&&!ne&&!n(ke)),P=p(()=>!!T.callbacks?.onCopyEmbedCodeClicked),Ke=p(()=>a()&&d()!==K1.ChromecastState.CONNECTED&&!ne&&n(Ve)),$e=p(()=>!ne&&!n(te)&&!n(ke)),W=p(()=>A.features.videoRotate&&!ne&&!n(te)),de=p(()=>A.showSupport&&!l()),De=p(()=>A.features.saveTraceInfoToFile),qe=()=>{R.set(!1),e.returnFocus?.()},fe=(Ze,Re)=>{if(!w()||!x())return;let ut=w().getBoundingClientRect(),pt=x().getBoundingClientRect();L(C,Ze-pt.left),L(k,Re-pt.top),n(C)+ut.width>pt.width&&L(C,pt.width-ut.width),n(k)+ut.height>pt.height&&L(k,pt.height-ut.height),L(C,Math.max(n(C),0),!0),L(k,Math.max(n(k),0),!0)};Ne(()=>{(async()=>{if(w()&&x()){await Yi();let{top:Re,left:ut,bottom:pt,right:ui}=y(),ai=ut??0,hi=Re??0,St=w().getBoundingClientRect();(0,Ia.isNullable)(ut)&&!(0,Ia.isNullable)(ui)&&(ai=ui-St.width),(0,Ia.isNullable)(Re)&&!(0,Ia.isNullable)(pt)&&(hi=pt-St.height),ai=Math.max(ai,0),hi=Math.max(hi,0),fe(ai,hi)}})()});let j=()=>{T.actions.internal.videoRotate()},Ee=()=>{(0,Ia.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Fe=()=>{let Ze=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Re=new Blob([...Ze],{type:"plain/text"}),ut=window.URL.createObjectURL(Re);ya(ut,"vk_player_debug_info","txt")}else kl(T.actions.internal.getDebugTextData())},Qe=()=>{let Ze=T.actions.internal.getTraceTextData(),Re=new Blob([...Ze],{type:"application/json"}),ut=window.URL.createObjectURL(Re);ya(ut,"vk_player_trace_info","json")},Xe=()=>{V.set(!0)},tt=async()=>{try{J()}finally{e.returnFocus?.()}},Be=()=>{T.actions.internal.setLooped(!f())},Ge=()=>{if(n(P)){let Ze=T.callbacks?.onCopyEmbedCodeClicked?.();Ze&&kl(Ze)}},Lt=(Ze=!1)=>{if(T.callbacks?.onCopyVideoLink){let Re=T.callbacks?.onCopyVideoLink(Ze,g());Re&&kl(Re)}},Je=p(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Rt=p(()=>n(He)?{id:"copy-link",weight:Br["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Lt()}:void 0),Ft=p(()=>n(ue)?{id:"copy-link-timestamp",weight:Br["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Lt(!0)}:void 0),xt=p(()=>n(P)?{id:"copy-embed-code",weight:Br["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Ge}:void 0),Gt=p(()=>n(Ke)?{id:"pip",weight:Br.pip,label:l()?B("menu_pip_close"):B("menu_pip"),onClick:tt}:void 0),Ct=p(()=>n($e)?{id:"video-loop",weight:Br["video-loop"],label:f()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:Be}:void 0),Se=p(()=>n(W)?{id:"rotate",weight:Br.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:j}:void 0),Ae=p(()=>n(de)?{id:"report",weight:Br.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),H=p(()=>({id:"save-debug",weight:Br["save-debug"],label:n(Je),onClick:Fe})),_e=p(()=>n(De)?{id:"save-trace",weight:Br["save-trace"],label:B("menu_save_debug"),onClick:Qe}:void 0),he=p(()=>({id:"debug-info",weight:Br["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Xe})),dt=p(()=>[n(Rt),n(Ft),n(xt),n(Gt),n(Ct),n(Se),n(Ae),n(H),n(_e),n(he),...v()].filter(Ze=>!!Ze).sort(ka));var ft=Le(),rt=ce(ft);{var Vt=Ze=>{var Re=g$();Re.__contextmenu=[v$],Re.__keydown=[m$,qe],di(Re,21,()=>n(dt),ut=>ut.id,(ut,pt)=>{qf(ut,{get id(){return n(pt).id},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get onClick(){return n(pt).onClick},closeContextMenu:qe})}),m(Re),ot(Re,ut=>w(ut),()=>w()),O(()=>Ye(Re,`top: ${n(k)??""}px; left: ${n(C)??""}px;`)),b(Ze,Re)};M(rt,Ze=>{u()&&Ze(Vt)})}b(t,ft),U(),o()}nt(["contextmenu","keydown"]);var Mu=class{constructor(e){this.value=e,this.next=null}};var Pl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Mu(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 _$=E('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),b$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Dd(t,e){F(e,!0),z(t,b$);let i=h(e,"values",19,()=>[]),o=K(void 0),r=K(null),s=16,a=120,d=60,l=a/d;Mt(()=>{n(o).width=a,n(o).height=s,L(r,n(o).getContext("2d"),!0)});function f(u,y,x,w,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(y,x,w,C)}Ne(()=>{let u="";if(n(r)){let y=i()[0];for(let w=1;w<i().length;w++)i()[w]>y&&(y=i()[w]);n(r).clearRect(0,0,a,s);let x=d-1;for(let w=i().length-1;w>=0;w--){let C=x*l,k=y>0?s*(i()[w]/y):0;f(n(r),C,0,l,k),u=k+" "+u,x--}}});var g=_$(),v=_(g);ot(v,u=>L(o,u),()=>n(o)),m(g),b(t,g),U()}var jf=require("@vkontakte/videoplayer-shared");var $$=(t,e)=>{t.stopPropagation(),jf.safeStorage.remove(Sd),e.set(!1)},y$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),x$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),w$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),S$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),C$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),T$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),k$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),I$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),E$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),A$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),P$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),M$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),L$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),V$=E('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),R$=E('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),N$={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Bd(t,e){F(e,!0),z(t,N$);let[i,o]=Me(),r=()=>$(d,"$isMobile",i),s=ve(),a=s.ui.debugPanelVisible,d=s.ui.isMobile,l=K(Zt(s.actions.internal.getDebugPanelData())),f=s.actions.internal.getVideoElement(),g=K(0),v=K(0),u=K(0),y=new Pl(60),x=new Pl(60),w=new Pl(60),C=K(Zt([])),k=K(Zt([])),T=K(Zt([])),N=Q("aria_label_debug_panel");Mt(()=>{jf.safeStorage.set(Sd,"true"),s.actions.internal.startLogging(),f&&(L(v,f.getVideoPlaybackQuality().droppedVideoFrames,!0),L(g,f.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{L(l,s.actions.internal.getDebugPanelData(),!0)},500),Ae;return f&&(Ae=window.setInterval(()=>{if(f){L(v,f.getVideoPlaybackQuality().droppedVideoFrames,!0);let H=f.getVideoPlaybackQuality().totalVideoFrames;L(u,H-n(g)),L(g,H,!0),y.push(n(u)),n(l).speed&&x.push(n(l).speed),n(l).bitrate&&w.push(n(l).bitrate),L(C,y.getValuesFromBottom(),!0),L(k,x.getValuesFromBottom(),!0),L(T,w.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),Ae&&clearInterval(Ae)}});var A=R$();let R;var V=_(A);V.__click=[$$,a];var Z=I(V,2),B=_(Z),J=I(_(B),2),re=_(J,!0);m(J),m(B);var le=I(B,2);{var Y=Se=>{var Ae=y$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).id)),b(Se,Ae)};M(le,Se=>{n(l).id&&Se(Y)})}var ne=I(le,2);{var X=Se=>{var Ae=x$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).vsid)),b(Se,Ae)};M(ne,Se=>{n(l).vsid&&Se(X)})}var Ce=I(ne,2);{var ae=Se=>{var Ae=w$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).provider)),b(Se,Ae)};M(Ce,Se=>{n(l).provider&&Se(ae)})}var be=I(Ce,2);{var Ve=Se=>{var Ae=S$(),H=I(_(Ae),2),_e=_(H);m(H),m(Ae),O(()=>pe(_e,`Video: ${(n(l).videoCodec||"")??""} ${n(l).hdr?"(HDR)":""}
|
|
57
139
|
&
|
|
58
|
-
Audio: ${(n(l).audioCodec||"")??""} ${n(l).audioLanguage?`(${n(l).audioLanguage})`:""}`)),h(be,$e)};A(pe,be=>{(n(l).videoCodec||n(l).audioCodec)&&be(ke)})}var we=k(pe,2);{var ne=be=>{var $e=g1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).viewport)),h(be,$e)};A(we,be=>{n(l).viewport&&be(ne)})}var Ne=k(we,2);{var ce=be=>{var $e=h1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).videoSize)),h(be,$e)};A(Ne,be=>{n(l).videoSize&&be(ce)})}var L=k(Ne,2);{var Fe=be=>{var $e=_1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(()=>ue(ye,n(l).cdn)),h(be,$e)};A(L,be=>{n(l).cdn&&be(Fe)})}var he=k(L,2);{var le=be=>{var $e=b1(),X=k(w($e),2),ye=w(X);$(X),$($e),D(()=>ue(ye,`${n(l).volume??""} %`)),h(be,$e)};A(he,be=>{n(l).volume&&be(le)})}var me=k(he,2);{var De=be=>{var $e=$1(),X=k(w($e),2),ye=w(X);$(X),$($e),D(oe=>ue(ye,`${oe??""} s`),[()=>n(l).position.toFixed(2)]),h(be,$e)};A(me,be=>{n(l).position&&be(De)})}var Le=k(me,2);{var G=be=>{var $e=y1(),X=k(w($e),2),ye=w(X);$(X),$($e),D(oe=>ue(ye,`${oe??""} s`),[()=>n(l).buffer.toFixed(2)]),h(be,$e)};A(Le,be=>{n(l).buffer&&be(G)})}var Y=k(Le,2);{var Ae=be=>{var $e=x1(),X=k(w($e),2),ye=w(X);$(X),$($e),D(oe=>ue(ye,`${oe??""} s`),[()=>n(l).liveLatency.toFixed(2)]),h(be,$e)};A(Y,be=>{n(l).liveLatency&&be(Ae)})}var Ue=k(Y,2);{var Se=be=>{var $e=w1(),X=k(w($e),2),ye=w(X,!0);$(X),$($e),D(oe=>ue(ye,oe),[()=>[{value:n(l).currentVideoSegmentLength,title:"Video:"},{value:n(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:oe})=>oe).map(({value:oe,title:rt})=>`${rt} ${((oe??0)/1e3).toFixed(2)} s`).join(" & ")]),h(be,$e)};A(Ue,be=>{(n(l).currentVideoSegmentLength||n(l).currentAudioSegmentLength)&&be(Se)})}var Ke=k(Ue,2),Qe=k(w(Ke),2),Ve=w(Qe);$(Qe),$(Ke);var He=k(Ke,2);{var kt=be=>{var $e=S1(),X=k(w($e),2);Kd(X,{get values(){return n(I)}});var ye=k(X,2),oe=w(ye);$(ye),$($e),D(rt=>ue(oe,`${rt??""} Kbps`),[()=>n(l).speed.toFixed(2)]),h(be,$e)};A(He,be=>{n(l).speed&&be(kt)})}var je=k(He,2);{var Et=be=>{var $e=T1(),X=k(w($e),2);Kd(X,{get values(){return n(C)}});var ye=k(X,2),oe=w(ye);$(ye),$($e),D(rt=>ue(oe,`${rt??""} Kbps`),[()=>n(l).bitrate.toFixed(2)]),h(be,$e)};A(je,be=>{n(l).bitrate&&be(Et)})}var Dt=k(je,2),gt=k(w(Dt),2);Kd(gt,{get values(){return n(S)}});var Ft=k(gt,2),Pt=w(Ft,!0);$(Ft),$(Dt),$(N),$(P),D(be=>{R=ee(P,1,"container s-v",null,R,be),Oe(P,"aria-label",V),ue(ie,n(l).version),ue(Ve,`${n(v)??""} / ${n(f)??""} frames`),ue(Pt,n(m))},[()=>({"container-mobile":r()})]),h(t,P),B(),o()}et(["click"]);var A_=require("@vkontakte/videoplayer-shared"),k1=(t,e)=>{t.stopPropagation(),e()()},E1=E('<div class="close s-1c"></div>'),P1={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function xs(t,e){O(e,!0),W(t,P1);let i=g(e,"onClick",3,A_.noop);var o=E1();o.__click=[k1,i],h(t,o),B()}et(["click"]);var L_=require("@vkontakte/videoplayer-shared");var Jo=t=>`width:${t}px;height:${t}px;`;var A1=xe('<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 gn(t,e){O(e,!0);let i=u(()=>Jo(e.size));Ye(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",children:(o,r)=>{var s=A1();h(o,s)},$$slots:{default:!0}}),B()}var L1=E('<div class="timer s-1e"><canvas class="timer-canvas s-1e" width="100" height="100"></canvas> <!></div>'),M1={hash:"s-1e",code:".timer.s-1e{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-1e:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1e{height:50px;position:absolute;width:50px}"};function Qd(t,e){O(e,!0),W(t,M1);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,L_.noop),r=5e3,s=z(void 0),a,d,l=0,p;Pe(()=>{i()&&$t(()=>{d=Date.now(),l=requestAnimationFrame(v)})});let f=()=>{l&&(cancelAnimationFrame(l),l=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/r,p<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),a?.stroke(),l=requestAnimationFrame(v)):o()())};Ct(()=>{a=n(s).getContext("2d"),a&&(a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff")}),Zo(()=>{f()});var m=L1(),b=w(m);Je(b,x=>M(s,x),()=>n(s));var y=k(b,2);gn(y,{get size(){return"24"}}),$(m),h(t,m),B()}var R1=(t,e,i)=>{e(!1),i()},V1=E('<div class="overlay s-y"></div> <div class="next-video s-y"><div class="top s-y"><div class="caption s-y"> </div> <!></div> <div class="row s-y"><div class="column s-y"><div class="thumb s-y"><div></div> <!></div></div> <div class="column s-y"><div class="title s-y"> </div></div></div></div>',1),N1={hash:"s-y",code:".overlay.s-y{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-y{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-y{display:flex;justify-content:space-between}.caption.s-y{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-y{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-y{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-y{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-y,.thumb-overlay.s-y{height:100%;width:100%}.thumb-overlay.s-y{position:absolute}.thumb-overlay.withOpacity.s-y{background:var(--black);opacity:.3}.title.s-y{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Zf(t,e){O(e,!0),W(t,N1);let[i,o]=Ee(),r=()=>_(d,"$autoplayNextEnabled$",i),s=()=>_(l,"$timerNextVideoRunning$",i),a=ve(),d=a.ui.autoplayNextEnabled$,l=a.ui.timerNextVideoRunning$,p=a.actions.internal.nextVideoClick,f=a.actions.internal.nextVideoAnnouncementShow,v=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,b=a.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(p(!1),m())},x=()=>{e.clickCloseIcon(),b()};Ct(()=>{e.isHide||f(),e.isHide&&r()&&(p(!1),m())});var S=Ie(),I=se(S);{var C=V=>{var P=V1(),R=k(se(P),2),U=w(R),N=w(U),H=w(N,!0);$(N);var te=k(N,2);xs(te,{onClick:x}),$(U);var ie=k(U,2);ie.__click=[R1,p,v];var de=w(ie),Z=w(de),J=w(Z);let Q;var Te=k(J,2);{var fe=ne=>{let Ne=u(()=>s()&&r());Qd(ne,{get isRunning(){return n(Ne)},onTimerEnded:y})};A(Te,ne=>{r()&&ne(fe)})}$(Z),$(de);var pe=k(de,2),ke=w(pe),we=w(ke,!0);$(ke),$(pe),$(ie),$(R),D((ne,Ne)=>{ue(H,ne),ze(Z,`background-image: url('${e.thumb}')`),Q=ee(J,1,"thumb-overlay s-y",null,Q,Ne),ue(we,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:r()})]),h(V,P)};A(I,V=>{e.isHide||V(C)})}h(t,S),B(),o()}et(["click"]);var Ys=require("@vkontakte/videoplayer-core"),M_=require("@vkontakte/videoplayer-shared"),hn=require("@vkontakte/videoplayer-statistics");var Jf=(t,e)=>Math.min(+(t+e).toFixed(2),1),em=(t,e)=>Math.max(+(t-e).toFixed(2),0),Bu=(t,e,i)=>{let o=Jf(e,i);e<1&&t.actions.internal.setVolume(o)},Hu=(t,e,i)=>{let o=em(e,i);e>0&&t.actions.internal.setVolume(o)};var Gs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);function Fu(){return document.activeElement?.shadowRoot?.activeElement??null}var O1=(t,e)=>{e(t)},B1=E('<div class="keyboard-controls s-14" tabindex="-1" role="region"><!></div>'),H1={hash:"s-14",code:".keyboard-controls.s-14{bottom:0;left:0;position:absolute;right:0;top:0}"};function tm(t,e){O(e,!0),W(t,H1);let[i,o]=Ee(),r=()=>_(Te,"$disabledControls$",i),s=()=>_(Ae,"$isInteractiveTime$",i),a=()=>_(Ue,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>_(ie,"$playbackState$",i),l=()=>_(le,"$isEnded$",i),p=()=>_(Fe,"$doubleForwardAvailable$",i),f=()=>_(L,"$doubleForwardOn$",i),v=()=>_(me,"$overlayContainer$",i),m=()=>_(de,"$adPlaybackState",i),b=()=>_(Z,"$positionExact$",i),y=()=>_(J,"$duration$",i),x=()=>_(G,"$isAudioAvailable$",i),S=()=>_(Q,"$volume$",i),I=()=>_(we,"$availablePlaybackRates$",i),C=()=>_(ke,"$currentPlaybackRate$",i),V=()=>_(fe,"$muted$",i),P=()=>_(pe,"$currentSubtitle$",i),R=g(e,"nextButtonActive",3,!1),U=g(e,"prevButtonActive",3,!1),N=ve(),H=wt(),te=N.getLogger().createComponentLog("KeyboardControls component"),ie=N.state.playbackState$,de=N.ads.playbackState,Z=N.state.positionExact$,J=N.state.duration$,Q=N.state.volume$,Te=N.ui.controls.disabledControls$,fe=N.state.muted$,pe=N.state.currentSubtitle$,ke=N.state.currentPlaybackRate$,we=N.state.availablePlaybackRates$,ne=N.ui.contextMenu.openedByHotKey$,Ne=N.ui.contextMenu.lastActiveElem$,ce=N.ui.contextMenu.visible$,L=N.ui.doubleForwardOn$,Fe=N.ui.doubleForwardAvailable$,he=N.ui.contextMenu.position$,le=N.state.isEnded$,me=N.ui.overlayContainer$,De=N.callbacks?.onAudioDoesNotExistHint,Le=N.callbacks?.onAudioDisabledHint,G=N.state.isAudioAvailable$,Y=N.state.isAudioDisabled,Ae=N.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ue}=lo(),Se=0,Ke=!0,Qe=z(void 0),Ve=oe=>(oe!==Ke&&(Ke=oe,Se=0),Se+=1,(H.controls.seekStepKeyboard+H.controls.seekStepKeyboard*Se)/1e3),He=!0,kt=({type:oe,repeat:rt,disableDoubleForward:at})=>{let nt=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&a()&&Ue.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{N.actions.internal.togglePlay();let Me="PLAY";d()===Ys.PlaybackState.PAUSED?Me="PAUSE":l()&&(Me="REPLAY"),e.showHotKeyHelpers({type:Me})}},yt=oe==="down";if(!p()||at){yt&&nt(),He=!0;return}if(yt)He=!1;else if(He)return;if(yt){!rt&&e.startDoubleForwardActivationTimer();return}f()||nt(),e.stopDoubleForward(),He=!0},je=oe=>{let rt=E_(v());he.set(rt),Ne.set(oe.target),ne.set(!0),ce.set(!0)},Et=(oe,rt=!1)=>{let at=oe.target,nt=at?.getAttribute("role")?.includes("menuitem"),yt=at.classList.contains("btn"),Me=oe.code;if(yt&&Me==="Space")return!1;let Re=Ah.has(Me);if(nt&&Re)return!1;let st=!Ph.has(Me);if(oe.ctrlKey&&st||oe.altKey&&st||oe.metaKey)return!1;let vt=nt&&Me==="Escape";Lh.has(Me)||vt||e.hideContextMenu();let mi=d()===Ys.PlaybackState.PLAYING||d()===Ys.PlaybackState.PAUSED,ei=e.isAds&&(m()==="paused"||m()==="playing"),hi=!ei&&!r().has("TIMELINE"),Ai=oe.shiftKey&&["Digit1","Numpad1"].includes(Me);if(!Ai&&!(mi||ei))return!1;te({message:`key down, code: ${Me}, isExternal = ${rt}`});let Ro=!1,At=()=>{Ro=!0,rt||oe.preventDefault()};if(Ai)return je(oe),At(),!0;switch(Me){case"KeyJ":case"ArrowLeft":{if(!hi)break;if(oe.ctrlKey||oe.altKey){let Lt=N.actions.internal.getPrevEpisode();N.actions.internal.seekToPrevEpisode(Lt),Lt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Lt.text}),At()}else{let Lt=oe.shiftKey?Ve(!1):H.controls.seekStepKeyboard/1e3,di=Math.max(b()-Lt,0);b()>0&&(N.actions.internal.seekTime(di,hn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Lt.toString()}),At())}break}case"KeyL":case"ArrowRight":{if(!hi)break;if(oe.ctrlKey||oe.altKey){let Lt=N.actions.internal.getNextEpisode();N.actions.internal.seekToNextEpisode(Lt),Lt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Lt.text}),At()}else{let Lt=oe.shiftKey?Ve(!0):H.controls.seekStepKeyboard/1e3,di=Math.min(b()+Lt,y());Math.round(b())<Math.round(y())&&(N.actions.internal.seekTime(di,hn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Lt.toString()}),At())}break}case"ArrowUp":{if(Gs({isAudioDisabled:Y,audioDisabledHintCallback:Le,isAudioAvailable:x(),audioIsNotExistHintCallback:De,isAds:e.isAds})){let Lt=S(),di=H.controls.volumeStepKeyboard,Hi=Lt<=1;if(Bu(N,Lt,di),Hi){let ci=Math.round(Jf(Lt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ci}})}}At();break}case"ArrowDown":{if(Gs({isAudioDisabled:Y,audioDisabledHintCallback:Le,isAudioAvailable:x(),audioIsNotExistHintCallback:De,isAds:e.isAds})){let Lt=S(),di=H.controls.volumeStepKeyboard,Hi=Lt>=0;if(Hu(N,Lt,di),Hi){let ci=Math.round(em(Lt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ci}})}}At();break}case"Comma":{if(oe.shiftKey){if(!f()){N.actions.internal.decrementPlaybackRate();let Lt=I().find(di=>di.value===C());e.showHotKeyHelpers({type:"RATE_DOWN",text:Lt?.displayValue}),At()}}else{if(ei||d()!==Ys.PlaybackState.PAUSED)break;let Lt=Math.max(b()-H.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),N.actions.internal.clearDelayedBufferingCheckTimeout(),N.actions.internal.seekTime(Lt,hn.SeekAction.DOUBLE_TAP),At())}break}case"Period":{if(oe.shiftKey){if(!f()){N.actions.internal.incrementPlaybackRate();let Lt=I().find(di=>di.value===C());e.showHotKeyHelpers({type:"RATE_UP",text:Lt?.displayValue}),At()}}else{if(ei||d()!==Ys.PlaybackState.PAUSED)break;let Lt=Math.min(b()+H.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),N.actions.internal.clearDelayedBufferingCheckTimeout(),N.actions.internal.seekTime(Lt,hn.SeekAction.DOUBLE_TAP),At())}break}case"KeyK":case"Space":kt({type:"down",repeat:oe.repeat,disableDoubleForward:"KeyK"===Me}),At();break;case"KeyM":{Gs({isAudioDisabled:Y,audioDisabledHintCallback:Le,isAudioAvailable:x(),audioIsNotExistHintCallback:De,isAds:e.isAds})&&(e.showHotKeyHelpers({type:V()?"VOLUME":"MUTE"}),N.actions.internal.toggleMuted()),At();break}case"KeyF":e.toggleFullscreen(),At();break;case"KeyC":N.actions.internal.toggleSubtitle(),P().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:P()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),At();break;case"KeyI":N.actions.internal.togglePictureInPicture(),At();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.1,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.2,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.3,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.4,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.5,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.6,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.7,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.8,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(.9,hn.SeekAction.DOUBLE_TAP),At();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),N.actions.internal.seekToPercent(0,hn.SeekAction.DOUBLE_TAP),At();break;case"Slash":{oe.shiftKey&&H.features.hotKeyMapModal&&(e.showKeyMap(),At());break}case"KeyN":oe.shiftKey&&R()&&(N.actions.internal.nextVideoClick(),At());break;case"KeyP":oe.shiftKey&&U()&&(N.actions.internal.prevVideoClick(),At());break;case"ShiftLeft":case"ShiftRight":At();break;case"Tab":case"Escape":case"Enter":break;default:(0,M_.checkNever)(Me);break}return Ro},Dt=oe=>{let rt=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let at=d()===Ys.PlaybackState.PLAYING||d()===Ys.PlaybackState.PAUSED,nt=e.isAds&&(m()==="paused"||m()==="playing");if(at||nt)switch(rt){case"ShiftLeft":case"ShiftRight":Se=0;break;case"Space":kt({type:"up"});break}},gt=K("aria_label_video_player"),Ft=()=>n(Qe)?.focus(),Pt=()=>n(Qe)===Fu(),be=oe=>oe.type==="keydown"?Et(oe,!0):(oe.type==="keyup"&&Dt(oe),!1);var $e=B1();$e.__keyup=Dt,$e.__keydown=[O1,Et];var X=w($e);qt(X,()=>e.children??ct),$($e),Je($e,oe=>M(Qe,oe),()=>n(Qe)),D(()=>Oe($e,"aria-label",gt)),h(t,$e);var ye=B({focus:Ft,isFocused:Pt,handleExternalKeyboardEvent:be});return o(),ye}et(["keyup","keydown"]);var F1=E('<div class="container s-l"><div class="dot s-l"></div> <div class="dot s-l"></div> <div class="dot s-l"></div></div>'),U1={hash:"s-l",code:".container.s-l{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-l:first-child{animation-delay:0s}.dot.s-l:nth-child(2){animation-delay:.18s}.dot.s-l:nth-child(3){animation-delay:.36s}@keyframes s-l-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-l{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-l-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-l+.dot:where(.s-l){margin-left:4px}"};function Ra(t,e){W(t,U1);let i=g(e,"style",3,"");var o=F1();D(()=>ze(o,i())),h(t,o)}var z1=xe('<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){Ye(t,{get fill(){return e.fill},children:(i,o)=>{var r=z1();h(i,r)},$$slots:{default:!0}})}var Va=require("@vkontakte/videoplayer-shared"),W1=t=>{t.stopPropagation()},K1=E("<button><!></button>"),q1={hash:"s-1l",code:"button.btn.s-1l{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-1l{width:100%}button.btn--live.s-1l{padding:10px 4px}button.btn-jc-l.s-1l{justify-content:left}button.btn-m.s-1l{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-1l,button.btn-m--play.s-1l{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1l{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1l,button.btn-m--prev.s-1l{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1l{right:calc(100% + 35px)}button.btn-m--next.s-1l{left:calc(100% + 35px)}button.btn.s-1l:disabled{cursor:default;pointer-events:none}button.btn.s-1l:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1l:not(:disabled):hover{opacity:.8}button.pr-0.s-1l{padding-right:0}button.pl-0.s-1l{padding-left:0}"};function Vt(t,e){O(e,!0),W(t,q1);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),s=g(e,"testId",3,void 0),a=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),l=g(e,"ref",15,void 0),p=g(e,"ariaKeyShortCut",3,void 0),f=g(e,"ariaExpanded",3,void 0),v=g(e,"tabIndex",3,0),m=g(e,"click",3,Va.noop),b=g(e,"focus",3,Va.noop),y=g(e,"blur",3,Va.noop),x=u(()=>m()===Va.noop?null:P=>{P.stopPropagation(),m()(P)}),S=u(()=>b()===Va.noop?null:P=>{P.preventDefault(),b()()}),I=u(()=>y()===Va.noop?null:P=>{P.preventDefault(),y()()});var C=K1();C.__pointerdown=[W1],C.__click=function(...P){n(x)?.apply(this,P)};var V=w(C);qt(V,()=>e.children??ct),$(C),Je(C,P=>l(P),()=>l()),D(()=>{ee(C,1,`btn ${i()??""}`,"s-1l"),ze(C,o()||null),C.disabled=r()??null,Oe(C,"aria-hidden",a()??null),Oe(C,"aria-label",d()??null),Oe(C,"aria-keyshortcuts",p()??null),Oe(C,"aria-expanded",f()??null),Oe(C,"data-testid",s()??null),Oe(C,"tabindex",v()),Oe(C,"role",e.role),Oe(C,"aria-checked",e.areaChecked??null)}),ut("focus",C,function(...P){n(S)?.apply(this,P)}),ut("blur",C,function(...P){n(I)?.apply(this,P)}),h(t,C),B()}et(["pointerdown","click"]);var Q1=E('<div class="modal-header s-1j"><h3 class="modal-title s-1j"> </h3> <!></div>'),G1=E('<div class="modal-overlay s-1j"><div class="modal-container s-1j"><!> <div class="modal-scroll s-1j"><div class="modal-main s-1j"><!></div></div></div></div>'),Y1={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}.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 om(t,e){O(e,!0),W(t,Y1);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K("hotkey_map_modal_close_btn_text");var s=G1(),a=w(s),d=w(a);{var l=m=>{var b=Q1(),y=w(b),x=w(y,!0);$(y);var S=k(y,2);{var I=C=>{Vt(C,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(V,P)=>{im(V,{fill:"currentColor"})},$$slots:{default:!0}})};A(S,C=>{o()&&C(I)})}$(b),D(()=>ue(x,e.title)),h(m,b)};A(d,m=>{i()&&m(l)})}var p=k(d,2),f=w(p),v=w(f);qt(v,()=>e.children??ct),$(f),$(p),$(a),$(s),h(t,s),B()}var j1=new Set(["BR"]),R_=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;j1.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var X1=E('<li class="hot-key-map-item s-10"><span class="hot-key-map-item-description s-10"><!></span> <span class="hot-key-map-item-value s-10"> </span></li>'),Z1=E('<div class="hot-key-map-group s-10"><h5 class="hot-key-map-group-title s-10"> </h5> <ul class="hot-key-map-group-items s-10"></ul></div>'),J1=E('<div class="hot-key-map s-10"></div>'),e0={hash:"s-10",code:'.hot-key-map.s-10{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-10{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-10:last-child{border-bottom:none}.hot-key-map-group-title.s-10{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-10,.hot-key-map-item.s-10{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-10{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-10{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-10{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-10{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-10,.hot-key-map-item-value.s-10{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function nm(t,e){O(e,!1),W(t,e0);let[i,o]=Ee(),r=()=>_(a,"$data",i),s=ve(),{data:a,show:d}=s.ui.modals.hotKeyMap,l=()=>{d.set(!1)};ao(),om(t,{get title(){return r().title},onClose:l,children:(p,f)=>{var v=J1();ui(v,5,()=>r().groups,({title:m,items:b})=>m,(m,b)=>{let y=()=>n(b).title,x=()=>n(b).items;var S=Z1(),I=w(S),C=w(I,!0);$(I);var V=k(I,2);ui(V,5,x,({description:P,value:R})=>R,(P,R)=>{let U=()=>n(R).description,N=()=>n(R).value;var H=X1(),te=w(H),ie=w(te);Cd(ie,()=>R_(U())),$(te);var de=k(te,2),Z=w(de,!0);$(de),$(H),D(()=>ue(Z,N())),h(P,H)}),$(V),$(S),D(()=>ue(C,y())),h(m,S)}),$(v),h(p,v)},$$slots:{default:!0}}),B(),o()}var Zm=require("@vkontakte/videoplayer-shared");var Ua=require("@vkontakte/videoplayer-core");var VD=require("@vkontakte/videoplayer-shared");var t0=E('<div class="pillow s-27"><!></div>'),i0={hash:"s-27",code:".pillow.s-27{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function rm(t,e){W(t,i0);var i=t0(),o=w(i);qt(o,()=>e.children??ct),$(i),h(t,i)}var Bl=require("@vkontakte/videoplayer-shared");var o0=xe('<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 sm(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=o0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var n0=xe('<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 am(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=n0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var r0=xe('<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 lm(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=r0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var s0=xe('<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 Gd(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=s0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var a0=xe('<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 Yd(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=a0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var Uu=t=>{switch(t){case Bl.VideoQuality.Q_720P:return lm;case Bl.VideoQuality.Q_1080P:return Gd;case Bl.VideoQuality.Q_1440P:return Yd;case Bl.VideoQuality.Q_2160P:return sm;case Bl.VideoQuality.Q_4320P:return am}};var l0=xe('<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 dm(t,e){Ye(t,{get testId(){return e.testId},children:(i,o)=>{var r=l0();h(i,r)},$$slots:{default:!0}})}var d0=xe('<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 cm(t,e){Ye(t,{get testId(){return e.testId},children:(i,o)=>{var r=d0();h(i,r)},$$slots:{default:!0}})}var c0=E('<div aria-hidden="true"><!> <!></div>'),u0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function jd(t,e){O(e,!0),W(t,u0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=u(()=>Uu(o())),s=u(()=>!!n(r)&&[Gd,Yd].includes(n(r)));var a=Ie(),d=se(a);{var l=f=>{dm(f,{testId:"settings-mobile-icon"})},p=f=>{var v=c0();let m;var b=w(v);{var y=I=>{rm(I,{children:(C,V)=>{var P=Ie(),R=se(P);xi(R,()=>n(r),(U,N)=>{N(U,{})}),h(C,P)},$$slots:{default:!0}})};A(b,I=>{n(r)&&I(y)})}var x=k(b,2);let S=u(()=>n(r)?"settings-icon--labeled":"settings-icon");cm(x,{get testId(){return n(S)}}),$(v),D(I=>m=ee(v,1,"icon s-1v",null,m,I),[()=>({triple:n(s)})]),h(f,v)};A(d,f=>{i()?f(l):f(p,!1)})}h(t,a),B()}var p0=E('<span class="settings-icon-wrapper s-20"><!></span>'),f0={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function Hl(t,e){O(e,!0),W(t,f0);let[i,o]=Ee(),r=()=>_(p,"$settingsMenuVisible",i),s=()=>_(m,"$isMobile",i),a=()=>_(l,"$currentQuality",i),d=ve(),l=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,m=d.ui.isMobile,b=d.ui.t,y=z(void 0);Pe(()=>{n(y)&&$t(()=>{e.ref$.set(n(y))})});let x=b("aria_label_settings");async function S(C){let V=Qs(C);r()?v():f(V,eo)}let I=u(()=>r()?"opened":"");Vt(t,{get className(){return n(I)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(C){M(y,C,!0)},children:(C,V)=>{var P=p0(),R=w(P);jd(R,{get isMobile(){return s()},get currentQuality(){return a()}}),$(P),h(C,P)},$$slots:{default:!0}}),B(),o()}var m0=xe('<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),v0=xe("<path></path>");function js(t,e){O(e,!0);let i=u(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=u(()=>Jo(e.size));Ye(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},children:(r,s)=>{var a=Ie(),d=se(a);{var l=f=>{var v=m0();Jt(),h(f,v)},p=f=>{var v=v0();D(()=>Oe(v,"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
|
-
|
|
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`)),h(f,v)};A(d,f=>{e.type==="off"?f(l):f(p,!1)})}h(r,a)},$$slots:{default:!0}}),B()}function um(t,e){O(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,s=u(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ns.KeyC},role:"button",children:(a,d)=>{let l=u(()=>i()?void 0:"outline");js(a,{get size(){return"24"},get type(){return n(l)}})},$$slots:{default:!0}}),B()}var g0=E('<span class="duration s-23" data-testid="video_duration"> </span>'),h0=E('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),_0={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function Xd(t,e){O(e,!0),W(t,_0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),s=g(e,"ref",15),a=wt(),d=re(!1),l=u(()=>Mo(e.duration)),p=u(()=>Mo(e.position));var f=h0();let v;var m=w(f),b=w(m,!0);$(m);var y=k(m,2);{var x=S=>{var I=g0(),C=w(I,!0);$(I),D(()=>ue(C,n(l))),h(S,I)};A(y,S=>{r()&&S(x)})}$(f),bs(f,()=>Ml(o()&&a.features.usePerformanceFix,d,a.disableInvisibleComponentsTimeout)),Je(f,S=>s(S),()=>s()),D(S=>{v=ee(f,1,"time s-23",null,v,S),ue(b,n(p))},[()=>({mobile:i()})]),h(t,f),B()}var Jd=require("@vkontakte/videoplayer-shared");var b0=xe("<path></path>");function Xs(t,e){O(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(v,m)=>m?"off":v>.5?"max":v>.2?"mid":v>0?"min":"off",s=u(()=>r(i(),o())),a=u(()=>Jo(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",l="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",p="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",f="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Ye(t,{get width(){return"48"},get height(){return"48"},get style(){return n(a)},get testId(){return`volume-${n(s)??""}-icon`},children:(v,m)=>{var b=b0();D(()=>Oe(b,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(s)==="off"?l:`${p}${n(s)==="max"?f:""}`}`)),h(v,b)},$$slots:{default:!0}}),B()}var go=require("@vkontakte/videoplayer-shared");var zu=require("@vkontakte/videoplayer-shared");var V_=require("@vkontakte/videoplayer-shared");var $0=E('<div class="overlay"><!></div>');function pm(t,e){O(e,!0);let[i,o]=Ee(),r=()=>_(a,"$overlayContainer$",i),a=ve().ui.overlayContainer$,d=z(void 0),l=m=>{!m||!n(d)||!m.contains(n(d))||m.removeChild(n(d))},p=m=>{!m||!n(d)||m.contains(n(d))||m.appendChild(n(d))};Pe(()=>{p(r())}),Ct(()=>(p(r()),()=>l(r())));var f=$0(),v=w(f);qt(v,()=>e.children??ct),$(f),Je(f,m=>M(d,m),()=>n(d)),h(t,f),B(),o()}var y0=E('<div class="tooltip s-1k"><div class="content s-1k"> </div> <div class="tooltip-pointer s-1k"></div></div>'),x0=E("<div><!></div> <!>",1),w0={hash:"s-1k",code:'.tooltip-wrapper.s-1k{display:flex;flex-direction:column;min-width:0}.full-width.s-1k{width:100%}.tooltip.s-1k{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1k{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1k{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 Na(t,e){O(e,!0),W(t,w0);let[i,o]=Ee(),r=()=>_(ie,"$overlayContainer$",i),s=()=>_(te,"$containerSize",i),a=g(e,"isMobile",3,!1),d=g(e,"content",3,""),l=g(e,"active",15,!1),p=g(e,"translateX",3,0),f=g(e,"translateY",3,0),v=g(e,"isFullWidthWrapper",3,!1),m=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,V_.noop),x=5,S=z(void 0),I=z(void 0),C,V=z(0),P=z(0),R=z(0),U=z(0),N=wt(),H=ve(),te=H.ui.playerSize,ie=H.ui.overlayContainer$;Pe(()=>{$t(()=>{y()(l())})});let de=H.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(S))return;M(P,x);let Y=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Ue=Ae.width,Se=n(I).clientWidth,Ke=s().width,Qe=(Ue-Se)/2,Ve=Ae.left+p()-Y.left,He=Ve+Qe,kt=Ae.top+f()-Y.top,je=Se/2-x,Et=He<8,Dt=He+Se>Ke-8;Et&&(He=8,je=Ve+Ae.width/2-2.5*x),Dt&&(He=Ke-8-Se,je=Ae.left-Y.left+Ae.width/2-He-x),M(R,He,!0),M(U,kt),M(V,je,!0)},J=()=>{!r()||!n(I)||!n(S)||M(P,-x)},Q=()=>{if(!r()||!n(I)||!n(S))return;M(V,x);let Y=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Ue=Ae.height,Se=n(I).clientHeight,Ke=(Ue-Se)/2+Se,Qe=Ae.left+p()-Y.left-n(I).clientWidth,Ve=2,He=Qe-x;He<8&&(He=8);let je=Ae.top+f()-Y.top+Ke,Et=Ve-Ke/2,Dt=Ve-x;M(R,He,!0),M(U,je),M(P,Et),M(V,Dt)},Te=()=>{!r()||!n(I)||!n(S)||M(V,-x)},fe=()=>{switch(b()){case"top":Z();break;case"bottom":J();break;case"left":Q();break;default:Te()}},pe=()=>{try{if(!r()||!n(S))return;fe(),l(!0)}catch(Y){de({message:String(Y)})}},ke=()=>{l(!1)},we=()=>{n(I)&&(C||(C=window.setTimeout(pe,N.controls.hideTimeoutTooltips)),l()&&pe())},ne=()=>{ke(),window.clearTimeout(C),C=void 0},Ne=(Y,Ae,Ue)=>{let Se="";switch(b()){case"top":Se=`transform: translate(${Y}px, ${Ae}px);`;break;case"bottom":Se=`transform: translate(${Y}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Se=`transform: translate(${Y}px, ${Ae}px); left: 0; right: auto;`;break;default:Se=`transform: translate(${Y}px, ${Ae}px);`}return Se+=` max-width: ${m()===void 0?"auto":`${m()}px`};`,Se+=` opacity: ${Ue?1:0}; visibility: ${Ue?"visible":"hidden"}`,Se},ce=(Y,Ae)=>{let Ue="";switch(b()){case"top":Ue=`transform: translate(${Y}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ue=`transform: translate(${Y}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ue=`transform: translate(${Y}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ue=`transform: translate(${Y}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ue},L=u(()=>Ne(n(R),n(U),l())),Fe=u(()=>ce(n(V),n(P)));Ct(fe),Zo(()=>window.clearTimeout(C));var he=x0(),le=se(he);let me;le.__pointermove=we,le.__pointerdown=ne,le.__pointerup=function(...Y){(e.disableMouseupTooltipShow?void 0:we)?.apply(this,Y)};var De=w(le);qt(De,()=>e.children??ct),$(le),Je(le,Y=>M(S,Y),()=>n(S));var Le=k(le,2);{var G=Y=>{pm(Y,{children:(Ae,Ue)=>{var Se=y0(),Ke=w(Se),Qe=w(Ke,!0);$(Ke);var Ve=k(Ke,2);$(Se),Je(Se,He=>M(I,He),()=>n(I)),D(()=>{ze(Se,n(L)),ue(Qe,d()),ze(Ve,n(Fe))}),h(Ae,Se)},$$slots:{default:!0}})};A(Le,Y=>{d()&&!a()&&Y(G)})}D(Y=>me=ee(le,1,"tooltip-wrapper s-1k",null,me,Y),[()=>({"full-width":v()})]),ut("pointerenter",le,we),ut("pointerleave",le,ne),h(t,he),B(),o()}et(["pointermove","pointerdown","pointerup"]);var N_=t=>{t.stopPropagation()},S0=E("<div><!></div>"),T0={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 vo(t,e){O(e,!0),W(t,T0);let[i,o]=Ee(),r=()=>_(p,"$isGraphOpened$",i),s=()=>_(l,"$isMobile",i),a=ve(),d=lo(),l=a.ui.isMobile,p=d.graphIsOpened$,f=a.ui.t,v=g(e,"className",3,""),m=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),x=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),C=g(e,"tooltipVisible",3,!1),V=g(e,"tooltipPlacement",3,"top"),P=g(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),R=g(e,"isAriaHidden",3,!1),U=g(e,"onTooltipVisibilityChange",3,zu.noop),N=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),te=g(e,"mouseEnter",3,zu.noop),ie=g(e,"mouseLeave",3,zu.noop),de=u(()=>m()?r()?f("tooltip_disabled_when_graph_on"):P():I()),Z=z(!1);Pe(()=>{C()||M(Z,!1)});var J=S0();J.__pointerdown=[N_],J.__click=[N_];var Q=w(J);{var Te=pe=>{Na(pe,{get content(){return n(de)},get translateX(){return N()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get placement(){return V()},get onVisibilityChange(){return U()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(ke){M(Z,ke,!0)},children:(ke,we)=>{var ne=Ie(),Ne=se(ne);qt(Ne,()=>e.children??ct),h(ke,ne)},$$slots:{default:!0}})},fe=pe=>{var ke=Ie(),we=se(ke);qt(we,()=>e.children??ct),h(pe,ke)};A(Q,pe=>{b()&&n(de)&&!s()?pe(Te):pe(fe,!1)})}$(J),Je(J,pe=>y(pe),()=>y()),D(()=>{ee(J,1,`btn-container ${v()??""}`,"s-1i"),Oe(J,"aria-hidden",R()||null)}),ut("mouseenter",J,function(...pe){te()?.apply(this,pe)}),ut("mouseleave",J,function(...pe){ie()?.apply(this,pe)}),mn(J,"clientWidth",x),h(t,J),B(),o()}et(["pointerdown","click"]);var C0=xe('<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 Zd(t,e){let i=u(()=>(e.completed,"interactive-episode-completed-icon"));Ye(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var s=C0(),a=se(s),d=k(a);D(()=>{Oe(a,"fill",zs),Oe(a,"fill-opacity",e.completed?1:.24),Oe(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),h(o,s)},$$slots:{default:!0}})}var I0=E("<div><!></div>"),k0={hash:"s-16",code:".interactive-episode-icon.s-16{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-16{opacity:.4;pointer-events:none}"};function fm(t,e){O(e,!0),W(t,k0);let o=ve().ui.t,r=z(0),s=u(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));vo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,d)=>{var l=I0();let p;var f=w(l);let v=u(()=>!!e.videoEpisode.completed);Zd(f,{get completed(){return n(v)}}),$(l),D(m=>{p=ee(l,1,"interactive-episode-icon s-16",null,p,m),ze(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),mn(l,"clientWidth",m=>M(r,m)),h(a,l)},$$slots:{default:!0}}),B()}var E0=E('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),P0=E('<div class="video-episodes-wrap s-17"></div>'),A0={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function mm(t,e){W(t,A0);let i=g(e,"videoEpisodes",19,()=>[]);var o=P0();ui(o,21,i,r=>r.from,(r,s)=>{var a=E0();let d;var l=w(a),p=w(l),f=k(p,2);let v;$(l),$(a),D((m,b)=>{d=ee(a,1,"video-episode s-17",null,d,m),ze(a,`left: ${n(s).from}%; width: ${n(s).width}%`),ze(p,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ee(f,1,"video-episode-filled s-17",null,v,b),ze(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),h(r,a)}),$(o),h(t,o)}function L0(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&M(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;M(r,!0);let d=s(t.clientX,t.clientY);a()(d,t),e().setPointerCapture(t.pointerId)}function M0(t,e,i,o,r,s,a,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);r()(l,p,n(s).width,t),n(a)&&d()(l)}function R0(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;M(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function V0(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function N0(t,e,i,o,r,s){let a=e(t.clientX,t.clientY);i()&&o()(a),M(r,!1),s()(a)}var D0=E("<div></div>"),O0=E('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),B0=E('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),H0={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 Da(t,e){O(e,!0),W(t,H0);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),s=g(e,"isHidden",3,!1),a=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),l=g(e,"isMobile",3,!1),p=g(e,"squareBorders",3,!1),f=g(e,"videoEpisodes",19,()=>[]),v=g(e,"withWheelHandler",3,!1),m=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),x=g(e,"onPointerDown",3,go.noop),S=g(e,"onHandleMove",3,go.noop),I=g(e,"onPointerUp",3,go.noop),C=g(e,"onPointerEnter",3,go.noop),V=g(e,"onPointerMove",3,go.noop),P=g(e,"onPointerLeave",3,go.noop),R=g(e,"onMouseEnter",3,go.noop),U=g(e,"onMouseLeave",3,go.noop),N=g(e,"onWheelUp",3,go.noop),H=g(e,"onWheelDown",3,go.noop),te=g(e,"onWheelLeft",3,go.noop),ie=g(e,"onWheelRight",3,go.noop),de=g(e,"onDisabledClick",3,go.noop),Z=g(e,"loadedProgress",3,0),J=g(e,"filledProgress",3,0),Q=g(e,"handleProgress",3,0),Te=g(e,"ariaLabel",3,""),fe=g(e,"ariaValueMin",3,void 0),pe=g(e,"ariaValueMax",3,void 0),ke=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),ne=g(e,"onContextMenu",3,go.noop),Ne=g(e,"handleAlwaysVisible",3,!1),ce=wt(),L=z(void 0),Fe=z(!1),he=u(()=>pe()??0),le=u(()=>(0,go.isNonNullable)(f())&&f()[f().length-1]?.time<n(he)),me=u(()=>(0,go.isNonNullable)(f())&&f().length&&n(le)&&n(he)?Ke(Z()*100,J()*100):[]);function De(ye){if(ye.preventDefault(),i()&&M(L,i().getBoundingClientRect(),!0),b())return;let oe=Ue(ye.clientX,ye.clientY),rt=Se(ye.clientX);C()(oe,rt,n(L).width)}function Le(ye){ye.preventDefault(),!b()&&P()()}function G(){R()()}function Y(){U()()}function Ae(ye){b()||v()&&(ye.preventDefault(),ye.deltaY<0?N()():ye.deltaY>0?H()():ye.deltaX>0?ie()():te()())}function Ue(ye,oe){return a()?Math.max(0,Math.min(1,(n(L).height-(oe-n(L).top))/n(L).height)):Math.min(Math.max(ye-n(L).x,0),n(L).width)/n(L).width}function Se(ye){return Math.min(Math.max(ye-n(L).x,0),n(L).width)}function Ke(ye,oe){let rt=ce.features.episodesClustering&&!m()?ce.episodeMinWidthPc:0,at=[],nt=f()[0].time/n(he)*100,yt=0,Me=0;for(let vt=1;vt<f().length;vt++)yt=f()[vt].time/n(he)*100,yt-nt>rt&&(at.push({from:nt,width:Math.max(0,yt-nt),loadedWidth:Math.max(0,Math.min(yt,ye)-nt),filledWidth:Math.max(0,Math.min(yt,oe)-nt),interactive:f()[vt-1].interactive,completed:f()[vt-1].completed}),nt=f()[vt].time/n(he)*100,Me++);let Re={from:nt,width:Math.max(0,100-nt),loadedWidth:Math.max(0,Math.min(ye,100)-nt),filledWidth:Math.max(0,Math.min(oe,100)-nt),interactive:f()[Me].interactive,completed:f()[Me].completed};100-nt<rt?(Me-=1,at[Me].width+=100-nt,at[Me].loadedWidth+=Math.max(0,Math.min(ye,100)-nt),at[Me].filledWidth+=Math.max(0,Math.min(oe,100)-nt)):at[Me]=Re;let st=f()[0].time;if(st!==0){let vt=st/n(he)*100;at.unshift({from:0,width:vt,loadedWidth:Math.min(vt,ye),filledWidth:Math.min(vt,oe)})}return at}function Qe(ye){return Math.max(0,Math.min(100,ye*100))}var Ve=B0(),He=se(Ve);{var kt=ye=>{var oe=D0();let rt;ui(oe,21,()=>n(me),at=>at.from,(at,nt)=>{var yt=Ie(),Me=se(yt);{var Re=st=>{fm(st,{get videoEpisode(){return n(nt)},get disabled(){return b()}})};A(Me,st=>{n(nt).interactive&&st(Re)})}h(at,yt)}),$(oe),D(at=>rt=ee(oe,1,"interactive-icons s-h",null,rt,at),[()=>({mobile:l(),hidden:l()&&!n(Fe)})]),h(ye,oe)};A(He,ye=>{m()&&ye(kt)})}var je=k(He,2);let Et;je.__pointerdown=[L0,i,L,b,Fe,Ue,x],je.__pointermove=[M0,b,Ue,Se,V,L,Fe,S],je.__pointerup=[R0,b,Fe,Ue,I],je.__click=[V0,b,de,Ue],je.__contextmenu=[N0,Ue,b,de,Fe,ne];var Dt=w(je);{var gt=ye=>{mm(ye,{get videoEpisodes(){return n(me)},get disabled(){return b()},get isMobile(){return l()}})},Ft=ye=>{var oe=O0(),rt=w(oe),at=k(rt,2);let nt;$(oe),D((yt,Me,Re)=>{ze(rt,yt),nt=ee(at,1,"filled s-h",null,nt,Me),ze(at,Re)},[()=>`transform: translateX(${Qe(Z())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Qe(J())}%);`]),h(ye,oe)};A(Dt,ye=>{n(me).length?ye(gt):ye(Ft,!1)})}var Pt=k(Dt,2);let be;var $e=w(Pt);let X;$(Pt),$(je),Je(je,ye=>i(ye),()=>i()),D((ye,oe,rt,at)=>{Et=ee(je,1,`slider ${o()??""}`,"s-h",Et,ye),Oe(je,"aria-label",Te()),Oe(je,"aria-valuemin",fe()),Oe(je,"aria-valuemax",pe()),Oe(je,"aria-valuenow",ke()),Oe(je,"aria-valuetext",we()),Oe(je,"data-testid",r()??null),be=ee(Pt,1,"handleWrap s-h",null,be,oe),ze(Pt,rt),X=ee($e,1,"handle s-h",null,X,at)},[()=>({disabled:b(),"slider-dragging":n(Fe),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":a(),"no-handle":y(),square:p()}),()=>({hidden:y()}),()=>`transform: translateX(${Qe(Q())}%);`,()=>({"active-live":d()})]),ut("pointerenter",je,De),ut("pointerleave",je,Le),ut("mouseenter",je,G),ut("mouseleave",je,Y),ut("wheel",je,Ae),h(t,Ve),B()}et(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Di=(t,e)=>Sa[t]>=Sa[e],D_=(t,e)=>Sa[t]<Sa[e],ws=(t,e)=>Sa[t]<=Sa[e],O_=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var U0=E("<div><!></div>"),z0=E("<div><!> <!></div>"),W0={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 vm(t,e){O(e,!0),W(t,W0);let[i,o]=Ee(),r=()=>_(V,"$isAudioAvailable$",i),s=()=>_(m,"$muted$",i),a=()=>_(v,"$volume$",i),d=()=>_(S,"$currentGridType$",i),l=()=>_(De,"$controlsVisible",i),p=ve(),f=wt(),v=p.state.volume$,m=p.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:x}=p.actions.internal,S=p.ui.currentGridType$,I=p.callbacks?.onAudioDoesNotExistHint,C=p.callbacks?.onAudioDisabledHint,V=p.state.isAudioAvailable$,P=p.state.isAudioDisabled,R=p.ui.t,U=z(!1),N,H=u(()=>e.isAds||r()),te=u(()=>!n(H)||s()||a()===0),ie=u(()=>ws(d(),"s")),de=u(()=>n(ie)?"":n(te)?!r()||P?R("tooltip_sound_unavailable"):R("tooltip_volume"):R("tooltip_volume_muted")),Z=u(()=>n(te)?R("tooltip_volume"):R("tooltip_volume_muted")),J=u(()=>n(te)?0:a()),Q=!1,Te=u(()=>e.isAds?!1:P?!C:r()?!1:!I);function fe(Se){y(),b(Se)}function pe(){Bu(p,a(),f.controls.volumeStepWheel)}function ke(){Hu(p,a(),f.controls.volumeStepWheel)}function we(Se){b(Se)}function ne(Se){b(Se),x()}function Ne(){Q=!0}function ce(){Q=!1,he()}function L(){clearTimeout(N),M(U,!0)}function Fe(){he()}function he(){N=window.setTimeout(()=>{Q||M(U,!1)},f.controls.volumeBarTimeout)}function le(Se){Se.preventDefault(),Se.deltaY<0?pe():Se.deltaY>0&&ke()}let me=z(!1),De=p.ui.controlsVisible;Pe(()=>{l()||M(me,!1)});var Le=z0();let G;var Y=w(Le);Na(Y,{get content(){return n(de)},translateY:-18,get active(){return n(me)},set active(Se){M(me,Se,!0)},children:(Se,Ke)=>{let Qe=u(()=>n(ie)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Se,{className:"btn-full-opacity",get disabled(){return n(Te)},get testId(){return n(Qe)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return ns.KeyM},role:"button",children:(Ve,He)=>{Xs(Ve,{get size(){return"24"},get volume(){return a()},get muted(){return n(te)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ae=k(Y,2);{var Ue=Se=>{var Ke=U0();let Qe;var Ve=w(Ke);let He=u(()=>n(ie)?"volumeBar-slider-vertical":""),kt=u(()=>n(ie)&&!n(U)),je=u(()=>n(ie)?Ne:Jd.noop),Et=u(()=>n(ie)?ce:Jd.noop),Dt=u(()=>Math.round(n(J)*100)),gt=u(()=>`${Math.round(n(J)*100)}%`),Ft=u(()=>n(ie)?"volume-slider-vertical":"volume-slider");Da(Ve,{get className(){return n(He)},get isHidden(){return n(kt)},get isVertical(){return n(ie)},withWheelHandler:!0,onWheelUp:pe,onWheelDown:ke,onPointerDown:fe,onHandleMove:we,onPointerUp:ne,get onPointerEnter(){return n(je)},get onPointerLeave(){return n(Et)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Dt)},get ariaValueText(){return n(gt)},get filledProgress(){return n(J)},get handleProgress(){return n(J)},get testId(){return n(Ft)}}),$(Ke),D(Pt=>Qe=ee(Ke,1,"volumeBar s-28",null,Qe,Pt),[()=>({"volumeBar-vertical":n(ie)})]),h(Se,Ke)};A(Ae,Se=>{n(H)&&Se(Ue)})}$(Le),D(Se=>G=ee(Le,1,"volumeBar-container s-28",null,G,Se),[()=>({vertical:n(ie)})]),ut("mouseenter",Le,function(...Se){(n(ie)?L:Jd.noop)?.apply(this,Se)}),ut("mouseleave",Le,function(...Se){(n(ie)?Fe:Jd.noop)?.apply(this,Se)}),ut("wheel",Le,le),h(t,Le),B(),o()}var B_=require("@vkontakte/videoplayer-shared");var K0=xe('<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>'),q0=xe('<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 gm(t,e){let i=g(e,"isFullscreen",8,!1),o=dn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ye(t,{get testId(){return n(o)},children:(r,s)=>{var a=Ie(),d=se(a);{var l=f=>{var v=K0();h(f,v)},p=f=>{var v=q0();h(f,v)};A(d,f=>{i()?f(l):f(p,!1)})}h(r,a)},$$slots:{default:!0}})}function ec(t,e){O(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,B_.noop),r=ve(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,d=u(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:p=>{let f=Qs(p);s.set(f),o()()},get ariaKeyShortCut(){return ns.KeyF},role:"button",children:(p,f)=>{gm(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),B()}var Q0=xe('<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 hm(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=Q0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(),$(o),h(t,o)}var G0=xe('<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 _m(t,e){let i=vn(e,["$$slots","$$events","$$legacy","children"]);var o=G0();Ni(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=w(o);qt(r,()=>e.children??ct),Jt(6),$(o),h(t,o)}var Y0={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 bm(t,e){O(e,!0),W(t,Y0);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",a=24,d=u(()=>!o()&&!i()?91:i()?a:95),l=u(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),p=u(()=>`0 0 ${n(d)} 24`);_m(t,{get width(){return n(d)},height:"24",get viewBox(){return n(p)},get"data-testid"(){return n(l)},get"data-logo"(){return r()}}),B()}function tc(t,e){O(e,!0);let[i,o]=Ee(),r=()=>_(b,"$isMobile",i),s=()=>_(m,"$currentGridType$",i),a=()=>_(x,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),l=g(e,"logoClickable",3,!1),p=g(e,"targetUrl",3,""),f=wt(),v=ve(),m=v.ui.currentGridType$,b=v.ui.isMobile,y=v.ui.t,x=v.isCyrillicRelatedInterface$,S=u(()=>f.logoType!=="vk"),I=u(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),C=u(()=>(r()&&ws(s(),"m")||ws(s(),"l"))&&n(S)),V=()=>{e.click(),v.callbacks?.onLogoClicked?v.callbacks?.onLogoClicked():p()&&window.open(p(),"_blank")},P=u(()=>!l()),R=u(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return n(P)},click:V,get testId(){return n(R)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(U){d(U)},children:(U,N)=>{var H=Ie(),te=se(H);{var ie=Z=>{bm(Z,{get logo(){return f.logoType},get short(){return n(C)},get isCyrillic(){return a()}})},de=Z=>{hm(Z,{})};A(te,Z=>{n(S)?Z(ie):Z(de,!1)})}h(U,H)},$$slots:{default:!0}}),B(),o()}var F_=require("@vkontakte/videoplayer-core");var $m=require("@vkontakte/videoplayer-core");var j0=xe('<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-18"></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-18"></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-18"></path>',1),X0=xe('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-18"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Z0={hash:"s-18",code:".animated.s-18{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-18{animation-name:s-18-wave1}.wave2.animated.s-18{animation-name:s-18-wave2}.wave3.animated.s-18{animation-name:s-18-wave3}@keyframes s-18-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function ic(t,e){O(e,!0),W(t,Z0);let i=g(e,"isMobile",3,!1),o=u(()=>e.iconState===$m.ChromecastState.CONNECTED),r=u(()=>e.iconState===$m.ChromecastState.CONNECTING),s=u(()=>n(o)?"#2688EB":zs),a=u(()=>e.size?Jo(e.size):void 0);var d=Ie(),l=se(d);{var p=v=>{Ye(v,{get fill(){return n(s)},get style(){return n(a)},testId:"chromecast-mobile-icon",children:(m,b)=>{var y=j0();Jt(2),h(m,y)},$$slots:{default:!0}})},f=v=>{Ye(v,{get style(){return n(a)},testId:"chromecast-icon",children:(m,b)=>{var y=X0(),x=se(y);let S;var I=k(x);let C;var V=k(I);let P;var R=k(V,2);let U;D((N,H,te,ie)=>{S=ee(x,0,"wave1 s-18",null,S,N),C=ee(I,0,"wave2 s-18",null,C,H),P=ee(V,0,"wave3 s-18",null,P,te),U=ee(R,0,"s-18",null,U,ie)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),h(m,y)},$$slots:{default:!0}})};A(l,v=>{i()?v(p):v(f,!1)})}h(t,d),B()}var U_=require("@vkontakte/videoplayer-shared");function oc(t,e){O(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,U_.noop),a=ve().ui.t,d=u(()=>e.state===F_.ChromecastState.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{ic(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),B()}var z_=require("@vkontakte/videoplayer-shared");var J0=xe('<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 ym(t){Ye(t,{testId:"episodes-icon",children:(e,i)=>{var o=J0();Jt(2),h(e,o)},$$slots:{default:!0}})}var Wu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var ex=E('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),tx=E('<span class="text s-24"> </span>'),ix=E('<span class="text count s-24"> </span>'),ox=E("<!> <!>",1),nx={hash:"s-24",code:".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 nc(t,e){O(e,!0),W(t,nx);let[i,o]=Ee(),r=()=>_(y,"$currentGridType$",i),s=()=>_(x,"$openedByKeyboard$",i),a=()=>_(S,"$panelOpened$",i),d=()=>_(I,"$isMobile",i),l=g(e,"position",3,0),p=g(e,"duration",3,0),f=g(e,"timeCodes",19,()=>[]),v=ve(),m=v.callbacks?.onEpisodeChanged??z_.noop,b=!!v.callbacks?.onEpisodeClicked,y=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,I=v.ui.isMobile,C=v.ui.t,V=z(void 0),P=Q=>{if(!!v.callbacks?.onEpisodeClicked){let fe=Qs(Q);x.set(fe),S.set(!0),v.callbacks?.onEpisodeClicked?.(fe)}},R=z(null),U=u(()=>l()/p());Pe(()=>{let Q=Wu(n(U),p(),f());Q?n(R)?.time!==Q.time&&(m(Q),M(R,Q,!0)):M(R,null)});let N=u(()=>n(R)?.text||""),H=u(()=>Di(r(),"xl")?"FULL":Di(r(),"m")&&D_(r(),"xl")?"COUNT":"SHORT"),te=u(()=>`${C("tooltip_episodes")}: ${n(N)}`),ie=async(Q,Te,fe)=>{await eo(),Q?.getAttribute("aria-expanded")==="false"&&Te&&!fe&&$t(()=>{x.set(!1),Q.focus()})};Pe(()=>{ie(n(V),s(),a())});var de=Ie(),Z=se(de);{var J=Q=>{let Te=u(()=>d()?"px-0":""),fe=u(()=>!b);Vt(Q,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(Te)??""}`},testId:"btn-episodes",click:P,get disabled(){return n(fe)},get ariaExpanded(){return a()},get ariaLabel(){return n(te)},get ref(){return n(V)},set ref(pe){M(V,pe,!0)},children:(pe,ke)=>{var we=Ie(),ne=se(we);{var Ne=L=>{var Fe=ex(),he=se(Fe),le=w(he,!0);$(he);var me=k(he,2),De=w(me);gr(De,{direction:"right"}),$(me),D(()=>ue(le,n(N))),h(L,Fe)},ce=L=>{var Fe=ox(),he=se(Fe);ym(he,{});var le=k(he,2);{var me=Le=>{var G=tx(),Y=w(G,!0);$(G),D(()=>ue(Y,n(N))),h(Le,G)},De=(Le,G)=>{{var Y=Ae=>{var Ue=ix(),Se=w(Ue,!0);$(Ue),D(()=>ue(Se,f().length)),h(Ae,Ue)};A(Le,Ae=>{n(H)==="COUNT"&&Ae(Y)},G)}};A(le,Le=>{n(H)==="FULL"?Le(me):Le(De,!1)})}h(L,Fe)};A(ne,L=>{d()?L(Ne):L(ce,!1)})}h(pe,we)},$$slots:{default:!0}})};A(Z,Q=>{n(R)&&Q(J)})}h(t,de),B(),o()}var zm=require("@vkontakte/videoplayer-shared");var ti=require("@vkontakte/videoplayer-core"),ot=require("@vkontakte/videoplayer-shared"),ss=require("@vkontakte/videoplayer-statistics");var We=require("@vkontakte/videoplayer-shared"),Oi=require("@vkontakte/videoplayer-shared"),rx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Ku=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 Oi.Subject,loadStarted$:new Oi.Subject,loadEnded$:new Oi.Subject,loadError$:new Oi.Subject,ready$:new Oi.Subject,slotRequested$:new Oi.Subject,started$:new Oi.Subject,timeRemained$:new Oi.Subject,paused$:new Oi.Subject,resumed$:new Oi.Subject,ended$:new Oi.Subject,empty$:new Oi.Subject,skipped$:new Oi.Subject,clicked$:new Oi.Subject,closed$:new Oi.Subject,error$:new Oi.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,Oi.addScript)(rx,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[(0,We.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},a=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,We.now)()]}),!d&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(l),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.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(),this.externalApi?.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{(this.adsState?.playbackState?ge(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[(0,We.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=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.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"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:d,params:l={},paramsOverride:p={},duration:f,externalApi:v}=e;this.externalApi=v;let m,b=this.playerState&&ge(this.playerState.vsid);b&&(this.isVsidOriginal?m=b:m=parseInt(b,36));let{isEmbed:y,immediateOrigin:x}=(0,We.detectEmbed)(),S=(y?x:window.location.href)??window.location.href,I={...l,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,...m?{request_id:m}:{},duration:f,...p};I=Object.fromEntries(Object.entries(I).filter(([V,P])=>(0,We.isNonNullable)(P)));let C={slot:d,wrapper:s,videoEl:a,videoQuality:o,params:I,browser:{mobile:!1}};try{let V=new window.AdmanHTML;if(V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),V.setDebug(!1),this.externalApi?.videoGetAds){let P=await this.safeExternalCall(this.externalApi.videoGetAds,I);P&&(delete C.slot,delete C.params,Object.assign(C,{json:P}))}V.init(C),this.adman=V,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(V){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[(0,We.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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}setPostrollPassed(e){this.adsState?.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let e=ge(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&(0,Oi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){try{return await e(...i)}catch(o){return this.onAdError(o?.message??"External call failed"),null}}};var W_=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 xm=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 s of r){let a={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let l of d)if(!a.startTime&&!a.endTime){let p=new qu,{startTime:f,endTime:v}=p.parse(l);a.startTime=f,a.endTime=v}else if(l.trim()!==""){let p=new wm,{texts:f}=p.parse(l);a.texts=[...a.texts,...f]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},qu=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 s=Number(e)*60*60,a=Number(i)*60,d=Number(o),l=+`0.${r}`;return s+a+d+l}},wm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let d=0,l=[];for(;d<a.length;){let p=["<",">"].reduce((f,v)=>{let m=a.indexOf(v,d);return f===-1||f>m?m:f},-1);if(p===-1){l.push(a.substring(d));break}l.push(a.substring(d,p)),d=p+1}return l}}),s=new qu;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},K_=xm;var Gu=require("@vkontakte/videoplayer-shared"),Oa,_r,Sm=0,Tm=!1,q_="",Q_=(t,e=0,i=0)=>t<e&&t<i,Qu=(t,e=0,i=0)=>t>=e&&t<=i,sx=(t,e=0,i=0)=>t>e&&t>i,G_=(t,e,i,o=!1)=>{let r=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return r?.find(({startTime:l,endTime:p})=>Qu(t,l,p));let s=t>=Sm,a=t<Sm;if(Sm=t,a&&(Tm=!1),(0,Gu.isNonNullable)(Oa)&&Qu(t,Oa.startTime,Oa.endTime)&&q_===e.value)return Oa;if(!(0,Gu.isNonNullable)(_r)&&r?.length&&!Tm){_r=r.find(({startTime:l,endTime:p})=>Qu(t,l,p)||s&&Q_(t,l,p)),Oa=void 0,!(0,Gu.isNonNullable)(_r)&&r[r.length-1].endTime<t&&(Tm=!0);return}else{if(Qu(t,_r?.startTime,_r?.endTime))return Oa=_r,_r=void 0,q_=e.value,Oa;(s&&sx(t,_r?.startTime,_r?.endTime)||a&&Q_(t,_r?.startTime,_r?.endTime))&&(_r=void 0)}};var Yu={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"},ax={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"},rc=t=>Yu[t]??Yu[ax[t]]??void 0;var Y_=require("@vkontakte/videoplayer-shared"),xB=require("@vkontakte/videoplayer-statistics"),ju=class{constructor(e,i,o,r=new Y_.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}};var sc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(sc||{});var rs=t=>t??0,Ss=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(rs(i?.top)-rs(o?.top)),left:Math.round(rs(i?.left)-rs(o?.left)),bottom:Math.round(rs(i?.bottom)-rs(o?.top)),right:Math.round(rs(i?.right)-rs(o?.left))}},Fl=t=>{let e=t?.getBoundingClientRect?.();return{width:rs(e?.width),height:rs(e?.height)}};var _n="off";var Ul=t=>!!(Math.round(Math.abs(t)/90)%2);var j_=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:m,coreConfig:b,player:y,disabledControls:x,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:C,replayInteractive:V,stopPlayer:P,hasInteractiveBranches:R,playPrevChapterDisabledTooltip:U,additionalButtons:N,additionalSettingsMenuItems:H,additionalContextMenuItems:te,playPrevVideo:ie,playNextVideo:de,onVideoChanged:Z,looped:J=!1,statistics:Q,saveRate:Te,internalsExposure:fe,playerView:pe,playerId:ke})=>{let we={...b,configName:[...b.configName??[],"ui"],isAudioDisabled:a,live:{...b.live??{},isLiveCatchUpMode:!!r}},ne=m,Ne=ot.TracerFactory.createRootTracer(ne.features.tracer),ce=Ne.createComponentTracer("Store"),L=y||new ti.Player(we,Ne,{playerId:ke});fe?.expose({corePlayer:L});let Fe=new ot.Logger,he=new Ku(Fe,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout,runtimeTimeout:ne.ads.runtimeTimeout,useAdmanFromNPM:ne.ads.useAdmanFromNPM,volumeMultiplier:ne.ads.volumeMultiplier,isVsidOriginal:ne.ads.isVsidOriginal}),le=ka.getInstance(),me=p?.pictureInPictureApi,De=p?.annotationsApi,Le=p?.slotsApi,G=Fe.createComponentLog("Store"),Y,Ae,Ue={},Se=new yu,Ke=new ot.Subscription,Qe="",Ve=re(!1),He=Q&&Q.oneStat?jt(Q.oneStat.vsid$):vr(void 0),kt=re(Ws()),je=re(!1),Et=()=>g_(document,ti.clientChecker.device.isIOS),Dt=me?.info.isActive$??new ot.ValueSubject(!1),gt=re(0),Ft=re(!1),Pt=re(!1),be=re([]),$e=(0,ot.merge)(L.events.fatalError$,L.events.managedError$).subscribe(c=>be.update(T=>[...T,c])),X=vr(!1,c=>{let T=L.events.fatalError$.subscribe(()=>c(!0));return()=>T.unsubscribe()}),ye=async c=>{let T=Object.values(ot.InterfaceLanguage).includes(c);if(ne.downloadVKLanguages&&(T&&ne.updateBuiltinLanguages||!Of(c))){let ae;try{ae=await(0,ot.loadVKLangPack)(c,kh,Eh)}catch(qe){Q?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),le?.report(qe,{errorType:"VKLangPack",fatal:!1})}ae&&(Df({language:c,pack:ae,fallback:ne.defaultLanguage}),oe.set(c),rt.update(qe=>qe+1))}Of(c)&&oe.set(c)},oe=re(t),rt=re(0),at=re(e);ye(t);let nt=(c,T)=>{let F=ge(oe);return Bf(F,c,T,ne.defaultLanguage)},yt=re("thumb");yt.subscribe(c=>{c==="ads"&&L.info.playbackState$.getValue()&&st()});let Me=(()=>{let c=ri([X,yt],([T,F])=>T?"crashed":F);return{...c,is:T=>ge(c)===T}})(),Re=re(),st=()=>{Re.set({muted:L.info.muted$.getValue()})},vt=(()=>{let c=re(new Set(x));return{...c,add:T=>{c.update(F=>new Set([...F].concat(T)))},remove:T=>{c.update(F=>{let ae=[...F];return new Set(Array.isArray(T)?ae.filter(qe=>!T.includes(qe)):ae.filter(qe=>qe!==T))})},includes:T=>{let F=ge(c);return Array.isArray(T)?T.every(ae=>F.has(ae)):F.has(T)}}})(),mi=re({width:0,height:0}),ei=null,hi=L.info.isBuffering$,Ai=vr(hi.getValue(),c=>{let T=hi.subscribe(F=>{F&&ei===null?ei=window.setTimeout(()=>{c(hi.getValue()),ei=null},ne.loaderDelay):c(F)});return()=>{T.unsubscribe(),ei&&clearTimeout(ei)}});ce.log("create store"),G({message:"create store"});let Ro=c=>{let T=c.container,F=()=>{Vo=new MutationObserver(qe=>{let{removedNodes:it}=qe[0];it.length&&T.append(L.experimental.element$.getValue())}),Vo.observe(T,{childList:!0})},ae=L.experimental.element$.getValue();if(ae)T.append(ae),F();else{let qe=L.experimental.element$.pipe((0,ot.filter)(it=>!!it),(0,ot.once)()).subscribe(it=>{T.append(it),F()});Ke.add(qe)}},At=c=>{G({message:`init video, config: ${JSON.stringify(c)}`}),S?Ro(c):(ot.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ot.now)()]}),L.initVideo(c)),ce.log("init video",{isInteractive:S}),c.subtitles&&L.setExternalTextTracks(c.subtitles),Y=c,Qe=c.subtitlesForcedLanguage||""},Lt=new ot.Subject,di=c=>Lt.next(c),Hi=new ot.Subject,ci=new ot.Subject,tn=new ot.Subject,Vo=null,Zt={actionRewind$:Hi,actionSeek$:ci,inPiP$:Dt,inFullscreen$:new ot.Observable(c=>kt.subscribe(T=>c.next(T))),actionSetSubtitle$:tn,nextMovie$:Lt},No=new ot.Subject,vi={actionSeek$:ci,actionSubtitlesSwitched$:No,playerSize$:new ot.Observable(c=>mi.subscribe(T=>c.next(T))),inPiP$:Dt,inFullscreen$:new ot.Observable(c=>kt.subscribe(T=>c.next(T))),isLoaderVisible$:new ot.Observable(c=>Ai.subscribe(T=>c.next(T)))};if(Q){let{oneStat:c,thinOneStat:T,mediascopePixel:F,statSubscription:ae}=Q;c&&(S||ae.add(c.attachTo(L)),ae.add(c.attachToUi(Zt)),ae.add(c.attachToAds(he.events)),c.authorize(s).catch(qe=>{G({message:`onestat auth error ${String(qe)}`})}),F&&F.attachTo(L)),T&&(ae.add(T.attachTo(L,he.events)),ae.add(T.attachToUi(vi)),ae.add(T.attachToAds(he.events)),T.updateContext({isMobile:ge(Ve)}),T.authorize(s))}if(le){let c=new ot.Subscription,T=(F,ae)=>c.add(F.subscribe(ae));if(T(L.events.managedError$,F=>{le.logIError(F)}),T(L.events.fatalError$,F=>{le.logIError(F,!0)}),Q){let{oneStat:F}=Q;F&&T(F.experimental.error$,ae=>{le.logIError(ae)})}le.sentrySubscription.add(c)}let to=()=>{if(ti.clientChecker.device.isIOS&&Ae)try{h_(Ae)}catch(c){G({message:`exitIosSafariFullscreen failed: ${c}`})}};Ke.add(L.experimental.element$.subscribe(c=>{c&&(Ae=c,c.classList.add("player-media"),Pa(me)&&me.updateVideoElement(),S&&c.setAttribute("pip","false"),pe==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(L.events.ended$.subscribe(()=>{to(),l?.onEnded?.()})).add(L.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(L.events.started$.subscribe(async()=>{Pa(me)&&await me?.revealPictureInPicture();let c=L.info.muted$.getValue();l?.onStarted?.(),Ue.onStarted?.(c)})).add(L.events.willSeek$.subscribe(({from:c,to:T})=>{l?.onSeek?.(c,T)})).add(L.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(L.info.position$.subscribe(c=>{let T=L.info.duration$.getValue();isFinite(T)&&T>0&&(l?.onTimeupdate?.(T,c),he.setPosition(c,T))})).add(L.events.fatalError$.subscribe(c=>{l?.onCrashed?.(c?`${c.id}: ${c.message}`:void 0)})).add(L.events.fetcherRecoverableError$.subscribe(c=>{l?.onRecoverableError?.(c?`${c.id}: ${c.message}`:void 0)})).add(L.events.loadedMetadata$.subscribe(()=>{Ft.set(!0)})).add(L.info.is3DVideo$.subscribe(c=>{Pt.set(c)})).add(L.info.isEnded$.subscribe(c=>{S&&(c?(C?.getValue()&&vt.add(Ld),vt.add("PLAY_BUTTON")):vt.remove("PLAY_BUTTON"))})).add(L.info.liveTime$.subscribe(c=>{l?.onLiveTime?.(c)})).add(L.info.isStalled$.subscribe(c=>{l?.onStalledChanged?.(c)})).add(L.info.isLiveEnded$.subscribe(c=>c&&l?.onLiveEnded?.())).add(he.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(he.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(he.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(he.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(he.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(he.events.started$.subscribe(c=>l?.adsInfo?.onStarted?.(c))).add(he.events.timeRemained$.subscribe(c=>l?.adsInfo?.onTimeRemained?.(c))).add(he.events.ended$.subscribe(c=>l?.adsInfo?.onCompleted?.(c))).add(he.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(he.events.clicked$.subscribe(c=>l?.adsInfo?.onClicked?.(c))).add(he.events.closed$.subscribe(c=>l?.adsInfo?.onClosed?.(c))).add(he.events.error$.subscribe(c=>l?.adsInfo?.onError?.(c))).add(he.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(he.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.()));let ho=new ot.Subscription,Mn=()=>{let{debugLog:c}=ne,T,F="#9df7b7",ae="#efd169";if(c&&c!==!0){let{colors:it}=c;T=c.tag,F=it?.[0]??F,ae=it?.[1]??it?.[0]??ae}let qe=T?`: ${T}`:"";ho.add(L.events.log$.subscribe(it=>{console.debug(`%c sdk${qe} `,`background:${F};`,`sdk component: ${it.component}`,it.message)})).add(Fe.log$.subscribe(it=>{console.debug(`%c ui${qe} `,`background:${ae};`,`ui component: ${it.component}.`,it.message)}))},Rn=()=>{ho.unsubscribe()},xt=(c,T)=>{ce.log("start camera manual rotation",{mx:c,my:T}),L.startCameraManualRotation(c,T)},Bt=(c=!1)=>{ce.log("stop camera manual rotation",{immediate:c}),L.stopCameraManualRotation(c)},q=(c,T,F)=>{ce.log("move camera focus px",{xpx:c,ypx:T,dt:F}),L.moveCameraFocusPX(c,T,F)},Rt=()=>{L.holdCamera()},Qt=()=>{L.releaseCamera()},lt=vr(L.info.position$.getValue(),c=>{let T,F,ae=()=>{let qe=L.info.playbackState$.getValue(),it=L.info.isLive$.getValue(),Tt=L.info.duration$.getValue(),li=L.info.position$.getValue();if(qe&&[ti.PlaybackState.PLAYING,ti.PlaybackState.PAUSED].includes(qe)){let Yo=it?li-Tt:L.getExactTime();Yo!==F&&c(Yo),F=Yo}T=requestAnimationFrame(ae)};return ae(),()=>cancelAnimationFrame(T)}),Xt=jt(L.info.playbackState$),Ut=jt(L.info.currentBuffer$),_t=jt(L.info.isEnded$),Fi=jt(L.info.isLive$),_o=ne.features.playbackRate?jt(L.info.canChangePlaybackSpeed$):vr(!1),Do=jt(L.info.liveBufferTime$),bo=jt(L.info.volume$),io=jt(L.info.muted$),Si=xu(L.info.predefinedQualityLimitType$.pipe((0,ot.map)(c=>c===ti.PredefinedQualityLimits.TRAFFIC_SAVING)),L.info.predefinedQualityLimitType$.getValue()===ti.PredefinedQualityLimits.TRAFFIC_SAVING),tr=xu(L.info.predefinedQualityLimitType$.pipe((0,ot.map)(c=>c===ti.PredefinedQualityLimits.HIGH_QUALITY)),L.info.predefinedQualityLimitType$.getValue()===ti.PredefinedQualityLimits.HIGH_QUALITY),Ui=jt(L.info.autoQualityLimitingAvailable$),oo=jt(L.info.availableQualities$),Ti=jt(L.info.availableQualitiesFps$),Oo=jt(L.info.chromecastState$),Bo=jt(L.info.chromecastDeviceName$),Vn=jt(L.info.currentFormat$),ir=jt(L.info.throughputEstimation$),br=jt(L.info.videoBitrate$),ls=jt(L.info.intrinsicVideoSize$),qr=jt(L.info.duration$),Qr=jt(L.info.isAudioAvailable$),Nn=()=>{ei&&clearTimeout(ei),ei=null},Ho=ri([qr,Fi],([c,T])=>T?-c:c),$o=ri([Xt],([c])=>c===ti.PlaybackState.PLAYING),Fo=jt(L.info.atLiveEdge$),Dn=jt(L.info.atLiveDurationEdge$),bn=jt(L.info.position$),$r=ri([bn,qr],([c,T])=>isFinite(c)&&isFinite(T)&&!!T),yr=ri([Oo],([c])=>c===ti.ChromecastState.CONNECTED),Gr=jt(L.info.availableVideoStreams$),or=ne.features.audioLanguages?jt(L.info.availableAudioStreams$):vr([]),zi=jt(L.info.currentVideoStream$),nr=jt(L.info.currentAudioStream$),On=c=>{c.language&&Mf(c.language),L.setVideoStream(c)},on=(c,T)=>{L.setAudioStream(c),So(T)&&(c.language&&Mf(c.language),ne.features.userVideoPrefs&&i&&Nf(ne.userSalt,String(i),{audioTrackId:c.id}))},Wi=c=>{let T;if(c.length===1&&(T=c.at(0)),T??=c.find(ae=>"isDefault"in ae&&ae.isDefault),ne.features.userVideoPrefs&&i){let ae=Iu(ne.userSalt,String(i));ae?.audioTrackId&&(T=c.find(it=>it.id===ae.audioTrackId)??T)}let F=t_();return F&&(T??=c.find(({language:ae})=>F===ae)),T??=c.at(0),T},xr=c=>{ce.log("change audio stream",{id:c});let T=L.info.availableAudioStreams$.getValue().find(F=>F.id===c);T&&on(T,!0)},$n=!1;Ke.add(L.info.availableAudioStreams$.subscribe(c=>{if(!$n&&c.length){let T=Wi(c);T&&(L.setAudioStream(T),$n=!0)}})),or.subscribe(c=>{l?.onAvailableAudioStreamsChanged?.(c.map(({label:T="",id:F="",language:ae=""})=>({label:T,language:ae,id:F})))}),nr.subscribe(c=>c&&l?.onAudioStreamChanged?.(c.id));let dt=!1;Ke.add(L.info.availableVideoStreams$.subscribe(c=>{if(!dt&&c.length){let T=Wi(c);T&&(L.setVideoStream(T),dt=!0)}}));let _i=re(void 0),Bn=jt(L.info.isAutoQualityEnabled$,c=>c&&_i.set(void 0)),rr=jt(L.info.currentQuality$,()=>_i.set(void 0)),wr=ri([_i,rr],([c,T])=>c??T),nn=ri(Vn,c=>c!==ti.VideoFormat.MPEG),sr=ri([oo,Ti,Bn,wr,nn],([c,T,F,ae,qe])=>{let it=[];qe&&it.push({value:"auto",displayValue:nt("auto_quality_option"),selected:F});let Tt=c.filter(li=>!(0,ot.isInvariantQuality)(li));for(let li of Tt){let Yo=T[li];it.push({value:li,displayValue:`${li}${Yo?W_(Yo):""}`,selected:F?!1:li===ae})}return it}),yo=jt(L.info.currentPlaybackRate$),Uo=ri([yo,Fo,Dn],([c,T,F])=>{let ae=F||S?1:ne.controls.playbackRateMin,qe=T?1:ne.controls.playbackRateMax,it=ne.controls.playbackRateStep,Tt=[];for(let li=ae;li<=qe;li+=it)Tt.push({value:li,displayValue:li===1?nt("playback_rate_1"):nt("playback_rate",{multiplier:li.toString(10)}),selected:c===li});return Tt}),xo=()=>({displayValue:nt("subtitles_off"),value:_n,language:""}),Hn=re(xo()),Ci=ri([Hn,rt],([c],T)=>{c.value===_n?T(xo()):T(c)}),wo=ne.features.subtitles?jt(L.info.availableTextTracks$):vr([]),Fn=Wh(),Sr=ri([wo,Ci],([c,T],F)=>{let ae=[],qe=c.find(({id:it})=>it===T.value);if(qe?.url){let[,it]=Fn.find(qe.url)??[];if(it){F(it);return}Se.download(qe.url).then(Tt=>{if(!Tt||Se.isDestroyed())return;let li=new K_,Yo=qe.language;if(Yo){let kp=!!qe.isAuto,Gb=li.parse(Tt,Yo);ae.push({lang:Yo,subtitles:Gb,isAuto:kp,id:qe.id})}Fn.add(qe.url,ae),ge(Ci).value===T.value&&F(ae)}).catch(Tt=>{Q?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),le?.report(Tt,{errorType:"Subtitles download",fatal:!1})})}F(ae)}),Ki=ri([yo,$o,Ci],([c,T,F],ae)=>{let Tt;if(L.info.isLive$.getValue()&&T&&F.value!==_n){let Yo=()=>{let kp=1e3/(3*c);Tt=setTimeout(Yo,kp),ae(Date.now())};return Yo(),()=>clearTimeout(Tt)}}),yn=ri([wo,Ci],([c,T])=>{if(!c.length)return[];let F=[];for(let{language:ae,isAuto:qe,id:it}of c){let Tt=ae&&rc(ae);ae&&Tt&&F.push({displayValue:qe?nt("subtitles_auto",{language:Tt}):Tt,value:it,selected:T?.value===it,isAuto:qe,language:ae})}return F.length?(F.unshift({...xo(),selected:T?.value===_n}),F):[]}),zo={available:[],prev:[]},Tr=()=>L.experimental.getCurrentTime$.getValue()?.()??Ae?.currentTime??0,Un=ri([lt,Ci,Sr,Ki],([c,T,F,ae])=>{let qe=L.info.isLive$.getValue();if(qe&&zo.prev!==F){let it=F.find(({id:li})=>li===T.value),Tt=zo.prev.find(({id:li})=>li===T.value);if(it){let li={...it,subtitles:[...Tt?.subtitles??[],...it.subtitles]};zo.available=[li],zo.prev=F}}if(T&&T.value!==_n){let it=qe?Tr():c,Tt=qe?zo.available:F;return G_(it,T,Tt,qe)}}),pt=ri([Un],([c])=>c?.texts?c.texts:[]);Ke.add(Ci.subscribe(c=>{if(c.value===_n)l?.onSubtitleOff?.();else{let T=Object.entries(Yu).find(([F,ae])=>ae===c.displayValue);l?.onSubtitleOn?.(T?T[0]:"",c.value)}}));let zt=re(!0),no=ri([Ut,Ho,bn,Do],([c,T,F,ae])=>{let qe=c?.end??0;if(!ae)return qe/T;let Tt=-F+ae-T;return(qe-Tt)/T}),Wt=jt(L.info.availableSources$),xn=ri([Wt],([c])=>Object.keys(c?.[ti.VideoFormat.MPEG]||{}).length>0),wn=()=>{let c=Object.keys(L.info.availableSources$?.getValue()?.[ti.VideoFormat.MPEG]||{}),T=(0,ot.getHighestQuality)(c)||ot.VideoQuality.Q_144P;return Y.sources[ti.VideoFormat.MPEG]?.[T]},rn=()=>{let c=wn();if(c)ce.log("download video",{url:c}),Fh(c,Y?.meta?.title||"video");else{let T="There is no URL for download video";ce.log("download video",{message:T}),G({message:T})}},ds=()=>{G({message:"toggle muted"});let c=L.info.muted$.getValue();L.info.volume$.getValue()===0&&!c?ar(zn(),!1):Wn(!c,!1)},Cr=()=>{if(Nt.ui.settingsMenu.visible$.set(!1),!ge(Nt.ui.settingsSubMenu.visible$)){let c=ge(Nt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&c){let F=Fl(c),ae={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:F,position:ae,name:"settings"})}}ce.log("close settings menu")},Ir=async(c,T=()=>Promise.resolve())=>{Nt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Nt.ui.settingsMenu.visible$.set(!0),await T();let F=ge(Nt.ui.settingsMenu.ref$),ae=sa();if(l?.uiInfo?.onSettingsMenu&&F&&ae){let it=Fl(F),Tt=Ss(F,ae);l.uiInfo.onSettingsMenu({visible:!0,size:it,position:Tt,name:"settings"})}ce.log("open settings menu",{wasOpenedByKeyboard:c})},bi=(c,T=!1)=>{Nt.ui.settingsSubMenu.visible$.set(!1);let F=ge(Nt.ui.settingsMenu.ref$),ae=sa(),qe=ge(Nt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&F&&ae)if(qe&&!T){let Tt=Fl(F),li=Ss(F,ae);l.uiInfo.onSettingsMenu({visible:!0,size:Tt,position:li,name:"settings"})}else{let Tt=Fl(c),li={top:0,left:0,bottom:0,right:0},Yo=ge(Nt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Tt,position:li,name:Yo})}ce.log("close settings sub menu")},cs=(c,T)=>{Nt.ui.settingsSubMenu.visible$.set(!0),Nt.ui.settingsSubMenu.ref$.set(T),Nt.ui.settingsSubMenu.name$.set(c);let F=sa();if(l?.uiInfo?.onSettingsMenu&&T&&F){let qe=Fl(T),it=Ss(T,F);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:qe,position:it})}ce.log("open settings sub menu",{name:c})},zn=()=>{let c=Math.max(ne.volumeMinRestore,wu()??0);return c===0?ne.volumeDefault:c},So=c=>{let T=ne.features.savePreferredStatesOnUserActionOnly;return!T||T&&!c},ar=(c,T)=>{let F=c===0?zn():c,ae=L.info.muted$.getValue();G({message:`set volume, volume: ${c}, preferredVolume: ${F}`});let qe=!a||Me.is("ads");ae&&c>0&&qe&&(ae=!1,So(T)&&Af(!1)),L.setVolume(c,ae),he.setVolume(c),So(T)&&Cf(F)},Wn=(c,T)=>{let F=L.info.volume$.getValue();G({message:`set muted, currentVolume: ${F}, mute: ${c}`});let ae=Me.is("ads");if(L.setMuted(c,ae),he.setVolume(c?0:F),So(T)&&(!ae||!c)&&Af(c),!c&&F===0){let qe=zn();L.setVolume(qe),So(T)&&Cf(qe),he.setVolume(qe)}},lr=re(!1),sn=c=>{ce.log("set looped",{isLooped:c}),lr.set(c),L.setLooped(c),l?.uiInfo?.onLoopedChanged?.(c)};sn(J);let Wo=()=>{l?.uiInfo?.onReportProblem?.()},kr=(c,T=!1)=>{G({message:`set autoplayNextEnabled, value: ${c}`}),ce.log("set autoplay next enabled",{autoplayNextEnabled:c}),Nt.ui.autoplayNextEnabled$.set(c),n_(c),T&&l?.onSetAutoplayNextEnabled?.(c)},Ze=c=>{G({message:`set timerNextVideoRunning, value: ${c}`}),ce.log("set timer next video running",{timerNextVideoRunning:c}),Nt.ui.timerNextVideoRunning$.set(c)},It=(c=!0)=>{let T=!0;if(c&&l?.onPrevVideoClick)try{T=l?.onPrevVideoClick?.()}catch{G({message:"onPrevVideoClick callback failed to execute"})}Z(!0),T&&ie()},Gt=(c=!0)=>{let T=!0;if(c&&l?.onNextVideoClick)try{T=l?.onNextVideoClick?.()}catch{G({message:"onNextVideoClick callback failed to execute"})}Z(!1),T&&de()},qi=()=>{l?.onNextVideoAnnouncementShow?.()},Li=()=>{l?.onNextVideoAnnouncementClick?.()},co=()=>{l?.onNextVideoAnnouncementAuto?.()},ro=()=>{l?.onNextVideoAnnouncementCancel?.()},Ko=()=>{L.prepare()},an=()=>{(0,ot.assertNonNullable)(Nt);let c=ge(Nt.ui.controls.disabledControls$),T=ge(Nt.playerPhase),F={playerPhase:T,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(G({message:"toggle play"}),T==="ads"){F.action="play",ce.log("toggle adman play",F),he.togglePlay();return}let ae=()=>{G({message:"toggle play, call player.play"}),F.action="play",L.play(),l?.onPlay?.()},qe=()=>{G({message:"toggle play, call player.pause"}),F.action="pause",L.pause(),l?.onPause?.()};if(L.info.isEnded$.getValue()){if(G({message:"toggle play, video ended, seek to 0"}),Hi.next(),ci.next(ss.SeekAction.REWIND),S){V?.();return}L.seekTime(0),ae()}else L.info.playbackState$.getValue()!==ti.PlaybackState.PLAYING?ae():qe();ce.log("toggle play",F)},so=(c,{changeReason:T="default",appliesTo:F="to-video"}={},ae)=>{G({message:`set quality, quality: ${c}`}),ce.log("set quality",{quality:c}),L.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:qe}=ne.features;Su(),c!=="auto"?(qe?(Tu({type:"exact_quality",quality:c,videoId:i},F),L.setPredefinedQualityLimits(ti.PredefinedQualityLimits.UNKNOWN)):If(i,c),_i.set(c),L.setQuality(c)):qe&&T==="default"&&(qn("auto_quality",F,ae),ge(Si)&&Mi(!1,void 0,ae),ge(tr)&&Ri(!1,void 0,ae))},Mi=(c,T="as-default",F)=>{G({message:`set trafficSavingEnabled, value: ${c}`}),ce.log("set traffic saving enabled",{trafficSavingEnabled:c});let ae=c?ti.PredefinedQualityLimits.TRAFFIC_SAVING:ti.PredefinedQualityLimits.UNKNOWN;ne.features.qualityDetailsSubMenuEnabled?(Kn(ae,T,F),Rd(!1)):(L.setPredefinedQualityLimits(ae),So(F)&&Rd(c))},Ri=(c,T="as-default",F)=>{G({message:`set highQualityEnabled, value: ${c}`}),ce.log("set high quality enabled",{highQualityEnabled:c}),Kn(c?ti.PredefinedQualityLimits.HIGH_QUALITY:ti.PredefinedQualityLimits.UNKNOWN,T,F)},Kn=(c,T,F)=>{c!==ti.PredefinedQualityLimits.UNKNOWN&&(ge(Ui)&&!ge(Bn)&&so("auto",{appliesTo:T,changeReason:"limit-changed"},F),qn(c,T,F)),L.setPredefinedQualityLimits(c)},qn=(c,T,F)=>{So(F)&&(Tu({type:c,videoId:i},T),T==="as-default"&&Tu({type:c,videoId:i},"to-video"))},qo=(c,T=!0)=>{ce.log("set playback rate",{playbackRate:c}),L.setPlaybackRate(c),ne.features.saveRate&&Te&&!L.info.isLive$.getValue()&&T&&i_(c)},Yr=()=>{let c=ge(Uo),T=c.findIndex(({selected:ae})=>ae);if(T===c.length-1)return;let F=c[T+1];qo(F.value)},us=()=>{let c=ge(Uo),T=c.findIndex(({selected:ae})=>ae);if(T===0)return;let F=c[T-1];qo(F.value)},Er=(c={...xo(),selected:!1},T)=>{ce.log("set subtitles",{...c}),c.value!==_n&&tn.next(c.isAuto?c.value+"_auto":c.value),No.next({enabled:c.value!==_n,lang:c.language,auto:!!c.isAuto}),Hn.set(c),So(T)&&(Vf(c.value===_n?void 0:c.language),ne.features.userVideoPrefs&&i&&Nf(ne.userSalt,String(i),{subtitleTrackId:c.value===_n?void 0:c.value}))},Ge=c=>{ce.log("toggle subtitles"),ge(Ci)?.value===_n?$i(c):Qi(c)},Ht=(c,T)=>{ce.log("change subtitle",{enabled:c}),c?$i(!0,T):Qi(!0)},$i=(c,T)=>{ce.log("subtitle on");let F=ge(yn),ae=ge(oe),qe=Qe??ae,it;T&&(it=F.find(Tt=>Tt.value===T)),it??=F.filter(Tt=>Tt.value!==_n).find(Tt=>Tt.language===qe),Er(it??F[1],c)},Qi=c=>{ce.log("subtitle off"),Er(void 0,c)};Ke.add(L.info.availableTextTracks$.subscribe(c=>{function T(){let F=[];for(let{language:ae,isAuto:qe,id:it}of c){let Tt=ae&&rc(ae);ae&&Tt&&F.push({id:it,language:ae,title:qe?nt("subtitles_auto",{language:Tt}):Tt})}return F}l?.onAvailableSubtitlesChanged?.(T())}));let To=re(!0),Pr=c=>{To.set(c)},Gi=(c,T,F=!0)=>{if(G({message:`seek to time, time: ${c}`}),ce.log("seek to time",{time:c,action:T,forcePrecise:F}),ci.next(T),L.info.isLive$.getValue()){let ae=L.info.duration$.getValue(),qe=Math.min(0,ae+c);L.seekTime(qe,F)}else{if(C?.getValue())return;L.info.isEnded$.getValue()&&(G({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),L.seekTime(Qv(c),F)}},Sn=c=>{G({message:`seek to episode start time: ${c}`}),ce.log("seek to episode start time",{time:c}),Gi(c,ss.SeekAction.EPISODE,!0)},Es=(c,T,F=!1)=>{G({message:`seek to percent, percent: ${c}`}),ce.log("seek to percent",{percent:c,action:T});let ae=ge(Ho)*c;Gi(ae,T,F)},ea=c=>{G({message:`seek external, time: ${c}`}),ce.log("seek external",{time:c}),ci.next(ss.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-c:c)},Ps=c=>{let T=c.max??"none",F=c.min??"none";G({message:`set auto quality limitation. Max: ${T}. Min: ${F}`}),ce.log("set auto quality limits",{max:T,min:F}),L.setAutoQualityLimits(c)},ln=c=>{G({message:`seek external to episode start time: ${c}`}),ce.log("seek external to episode start time",{time:c}),Gi(c,ss.SeekAction.EPISODE,!0)},As=c=>{G({message:`set playback rate to: ${c}`}),ce.log("set playback rate external",{playbackRate:c}),L.setPlaybackRate(c)},tt=re(!1),Kt=re(!1),Co=ri([Ho],([c])=>!!v&&c>=ne.suitableDurationForUsingRichSeek&&ne.features.useRichSeek&&!S),dr=(v?.frameWidth||0)>=(v?.frameHeight||0),Ar=ri([gt],([c])=>{let T=Ul(c);return dr?!T:T});Ke.add(Me.subscribe(c=>{c!=="video"&&tt.set(!1)}));let _e=re(void 0),Mt=re(!1),ii=c=>{G({message:`start scrubbing, progress: ${c}`}),ce.log("start scrubbing",{progress:c}),Mt.set(!0),oi(c)},oi=c=>{_e.set(c)},ai,uo,Yi=()=>{_e.set(void 0),Mt.set(!1)},Io=()=>{clearTimeout(uo),clearTimeout(ai),ai=window.setTimeout(()=>{Yi()},500),Ae?.removeEventListener("seeked",Io)},ji=(c,T=!1)=>{G({message:`complete scrubbing, progress: ${c}`}),ce.log("complete scrubbing",{progress:c}),Es(c,ss.SeekAction.SLIDER,T),ge(Nt.ui.isMobile)&&ge(Nt.state.currentFormat$)===ti.VideoFormat.HLS?(Ae?.addEventListener("seeked",Io),uo=window.setTimeout(()=>{Io()},300)):Yi()},Ls=ri([lt,Ho,_e],([c,T,F],ae)=>{ae((0,ot.isNonNullable)(F)?F*T:c)}),cr=re(!1),id=()=>{cr.set(!0)},Ja=()=>{cr.set(!1)},Ms=ri([mi],([{width:c}],T)=>{let F=O_(c);T(F)}),ta=N.filter(c=>Uh(c)),ia=ri([Ms,Ve],([c,T])=>T?ta.filter(F=>!F.hideOnMobile):ta.filter(F=>!F.hideOnDesktopGridTypes?.includes(c))),Qo=re(N.filter(c=>zh(c))),el=ri([Qo,Ms],([c,T])=>c.filter(F=>!F.hideOnDesktopGridTypes?.includes(T))),oa=ri([el,ia],([c,T])=>[...ne.features.additionalButtonsDesktopControlPanelRight?c.filter(F=>F.type==="desktop-control-panel-right"):[],...ne.features.additionalButtons?T.map((F,ae)=>({id:ae,weight:ae,type:"desktop-control-panel-right",testId:F.testId,icon:F.iconUrl,onClick:F.onClick,ariaLabel:F.ariaLabel??F.tooltip,tooltipText:F.tooltip})):[]]),Lr=re(H),jr=ri([Lr],([c])=>ne.features.additionalSettingsMenuItems?c.map(T=>T.type==="SWITCH"?{...T,onClick:T.onChangeEnabled}:T):[]),Rs=(c,T)=>{let F=ge(Qo).map(ae=>ae.id!==c?ae:{...ae,...T});Qo.set(F)},na=c=>{let T=ge(Qo);if(T.some(F=>F.id===c.id)){G({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}T.push(c),Qo.set(T)},tl=c=>{let T=ge(Qo);if(!T.some(F=>F.id===c)){G({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}T=T.filter(F=>F.id!==c),Qo.set(T)},il=c=>{ci.next(ss.SeekAction.LIVE),G({message:"live switch to low latency "+c}),ce.log("live switch to low latency "+c),L.setLiveLowLatency(c)},od=(c,T)=>{let F=ge(Lr).map(ae=>ae.id!==c?ae:{...ae,...T});Lr.set(F)},ol=c=>{let T=ge(Lr);if(T.some(F=>F.id===c.id)){G({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}T.push(c),Lr.set(T)},nl=c=>{let T=ge(Lr);if(!T.some(F=>F.id===c)){G({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}T=T.filter(F=>F.id!==c),Lr.set(T)},ur=re(te),nd=ri([ur],([c])=>ne.features.additionalContextMenuItems?c:[]),ht=(c,T)=>{let F=ge(ur).map(ae=>ae.id!==c?ae:{...ae,...T});ur.set(F)},bt=c=>{let T=ge(ur);if(T.some(F=>F.id===c.id)){G({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}T.push(c),ur.set(T)},Go=c=>{let T=ge(ur);if(!T.some(F=>F.id===c)){G({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}T=T.filter(F=>F.id!==c),ur.set(T)},Mr=ri([Ve,X],([c,T],F)=>{F(c&&T)}),Xr=()=>{ci.next(ss.SeekAction.LIVE),G({message:"switch to active live"}),ce.log("switch to active live"),L.seekTime(0),L.info.playbackState$.getValue()!==ti.PlaybackState.PLAYING&&Nt.actions.internal.togglePlay()},ps=()=>{ce.log("skip adman"),he.skip()},Rr=(c=!0)=>{(0,ot.assertNonNullable)(Nt),G({message:`switch from ads to video, callPlay: ${c}`}),ce.log("switch from ads to video",{callPlay:c}),yt.set("video"),c&&L.play(),a&&Wn(!0,!0);let T=ge(Re)?.muted,F=!L.info.muted$.getValue();T!==void 0&&!F&&Wn(T,!0),Re.set(void 0)},ra=()=>{(0,ot.assertNonNullable)(Nt),G({message:"switch from video to ads"}),ce.log("switch from video to ads"),Nt.actions.internal.pause(),to(),yt.set("ads")},rl=c=>{(0,ot.assertNonNullable)(Nt);let T=c?"LiveWaitingStart":"thumb";ce.log("set live waiting start",{state:c,playerPhase:T}),yt.set(T)},xp=c=>{(0,ot.assertNonNullable)(Nt);let T=c?"LiveWaitingRecover":"thumb";ce.log("set live waiting recover",{state:c,playerPhase:T}),yt.set(T)},Dc=c=>{(0,ot.assertNonNullable)(Nt);let T=c?"LiveWaitingRecord":"thumb";ce.log("set live waiting record",{state:c,playerPhase:T}),yt.set(T)},wp=()=>((0,ot.assertNonNullable)(Nt),ce.log("get debug text data"),Bh(L,Y,Nt,Ne.getTraceId())),Oc=()=>((0,ot.assertNonNullable)(Nt),JSON.stringify(Ne.getFinishedSpans())),Bc=()=>((0,ot.assertNonNullable)(Nt),Hh(L,Y,Nt)),sa=()=>Ae,Sp=()=>{G({message:"toggle chromecast"}),ce.log("toggle chromecast"),L.toggleChromecast()},Vs=c=>{if((0,ot.assertNonNullable)(Nt),L.info.isEnded$.getValue())return;let T=!c;if(ge(Nt.playerPhase)==="ads"){G({message:`pause ads, internalCall: ${T}`}),ce.log("pause ads",{internalCall:T}),he.pause();return}G({message:`pause video, internalCall: ${T}`}),ce.log("pause video",{internalCall:T}),T&&l?.onPause?.(),L.pause()},sl=c=>{(0,ot.assertNonNullable)(Nt);let T=!c;if(ge(Nt.playerPhase)==="ads"){G({message:`play ads, internalCall: ${T}`}),ce.log("play ads",{internalCall:T}),he.play();return}G({message:`play video, internalCall: ${T}`}),ce.log("play video",{internalCall:T}),T&&l?.onPlay?.(),L.play()},Hc=c=>{(0,ot.assertNonNullable)(Nt);let T=!c;if(ge(Nt.playerPhase)==="ads"){G({message:"player cannot be stopped during ads via external method"});return}G({message:`player will be stopped, internalCall: ${T}`}),P?.()},Fc=(c,T)=>{(0,ot.assertNonNullable)(Nt),G({message:`first start, show ads: ${c}, internalCall: ${!T}`}),ce.log("first start",{showAds:c,external:T}),c?yt.set("ads"):(yt.set("video"),T?L.play():Nt.actions.internal.togglePlay())},al=()=>(G({message:"getting time codes"}),f),Uc=()=>{let c=al();if(!c||[0,1].includes(c.length))return;let T=L.info.position$.getValue();return c.find(F=>F.time>T)},Tp=c=>{let T=c;T||(T=Uc());let F=L.info.position$.getValue();ce.log("seek to next episode",{currentTime:F,...T}),T&&(G({message:"seek to next episode"}),Gi(T.time,ss.SeekAction.EPISODE,!0))},zc=()=>{let c=al();if(!c||[0,1].includes(c.length))return;let T=L.info.position$.getValue(),F=c.findIndex(qe=>qe.time>T),ae=F===-1?c.length-2:F-2;if(!(ae<0))return c[ae]},Be=c=>{let T=c;T||(T=zc());let F=L.info.position$.getValue();ce.log("seek to prev episode",{currentTime:F,...T}),T&&(G({message:"seek to prev episode"}),Gi(T.time,ss.SeekAction.EPISODE,!0))},ni=()=>(G({message:"getting preview thumbs data"}),ce.log("get preview thumbs data",{...v}),v),Tn=async()=>{let c=me?.isActive(),T="none";me?.isActive()?(T="exit",await me?.exit()):(T="request",await me?.request()),ce.log("toggle picture in picture",{isActive:c,action:T})},aa=(c=-90)=>{ce.log("rotate video",{alphaDiff:c}),gt.update(T=>T+c)},pr=re([]);I?.subscribe(c=>{let T=[];for(let F=0;F<c.length;F++){let{range:[ae,qe],subjects:it}=c[F];F===0&&ae!==0&&T.push({time:0,text:"",interactive:!1,completed:!0}),T.push({time:ae/1e3,text:"",interactive:!0,completed:ne.features.interactiveTimeOpenUri?!it.length||it.every(Tt=>Tt.isRemoved):!it.length}),qe!==1/0&&T.push({time:qe/1e3,text:"",interactive:!1,completed:!0})}pr.set(T)});let Hb=re(!1);C?.subscribe(c=>{c&&ge(Mt)&&Yi()});let Qv=c=>{if(!S)return c;let T=ge(pr),F=ge(Ho),qe=ge(bn)/F,it=T.find(Tt=>Tt.interactive&&!Tt.completed&&Tt.time>qe);return typeof it?.time=="number"?Math.min(c,it.time-.05):c},Fb=()=>{Nt.ui.episodes.panelOpened$.set(!1)},Ub=()=>{ce.log("destroy store"),clearTimeout(uo),clearTimeout(ai),Ke.unsubscribe(),ho.unsubscribe(),L.destroy(),he.destroy(),Q?.destroy(),le?.destroy(),$e.unsubscribe(),Vo?.disconnect(),Vo=null,Se.destroy()},zb=ri([Fo,Me,_o],([c,T,F])=>m.features.doubleForwardAvailable&&!c&&T==="video"&&F),Cp=re(!1),Gv=2,Wc=null,Yv=c=>{if(!ge($o)&&c)return;let T=L.info.currentPlaybackRate$.getValue();c?T!==Gv&&(Wc=T,qo(Gv,!1),Cp.set(!0)):(Wc&&qo(Wc,!1),Cp.set(!1),Wc=null)};Me.subscribe(c=>{c!=="video"&&Yv(!1)});let Wb=()=>{Vs(!1),tt.set(!0)},Kb=()=>{sl(!1),tt.set(!1)},Ip=!1,qb=()=>{Kt.set(!0),Ip=L.info.playbackState$.getValue()===ti.PlaybackState.PLAYING,Vs(!1)},Qb=()=>{Kt.set(!1),!ge(tt)&&Ip&&sl(!1),Ip=!1};L.events.playing$.subscribe(()=>{ge(tt)&&Vs(!1)});let Nt={interfaceLanguage$:oe,isCyrillicRelatedInterface$:at,initVideo:At,videoId:i,isClip:o,playerPhase:Me,vsid:He,state:{positionExact$:lt,positionWithScrubbing$:Ls,duration$:Ho,playbackState$:Xt,isPlaying$:$o,isLoaderVisible:Ai,bufferedProgress$:no,isLive$:Fi,canChangePlaybackSpeed$:_o,isActiveLive$:Fo,isOldestAvailableLive$:Dn,isRewindableLive$:$r,isEnded$:_t,muted$:io,volume$:bo,trafficSavingEnabled$:Si,highQualityEnabled$:tr,autoQualityLimitingAvailable$:Ui,availableVideoStreams$:Gr,availableAudioStreams$:or,videoStream$:zi,audioStream$:nr,currentQuality$:wr,isAutoQualityEnabled$:Bn,availableQualities$:sr,currentPlaybackRate$:yo,availablePlaybackRates$:Uo,currentSubtitle$:Ci,availableTextTracks$:wo,availableSubtitlesList$:yn,currentSubtitleCaptions$:pt,isAutoSubtitleCaptionVisible$:zt,chromecastState$:Oo,chromecastDeviceName$:Bo,chromecastConnected$:yr,currentFormat$:Vn,throughputEstimation$:ir,videoBitrate$:br,videoSize$:ls,errorLog$:be,crashed$:X,isAudioAvailable$:Qr,isAudioDisabled:!!a,canDownload:ne.features.download&&!!d,availableSources$:Wt,hasMpegSources$:xn,isInteractive:S,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!ge(pr).length,interactiveEpisodes$:pr,isInteractiveTime$:C?jt(C):re(!1),isInteractiveExpectation$:Hb,hasInteractiveBranches:R,playPrevChapterDisabledTooltip:U,looped$:lr,loadedMetadata$:Ft,isAutoQualityAvailable$:nn,previewTrackActive:tt,previewTrackDragInProgress:Kt},ui:{t:nt,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:N.length?N.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:vt},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:kt,isFullscreenOpenedByKeyboard:je,rotateAlpha:gt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:mi,isMobile:Ve,mobileNotReportControlHidden$:Mr,icon3DVideoVisible:re(!1),scrubbingInProgress:Mt,volumeChangingInProgress:cr,is3DVideo:Pt,currentGridType$:Ms,additionalButtonsDeprecated$:ia,additionalDesktopControlPanelRightButtons$:oa,additionalSettingsMenuItems$:jr,additionalContextMenuItems$:nd,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:To,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0),doubleForwardOn$:Cp,doubleForwardAvailable$:zb,previewTrackNotificationVisible:re(!1),previewTrackActive:tt,previewTrackDragInProgress:Kt,previewTrackAvailable:Co,isPreviewTrackHorizontallyAligned:Ar},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:me,annotationsApi:De,slotsApi:Le},actions:{internal:{preload:Ko,firstStart:c=>Fc(c,!1),play:()=>sl(!1),pause:()=>Vs(!1),togglePlay:an,toggleMuted:ds,openSettingsMenu:Ir,closeSettingsMenu:Cr,openSettingsSubMenu:cs,closeSettingsSubMenu:bi,setVolume:c=>ar(c,!1),setMuted:c=>Wn(c,!1),startVolumeChanging:id,stopVolumeChanging:Ja,setVideoStream:On,setAudioStream:c=>on(c,!1),setQuality:(c,T)=>so(c,T,!1),setTrafficSavingEnabled:(c,T)=>Mi(c,T,!1),setHighQualityEnabled:(c,T)=>Ri(c,T,!1),setPlaybackRate:qo,incrementPlaybackRate:Yr,decrementPlaybackRate:us,setSubtitle:c=>Er(c,!1),toggleSubtitle:()=>Ge(!1),togglePictureInPicture:Tn,startScrubbing:ii,progressScrubbing:oi,completeScrubbing:ji,toggleChromecast:Sp,switchToActiveLive:Xr,switchFromAdsToVideo:Rr,switchFromVideoToAds:ra,skipAd:ps,setLiveWaitingStart:rl,setLiveWaitingRecover:xp,setLiveWaitingRecord:Dc,getDebugTextData:wp,getTraceTextData:Oc,getDebugPanelData:Bc,getVideoElement:sa,seekTime:(c,T,F)=>Gi(c,T,F),clearDelayedBufferingCheckTimeout:Nn,seekEpisodeStartTime:Sn,seekToPercent:Es,getNextEpisode:Uc,seekToNextEpisode:Tp,getPrevEpisode:zc,seekToPrevEpisode:Be,startLogging:Mn,stopLogging:Rn,startCameraManualRotation:xt,stopCameraManualRotation:Bt,moveCameraFocusPX:q,holdCamera:Rt,releaseCamera:Qt,getVideoEpisodes:al,getPreviewThumbsData:ni,downloadVideo:rn,addLanguage:Df,setLanguage:ye,nextMovie:di,videoRotate:aa,correctSeekTimeToInteractive:Qv,replayInteractive:V,setLooped:sn,reportProblem:Wo,setAutoplayNextEnabled:kr,setTimerNextVideoRunning:Ze,prevVideoClick:It,nextVideoClick:Gt,nextVideoAnnouncementShow:qi,nextVideoAnnouncementClick:Li,nextVideoAnnouncementAuto:co,nextVideoAnnouncementCancel:ro,checkFullscreenSupport:Et,changeDoubleForwardOn:Yv,closePreviewTrack:Kb,previewTrackOpened:Wb,previewTrackDragStarted:qb,previewTrackDragFinished:Qb},external:{firstStart:c=>Fc(c,!0),play:()=>sl(!0),pause:()=>Vs(!0),stop:()=>Hc(!0),seekTime:c=>ea(c),seekEpisodeStartTime:c=>ln(c),setPlaybackRate:c=>As(c),setAutoQualityLimits:c=>Ps(c),setMuted:c=>Wn(c,!0),toggleSubtitle:()=>Ge(!0),changeSubtitle:Ht,setVolume:c=>ar(c,!0),returnFocusToEpisodes:Fb,updateAdditionalSettingsItem:od,addAdditionalSettingsItem:ol,removeAdditionalSettingsItem:nl,updateAdditionalContextItem:ht,addAdditionalContextItem:bt,removeAdditionalContextItem:Go,updateAdditionalButton:Rs,addAdditionalButton:na,removeAdditionalButton:tl,setLiveLowLatency:il,hideControls:()=>Pr(!1),showControls:()=>Pr(!0),setQuality:c=>so(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Mi(c,"to-video",!0),setHighQualityEnabled:c=>Ri(c,"to-video",!0),changeAudioStream:xr}},callbacks:l,setUiCallbacks:c=>{Ue={...c}},getAdmanWrapper:()=>he,getLogger:()=>Fe,getPlayer:()=>L,destroy:Ub};return Nt};function An(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:d,bottom:l,right:p}=Ss(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?a:0,bottom:s?l:0,isDisplayed:s}}var lx=["disabledControls$","additionalButtons"],dx=["interactiveTimeIndicator"],Wl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!lx.includes(r)){let a=o||dx.includes(r);s.set(An(t,i,r,a))}}};var Xu=async(t,e,i)=>{await eo(),e&&i&&(i.focus(),t.set(!1))};var cx=xe('<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 Cm(t){Ye(t,{children:(e,i)=>{var o=cx();h(e,o)},$$slots:{default:!0}})}function Im(t,e){O(e,!0);let[i,o]=Ee(),r=()=>_(l,"$contextMenuVisible$",i),s=g(e,"disabled",3,!1),a=g(e,"ariaLabel",3,""),d=ve(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,m=d.ui.contextMenu.btnRef$,b=z(void 0);Pe(()=>{n(b)&&$t(()=>{m.set(n(b))})});let y=C=>{let V=Qs(C),P=k_(n(b));v.set(P),p.set(V),l.set(!r())},x=()=>{f.set(!0)},S=()=>{f.set(!1)},I=u(()=>r()?"opened":"");Vt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:y,focus:x,blur:S,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(C){M(b,C,!0)},children:(C,V)=>{Cm(C,{})},$$slots:{default:!0}}),B(),o()}var ux=t=>{t.stopPropagation()},px=E("<div><!> <div></div> <div></div></div>"),fx={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 ac(t,e){O(e,!0),W(t,fx);let[i,o]=Ee(),r=()=>_(S,"$isMobile",i),s=()=>_(P,"$areControlsVisible",i),a=()=>_(U,"$currentGridType$",i),d=()=>_(C,"$isInteractiveTime$",i),l=()=>_(x,"$interactiveControlsOpacity$",i),p=()=>_(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>_(I,"$isFullscreen",i),v=g(e,"ref",15,void 0),m=z(void 0),b=ve(),y=lo(),{interactiveControlsOpacity$:x}=y,S=b.ui.isMobile,I=b.ui.isFullscreen,C=b.state.isInteractiveTime$,V=y.showInteractiveTimeIndicatorTooltip$,P=b.ui.controlsVisible,R=b.callbacks?.onInteractiveTimeIndicatorClick,U=b.ui.currentGridType$,N=u(()=>!r()&&s()),H=u(()=>ws(a(),"s")),te=u(()=>!d()||!!l()||n(N)),ie=z(!1);Pe(()=>{M(ie,n(te),!0)});let de=()=>{M(ie,!0)},Z=()=>{J(),n(m)?.addEventListener("animationiteration",de,{once:!0})},J=()=>{M(ie,!1),n(m)?.removeEventListener("animationiteration",de)},Q=le=>{V.set(le)},Te=u(()=>p()&&!n(te));Pe(()=>{p()?Z():J()});let fe=()=>{n(te)||(V.set(!0),R?.())};Zo(()=>{V.clearTimeout(),J()});let pe=()=>{V.set(!1)},ke=K("tooltip_interactive_interaction_time_indicator");var we=px();let ne;we.__mousemove=[ux],we.__click=fe;var Ne=w(we);vo(Ne,{get tooltipContent(){return ke},get tooltipVisible(){return n(Te)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Q,get ref(){return v()},set ref(le){v(le)},children:(le,me)=>{Zd(le,{completed:!0})},$$slots:{default:!0}});var ce=k(Ne,2);let L;Je(ce,le=>v(le),()=>v());var Fe=k(ce,2);let he;Je(Fe,le=>M(m,le),()=>n(m)),$(we),D((le,me,De)=>{ne=ee(we,1,"interactive-episode-icon-animated s-26",null,ne,le),L=ee(ce,1,"ref-block s-26",null,L,me),he=ee(Fe,1,"pulse s-26",null,he,De)},[()=>({mobile:r(),fullscreen:f(),invisible:n(te),"icon-small":n(H)}),()=>({hidden:n(te)}),()=>({paused:n(ie)})]),ut("mouseleave",we,pe),h(t,we),B(),o()}et(["mousemove","click"]);function Zu(t,e){O(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),s=g(e,"ref",15),a=g(e,"tooltipVisible",3,!1);vo(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 a()},get className(){return r()},get ref(){return s()},set ref(d){s(d)},children:(d,l)=>{var p=Ie();let f=u(()=>e.buttonComponent);var v=se(p);xi(v,()=>n(f),(m,b)=>{b(m,$s(()=>e.buttonComponentProps??{}))}),h(d,p)},$$slots:{default:!0}}),B()}var Ts={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var vx=xe('<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 Zs(t,e){O(e,!0);let i=g(e,"reversed",3,!1),o=u(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=u(()=>`${Jo(e.size)}${n(o)}`),s=u(()=>i()?"prev-icon":"next-icon");Ye(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(s)},children:(a,d)=>{var l=vx();h(a,l)},$$slots:{default:!0}}),B()}var gx=E('<div class="icon-background-mobile s-1y"><!></div>'),hx={hash:"s-1y",code:".icon-background-mobile.s-1y{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 Ba(t,e){O(e,!0),W(t,hx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=ve().ui.t,d=u(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),l=u(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),p=u(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return n(p)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(l)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var m=Ie(),b=se(m);{var y=S=>{var I=gx(),C=w(I);let V=u(()=>e.type==="prev");Zs(C,{get size(){return"32"},get reversed(){return n(V)}}),$(I),h(S,I)},x=S=>{let I=u(()=>e.type==="prev");Zs(S,{get size(){return"24"},get reversed(){return n(I)}})};A(b,S=>{o()?S(y):S(x,!1)})}h(f,m)},$$slots:{default:!0}}),B()}var _x=xe('<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 lc(t,e){O(e,!0);let i=u(()=>Jo(e.size));Ye(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",children:(o,r)=>{var s=_x();h(o,s)},$$slots:{default:!0}}),B()}var X_=require("@vkontakte/videoplayer-shared");var bx=E('<div class="icon-background-mobile s-21"></div>'),$x=E("<!> <div><!></div>",1),yx={hash:"s-21",code:".mobile.s-21{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-21{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 Kl(t,e){O(e,!0),W(t,yx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),s=g(e,"className",3,""),a=g(e,"click",3,X_.noop),d=K("tooltip_restart"),l=u(()=>`${o()?"btn-m--play":""} ${s()}`);Vt(t,{get className(){return n(l)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return ns.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=$x(),m=se(v);{var b=C=>{var V=bx();h(C,V)};A(m,C=>{o()&&C(b)})}var y=k(m,2);let x;var S=w(y);let I=u(()=>o()?"48":"24");lc(S,{get size(){return n(I)}}),$(y),D(C=>x=ee(y,1,"s-21",null,x,C),[()=>({mobile:o()})]),h(p,v)},$$slots:{default:!0}}),B()}var xx=xe('<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 Cs(t,e){O(e,!0);let i=u(()=>Jo(e.size));Ye(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",children:(o,r)=>{var s=xx();h(o,s)},$$slots:{default:!0}}),B()}var Z_=require("@vkontakte/videoplayer-shared");var wx=E('<div class="icon-background-mobile s-1z"><!></div>'),Sx={hash:"s-1z",code:".icon-background-mobile.s-1z{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 ql(t,e){O(e,!0),W(t,Sx);let[i,o]=Ee(),r=()=>_(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=lo(),a=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),l=g(e,"isPlaying",3,!1),p=g(e,"disabled",3,!1),f=g(e,"className",3,""),v=g(e,"click",3,Z_.noop),b=ve().ui.t,{toggle:y}=s,x=u(()=>y),S=u(()=>r()!==null),I=u(()=>n(S)?r():l()),C=u(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),V=u(()=>n(I)?Cs:gn),P=u(()=>`${d()?"btn-m--play":""} ${f()}`),R=u(()=>n(S)?n(x):v());Vt(t,{get className(){return n(P)},testId:"btn-play",get click(){return n(R)},get disabled(){return p()},get ariaLabel(){return n(C)},get ariaKeyShortCut(){return ns.KeyK},get ref(){return a()},set ref(U){a(U)},children:(U,N)=>{var H=Ie();let te=u(()=>n(V));var ie=se(H);{var de=J=>{var Q=wx(),Te=w(Q);xi(Te,()=>n(te),(fe,pe)=>{pe(fe,{get size(){return"48"}})}),$(Q),h(J,Q)},Z=J=>{var Q=Ie(),Te=se(Q);xi(Te,()=>n(te),(fe,pe)=>{pe(fe,{get size(){return"24"}})}),h(J,Q)};A(ie,J=>{d()?J(de):J(Z,!1)})}h(U,H)},$$slots:{default:!0}}),B(),o()}var Tx=xe('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function km(t){Ye(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=Tx();h(e,o)},$$slots:{default:!0}})}function dc(t,e){O(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=K("tooltip_interactive_go_back"),a=u(()=>o()?"hidden":"");Vt(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{km(d,{})},$$slots:{default:!0}}),B()}var Cx=E('<span class="gutter s-25"><span><!></span></span>'),Ix={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 cc(t,e){O(e,!0),W(t,Ix);let[i,o]=Ee(),r=()=>_(l,"$autoplayNextEnabled$",i),s=g(e,"ref",15,void 0),a=ve(),d=a.ui.t,l=a.ui.autoplayNextEnabled$,p=a.actions.internal.setAutoplayNextEnabled,f=()=>{p(!r(),!0)},v=d("aria_label_autoplay"),m="16",b="#000",y=u(()=>r()?"true":"false");Vt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(y)},get ref(){return s()},set ref(x){s(x)},children:(x,S)=>{var I=Cx(),C=w(I);let V;var P=w(C);{var R=N=>{gn(N,{get size(){return m},fill:b})},U=N=>{Cs(N,{get size(){return m},fill:b})};A(P,N=>{r()?N(R):N(U,!1)})}$(C),$(I),D(N=>V=ee(C,1,"toggler s-25",null,V,N),[()=>({enabled:r()})]),h(x,I)},$$slots:{default:!0}}),B(),o()}var kx=xe('<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 Em(t){Ye(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=kx();Jt(),h(e,o)},$$slots:{default:!0}})}function uc(t,e){O(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=K("tooltip_interactive_seek"),a=u(()=>o()?"hidden":"");Vt(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Em(d,{})},$$slots:{default:!0}}),B()}var Ex=xe('<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>'),Px=xe('<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 Pm(t,e){let i=g(e,"isOpened",3,!1),o=u(()=>i()?"graph-close-icon":"graph-open-icon");Ye(t,{get testId(){return n(o)},children:(r,s)=>{var a=Px(),d=k(se(a));{var l=p=>{var f=Ex();h(p,f)};A(d,p=>{i()&&p(l)})}h(r,a)},$$slots:{default:!0}})}function pc(t,e){O(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=g(e,"graphIsOpened",3,!1),d=ve().ui.t,l=u(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=u(()=>o()?"hidden":"");Vt(t,{get className(){return n(p)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let m=u(()=>!!s());Pm(f,{get isOpened(){return n(m)}})},$$slots:{default:!0}}),B()}var Am=require("@vkontakte/videoplayer-core");function fc(t,e){O(e,!0);let[i,o]=Ee(),r=()=>_(p,"$playbackState$",i),s=g(e,"isMobile",3,!1),a=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),l=ve(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,v=l.actions.internal.togglePlay,m=u(()=>()=>{if(!a()){f();return}r()===Am.PlaybackState.PAUSED&&v()}),b=u(()=>s()?"":"btn--live btn-full-opacity"),y=u(()=>a()?"btn-live":"btn-live-offset"),x=u(()=>a()&&r()===Am.PlaybackState.PLAYING);Vt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(x)},get ariaLabel(){return d()},get click(){return n(m)},children:(S,I)=>{Hd(S,{get isActive(){return a()}})},$$slots:{default:!0}}),B(),o()}var Lm=require("@vkontakte/videoplayer-shared");var Ax=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Lx=E('<img class="icon" aria-hidden="true"/>');function Ha(t,e){"use strict";let i=z(!1),o=()=>{M(i,!0)};var r=Ie(),s=se(r);{var a=l=>{var p=Ax();h(l,p)},d=l=>{var p=Lx();D(()=>Oe(p,"src",e.icon)),ut("error",p,o),ba(p),h(l,p)};A(s,l=>{n(i)?l(a):l(d,!1)})}h(t,r)}function Mm(t,e){O(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Lm.noop),r=g(e,"ref",15),s=u(()=>o()===Lm.noop),a=u(()=>n(s)||i()),d=u(()=>n(s)?"btn-full-opacity":"");vo(t,{get disabled(){return n(a)},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(l){r(l)},children:(l,p)=>{let f=u(()=>e.testId??e.id);Vt(l,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(f)},children:(v,m)=>{Ha(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),B()}var J_=t=>!!t.buttonComponent;var Is={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ju=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(An(t,i,r,o))};var ep=require("@vkontakte/videoplayer-shared"),eb=10,tb=40,Rm=.2,Rx=.5,Vx=65,Nx=114,Dx=4,ib=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=u(()=>i?Vx:Nx),r=z(!1),s=z(0),a=z(0),d=u(()=>n(o)+eb-tb-Dx),l=u(()=>(0,ep.interpolate)(n(s),[Rm,1],[0,-n(d)])),p=u(()=>(0,ep.interpolate)(n(s),[Rm,1],[0,tb])),f=u(()=>(0,ep.interpolate)(n(s),[Rm,1],[0,n(o)+eb]));return{progressBarY:()=>n(l),controlsY:()=>n(p),calculatedHeight:()=>n(f),onPointerDown:x=>{M(a,e()?.getBoundingClientRect().bottom||0,!0),M(r,!0)},onPointerMove:x=>{if(!n(r))return;let S=Math.max(Math.min(x.clientY-n(a),0),-n(d));M(s,Math.abs(S/n(d)),!0)},onPointerUp:()=>{M(r,!1),M(s,n(s)>=Rx?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{M(s,0)}}};var Ox=t=>t;function as(t,{delay:e=0,duration:i=400,easing:o=Ox}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var Bx=E('<span class="root s-2b"> </span>'),Hx={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 Vm(t,e){W(t,Hx);var i=Bx(),o=w(i,!0);$(i),D(()=>ue(o,e.time)),h(t,i)}var Fx=E('<div class="tooltip-wrapper s-j"><div><!></div></div>'),Ux={hash:"s-j",code:'.tooltip-wrapper.s-j{display:block;position:relative}.tooltip.s-j{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-j: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-j{opacity:1;visibility:visible}'};function Nm(t,e){W(t,Ux);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),s=g(e,"translateYPx",3,0),a=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),l=z(void 0),p=z(void 0);function f(S){if(!n(p))return 0;let{width:I}=n(p).getBoundingClientRect(),C=I/2;return S<C?C+a():S>e.containerWidth-C?e.containerWidth-C-d():S}let v=u(()=>f(r()));var m=Fx(),b=w(m);let y;var x=w(b);qt(x,()=>e.children??ct),$(b),Je(b,S=>M(p,S),()=>n(p)),$(m),Je(m,S=>M(l,S),()=>n(l)),D(S=>{ze(m,`transform: translate(${n(v)}px, ${s()}px);`),y=ee(b,1,"tooltip s-j",null,y,S),ze(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),h(t,m)}var ob=t=>Math.abs(t)/90%4===1;var zx=E('<div class="preview s-i"></div>'),Wx=E('<div class="time s-i"> </div>'),Kx=E('<div><!> <div class="episode s-i"><!></div> <!></div>'),qx={hash:"s-i",code:".timeline-preview.s-i{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-i{bottom:72px}.preview.s-i{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-i{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-i,.time.s-i{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-i{color:var(--white)}"};function Dm(t,e){O(e,!0),W(t,qx);let[i,o]=Ee(),r=()=>_(y,"$rotateAlpha",i),s=()=>_(x,"$playerSize",i),a={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),l=g(e,"isMobile",3,!1),p=g(e,"videoEpisodes",19,()=>[]),f=g(e,"progress",3,0),v=g(e,"duration",3,0),m=g(e,"isInteractive",3,!1),b=ve(),y=b.ui.rotateAlpha,x=b.ui.playerSize,S=z(0),I=z(0),C=z(""),V=z(0),P=z(0),R=z(0),U=z(0),N=u(()=>Wu(f(),v(),p())),H=u(()=>Ul(r())),te=u(()=>ob(r())),ie=u(J),de=u(()=>(n(te)?1:-1)*(n(S)/2-n(I)/2)),Z=u(()=>n(de)*-1);Pe(()=>{(le=>{M(S,le.width,!0),M(I,le.height,!0)})(Te())}),Pe(()=>{(le=>{M(C,le.imgSrc,!0),M(V,le.imgWidth,!0),M(P,le.imgHeight,!0),M(R,le.imgOffsetX,!0),M(U,le.imgOffsetY,!0)})(fe(f()))});function J(){let le=l()?a.MOBILE:a.DESKTOP,{isVertical:me}=Q(),De=30;return n(N)?.text&&(De+=16),(me||n(H))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),le)}function Q(){let le=e.previewThumbsData.frameWidth,me=e.previewThumbsData.frameHeight,De=me>le;return{width:le,height:me,isHorizontal:!De,isVertical:De}}function Te(){let{height:le,isHorizontal:me,isVertical:De,width:Le}=Q();return me&&(le=le/Le*n(ie),Le=n(ie)),De&&(Le=Le/le*n(ie),le=n(ie)),{width:Le,height:le}}function fe(le){let me;e.previewThumbsData.isUV?me=Math.floor(v()*le/e.previewThumbsData.frequency):me=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*le)));let De=Math.floor(me/e.previewThumbsData.countPerImage),Le=Math.floor(me%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),G=me%e.previewThumbsData.countPerRow,Y=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Y=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Y++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ue=n(S)*Ae,Se=n(I)*Y,Ke=-G*n(S),Qe=-Le*n(I);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ue,imgHeight:Se,imgOffsetX:Ke,imgOffsetY:Qe}}var pe=Kx();let ke;var we=w(pe);{var ne=le=>{var me=zx();D(()=>ze(me,`width: ${n(S)}px; height: ${n(I)}px; background-image: url(${n(C)}); background-size: ${n(V)}px ${n(P)}px; background-position: ${n(R)}px ${n(U)}px;
|
|
61
|
-
|
|
62
|
-
`)),h(le,me)};A(we,le=>{n(C)&&le(ne)})}var Ne=k(we,2),ce=w(Ne);{var L=le=>{var me=Ie(),De=se(me);{var Le=Y=>{var Ae=os();D(Ue=>ue(Ae,Ue),[()=>K("tooltip_episode_unfinished")]),h(Y,Ae)},G=Y=>{var Ae=os();D(()=>ue(Ae,n(N).text||"")),h(Y,Ae)};A(De,Y=>{m()&&n(N).completed===!1?Y(Le):Y(G,!1)})}h(le,me)};A(ce,le=>{n(N)&&le(L)})}$(Ne);var Fe=k(Ne,2);{var he=le=>{var me=Wx(),De=w(me,!0);$(me),D(()=>ue(De,d())),h(le,me)};A(Fe,le=>{m()||le(he)})}$(pe),D(le=>{ke=ee(pe,1,"timeline-preview s-i",null,ke,le),ze(pe,`width: ${n(H)?n(I):n(S)}px;`)},[()=>({mobile:l()})]),h(t,pe),B(),o()}var Qx=E('<span class="time s-f"> </span>'),Gx=E("<!> <!>",1),Yx={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 Om(t,e){O(e,!0),W(t,Yx);let[i,o]=Ee(),r=()=>_(Z,"$interactiveEpisodes$",i),s=()=>_(U,"$duration$",i),a=()=>_(R,"$position$",i),d=()=>_(Te,"$isInteractiveExpectation$",i),l=()=>_(Q,"$isInteractiveTime$",i),p=()=>_(we,"$previewTrackActive",i),f=()=>_(N,"$isLive$",i),v=()=>_(ke,"$disabledControls$",i),m=()=>_(te,"$isMobile",i),b=()=>_(H,"$isActiveLive$",i),y=()=>_(P,"$bufferedProgress$",i),x=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),C=ve(),V=wt(),P=C.state.bufferedProgress$,R=C.state.positionWithScrubbing$,U=C.state.duration$,N=C.state.isLive$,H=C.state.isActiveLive$,te=C.ui.isMobile,ie=V.features.episodes&&S()?C.actions.internal.getVideoEpisodes():void 0,de=C.actions.internal.getPreviewThumbsData(),Z=C.state.interactiveEpisodes$,J=C.state.isInteractive,Q=C.state.isInteractiveTime$,Te=C.state.isInteractiveExpectation$,fe=C.actions.internal.correctSeekTimeToInteractive,pe=C.callbacks?.onDisabledTimelineClick,ke=C.ui.controls.disabledControls$,we=C.ui.previewTrackActive,ne=C.callbacks?.uiInfo?.onTimelineMouseEnter,Ne=C.callbacks?.uiInfo?.onTimelineMouseLeave,ce=C.ui.t,L=V.features.interactiveResponsiveUi,Fe=u(()=>J?r():ie),he=u(()=>Mo(s())),le=u(()=>Mo(a())),me=u(()=>a()/s()),De=u(()=>d()||l()),Le=z(!1),G=z(""),Y=z(0),Ae=z(0),Ue=z(0),Se=u(()=>({containerWidth:n(Ae),translateXPx:n(Y),translateYPx:J&&de?-36:-16,active:n(Le)&&x()&&!n(De)&&!L&&!p(),pointer:!V.features.timelinePreview||!de||f()})),Ke=ce("aria_timeline"),Qe=u(()=>ce("aria_timeline_value",{position:n(le),duration:n(he)}));function Ve(oe){return!fe||!J?oe:fe(oe*s())/s()}function He(oe,rt){e.onSliderPointerDown?.(rt),C.actions.internal.startScrubbing(Ve(oe))}function kt(oe){l()||C.actions.internal.progressScrubbing(Ve(oe))}function je(oe){C.actions.internal.completeScrubbing(Ve(oe)),M(Le,!1),e.onSliderPointerUp?.()}function Et(oe,rt,at){e.onSliderPointerEnter?.(oe),Ft(oe,rt,at),M(Le,!0)}function Dt(oe,rt,at,nt){e.onSliderMove?.(nt,oe),Ft(oe,rt,at),M(Le,!0)}function gt(){M(Le,!1),e.onSliderLeave?.()}function Ft(oe,rt,at){M(Ue,Ve(oe),!0),M(Y,rt,!0),at&&M(Ae,at,!0),M(G,Pt(oe),!0)}function Pt(oe){let rt=Mo((f()?1-oe:oe)*s());return f()?`-${rt}`:rt}let be=u(()=>v().has("TIMELINE"));var $e=Gx(),X=se($e);Nm(X,$s(()=>n(Se),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(oe,rt)=>{var at=Ie(),nt=se(at);{var yt=Re=>{Dm(Re,{get time(){return n(G)},get isMobile(){return m()},get videoEpisodes(){return n(Fe)},get previewThumbsData(){return de},get progress(){return n(Ue)},get duration(){return s()},get isInteractive(){return J}})},Me=Re=>{var st=Qx(),vt=w(st,!0);$(st),D(()=>ue(vt,n(G))),h(Re,st)};A(nt,Re=>{V.features.timelinePreview&&de&&!f()?Re(yt):Re(Me,!1)})}h(oe,at)},$$slots:{default:!0}}));var ye=k(X,2);Da(ye,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return m()},get ariaLabel(){return Ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(Qe)},get loadedProgress(){return y()},get filledProgress(){return n(me)},get handleProgress(){return n(me)},get videoEpisodes(){return n(Fe)},onPointerDown:He,onHandleMove:kt,onPointerMove:Dt,onPointerUp:je,onPointerEnter:Et,onPointerLeave:gt,get onMouseEnter(){return ne},get onMouseLeave(){return Ne},get onDisabledClick(){return pe},get isInteractive(){return J},get disabled(){return n(be)},get handleAlwaysVisible(){return p()},get hideHandel(){return l()},testId:"progress_bar",onContextMenu:je,get ref(){return I()},set ref(oe){I(oe)}}),h(t,$e),B(),o()}var jx={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 mc(t,e){O(e,!0),W(t,jx);let[i,o]=Ee(),r=()=>_(l,"$isMobile",i),s=g(e,"position",3,0),a=g(e,"duration",3,0),d=ve(),l=d.ui.isMobile,p=d.ui.t,f=u(()=>Mo(a())),v=u(()=>Mo(s())),m=u(()=>s()/a()),b=u(()=>p("aria_timeline_value",{position:n(v),duration:n(f)})),y=u(()=>Math.round(n(m)*100));Da(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(b)},get filledProgress(){return n(m)},hideHandel:!0,get squareBorders(){return r()}}),B(),o()}var Xx=E("<div><!></div>"),Zx=E("<div></div>"),Jx={hash:"s-b",code:".timeline.s-b{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-b{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-b{padding:0}.timeline-stub.s-b{min-width:20px;width:100%}.timeline-stub.mobile.s-b{height:8px}"};function Fa(t,e){O(e,!0),W(t,Jx);let[i,o]=Ee(),r=()=>_(S,"$isLive$",i),s=()=>_(V,"$isMobile",i),a=()=>_(P,"$disabled",i),d=()=>_(C,"$adPosition",i),l=()=>_(I,"$adDuration",i),p=g(e,"isAds",3,!1),f=g(e,"isHidden",3,!1),v=g(e,"timelineNotAvailable",3,!1),m=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=ve(),x=wt(),S=y.state.isLive$,I=y.ads.duration,C=y.ads.position,V=y.ui.isMobile,P=re(!1),R=u(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||p()));var U=Ie(),N=se(U);{var H=ie=>{var de=Xx();let Z;var J=w(de);{var Q=fe=>{mc(fe,{get position(){return d()},get duration(){return l()}})},Te=fe=>{Om(fe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(R)},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(pe){b(pe)}})};A(J,fe=>{p()?fe(Q):fe(Te,!1)})}$(de),bs(de,()=>Ml(f()&&x.features.usePerformanceFix,P,x.disableInvisibleComponentsTimeout)),D(fe=>Z=ee(de,1,"timeline s-b",null,Z,fe),[()=>({withoutPadding:!m(),mobile:s(),"out-of-flow":a()})]),h(ie,de)},te=ie=>{var de=Zx();let Z;D(J=>Z=ee(de,1,"timeline-stub s-b",null,Z,J),[()=>({mobile:s()})]),h(ie,de)};A(N,ie=>{n(R)?ie(H):ie(te,!1)})}h(t,U),B(),o()}var nb=require("@vkontakte/videoplayer-shared");var ew=(t,e,i,o,r,s,a)=>{M(e,!0),M(i,t.clientX,!0),M(o,n(r),!0),s(a())},tw=E("<div></div>"),iw=E('<div><div class="track s-2d"></div></div>'),ow={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 Hm(t,e){O(e,!0),W(t,ow);let[i,o]=Ee(),r=()=>_(V,"$rotateAlpha",i),s=()=>_(x,"$position$",i),a=()=>_(y,"$duration$",i),d=ve(),{countPerImage:l=0,countPerRow:p=0,countTotal:f=0,links:v=[],frameHeight:m=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:x}=d.state,{startScrubbing:S,progressScrubbing:I,completeScrubbing:C}=d.actions.internal,V=d.ui.rotateAlpha,P=z(void 0),R=z(!1),U=z(0),N=z(0),H=z(0),te=z(0),ie=u(()=>m<=b),de=u(()=>Ul(r())),Z=u(()=>n(ie)?!n(de):n(de)),J=114,Q=65,Te=3,fe=u(()=>n(Z)?J:Q),pe=u(()=>n(ie)?J:Q),ke=u(()=>n(ie)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=u(()=>f*n(fe)),ne=z(0);Pe(()=>{M(te,Math.ceil(-n(H)/n(fe))-1),M(H,-n(we)*s()/a())});let Ne=()=>{C(ce(),!0)},ce=()=>a()*-n(H)/n(we)/a(),L=!1,Fe=Qe=>{if(!n(R))return!1;let Ve=Qe.clientX-n(U);M(H,n(N)+Ve),M(H,Math.max(Math.min(n(H),0),-n(we)),!0),Math.abs(Ve)>1&&(L=!0),I(ce())},he=Qe=>{n(R)&&(M(R,!1),!L&&Qe&&M(H,-(Qe.offsetX-n(ne)/2)),L=!1,Ne())},le=()=>{n(R)&&he()},me=u(()=>l/p),De=(Qe,Ve)=>{if(Qe!==v.length-1)return p;let He=0,kt=Ve*p;for(let je=1;je<=p;je++)Qe*l+He+kt<f&&He++;return He},Le=u(()=>Math.floor(n(te)/l)),G=u(()=>(0,nb.getRangeAroundIndex)(3,n(Le),v.length-1)),Y=(Qe,Ve,He)=>{let kt=l*n(fe);return Qe*kt+Ve*n(fe)*p+n(ne)/2-Te/2+He*n(fe)},Ae=u(()=>[`--row-numbers: ${n(me)}`,`--column-numbers: ${p}`,`--frame-width: ${n(pe)}px`,`--frame-height: ${n(ke)}`].join(";"));var Ue=iw();let Se;var Ke=w(Ue);Ke.__pointerdown=[ew,R,U,N,H,S,ce],Ke.__pointermove=Fe,Ke.__pointerup=he,ui(Ke,20,()=>n(G),Qe=>Qe,(Qe,Ve)=>{var He=Ie(),kt=se(He);ui(kt,16,()=>Array.from({length:n(me)},(je,Et)=>Et),je=>je,(je,Et)=>{var Dt=Ie(),gt=se(Dt);ui(gt,16,()=>Array.from({length:De(Ve,Et)},(Ft,Pt)=>Pt),Ft=>Ft,(Ft,Pt)=>{var be=tw();D(($e,X)=>{ze(be,$e),ee(be,1,X,"s-2d")},[()=>`--row-index: ${Et}; --column-index: ${Pt}; left: ${Y(Ve,Et,Pt)}px; background-image: url(${v[Ve]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),h(Ft,be)}),h(je,Dt)}),h(Qe,He)}),$(Ke),$(Ue),Je(Ue,Qe=>M(P,Qe),()=>n(P)),D(Qe=>{Se=ee(Ue,1,"root s-2d",null,Se,Qe),ze(Ue,n(Ae)),ze(Ke,`transform: translateX(${n(H)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(ie),"vertically-rotated":n(de)})]),ut("mouseleave",Ke,le),mn(Ue,"clientWidth",Qe=>M(ne,Qe)),h(t,Ue),B(),o()}et(["pointerdown","pointermove","pointerup"]);var nw=E('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),rw={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 Fm(t,e){O(e,!1),W(t,rw);let i=340,{ui:{t:o}}=ve();ao();var r=nw(),s=w(r),a=w(s,!0);$(s),$(r),D(d=>ue(a,d),[()=>o("preview_track_close_tooltip")],dn),Fr(3,r,()=>as,()=>({duration:i})),h(t,r),B()}var rb=require("@vkontakte/videoplayer-shared"),sw=E('<div class="preview-track-close tooltip s-29"><!></div>'),aw=E('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),lw=E('<div class="wrapper-preview-track s-29"><!></div>'),dw=E('<div class="enriched-timeline s-29"><!> <!> <!></div>'),cw={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 Um(t,e){O(e,!0),W(t,cw);let[i,o]=Ee(),r=()=>_(x,"$playerSize",i),s=()=>_(y,"$duration$",i),a=()=>_(S,"$previewTrackActive",i),d=()=>_(m,"$position$",i),l=()=>_(b,"$isRewindableLive$",i),p=g(e,"timelineRef",15,void 0),f=ve(),v=200,{positionWithScrubbing$:m,isRewindableLive$:b,duration$:y}=f.state,{playerSize:x,previewTrackActive:S}=f.ui,{countPerImage:I=0,links:C=[],frequency:V=0}=f.actions.internal.getPreviewThumbsData()||{},P=u(()=>r().width>100),R=z(!c_()),U=()=>{n(R)&&(d_(),M(R,!1))},N=fe=>{let pe=Math.floor(s()*fe/V),ke=Math.floor(pe/I),we=(0,rb.getRangeAroundIndex)(3,ke,C.length-1);for(let ne of we){let Ne=new Image;Ne.src=C[ne]}},H=(fe,pe)=>{N(pe),!a()&&e.onTimelineMove(fe)};var te=dw(),ie=w(te);{var de=fe=>{var pe=aw(),ke=w(pe);let we=u(()=>Mo(d()));Vm(ke,{get time(){return n(we)}});var ne=k(ke,2),Ne=w(ne);xs(Ne,{onClick:()=>f.actions.internal.closePreviewTrack()}),$(ne);var ce=k(ne,2);{var L=Fe=>{var he=sw(),le=w(he);Fm(le,{}),$(he),h(Fe,he)};A(ce,Fe=>{n(R)&&Fe(L)})}$(pe),ut("mouseleave",ne,U),Fr(3,pe,()=>as,()=>({duration:v})),h(fe,pe)};A(ie,fe=>{a()&&fe(de)})}var Z=k(ie,2);let J=u(()=>!n(P));Fa(Z,{get isHidden(){return n(J)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return l()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:N,get ref(){return p()},set ref(fe){p(fe)}});var Q=k(Z,2);{var Te=fe=>{var pe=lw(),ke=w(pe);Hm(ke,{}),$(pe),D(()=>ze(pe,`height: ${e.animatedPreviewTrackHeight}px;`)),h(fe,pe)};A(Q,fe=>{e.previewTrackAvailable&&fe(Te)})}$(te),D(()=>ze(te,`transform: translateY(${e.animatedOffsetY}px);`)),h(t,te),B(),o()}var pw=E('<div><!> <div class="controls s-1b" data-testid="player_controls"><div class="controls-left s-1b"><!> <!> <!></div> <div class="controls-right s-1b"></div></div></div> <!>',1),fw={hash:"s-1b",code:'.wrapper-bottom.s-1b{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-1b:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1b>:where(.s-1b){pointer-events:auto}.controls.s-1b{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-1b,.controls-right.s-1b{align-content:center;display:flex}.controls-left.s-1b{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1b >:not(:first-child),.controls-right.s-1b >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1b{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1b{transition:none}'};function Wm(t,e){O(e,!0),W(t,fw);let[i,o]=Ee(),r=()=>_(Mn,"$disabledControls$",i),s=()=>_(_t,"$adPlaybackState",i),a=()=>_(ei,"$playbackState$",i),d=()=>_(ho,"$currentSubtitle$",i),l=()=>_(Ro,"$isEnded$",i),p=()=>_(Do,"$currentGridType$",i),f=()=>_(At,"$isLive$",i),v=()=>_(vi,"$chromecastState$",i),m=()=>_(Hi,"$isPictureInPictureActive",i),b=()=>_(ci,"$pictureInPictureType$",i),y=()=>_(to,"$availableSubtitlesList$",i),x=()=>_(Bt,"$contextMenuOpenedByKeyboard$",i),S=()=>_(xt,"$showContextMenuBtn$",i),I=()=>_(di,"$isRewindableLive$",i),C=()=>_(Lt,"$isActiveLive$",i),V=()=>_(Qr,"$graphIsOpened$",i),P=()=>_(Rn,"$contextMenuVisible$",i),R=()=>_(Fi,"$isFullscreen",i),U=()=>_(io,"$autoplayNextEnabled",i),N=()=>_(n(wn),"$prevButton",i),H=()=>_(n(rn),"$replayButton",i),te=()=>_(n(ds),"$playButton",i),ie=()=>_(n(Cr),"$nextButton",i),de=()=>_(n(Ir),"$playPrevChapterButton",i),Z=()=>_(n(bi),"$seekToInteractiveButton",i),J=()=>_(n(cs),"$interactiveGraphButton",i),Q=()=>_(n(zn),"$liveButton",i),Te=()=>_(n(So),"$time",i),fe=()=>_(n(ar),"$episodes",i),pe=()=>_(n(Wn),"$vkLogo",i),ke=()=>_(n(lr),"$volume",i),we=()=>_(n(sn),"$subtitles",i),ne=()=>_(n(Wo),"$settings",i),Ne=()=>_(n(kr),"$context",i),ce=()=>_(n(Ze),"$fullscreen",i),L=()=>_(n(It),"$chromecast",i),Fe=()=>_(bo,"$additionalDesktopControlPanelRightButtons$",i),he=()=>_(_o,"$playerSize",i),le=()=>_(Oo,"$isInteractiveTime$",i),me=()=>_(dr,"$previewTrackActive",i),De=()=>_(tn,"$settingsMenuVisible",i),Le=()=>_(an,"$settingButtonRef$",i),G=()=>_(q,"$startedByKeyboard$",i),Y=()=>_(hi,"$isAudioAvailable$",i),Ae=()=>_($e,"$fakeIsPlaying$",i),Ue=()=>_(qr,"$seekToInteractiveDisabledTooltip$",i),Se=()=>_(Mt,"$isPreviewTrackHorizontallyAligned$",i),Ke=()=>_(_e,"$previewTrackAvailable",i),Qe=()=>_(Ar,"$previewTrackDragInProgress",i),Ve=()=>_(Ut,"$adPosition",i),He=()=>_(mi,"$position$",i),kt=()=>_(Xt,"$adDuration",i),je=()=>_(vt,"$duration$",i),Et=g(e,"playerControlsWrapperRef",15,void 0),Dt=g(e,"playerControlsRef",15,void 0),gt=g(e,"isAds",3,!1),Ft=g(e,"logoTargetUrl",3,""),Pt=g(e,"isOneVideoPlaylist",3,!1),be=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:$e}=lo(),X=ve(),ye=lo(),oe=wt(),rt=X.actions.internal.toggleMuted,at=X.actions.internal.togglePlay,nt=X.actions.internal.pause,yt=X.actions.internal.toggleSubtitle,Me=X.actions.internal.checkFullscreenSupport,Re=X.callbacks?.onAudioDoesNotExistHint,st=X.callbacks?.onAudioDisabledHint,vt=X.state.duration$,mi=X.state.positionWithScrubbing$,ei=X.state.playbackState$,hi=X.state.isAudioAvailable$,Ai=X.state.isAudioDisabled,Ro=X.state.isEnded$,At=X.state.isLive$,Lt=X.state.isActiveLive$,di=X.state.isRewindableLive$,{isActive$:Hi,type$:ci}=ye.pictureInPicture$,tn=X.ui.settingsMenu.visible$,Vo=X.ui.settingsMenu.openedByBtnKeyboard$,Zt=X.ui.controls,No=X.actions.internal.getVideoEpisodes(),vi=X.state.chromecastState$,to=X.state.availableSubtitlesList$,ho=X.state.currentSubtitle$,Mn=Zt.disabledControls$,Rn=X.ui.contextMenu.visible$,xt=X.ui.contextMenu.showContextMenuBtn$,Bt=X.ui.contextMenu.openedByBtnKeyboard$,q=X.ui.startedByKeyboard$,Rt=X.ui.controlBlocks,Qt=X.ui.previewTrackNotificationVisible,lt=X.ui.t,Xt=X.ads.duration,Ut=X.ads.position,_t=X.ads.playbackState,Fi=X.ui.isFullscreen,_o=X.ui.playerSize,Do=X.ui.currentGridType$,bo=X.ui.additionalDesktopControlPanelRightButtons$,io=X.ui.autoplayNextEnabled$,Si=X.actions.internal.getVideoElement,tr=X.actions.internal.replayInteractive,Ui=X.actions.internal.prevVideoClick,oo=X.actions.internal.nextVideoClick,Ti=X.state.isInteractive,Oo=X.state.isInteractiveTime$,Bo=X.state.showInteractiveGraph,Vn=X.state.showSeekToInteractive,ir=X.state.showPlayPrevChapter,br=X.state.showInteractiveTimeIndicator,ls=X.state.playPrevChapterDisabledTooltip,qr=ye.seekToInteractiveDisabledTooltip$,Qr=ye.graphIsOpened$,Nn=oe.features.interactiveResponsiveUi,Ho=u(()=>r().has("EPISODE_BUTTON")),$o=u(()=>r().has("GRAPH_BUTTON")),Fo=u(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Dn=u(()=>r().has("PLAY_BUTTON")),bn=u(()=>r().has("REPLAY_BUTTON")),$r=u(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),yr=()=>X.actions.internal.toggleChromecast(),Gr=u(()=>gt()?s()==="playing":a()===Ua.PlaybackState.PLAYING),or=u(()=>d().value!=="off"),zi=u(()=>l()&&!gt()||Ti),nr=u(()=>Nn?n(zi)&&Di(p(),"m"):n(zi)),On=u(()=>!l()||Ti||gt()),on=u(()=>Di(p(),"m")),Wi=u(()=>e.showNextPrevButtons&&Di(p(),"m")&&!gt()&&e.nextButtonActive),xr=u(()=>e.showNextPrevButtons&&Di(p(),"m")&&!gt()&&e.prevButtonActive),$n=u(()=>!gt()&&!!f()),dt=u(()=>v()!==Ua.ChromecastState.NOT_AVAILABLE&&!(m()&&b()===1)&&Di(p(),"m")&&!Ti),_i=u(()=>e.showAutoplayNext&&!Pt()&&Di(p(),"s")),Bn=u(()=>y().length>0&&Di(p(),"m")),rr=u(()=>x()||S()),wr=u(()=>Di(p(),"s")&&!gt()),nn=u(()=>!e.logoHidden&&!gt()),sr=u(()=>oe.features.fullscreen&&Me()&&(e.logoHidden||Di(p(),Nn?"xs":"s"))&&!(m()&&b()===1)&&(Ti?be():!0)),yo=u(()=>(!f()||gt())&&!(oe.features.interactiveHideTime&&Ti)),Uo=u(()=>Bo&&Di(p(),"m")),xo=u(()=>Nn?Vn&&Di(p(),"s"):Vn),Hn=u(()=>Nn?ir&&Di(p(),"s"):ir),Ci=u(()=>!gt()&&!f()&&!!No?.length&&n(on)&&!n(Ho)),wo=u(()=>!I()||!!C()),Fn=u(()=>V()?lt("tooltip_interactive_graph_on"):lt("tooltip_interactive_graph_off")),Sr=u(()=>P()?lt("tooltip_context_menu_close"):lt("tooltip_context_menu_open")),Ki=(ht,bt)=>ht?bt&&bt===Ua.PlaybackState.PAUSED?lt("tooltip_play"):"":lt("tooltip_live"),yn=u(()=>Ki(n(wo),a())),zo=u(()=>oe.logoType==="vk_video"?lt("tooltip_vk_video_logo"):lt("tooltip_vk_logo")),Tr=u(()=>n(or)?lt("tooltip_subtitles_on"):lt("tooltip_subtitles_off")),Un=u(()=>R()?lt("tooltip_fullscreen_on"):lt("tooltip_fullscreen_off")),pt=u(()=>v()===Ua.ChromecastState.CONNECTED?lt("tooltip_chromecast_on"):lt("tooltip_chromecast_off")),zt=u(()=>U()?lt("tooltip_autoplay_on"):lt("tooltip_autoplay_off")),no=z(0),Wt=Yt({}),xn=Yt({}),wn=u(()=>Zt.prevButton),rn=u(()=>Zt.replayButton),ds=u(()=>Zt.playButton),Cr=u(()=>Zt.nextButton),Ir=u(()=>Zt.playPrevChapterButton),bi=u(()=>Zt.seekToInteractiveButton),cs=u(()=>Zt.interactiveGraphButton),zn=u(()=>Zt.liveButton),So=u(()=>Zt.time),ar=u(()=>Zt.episodes),Wn=u(()=>Zt.vkLogo),lr=u(()=>Zt.volume),sn=u(()=>Zt.subtitles),Wo=u(()=>Zt.settings),kr=u(()=>Zt.context),Ze=u(()=>Zt.fullscreen),It=u(()=>Zt.chromecast),Gt=u(()=>({prevButton:N()?N().right-N().left:0,replayButton:H()?H().right-H().left:0,playButton:te()?te().right-te().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:de()?de().right-de().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:J()?J().right-J().left:0,liveButton:Q()?Q().right-Q().left:0,time:Te()?Te().right-Te().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:pe()?pe().right-pe().left:0,volume:ke()?ke().right-ke().left:0,subtitles:we()?we().right-we().left:0,settings:ne()?ne().right-ne().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ce()?ce().right-ce().left:0,chromecast:L()?L().right-L().left:0,additionalButtons:Fe().length?Fe().reduce(ht=>[...ht,40],[]):[]})),qi=z(0);Pe(()=>{(!n(qi)||n(qi)<n(Gt).time)&&$t(()=>M(qi,n(Gt).time,!0))});let Li=z(!1);Pe(()=>{let ht=0;n(Ci)&&(Di(p(),"xl")?ht=n(Gt).time:ht=60);let bt=n(Gt).prevButton+n(Gt).playButton+n(Gt).nextButton+n(Gt).seekToInteractiveButton+n(Gt).interactiveGraphButton+n(Gt).liveButton+n(qi)+ht;M(Li,n(yo)&&n(no)>=bt,!0)});let co=u(()=>n(Li)&&Di(p(),"m")),ro=(0,zm.debounceFn)(Wl,260),Ko=(0,zm.debounceFn)(Ju,260);Pe(()=>{he(),le(),me(),ro(Si(),Zt,Wt,e.showControls),Ko(Si(),Rt,xn,e.showControls)}),Pe(()=>{xn.bottom=Et()});let an=re();Pe(()=>{De(),Le()&&$t(()=>Vl(Le(),De(),Vo))});let so;Pe(()=>{G(),$t(()=>Xu(q,G(),so))});function Mi(){Gs({isAudioDisabled:Ai,isAudioAvailable:Y(),isAds:gt(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:st})&&rt()}let Ri=Ti?tr:at,Kn=u(()=>Ae()!==null),qn=u(()=>n(Kn)?Ae():n(Gr)),qo=u(()=>n(qn)?lt("tooltip_pause"):lt("tooltip_play")),Yr=lt("tooltip_episodes"),us=u(()=>n(xr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ts.prevButton,buttonComponent:Ba,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ui.bind(null,!0)},tooltipEnabled:!X.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!X.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{X.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(An(Si(),Wt,"prevButton",e.showControls))},mouseLeave:()=>{X.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(An(Si(),Wt,"prevButton",e.showControls))},tooltipText:lt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Er=u(()=>n(nr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ts.replayButton,buttonComponent:Kl,buttonComponentProps:{disabled:n(bn),click:Ri},tooltipText:lt("tooltip_restart"),disabled:n(bn)}:void 0),Ge=u(()=>n(On)?{id:"playButton",type:"desktop-control-panel-left",weight:Ts.playButton,buttonComponent:ql,buttonComponentProps:{disabled:n(Dn),isPlaying:n(Gr),click:at},tooltipText:n(qo),disabled:n(Dn)}:void 0),Ht=u(()=>n(Wi)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ts.nextButton,buttonComponent:Ba,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:oo.bind(null,!0)},tooltipEnabled:!X.callbacks?.uiInfo?.onNextButtonMouseEnter&&!X.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{X.callbacks?.uiInfo?.onNextButtonMouseEnter?.(An(Si(),Wt,"nextButton",e.showControls))},mouseLeave:()=>{X.callbacks?.uiInfo?.onNextButtonMouseLeave?.(An(Si(),Wt,"nextButton",e.showControls))},tooltipText:lt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),$i=u(()=>Ti&&n(Hn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ts.playPrevChapterButton,buttonComponent:dc,buttonComponentProps:{disabled:n($r),click:e.playPrevChapter},tooltipText:lt("tooltip_interactive_go_back"),disabledTooltipContent:lt(ls),disabled:n($r)}:void 0),Qi=u(()=>Ti&&n(xo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ts.seekToInteractiveButton,buttonComponent:uc,buttonComponentProps:{disabled:n(Fo),click:e.seekToInteractive},tooltipText:lt("tooltip_interactive_seek"),disabled:n(Fo),disabledTooltipContent:lt(Ue())}:void 0),To=u(()=>Ti&&n(Uo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ts.interactiveGraphButton,buttonComponent:pc,buttonComponentProps:{disabled:n($o),click:Qr.toggle,graphIsOpened:V()},tooltipText:n(Fn)}:void 0),Pr=u(()=>n($n)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ts.liveButton,buttonComponent:fc,buttonComponentProps:{isLiveActive:n(wo),ariaLabel:n(yn)},tooltipText:n(yn),disabled:n(wo)&&a()===Ua.PlaybackState.PLAYING}:void 0),Gi=u(()=>[n(us),n(Er),n(Ge),n(Ht),n($i),n(Qi),n(To),n(Pr)].filter(ht=>!!ht).sort(La)),Sn=u(()=>n(nn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Is.vkLogo,buttonComponent:tc,buttonComponentProps:{targetUrl:Ft(),logoClickable:e.logoClickable,click:nt},tooltipText:n(zo),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Es=u(()=>n(_i)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Is.autoplayNext,buttonComponent:cc,tooltipText:n(zt)}:void 0),ea=u(()=>({id:"volume",type:"desktop-control-panel-right",weight:Is.volume,buttonComponent:vm,buttonComponentProps:{click:Mi,isAds:gt()}})),Ps=u(()=>n(Bn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Is.subtitles,buttonComponent:um,buttonComponentProps:{isSubtitlesEnabled:n(or),click:yt},tooltipText:n(Tr)}:void 0),ln=u(()=>n(wr)?{id:"settings",type:"desktop-control-panel-right",weight:Is.settings,buttonComponent:Hl,buttonComponentProps:{ref$:an},tooltipText:De()?void 0:lt("tooltip_settings_off")}:void 0),As=u(()=>oe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Is.context,buttonComponent:Im,buttonComponentProps:{ariaLabel:lt("aria_label_context_menu")},className:n(rr)?"":"out-of-view",tooltipText:n(Sr)}:void 0),tt=u(()=>n(sr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Is.fullscreen,buttonComponent:ec,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:n(Un)}:void 0),Kt=u(()=>n(dt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Is.chromecast,buttonComponent:oc,buttonComponentProps:{state:v(),click:yr},tooltipText:n(pt)}:void 0),Co=u(()=>[n(Sn),n(Es),n(ea),n(Ps),n(ln),n(As),n(tt),n(Kt),...Fe()].filter(ht=>!!ht).sort(La)),dr=X.ui.previewTrackActive,Ar=X.ui.previewTrackDragInProgress,_e=X.ui.previewTrackAvailable,Mt=X.ui.isPreviewTrackHorizontallyAligned,ii=u(()=>ib({onPreviewTrackOpened:X.actions.internal.previewTrackOpened,getTimelineRef:()=>Wt.timeline,isHorizontal:Se()})),oi=u(()=>n(ii).progressBarY),ai=u(()=>n(ii).controlsY),uo=u(()=>n(ii).onPointerDown),Yi=u(()=>n(ii).onPointerMove),Io=u(()=>n(ii).onPointerUp),ji=u(()=>n(ii).calculatedHeight),Ls=u(()=>n(ii).closePreviewTrack);Pe(()=>{me()?Qt.set(!1):n(Ls)()});let cr;Ct(()=>()=>cr&&clearTimeout(cr));let id=ht=>{me()||!Ke()||(n(uo)(ht),cr=setTimeout(()=>{X.actions.internal.previewTrackDragStarted()},200))},Ja=()=>{me()||n(Io)(),cr&&clearTimeout(cr),Qe()&&X.actions.internal.previewTrackDragFinished()},Ms=ht=>{n(Yi)(ht),!me()&&Ke()&&!me()&&Qt.set(!0)},ta=()=>{Qt.set(!1)};var ia=pw(),Qo=se(ia);let el;var oa=w(Qo);{var Lr=ht=>{let bt=u(()=>n(oi)()),Go=u(()=>n(ji)());Um(ht,{get animatedOffsetY(){return n(bt)},get animatedPreviewTrackHeight(){return n(Go)},get canRewindLive(){return e.canRewindLive},get isAds(){return gt()},onTimelineMove:Ms,onTimelinePointerDown:id,onTimelinePointerUp:Ja,onTimelinePointerLeave:ta,get previewTrackAvailable(){return Ke()},get timelineRef(){return Wt.timeline},set timelineRef(Mr){Wt.timeline=Mr}})};A(oa,ht=>{e.showControls&&ht(Lr)})}var jr=k(oa,2),Rs=w(jr),na=w(Rs);ui(na,17,()=>n(Gi),ht=>ht.id,(ht,bt)=>{Zu(ht,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipEnabled(){return n(bt).tooltipEnabled},get mouseEnter(){return n(bt).mouseEnter},get mouseLeave(){return n(bt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(bt).id]},set ref(Go){Wt[n(bt).id]=Go}})});var tl=k(na,2);{var il=ht=>{let bt=u(()=>!e.showControls),Go=u(()=>gt()?Ve():He()),Mr=u(()=>gt()?kt():je());Xd(ht,{get isHidden(){return n(bt)},isMobile:!1,get showDuration(){return n(co)},get position(){return n(Go)},get duration(){return n(Mr)},get ref(){return Wt.time},set ref(Xr){Wt.time=Xr}})};A(tl,ht=>{n(yo)&&ht(il)})}var od=k(tl,2);let ol=u(()=>!n(Ci));vo(od,{className:"w-max",get disabled(){return n(ol)},get tooltipContent(){return Yr},get tooltipVisible(){return e.showControls},get ref(){return Wt.episodes},set ref(ht){Wt.episodes=ht},children:(ht,bt)=>{var Go=Ie(),Mr=se(Go);{var Xr=ps=>{nc(ps,{get position(){return He()},get duration(){return je()},get timeCodes(){return No}})};A(Mr,ps=>{n(Ci)&&ps(Xr)})}h(ht,Go)},$$slots:{default:!0}}),$(Rs);var nl=k(Rs,2);ui(nl,21,()=>n(Co),ht=>ht.id,(ht,bt)=>{var Go=Ie(),Mr=se(Go);{var Xr=Rr=>{Zu(Rr,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(bt).id]},set ref(ra){Wt[n(bt).id]=ra}})},ps=Rr=>{let ra=u(()=>!!n(bt).disabled);Mm(Rr,{get id(){return n(bt).id},get testId(){return n(bt).testId},get icon(){return n(bt).icon},get ariaLabel(){return n(bt).ariaLabel},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(ra)},get onClick(){return n(bt).onClick},get disableMouseupTooltipShow(){return n(bt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Wt[n(bt).id]},set ref(rl){Wt[n(bt).id]=rl}})};A(Mr,Rr=>{J_(n(bt))?Rr(Xr):Rr(ps,!1)})}h(ht,Go)}),$(nl),$(jr),Je(jr,ht=>Dt(ht),()=>Dt()),$(Qo),Je(Qo,ht=>Et(ht),()=>Et());var ur=k(Qo,2);{var nd=ht=>{ac(ht,{get ref(){return Wt.interactiveTimeIndicator},set ref(bt){Wt.interactiveTimeIndicator=bt}})};A(ur,ht=>{br&&ht(nd)})}D((ht,bt)=>{el=ee(Qo,1,"wrapper-bottom s-1b",null,el,ht),ze(jr,bt),jr.inert=me()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Qe()}),()=>`transform: translateY(${n(ai)()}px);`]),mn(Rs,"clientWidth",ht=>M(no,ht)),h(t,ia),B(),o()}var Ql=require("@vkontakte/videoplayer-core");var Km=require("@vkontakte/videoplayer-shared");var mw=E('<div class="icon icon-error-stub s-22"><div class="inner s-22"></div></div>'),vw=E('<img class="icon s-22" aria-hidden="true"/>'),gw={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 qm(t,e){W(t,gw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Km.noop),r=u(()=>o()===Km.noop),s=u(()=>n(r)||i()),a=z(!1),d=()=>{M(a,!0)},l=u(()=>n(r)?"btn-full-opacity":"");Vt(t,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(p,f)=>{var v=Ie(),m=se(v);{var b=x=>{var S=mw();h(x,S)},y=x=>{var S=vw();D(()=>Oe(S,"src",e.iconUrl)),ut("error",S,d),ba(S),h(x,S)};A(m,x=>{n(a)?x(b):x(y,!1)})}h(p,v)},$$slots:{default:!0}})}var hw=xe('<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 Qm(t){Ye(t,{testId:"muted-icon",children:(e,i)=>{var o=hw();h(e,o)},$$slots:{default:!0}})}var sb=require("@vkontakte/videoplayer-shared");function tp(t,e){O(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,sb.noop),r=g(e,"ref",15,void 0),a=ve().ui.t,d=u(()=>i()?a("tooltip_volume"):a("tooltip_volume_muted")),l=u(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Vt(t,{get testId(){return n(l)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(p){r(p)},children:(p,f)=>{var v=Ie(),m=se(v);{var b=x=>{Qm(x,{})},y=x=>{Xs(x,{get size(){return"24"}})};A(m,x=>{i()?x(b):x(y,!1)})}h(p,v)},$$slots:{default:!0}}),B()}var _w=xe('<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>'),bw=xe('<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>'),$w=xe('<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 Gm(t,e){let i=g(e,"isActive",3,!1),o=u(()=>i()?"pip-icon--active":"pip-icon");Ye(t,{get testId(){return n(o)},children:(r,s)=>{var a=$w(),d=k(se(a));{var l=f=>{var v=_w();h(f,v)},p=f=>{var v=bw();h(f,v)};A(d,f=>{i()?f(l):f(p,!1)})}h(r,a)},$$slots:{default:!0}})}var ab=require("@vkontakte/videoplayer-shared");function Ym(t,e){O(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,ab.noop),s=K("menu_pip");Vt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,d)=>{Gm(a,{get isActive(){return o()}})},$$slots:{default:!0}}),B()}var jm=require("@vkontakte/videoplayer-shared");var yw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},xw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},ww=E("<div><!></div>"),Sw=E("<div><!></div>"),Tw=E("<div><!></div>"),Cw=E("<!> <!> <!>",1),Iw=E("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),kw=E('<div class="wrapper-middle s-19"><!></div>'),Ew=E("<div><!></div> <!> <div><!></div>",1),Pw=E('<div aria-hidden="true">·</div> <!>',1),Aw=E('<!> <!> <div><div><div class="controls mobile s-19"><div class="controls-group contain s-19"><!> <!> <!> <!></div> <div class="controls-group s-19"><!> <!> <!></div></div> <!></div></div> <!>',1),Lw={hash:"s-19",code:'.wrapper-bottom.s-19{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;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:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.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 Xm(t,e){O(e,!0),W(t,Lw);let[i,o]=Ee(),r=()=>_(_o,"$seekToInteractiveDisabledTooltip$",i),s=()=>_(Zt,"$disabledControls$",i),a=()=>_(Pt,"$playbackState$",i),d=()=>_(Mn,"$adPlaybackState",i),l=()=>_(X,"$isEnded$",i),p=()=>_(xt,"$playerSize",i),f=()=>_(yt,"$scrubbingInProgress",i),v=()=>_(tn,"$chromecastState$",i),m=()=>_(Re,"$isPictureInPictureActive",i),b=()=>_(st,"$pictureInPictureType$",i),y=()=>_(Me,"$mobileNotReportControlHidden$",i),x=()=>_(di,"$chromecastHidden",i),S=()=>_(Dt,"$playerPhase",i),I=()=>_(At,"$pipHidden",i),C=()=>_(vi,"$currentGridType$",i),V=()=>_(Ai,"$vkLogoHidden",i),P=()=>_(hi,"$volumeHidden",i),R=()=>_(ye,"$isLive$",i),U=()=>_(vt,"$settingsMenuVisible",i),N=()=>_(nt,"$isRewindableLive$",i),H=()=>_(at,"$isActiveLive$",i),te=()=>_(be,"$isAudioAvailable$",i),ie=()=>_(rt,"$muted$",i),de=()=>_(oe,"$volume$",i),Z=()=>_(lt,"$isInteractiveTime$",i),J=()=>_(xo,"$settingButtonRef$",i),Q=()=>_(No,"$startedByKeyboard$",i),Te=()=>_(Rn,"$isFullscreen",i),fe=()=>_(Bt,"$additionalButtons$",i),pe=()=>_(Ro,"$autoplayNextToggleHidden",i),ke=()=>_(Vo,"$crashed$",i),we=()=>_(Lt,"$settingsHidden",i),ne=()=>_(Do,"$graphIsOpened$",i),Ne=()=>_(ho,"$adPosition",i),ce=()=>_(to,"$adDuration",i),L=()=>_(Ft,"$position$",i),Fe=()=>_(gt,"$duration$",i),he=g(e,"playerControlsWrapperRef",15,void 0),le=g(e,"playerControlsRef",15,void 0),me=g(e,"isAds",3,!1),De=g(e,"logoTargetUrl",3,""),Le=g(e,"isOneVideoPlaylist",3,!1),G=g(e,"customFullscreenSupported",3,!0),Y=ve(),Ae=lo(),Ue=wt(),Se=Y.actions.internal.toggleMuted,Ke=Y.actions.internal.togglePlay,Qe=Y.actions.internal.pause,Ve=Y.actions.internal.prevVideoClick,He=Y.actions.internal.nextVideoClick,kt=Y.actions.internal.checkFullscreenSupport,je=Y.callbacks?.onAudioDoesNotExistHint,Et=Y.callbacks?.onAudioDisabledHint,Dt=Y.playerPhase,gt=Y.state.duration$,Ft=Y.state.positionWithScrubbing$,Pt=Y.state.playbackState$,be=Y.state.isAudioAvailable$,$e=Y.state.isAudioDisabled,X=Y.state.isEnded$,ye=Y.state.isLive$,oe=Y.state.volume$,rt=Y.state.muted$,at=Y.state.isActiveLive$,nt=Y.state.isRewindableLive$,yt=Y.ui.scrubbingInProgress,Me=Y.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:st}=Ae.pictureInPicture$,vt=Y.ui.settingsMenu.visible$,mi=Y.ui.settingsMenu.openedByBtnKeyboard$,ei=Y.ui.controls,{volume:hi,vkLogo:Ai,autoplayNextToggle:Ro,pip:At,settings:Lt,chromecast:di}=Y.ui.hiddenControls,Hi=Y.actions.internal.getVideoEpisodes(),ci=Y.webApi.pictureInPictureApi,tn=Y.state.chromecastState$,Vo=Y.state.crashed$,Zt=ei.disabledControls$,No=Y.ui.startedByKeyboard$,vi=Y.ui.currentGridType$,to=Y.ads.duration,ho=Y.ads.position,Mn=Y.ads.playbackState,Rn=Y.ui.isFullscreen,xt=Y.ui.playerSize,Bt=Y.ui.additionalButtonsDeprecated$,q=Y.actions.internal.getVideoElement,Rt=Y.actions.internal.replayInteractive,Qt=Y.state.isInteractive,lt=Y.state.isInteractiveTime$,Xt=Y.state.showInteractiveGraph,Ut=Y.state.showSeekToInteractive,_t=Y.state.showPlayPrevChapter,Fi=Y.state.showInteractiveTimeIndicator,_o=Ae.seekToInteractiveDisabledTooltip$,Do=Ae.graphIsOpened$,bo=Y.ui.controlBlocks,io=u(()=>K(Y.state.playPrevChapterDisabledTooltip)),Si=u(()=>K(r())),tr=u(()=>s().has("EPISODE_BUTTON")),Ui=u(()=>s().has("GRAPH_BUTTON")),oo=u(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ti=u(()=>s().has("PLAY_BUTTON")),Oo=u(()=>s().has("REPLAY_BUTTON")),Bo=u(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Vn=u(()=>a()===Ql.PlaybackState.PLAYING),ir=u(()=>d()==="paused"),br=u(()=>l()&&!me()&&!Qt),ls=u(()=>!l()||me()),qr=u(()=>e.showNextPrevButtons&&!me()&&e.prevButtonActive),Qr=u(()=>e.showNextPrevButtons&&!me()&&e.nextButtonActive),Nn=u(()=>p().width>300),Ho=u(()=>p().width>400),$o=u(f),Fo=u(()=>v()!==Ql.ChromecastState.NOT_AVAILABLE&&!(m()&&b()===1)&&!y()&&!Qt&&!x()),Dn=u(()=>S()==="LiveWaitingStart"),bn=u(()=>!!ci&&v()!==Ql.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(Dn)||!n(Dn))&&!n($o)&&!Qt&&!I()),$r=z(!1);Ct(()=>{let Ze=ci?.info.isActive$.subscribe(It=>M($r,It,!0));return()=>Ze?.unsubscribe()});let yr=u(()=>!n($o)&&Di(C(),"s")),Gr=u(()=>!e.logoHidden&&p().width>350&&!V()),or=u(()=>Ue.features.fullscreen&&kt()&&!(m()&&b()===1)&&(Qt?G():!0)&&!n($o)&&!n($r)),zi=u(()=>!P()&&!n($o)),nr=u(()=>(!R()||me())&&p().width>260&&!n($o)&&!(Ue.features.interactiveHideTime&&Qt)),On=u(()=>U()||e.showControls),on=u(()=>!me()&&!R()&&!!Hi?.length&&n(Nn)&&!n(tr)&&!n($o)),Wi=u(()=>!N()||!!H()),xr=u(()=>Xt&&Di(C(),"m")),$n=u(()=>!te()||ie()||de()===0),dt=Yt({}),_i=Yt({}),Bn=(0,jm.debounceFn)(Wl,260),rr=(0,jm.debounceFn)(Ju,260);Pe(()=>{p(),Z(),Bn(q(),ei,dt,e.showControls),rr(q(),bo,_i,e.showControls)});let wr=()=>Y.actions.internal.toggleChromecast();async function nn(){ci?.isActive()?await ci?.exit():await ci?.request()}function sr(){Gs({isAudioDisabled:$e,audioDisabledHintCallback:Et,isAudioAvailable:te(),audioIsNotExistHintCallback:je,isAds:me()})&&Se()}let yo=z(""),Uo=(Ze,It)=>{if(!Ze){M(yo,K("tooltip_live"),!0);return}It&&It===Ql.PlaybackState.PAUSED&&M(yo,K("tooltip_play"),!0)};Pe(()=>{Uo(n(Wi),a())});let xo=re();Pe(()=>{J()&&Vl(J(),U(),mi)}),Pe(()=>{Xu(No,Q(),dt.playButton)}),Pe(()=>{_i.bottom=he()});var Hn=Aw(),Ci=se(Hn);{var wo=Ze=>{var It=Iw(),Gt=se(It);let qi;var Li=k(Gt,2);let co;Je(Li,tt=>_i.topLeft=tt,()=>_i?.topLeft);var ro=k(Li,2);let Ko;var an=w(ro);ui(an,1,fe,({iconUrl:tt,ariaLabel:Kt,testId:Co,onClick:dr,tooltip:Ar})=>tt,(tt,Kt)=>{let Co=()=>n(Kt).iconUrl,dr=()=>n(Kt).ariaLabel,Ar=()=>n(Kt).testId,_e=()=>n(Kt).onClick,Mt=()=>n(Kt).tooltip,ii=u(()=>dr()??Mt());qm(tt,{get iconUrl(){return Co()},get ariaLabel(){return n(ii)},get testId(){return Ar()},get onClick(){return _e()}})});var so=k(an,2);{var Mi=tt=>{cc(tt,{get ref(){return dt.autoplayNextToggle},set ref(Kt){dt.autoplayNextToggle=Kt}})};A(so,tt=>{e.showAutoplayNext&&!Le()&&!pe()&&tt(Mi)})}var Ri=k(so,2);{var Kn=tt=>{oc(tt,{isMobile:!0,click:wr,get state(){return v()},get ref(){return dt.chromecast},set ref(Kt){dt.chromecast=Kt}})};A(Ri,tt=>{n(Fo)&&tt(Kn)})}var qn=k(Ri,2);{var qo=tt=>{Ym(tt,{click:nn,get isPictureInPictureActive(){return m()},get ref(){return dt.pip},set ref(Kt){dt.pip=Kt}})};A(qn,tt=>{n(bn)&&tt(qo)})}var Yr=k(qn,2);{var us=tt=>{Hl(tt,{get ref$(){return xo}})};A(Yr,tt=>{ke()&&!we()&&tt(us)})}var Er=k(Yr,2);{var Ge=tt=>{tc(tt,{get click(){return Qe},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return dt.vkLogo},set ref(Kt){dt.vkLogo=Kt}})};A(Er,tt=>{n(Gr)&&tt(Ge)})}$(ro),Je(ro,tt=>_i.topRight=tt,()=>_i?.topRight);var Ht=k(ro,2);let $i;var Qi=w(Ht);{var To=tt=>{let Kt=u(()=>Ve.bind(null,!0));Ba(tt,{get click(){return n(Kt)},type:"prev",isMobile:!0,get ref(){return dt.prevButton},set ref(Co){dt.prevButton=Co}})};A(Qi,tt=>{n(qr)&&tt(To)})}var Pr=k(Qi,2);{var Gi=tt=>{ql(tt,{get disabled(){return n(Ti)},get click(){return Ke},isMobile:!0,get isPlaying(){return n(Vn)},get ref(){return dt.playButton},set ref(Kt){dt.playButton=Kt}})};A(Pr,tt=>{n(ls)&&tt(Gi)})}var Sn=k(Pr,2);{var Es=tt=>{Kl(tt,{get disabled(){return n(Oo)},get click(){return Ke},isMobile:!0,get ref(){return dt.replayButton},set ref(Kt){dt.replayButton=Kt}})};A(Sn,tt=>{n(br)&&tt(Es)})}var ea=k(Sn,2);{var Ps=tt=>{let Kt=u(()=>He.bind(null,!0));Ba(tt,{get click(){return n(Kt)},type:"next",isMobile:!0,get ref(){return dt.nextButton},set ref(Co){dt.nextButton=Co}})};A(ea,tt=>{n(Qr)&&tt(Ps)})}$(Ht),Je(Ht,tt=>_i.middle=tt,()=>_i?.middle);var ln=k(Ht,2);{var As=tt=>{var Kt=Cw(),Co=se(Kt);{var dr=oi=>{var ai=ww();let uo;ai.__click=[yw,Bo,e,io];var Yi=w(ai);let Io=u(()=>!e.showControls);dc(Yi,{get hidden(){return n(Io)},get disabled(){return n(Bo)},get click(){return e.playPrevChapter},get ref(){return dt.playPrevChapterButton},set ref(ji){dt.playPrevChapterButton=ji}}),$(ai),D(ji=>uo=ee(ai,1,"wrapper-middle-left s-19",null,uo,ji),[()=>({fullscreen:Te(),hidden:!e.showControls})]),h(oi,ai)};A(Co,oi=>{_t&&oi(dr)})}var Ar=k(Co,2);{var _e=oi=>{var ai=Sw();let uo;var Yi=w(ai);let Io=u(()=>!e.showControls&&!ne());pc(Yi,{get hidden(){return n(Io)},get disabled(){return n(Ui)},get click(){return Do.toggle},get graphIsOpened(){return ne()},get ref(){return dt.interactiveGraphButton},set ref(ji){dt.interactiveGraphButton=ji}}),$(ai),D(ji=>uo=ee(ai,1,Id(_t?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",uo,ji),[()=>({fullscreen:Te(),hidden:!e.showControls&&!ne()})]),h(oi,ai)};A(Ar,oi=>{n(xr)&&oi(_e)})}var Mt=k(Ar,2);{var ii=oi=>{var ai=Tw();let uo;ai.__click=[xw,oo,e,Si];var Yi=w(ai);let Io=u(()=>!e.showControls);uc(Yi,{get hidden(){return n(Io)},get disabled(){return n(oo)},get click(){return e.seekToInteractive},get ref(){return dt.seekToInteractiveButton},set ref(ji){dt.seekToInteractiveButton=ji}}),$(ai),D(ji=>uo=ee(ai,1,"wrapper-middle-right s-19",null,uo,ji),[()=>({fullscreen:Te(),hidden:!e.showControls})]),h(oi,ai)};A(Mt,oi=>{Ut&&oi(ii)})}h(tt,Kt)};A(ln,tt=>{Qt&&!f()&&tt(As)})}D((tt,Kt,Co,dr)=>{qi=ee(Gt,1,"overlay-mobile s-19",null,qi,tt),co=ee(Li,1,"wrapper-top-left s-19",null,co,Kt),Ko=ee(ro,1,"wrapper-top-right s-19",null,Ko,Co),$i=ee(Ht,1,"wrapper-middle s-19",null,$i,dr)},[()=>({hidden:!n(On)}),()=>({hidden:!e.showControls,fullscreen:Te()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Te()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),h(Ze,It)};A(Ci,Ze=>{me()||Ze(wo)})}var Fn=k(Ci,2);{var Sr=Ze=>{var It=Ew(),Gt=se(It);let qi;var Li=w(Gt);tp(Li,{get muted(){return ie()},click:sr,get ref(){return dt.volume},set ref(Mi){dt.volume=Mi}}),$(Gt);var co=k(Gt,2);{var ro=Mi=>{var Ri=kw(),Kn=w(Ri);let qn=u(()=>!n(ir));ql(Kn,{get disabled(){return n(Ti)},get click(){return Ke},isMobile:!0,get isPlaying(){return n(qn)},get ref(){return dt.playButton},set ref(qo){dt.playButton=qo}}),$(Ri),h(Mi,Ri)};A(co,Mi=>{n(ir)&&Mi(ro)})}var Ko=k(co,2);let an;var so=w(Ko);mc(so,{get position(){return Ne()},get duration(){return ce()}}),$(Ko),D((Mi,Ri)=>{qi=ee(Gt,1,"wrapper-top-right s-19",null,qi,Mi),an=ee(Ko,1,"wrapper-bottom ads-timeline-mobile s-19",null,an,Ri)},[()=>({fullscreen:Te()}),()=>({fullscreen:Te()})]),h(Ze,It)};A(Fn,Ze=>{me()&&d()!=="inactive"&&Ze(Sr)})}var Ki=k(Fn,2);let yn;var zo=w(Ki);let Tr;var Un=w(zo),pt=w(Un),zt=w(pt);{var no=Ze=>{vo(Ze,{get disabled(){return n(Oo)},get ref(){return dt.replayButton},set ref(It){dt.replayButton=It},children:(It,Gt)=>{Kl(It,{get disabled(){return n(Oo)},get click(){return Rt}})},$$slots:{default:!0}})};A(zt,Ze=>{Qt&&Ze(no)})}var Wt=k(zt,2);{var xn=Ze=>{vo(Ze,{get ref(){return dt.liveButton},set ref(It){dt.liveButton=It},children:(It,Gt)=>{fc(It,{get isLiveActive(){return n(Wi)},isMobile:!0,get ariaLabel(){return n(yo)}})},$$slots:{default:!0}})};A(Wt,Ze=>{!me()&&R()&&Ze(xn)})}var wn=k(Wt,2);{var rn=Ze=>{let It=u(()=>me()?Ne():L()),Gt=u(()=>me()?ce():Fe()),qi=u(()=>!e.showControls);Xd(Ze,{get showDuration(){return n(Ho)},get position(){return n(It)},get duration(){return n(Gt)},isMobile:!0,get isHidden(){return n(qi)},get ref(){return dt.time},set ref(Li){dt.time=Li}})};A(wn,Ze=>{n(nr)&&Ze(rn)})}var ds=k(wn,2);let Cr=u(()=>!n(on));vo(ds,{className:"w-max",get disabled(){return n(Cr)},get ref(){return dt.episodes},set ref(Ze){dt.episodes=Ze},children:(Ze,It)=>{var Gt=Ie(),qi=se(Gt);{var Li=co=>{var ro=Pw(),Ko=k(se(ro),2);nc(Ko,{get position(){return L()},get duration(){return Fe()},get timeCodes(){return Hi}}),h(co,ro)};A(qi,co=>{n(on)&&co(Li)})}h(Ze,Gt)},$$slots:{default:!0}}),$(pt),Je(pt,Ze=>_i.bottomLeft=Ze,()=>_i?.bottomLeft);var Ir=k(pt,2),bi=w(Ir);{var cs=Ze=>{vo(Ze,{get ref(){return dt.volume},set ref(It){dt.volume=It},children:(It,Gt)=>{tp(It,{get muted(){return n($n)},click:sr})},$$slots:{default:!0}})};A(bi,Ze=>{n(zi)&&Ze(cs)})}var zn=k(bi,2);{var So=Ze=>{vo(Ze,{get ref(){return dt.settings},set ref(It){dt.settings=It},children:(It,Gt)=>{Hl(It,{get ref$(){return xo}})},$$slots:{default:!0}})};A(zn,Ze=>{n(yr)&&Ze(So)})}var ar=k(zn,2);{var Wn=Ze=>{vo(Ze,{get ref(){return dt.fullscreen},set ref(It){dt.fullscreen=It},children:(It,Gt)=>{ec(It,{get click(){return e.toggleFullscreen},get isFullscreen(){return Te()}})},$$slots:{default:!0}})};A(ar,Ze=>{n(or)&&Ze(Wn)})}$(Ir),Je(Ir,Ze=>_i.bottomRight=Ze,()=>_i?.bottomRight),$(Un),Je(Un,Ze=>le(Ze),()=>le());var lr=k(Un,2);let sn=u(()=>!e.showControls);Fa(lr,{get isHidden(){return n(sn)},get isAds(){return me()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return N()},get ref(){return dt.timeline},set ref(Ze){dt.timeline=Ze}}),$(zo),$(Ki),Je(Ki,Ze=>he(Ze),()=>he());var Wo=k(Ki,2);{var kr=Ze=>{ac(Ze,{get ref(){return dt.interactiveTimeIndicator},set ref(It){dt.interactiveTimeIndicator=It}})};A(Wo,Ze=>{Fi&&Ze(kr)})}D((Ze,It)=>{yn=ee(Ki,1,"wrapper-bottom mobile s-19",null,yn,Ze),Tr=ee(zo,1,"controls-wrapper s-19",null,Tr,It)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Te()})]),h(t,Hn),B(),o()}et(["click"]);function vc(t,e){O(e,!0);let[i,o]=Ee(),r=()=>_(I,"$isMobile",i),s=g(e,"bottomNoSmooth",3,!1),a=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),l=g(e,"isAds",3,!1),p=g(e,"logoTargetUrl",3,""),f=g(e,"showAutoplayNext",3,!1),v=g(e,"isOneVideoPlaylist",3,!1),m=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,Zm.noop),x=g(e,"onDisabledSeekToInteractiveClick",3,Zm.noop),I=ve().ui.isMobile,C=z(!1);Ct(()=>{let U=setTimeout(()=>M(C,!0),0);return()=>clearTimeout(U)});var V=Ie(),P=se(V);{var R=U=>{var N=Ie(),H=se(N);{var te=de=>{Xm(de,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return m()},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 x()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Z){a(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},ie=de=>{Wm(de,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return m()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Z){a(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};A(H,de=>{r()?de(te):de(ie,!1)})}h(U,N)};A(P,U=>{n(C)&&U(R)})}h(t,V),B(),o()}var Mw=xe('<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 gc(t,e){O(e,!0);let i=u(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=u(()=>`${Jo(e.size)}${n(i)}`);Ye(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},children:(r,s)=>{var a=Mw();h(r,a)},$$slots:{default:!0}}),B()}var Rw=xe('<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 Jm(t,e){O(e,!0);let i=g(e,"reversed",3,!1),o=u(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=u(()=>`seek-icon-${i()?"backward":"forward"}`);Ye(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},children:(s,a)=>{var d=Rw();h(s,d)},$$slots:{default:!0}}),B()}var Vw=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Nw=E('<span class="hot-key-helpers-text s-x"> </span>'),Dw=E("<!> <!>",1),Ow=E("<div><!></div>"),Bw={hash:"s-x",code:'.hot-key-helpers-container.s-x{align-items:center;animation:s-x-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-x{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-x{left:calc(75% - 100px)}.hot-key-helpers-text.s-x{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-x{animation:s-x-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-x-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-x-fadeOut{0%{opacity:1}to{opacity:0}}'};function ev(t,e){O(e,!0),W(t,Bw);let[i,o]=Ee(),r=()=>_(e.data,"$data",i),s=ve(),{features:a}=wt(),d=s.ui.t,l=u(()=>!r()),p=u(()=>r()?.type==="BACKWARD_SEEK"),f=u(()=>r()?.type==="FORWARD_SEEK"),v=u(()=>r()?.type),m=u(()=>r()?.t?d(r().t.key,{value:r().t.value||""}):r()?.text);var b=Ow();let y;var x=w(b);{var S=I=>{var C=Dw(),V=se(C);let P=u(()=>`hotkey-helper-icon-${n(v).toLowerCase()}`);Vd(V,{get testId(){return n(P)},children:(N,H)=>{var te=Vw(),ie=se(te);{var de=G=>{let Y=u(()=>n(v)==="BACKWARD_SEEK");Jm(G,{get reversed(){return n(Y)}})};A(ie,G=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&G(de)})}var Z=k(ie,2);{var J=G=>{Cs(G,{get size(){return"48"}})};A(Z,G=>{n(v)==="PAUSE"&&!a.playbackStatusShow&&G(J)})}var Q=k(Z,2);{var Te=G=>{gn(G,{get size(){return"48"}})};A(Q,G=>{n(v)==="PLAY"&&!a.playbackStatusShow&&G(Te)})}var fe=k(Q,2);{var pe=G=>{lc(G,{get size(){return"48"}})};A(fe,G=>{n(v)==="REPLAY"&&!a.playbackStatusShow&&G(pe)})}var ke=k(fe,2);{var we=G=>{js(G,{get size(){return"48"},type:"off"})};A(ke,G=>{n(v)==="SUBTITLES_OFF"&&G(we)})}var ne=k(ke,2);{var Ne=G=>{js(G,{get size(){return"48"}})};A(ne,G=>{n(v)==="SUBTITLES_ON"&&G(Ne)})}var ce=k(ne,2);{var L=G=>{let Y=u(()=>n(v)==="RATE_DOWN");gc(G,{get size(){return"48"},get reversed(){return n(Y)},testId:"rate-change-icon"})};A(ce,G=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&G(L)})}var Fe=k(ce,2);{var he=G=>{let Y=u(()=>n(v)==="EPISODE_PREV");Zs(G,{get size(){return"48"},get reversed(){return n(Y)}})};A(Fe,G=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&G(he)})}var le=k(Fe,2);{var me=G=>{Xs(G,{get size(){return"48"},volume:0})};A(le,G=>{n(v)==="MUTE"&&G(me)})}var De=k(le,2);{var Le=G=>{Xs(G,{get size(){return"48"},volume:1})};A(De,G=>{n(v)==="VOLUME"&&G(Le)})}h(N,te)},$$slots:{default:!0}});var R=k(V,2);{var U=N=>{var H=Nw(),te=w(H,!0);$(H),D(()=>ue(te,n(m))),h(N,H)};A(R,N=>{n(m)&&N(U)})}h(I,C)};A(x,I=>{!n(l)&&n(v)&&I(S)})}$(b),D(I=>y=ee(b,1,"hot-key-helpers-container s-x",null,y,I),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(p),"hot-key-helpers-container--right":n(f)})]),h(t,b),B(),o()}var Hw=(t,e,i,o,r,s)=>{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":s();break}},Fw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Uw=E('<div tabindex="0" role="button"><div class="button-block s-o" aria-hidden="true"><div class="button-row s-o"><div class="button button-up s-o"><!></div> <div class="button button-right s-o"><!></div></div> <div class="button-row s-o"><div class="button button-left s-o"><!></div> <div class="button button-down s-o"><!></div></div></div></div>'),zw={hash:"s-o",code:".immersive-controls.s-o{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-o{left:20px;top:50px}.button-block.s-o{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-o{display:flex;flex-direction:row;position:relative}.button.s-o{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-o svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-o svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-o svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-o svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-o svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-o:hover svg{opacity:1}"};function hc(t,e){O(e,!0),W(t,zw);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=K("aria_label_spherical_control");var v=Uw();let m;v.__keydown=[Hw,r,s,a,l,d],v.__keyup=[Fw,r,p];var b=w(v),y=w(b),x=w(y);x.__mousedown=s,x.__mouseup=p;var S=w(x);gr(S,{direction:"up",useBtnColor:!0}),$(x);var I=k(x,2);I.__mousedown=d,I.__mouseup=p;var C=w(I);gr(C,{direction:"up",useBtnColor:!0}),$(I),$(y);var V=k(y,2),P=w(V);P.__mousedown=l,P.__mouseup=p;var R=w(P);gr(R,{direction:"up",useBtnColor:!0}),$(P);var U=k(P,2);U.__mousedown=a,U.__mouseup=p;var N=w(U);gr(N,{direction:"up",useBtnColor:!0}),$(U),$(V),$(b),$(v),D(H=>{m=ee(v,1,"immersive-controls s-o",null,m,H),Oe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),ut("mouseleave",x,p),ut("mouseleave",I,p),ut("mouseleave",P,p),ut("mouseleave",U,p),h(t,v),B()}et(["keydown","keyup","mousedown","mouseup"]);var ks=require("@vkontakte/videoplayer-shared");var lb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var ip=class{constructor(){this.flickeringTimeout=lb(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:s,value:a},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var Ww=E('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),Kw=E('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),qw=E('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),Qw=E('<div><span class="caption s-d"><!></span></div>'),Gw=E("<div><!></div>"),Yw={hash:"s-d",code:".subtitles-container.s-d{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-d{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-d{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-d .subtitles-caption:where(.s-d){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-d{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-d{bottom:8%}.subtitles-container.auto.s-d .subtitles-caption:where(.s-d){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-d{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-d .caption:where(.s-d){width:100%}.caption-line.s-d{display:block;text-align:center}.subtitles-container.auto.s-d .caption-line:where(.s-d){text-align:left}.caption-segment.s-d{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function Wa(t,e){O(e,!0),W(t,Yw);let[i,o]=Ee(),r=()=>_(m,"$currentSubtitle$",i),s=()=>_(y,"$isLive$",i),a=()=>_(x,"$isFullscreen",i),d=()=>_(S,"$previewTrackActive",i),l=()=>_(b,"$isAutoSubtitleCaptionVisible$",i),p=g(e,"isMobile",3,!1),f=ve(),v=wt(),m=f.state.currentSubtitle$,b=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,x=f.ui.isFullscreen,S=f.ui.previewTrackActive,I=u(()=>!!r().isAuto),C=u(()=>!!s()),V=u(()=>e.playerSize.width*.02),P=u(()=>p()&&!a()||n(V)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(V)),R=z(null);Pe(()=>{n(R)?.setIsAuto(n(I)),n(R)?.setIsLive(n(C)),n(R)?.setCaptions(e.captions)});let U=z(Yt([[]]));Ct(()=>{M(R,new ip().subscribe(),!0);let Z=n(R).captionsPrepared$.subscribe(J=>{M(U,J,!0)});return()=>{n(R)?.destroy(),Z.unsubscribe()}}),Ct(()=>{if(n(I)){let Z=window.setTimeout(()=>{b.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else b.set(!1)});let N=u(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=Gw();let te;var ie=w(H);{var de=Z=>{var J=Qw();let Q;var Te=w(J),fe=w(Te);{var pe=we=>{var ne=Ww(),Ne=w(ne),ce=w(Ne,!0);$(Ne),$(ne),D(L=>{ze(Ne,`font-size: ${n(P)??""}px`),ue(ce,L)},[()=>K("subtitles_auto_caption")]),h(we,ne)},ke=(we,ne)=>{{var Ne=L=>{var Fe=Ie(),he=se(Fe);ui(he,17,()=>n(U),Td,(le,me)=>{var De=Kw(),Le=w(De);ui(Le,21,()=>n(me),({value:G,timeAppeared:Y})=>Y,(G,Y)=>{let Ae=()=>n(Y).value,Ue=()=>n(Y).timeAppeared;var Se=Ie(),Ke=se(Se);{var Qe=Ve=>{var He=os();D(()=>ue(He,Ae())),h(Ve,He)};A(Ke,Ve=>{(!Ue()||Ue()<=e.position)&&Ve(Qe)})}h(G,Se)}),$(Le),$(De),D(()=>ze(Le,`font-size: ${n(P)??""}px`)),h(le,De)}),h(L,Fe)},ce=L=>{var Fe=Ie(),he=se(Fe);ui(he,17,()=>e.captions,({value:le})=>le,(le,me)=>{let De=()=>n(me).value;var Le=qw(),G=w(Le),Y=w(G,!0);$(G),$(Le),D(()=>{ze(G,`font-size: ${n(P)??""}px`),ue(Y,De())}),h(le,Le)}),h(L,Fe)};A(we,L=>{n(I)&&n(U)?.length?L(Ne):L(ce,!1)},ne)}};A(fe,we=>{n(I)&&l()?we(pe):we(ke,!1)})}$(Te),$(J),D(we=>{Q=ee(J,1,"subtitles-caption s-d",null,Q,we),ze(J,`--subtitles-caption-margin: ${n(N)??""}%`)},[()=>({mobile:p()})]),h(Z,J)};A(ie,Z=>{(e.captions.length||n(U)?.length)&&Z(de)})}$(H),D(Z=>te=ee(H,1,"subtitles-container s-d",null,te,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(C)&&!l()})]),h(t,H),B(),o()}var db=require("@vkontakte/videoplayer-core");var jw=E('<div class="text s-n"> </div>'),Xw=E('<div><div class="icon_wrapper s-n"><!></div> <!></div>'),Zw={hash:"s-n",code:".wrapper.s-n{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-n{background-size:cover}.icon_wrapper.s-n{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-n{margin-top:20px}"};function _c(t,e){O(e,!0),W(t,Zw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=wt();var r=Xw();let s;var a=w(r),d=w(a);ic(d,{get size(){return"48"},get iconState(){return db.ChromecastState.CONNECTED}}),$(a);var l=k(a,2);{var p=f=>{var v=jw(),m=w(v);$(v),D(()=>ue(m,`Видео воспроизводится на ${i()??""}`)),h(f,v)};A(l,f=>{i()&&f(p)})}$(r),D(f=>{s=ee(r,1,"wrapper s-n",null,s,f),ze(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})]),h(t,r),B()}var Jw=xe('<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 tv(t){Ye(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Jw();h(e,o)},$$slots:{default:!0}})}var eS=E('<div class="container s-4"><!></div>'),tS={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 Ka(t){W(t,tS);var e=eS(),i=w(e);tv(i,{}),$(e),h(t,e)}var iS=E('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),oS=E("<div><!></div>"),nS={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function qa(t,e){O(e,!0),W(t,nS);let i=g(e,"iconVisible",3,!0),o=ve(),r=wt(),s=o.ui.startedByKeyboard$,a=K("tooltip_play"),d=b=>{let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),s.set(!0),e.startVideo?.())},l=b=>{b.stopPropagation(),e.startVideo?.(),e.onClick?.(b)};var p=oS();let f;p.__click=l,p.__contextmenu=function(...b){e.onContextMenu?.apply(this,b)};var v=w(p);{var m=b=>{var y=iS();y.__keydown=d;var x=k(w(y),2);gn(x,{get size(){return"48"}}),$(y),D(()=>Oe(y,"aria-label",a)),h(b,y)};A(v,b=>{i()&&b(m)})}return $(p),D(b=>{f=ee(p,1,"container s-a",null,f,b),ze(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),h(t,p),B({handlePressKey:d,handleClick:l})}et(["click","contextmenu","keydown"]);var rS=E('<div data-testid="video_title"><span> </span></div>'),sS={hash:"s-12",code:".title.s-12{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;color:var(--white);font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity}.hidden.s-12{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function iv(t,e){O(e,!0),W(t,sS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),s=z(void 0);Ct(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function f(v){v.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",f),()=>n(s)?.removeEventListener("transitionend",f)});var a=rS();let d;var l=w(a),p=w(l,!0);$(l),Je(l,f=>r(f),()=>r()),$(a),Je(a,f=>M(s,f),()=>n(s)),D(f=>{d=ee(a,1,"title s-12",null,d,f),ue(p,i())},[()=>({hidden:o()})]),h(t,a),B()}var cb=require("@vkontakte/videoplayer-shared");var aS=E('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),lS=E('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),dS=E('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),cS=E('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div>'),uS=E("<div><!> <!> <!> <!></div>"),pS={hash:"s-1a",code:".timer__container.s-1a{align-items:flex-start;display:flex;justify-content:center}.cell.s-1a{align-items:center;display:flex;flex-direction:column}.cell__value.s-1a{font-size:48px;font-weight:600;line-height:1.2}.small.s-1a .cell__value:where(.s-1a){font-size:24px}.cell__unit.s-1a{font-size:14px;font-weight:400;line-height:1.2}.small.s-1a .cell__unit:where(.s-1a){font-size:12px}.timer__points.s-1a{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1a .timer__points:where(.s-1a){font-size:20px}"};function ov(t,e){O(e,!0),W(t,pS);let i=z(""),o=z(""),r=z(""),s=z(""),a,d=32,l=d/2,p=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?l:d)*f(H)}px`,m=H=>{let te=Math.floor(H/86400);te&&(H-=te*86400,M(i,p(te),!0));let ie=Math.floor(H/3600);M(o,p(ie),!0);let de=Math.floor(H/60)%60;M(r,p(de),!0);let Z=H%60;M(s,p(Z),!0)},b=()=>{let H=Math.floor(Date.now()/1e3),te=e.startTime-H;m(te),te>=1?a=requestAnimationFrame(b):e.onTimerOver()};Ct(()=>{a=requestAnimationFrame(b)}),Zo(()=>{cancelAnimationFrame(a)});var y=uS();let x;var S=w(y);{var I=H=>{var te=aS(),ie=se(te);let de;var Z=w(ie),J=w(Z,!0);$(Z);var Q=k(Z,2),Te=w(Q,!0);$(Q),$(ie);var fe=k(ie,2),pe=w(fe,!0);$(fe),D((ke,we,ne)=>{de=ze(ie,"",de,{width:ke}),ue(J,n(i)),ue(Te,we),ue(pe,ne)},[()=>v(n(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),h(H,te)};A(S,H=>{n(i)&&H(I)})}var C=k(S,2);{var V=H=>{var te=lS(),ie=se(te);let de;var Z=w(ie),J=w(Z,!0);$(Z);var Q=k(Z,2),Te=w(Q,!0);$(Q),$(ie);var fe=k(ie,2),pe=w(fe,!0);$(fe),D((ke,we,ne)=>{de=ze(ie,"",de,{width:ke}),ue(J,n(o)),ue(Te,we),ue(pe,ne)},[()=>v(n(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),h(H,te)};A(C,H=>{n(o)&&H(V)})}var P=k(C,2);{var R=H=>{var te=dS(),ie=se(te);let de;var Z=w(ie),J=w(Z,!0);$(Z);var Q=k(Z,2),Te=w(Q,!0);$(Q),$(ie);var fe=k(ie,2),pe=w(fe,!0);$(fe),D((ke,we,ne)=>{de=ze(ie,"",de,{width:ke}),ue(J,n(r)),ue(Te,we),ue(pe,ne)},[()=>v(n(r)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),h(H,te)};A(P,H=>{n(r)&&H(R)})}var U=k(P,2);{var N=H=>{var te=cS();let ie;var de=w(te),Z=w(de,!0);$(de);var J=k(de,2),Q=w(J,!0);$(J),$(te),D((Te,fe)=>{ie=ze(te,"",ie,{width:Te}),ue(Z,n(s)),ue(Q,fe)},[()=>v(n(s)),()=>K("waiting_live_second_value")]),h(H,te)};A(U,H=>{n(s)&&H(N)})}$(y),D(H=>x=ee(y,1,"timer__container s-1a",null,x,H),[()=>({small:e.isSmallSize})]),h(t,y),B()}var fS=E('<div class="waiting s-q"><span> </span></div>'),mS=E('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),vS=E('<div class="waiting-container s-q"><!></div>'),gS={hash:"s-q",code:'.waiting-container.s-q{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-q,.waiting-container.s-q:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-q:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-q{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-q{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-q{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-q{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-q{font-size:15px}.medium.s-q{font-size:17px}'};function bc(t,e){O(e,!0),W(t,gS);let i=g(e,"startTime",3,0),o=u(()=>i()<Math.floor(Date.now()/1e3)),r=z(void 0),s=z(void 0),a=0,d=z(void 0),l=z(void 0),p=u(()=>(n(d)??1/0)<=509||(n(l)??1/0)<=320),f=u(()=>!n(p)&&((n(d)??1/0)<=699||(n(l)??1/0)<=599)),v=e.onUpcomingLiveViewStateChanged?(0,cb.throttleFn)(()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(p)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(S,I)})},300):void 0;Pe(()=>{n(l),n(d),n(o),v?.()}),Zo(()=>{if(cancelAnimationFrame(a),v?.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(p)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var m=vS();m.__contextmenu=function(...S){e.onContextMenu?.apply(this,S)},m.__click=function(...S){e.onClick?.apply(this,S)};var b=w(m);{var y=S=>{var I=fS(),C=w(I);let V;var P=w(C,!0);$(C),$(I),Je(I,R=>M(r,R),()=>n(r)),D((R,U)=>{V=ee(C,1,"waiting__title s-q",null,V,R),ue(P,U)},[()=>({medium:n(f),small:n(p)}),()=>K("waiting_live_upcoming_title")]),h(S,I)},x=S=>{var I=mS(),C=w(I);let V;var P=w(C,!0);$(C);var R=k(C,2);let U=u(()=>n(p)||n(f)),N=u(()=>i()||0);ov(R,{get isSmallSize(){return n(U)},get startTime(){return n(N)},onTimerOver:()=>M(o,!0)}),$(I),Je(I,H=>M(s,H),()=>n(s)),D((H,te)=>{V=ee(C,1,"timer__title s-q",null,V,H),ue(P,te)},[()=>({medium:n(f),small:n(p)}),()=>K("waiting_live_timer_title")]),h(S,I)};A(b,S=>{n(o)?S(y):S(x,!1)})}$(m),D(()=>ze(m,`background-image: url(${e.thumbUrl})`)),mn(m,"clientWidth",S=>M(d,S)),mn(m,"clientHeight",S=>M(l,S)),h(t,m),B()}et(["contextmenu","click"]);var hS=E('<div class="waiting-container s-u"><div class="waiting-caption s-u"><!> <p class="waiting-title s-u"> </p></div></div>'),_S={hash:"s-u",code:'.waiting-container.s-u{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-u,.waiting-container.s-u:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-u:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-u{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-u{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function Qa(t,e){O(e,!0),W(t,_S);let i=g(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},r=u(()=>o[e.kind]||"");var s=hS();s.__contextmenu=function(...f){e.onContextMenu?.apply(this,f)},s.__click=function(...f){e.onClick?.apply(this,f)};var a=w(s),d=w(a);Ra(d,{style:"position: static; transform: translate(0, 0)"});var l=k(d,2),p=w(l,!0);$(l),$(a),$(s),D(()=>{ze(s,`background-image: url('${i()}')`),ue(p,n(r))}),h(t,s),B()}et(["contextmenu","click"]);var bS=xe('<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 nv(t){Ye(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=bS();h(e,o)},$$slots:{default:!0}})}var $S=E('<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 $c(t){W(t,yS);var e=$S(),i=w(e);nv(i,{}),$(e),h(t,e)}var xS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},wS=(t,e)=>{Nl(t,()=>e.item.selectItem(e.item.value))},SS=E("<p> </p>"),TS=E('<p class="sublabel s-1s"> </p>'),CS=E('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),IS={hash:"s-1s",code:".menu-item-value.s-1s{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1s{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1s,.sublabel.s-1s{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1s{opacity:.5}"};function rv(t,e){O(e,!0),W(t,IS);let i=g(e,"isMobile",3,!1);var o=CS();let r;o.__click=[xS,e],o.__keydown=[wS,e];var s=w(o);{var a=y=>{$c(y,{})};A(s,y=>{e.item.selected&&y(a)})}var d=k(s,2);let l;var p=w(d);{var f=y=>{var x=Ie(),S=se(x);xi(S,()=>e.item.valueComponent,(I,C)=>{C(I,$s(()=>e.item.valueComponentParams??{}))}),h(y,x)},v=y=>{var x=SS();let S;var I=w(x,!0);$(x),D(C=>{S=ee(x,1,"label s-1s",null,S,C),ue(I,e.item.label??e.item.value)},[()=>({mobile:i()})]),h(y,x)};A(p,y=>{e.item.valueComponent?y(f):y(v,!1)})}var m=k(p,2);{var b=y=>{var x=TS(),S=w(x,!0);$(x),D(()=>ue(S,e.item.sublabel)),h(y,x)};A(m,y=>{e.item.sublabel&&y(b)})}$(d),$(o),D((y,x,S)=>{r=ee(o,1,"item",null,r,y),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",x),Oe(o,"data-testid",e.item.dataTestid),l=ee(d,1,"menu-item-value s-1s",null,l,S),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),h(t,o),B()}et(["click","keydown"]);var kS=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function sv(t,e){O(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=u(()=>()=>e.openSubMenuList(e.item.children)),s=u(()=>x=>Du(x,n(r)));var a=kS();let d;a.__click=function(...x){n(r)?.apply(this,x)},a.__keydown=function(...x){n(s)?.apply(this,x)};var l=w(a);{var p=x=>{$c(x,{})};A(l,x=>{e.item.selected&&x(p)})}var f=k(l,2);let v;var m=w(f);{var b=x=>{var S=Ie();let I=u(()=>e.item.valueComponent);var C=se(S);xi(C,()=>n(I),(V,P)=>{P(V,$s(()=>e.item.valueComponentParams??{}))}),h(x,S)},y=x=>{var S=os();D(()=>ue(S,e.item.label)),h(x,S)};A(m,x=>{e.item.valueComponent?x(b):x(y,!1)})}$(f),$(a),Je(a,x=>o(o()[e.item.id]=x,!0),()=>o()?.[e.item.id]),D((x,S)=>{d=ee(a,1,"item",null,d,x),Oe(a,"aria-label",e.item.ariaLabel??e.item.label),Oe(a,"data-testid",e.item.id),v=ee(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),h(t,a),B()}et(["click","keydown"]);var Kr={"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)=>{C_(t,e.returnFromSubMenu,e.closeSettingsMenu)},AS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},LS=(t,e)=>{zd(t)&&(hr(t),e.returnFromSubMenu())},MS=E('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1m"> </p></li> <!></ul></div>'),RS={hash:"s-1m",code:".sub-menu.s-1m{--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-1m .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1m{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1m{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1m .items:where(.s-1m) .item.header:where(.s-1m){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-1m .title:where(.s-1m){margin-left:8px}.sub-menu.s-1m .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1m .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1m .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1m .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1m .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1m .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1m .item .sublabel{font-size:12px;line-height:14px}.item.s-1m:not(.mobile) p:where(.s-1m),.sub-menu.s-1m .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function lv(t,e){O(e,!0),W(t,RS);let[i,o]=Ee(),r=()=>_(v,"$isFullscreen",i),s=()=>_(m,"$playerSize",i),a=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),l=g(e,"ariaLabelReturnFromSubMenu",19,()=>K("aria_label_submenu_back")),p=g(e,"listRef",15);Ct(()=>{let Z=e.items.findIndex(J=>J.selected);p().children[Z+1].focus()});let f=ve(),v=f.ui.isFullscreen,m=f.ui.playerSize,b=z(void 0),y=z(0),x=z(0),S=u(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(x)-d()}px; overflow: auto;`),I=u(()=>Math.max(e.minWidth,n(y)));var C=MS();let V;var P=w(C);let R;P.__keydown=[PS,e];var U=w(P);let N;U.__click=[AS,e],U.__keydown=[LS,e];var H=w(U);gr(H,{direction:"left"});var te=k(H,2),ie=w(te,!0);$(te),$(U),Je(U,Z=>M(b,Z),()=>n(b));var de=k(U,2);ui(de,17,()=>e.items,Td,(Z,J)=>{var Q=Ie(),Te=se(Q);{var fe=ke=>{rv(ke,{get item(){return n(J)},get isMobile(){return a()}})},pe=(ke,we)=>{{var ne=Ne=>{sv(Ne,{get isMobile(){return a()},get item(){return n(J)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};A(ke,Ne=>{n(J).type==="OPEN_SUB_MENU"&&Ne(ne)},we)}};A(Te,ke=>{n(J).type==="SELECT_VALUE"?ke(fe):ke(pe,!1)})}h(Z,Q)}),$(P),Je(P,Z=>p(Z),()=>p()),$(C),D((Z,J,Q)=>{V=ee(C,1,"sub-menu menu s-1m",null,V,Z),Oe(C,"data-testid",`sub-menu-${e.id}`),ze(C,`min-width: ${n(I)}px`),R=ee(P,1,"items s-1m",null,R,J),ze(P,n(S)),N=ee(U,1,"item header back s-1m",null,N,Q),Oe(U,"aria-label",l()),ue(ie,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),mn(U,"clientWidth",Z=>M(y,Z)),mn(U,"clientHeight",Z=>M(x,Z)),h(t,C),B(),o()}et(["keydown","click"]);var pb=require("@vkontakte/videoplayer-shared");var VS=(t,e)=>Du(t,e()),NS=(t,e)=>{t.stopPropagation(),e()()},DS=E('<div class="value s-1o"> </div>'),OS=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),BS={hash:"s-1o",code:".value.s-1o{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function dv(t,e){O(e,!0),W(t,BS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,pb.noop),r=g(e,"valueComponent",3,void 0),s=g(e,"ref",15);var a=OS();let d;a.__click=[NS,o],a.__keydown=[VS,o];var l=w(a),p=w(l);{var f=I=>{Ha(I,{get icon(){return e.icon}})},v=I=>{var C=Ie();let V=u(()=>e.icon);var P=se(C);xi(P,()=>n(V),(R,U)=>{U(R,{})}),h(I,C)};A(p,I=>{typeof e.icon=="string"?I(f):I(v,!1)})}$(l);var m=k(l,2),b=w(m,!0);$(m);var y=k(m,2);{var x=I=>{var C=Ie();let V=u(r);var P=se(C);xi(P,()=>n(V),(R,U)=>{U(R,{})}),h(I,C)},S=I=>{var C=DS(),V=w(C,!0);$(C),D(()=>ue(V,e.value)),h(I,C)};A(y,I=>{r()?I(x):I(S,!1)})}$(a),Je(a,I=>s(I),()=>s()),D(I=>{d=ee(a,1,"item",null,d,I),Oe(a,"aria-label",e.ariaLabel),Oe(a,"data-testid",e.id),ue(b,e.label)},[()=>({mobile:i()})]),h(t,a),B()}et(["click","keydown"]);var cv=require("@vkontakte/videoplayer-shared");var HS=(t,e)=>{Nl(t,()=>e())},FS=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),US=E('<img class="icon" aria-hidden="true"/>'),zS=E('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),WS={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function uv(t,e){O(e,!0),W(t,WS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,cv.noop),r=g(e,"closeSettings",3,cv.noop),s=z(!1),a=()=>{M(s,!0)},d=S=>{S?.stopPropagation(),o()(),r()()};var l=zS();let p;l.__click=d,l.__keydown=[HS,d];var f=w(l),v=w(f);{var m=S=>{var I=Ie(),C=se(I);{var V=R=>{var U=FS();h(R,U)},P=R=>{var U=US();D(()=>Oe(U,"src",e.icon)),ut("error",U,a),ba(U),h(R,U)};A(C,R=>{n(s)?R(V):R(P,!1)})}h(S,I)},b=S=>{var I=Ie();let C=u(()=>e.icon);var V=se(I);xi(V,()=>n(C),(P,R)=>{R(P,{})}),h(S,I)};A(v,S=>{typeof e.icon=="string"?S(m):S(b,!1)})}$(f);var y=k(f,2),x=w(y,!0);$(y),$(l),D(S=>{p=ee(l,1,"item",null,p,S),Oe(l,"aria-label",e.ariaLabel??e.label),Oe(l,"data-testid",e.id),ue(x,e.label)},[()=>({mobile:i()})]),h(t,l),B()}et(["click","keydown"]);var fb=require("@vkontakte/videoplayer-shared");var KS=E('<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 pv(t,e){W(t,qS);let i=g(e,"enabled",3,!1);var o=KS(),r=w(o);let s;Jt(2),$(o),D(a=>s=ee(r,1,"toggle s-1r",null,s,a),[()=>({on:i()})]),h(t,o)}var QS=(t,e,i)=>{I_(t,e(),o=>i()(o))},GS=(t,e,i)=>{t.stopPropagation(),e()(!i())},YS=E('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),jS=E('<li role="menuitem" tabindex="0"><!></li>');function fv(t,e){O(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,fb.noop),r=g(e,"enabled",3,!1),s=g(e,"tooltipText",3,void 0),a=g(e,"maxTooltipWidth",3,void 0);var d=jS();let l;d.__click=[GS,o,r],d.__keydown=[QS,r,o];var p=w(d);Na(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(f,v)=>{var m=YS();let b;var y=w(m),x=w(y);{var S=R=>{Ha(R,{get icon(){return e.icon}})},I=R=>{var U=Ie();let N=u(()=>e.icon);var H=se(U);xi(H,()=>n(N),(te,ie)=>{ie(te,{})}),h(R,U)};A(x,R=>{typeof e.icon=="string"?R(S):R(I,!1)})}$(y);var C=k(y,2),V=w(C,!0);$(C);var P=k(C,2);pv(P,{get enabled(){return r()}}),$(m),D(R=>{b=ee(m,1,"switch-wrapper",null,b,R),ue(V,e.label)},[()=>({mobile:i()})]),h(f,m)},$$slots:{default:!0}}),$(d),D(f=>{l=ee(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",e.ariaLabel??e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),h(t,d),B()}et(["click","keydown"]);var xc=require("@vkontakte/videoplayer-shared");var mb=()=>{let t=z(Yt([])),e=u(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{M(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{M(t,[],!0)}}};var XS=E('<div class="quality-icon s-1q"><!></div>'),ZS=E('<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 Ga(t,e){O(e,!0),W(t,JS);let i=g(e,"isSubCase",3,!1),o=u(()=>Uu(e.quality));var r=ZS(),s=w(r);let a;var d=w(s,!0);$(s);var l=k(s,2);{var p=f=>{var v=XS();let m=u(()=>n(o));var b=w(v);xi(b,()=>n(m),(y,x)=>{x(y,{})}),$(v),h(f,v)};A(l,f=>{n(o)&&!e.isMobile&&f(p)})}$(r),D(f=>{a=ee(s,1,"s-1q",null,a,f),ue(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),h(t,r),B()}var _b=require("@vkontakte/videoplayer-shared");var mv=require("@vkontakte/videoplayer-core");var vb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},gb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=vb({quality:t,availableQualities:e});return i?t===mv.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},hb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===mv.VideoQuality.INVARIANT?i:`${i}${vb({quality:t,availableQualities:e})}`:"...";var eT=E('<div class="menu-item-value-wrapper s-1t"><!></div>'),tT={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function Gl(t,e){O(e,!0),W(t,tT);let[i,o]=Ee(),r=()=>_(l,"$currentQuality$",i),s=()=>_(p,"$availableQualities$",i),a=()=>_(f,"$isMobile$",i),d=ve(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" · ",m=u(()=>e.prefix+(e.selected&&r()!==_b.VideoQuality.INVARIANT?v:"")),b=u(()=>hb({prefix:n(m),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var y=eT(),x=w(y);let S=u(()=>e.selected?r():void 0);Ga(x,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return a()},isSubCase:!0}),$(y),h(t,y),B(),o()}var iT=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},oT={br:!0,span:!0},vv=(t,e={})=>{if(!t)return t;let i={...oT,...e},o=Object.keys(i);if(!o.length)return t;let r=iT(o),s=[],a=0;for(let d of t.matchAll(r)){let l=d[0],p=d.groups?.keyhtml||d.groups?.keyi18n||d.groups?.keyhtmlself||d.groups?.keyi18nself||"",{index:f}=d;if(!i[p]){s.push(t.slice(a,f)),a=f+l.length;continue}let v=d.groups?.childrenhtml?vv(d.groups.childrenhtml,i):"",m=d.groups?.childrenhtml?l.replace(new RegExp(d.groups?.childrenhtml),()=>v||""):l;s.push(t.slice(a,f),m),a=f+l.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function yc(t,e){O(e,!1);let i=g(e,"message",8),o=vv(i());ao();var r=Ie(),s=se(r);{var a=d=>{var l=Ie(),p=se(l);Cd(p,()=>o),h(d,l)};A(s,d=>{o&&d(a)})}h(t,r),B()}var nT=E('<p class="quality-applies sublabel s-1u"><!></p>'),rT={hash:"s-1u",code:".quality-applies.s-1u{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function gv(t,e){O(e,!1),W(t,rT),ao();var i=nT(),o=w(i);let r=dn(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));yc(o,{get message(){return n(r)}}),$(i),h(t,i),B()}var $b=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Gl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},hv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?Gl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),yb=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:gv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),_v=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:K("high_quality"),valueComponent:t?Gl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),bv=({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:K("traffic_saving_quality"),valueComponent:t?Gl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var op=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),np=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=rc(i)??i),o&&i&&r){let a=e.filter(d=>d.label===o&&d.language===i);if(a.length===1)return K("audio_stream_display_language_label",{language:r,label:o});{let d=op(t,a);return K("audio_stream_display_language_label_index",{language:r,label:o,index:d})}}if(o){let a=e.filter(d=>d.label===o);if(a.length===1)return o;{let d=op(t,a);return K("audio_stream_display_label_index",{label:o,index:d})}}if(i&&r){let a=e.filter(d=>d.language===i);if(a.length===1)return r;{let d=op(t,a);return K("audio_stream_display_language_index",{language:r,index:d})}}let s=op(t,e);return K("audio_stream_display_unknown",{index:s})};var sT={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:hv,selected:e&&!o&&!r||!1}),s.push({handler:bv,selected:o},{handler:_v,selected:r}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[yb(t),...s.map(({handler:a,selected:d})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),$b(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:K("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Ga,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:K("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:hv,selected:Cu()?.type==="auto_quality"},{handler:bv,selected:Cu()?.type==="traffic_saving"},{handler:_v,selected:Cu()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:K("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:np(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:K("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:K("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===_n?"sub_off":void 0}))})},xb=({subMenuId:t,context:e})=>t?[sT[t](e)]:[];var aT=xe('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.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 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function $v(t){Ye(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=aT();h(e,o)},$$slots:{default:!0}})}var lT=xe('<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 yv(t){Ye(t,{width:"18",height:"15",children:(e,i)=>{var o=lT();h(e,o)},$$slots:{default:!0}})}var dT=xe('<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 xv(t){Ye(t,{testId:"play-speed-icon",children:(e,i)=>{var o=dT();h(e,o)},$$slots:{default:!0}})}var cT=xe('<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 wv(t){Ye(t,{testId:"download-icon",children:(e,i)=>{var o=cT();h(e,o)},$$slots:{default:!0}})}var uT=xe('<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 Sv(t){Ye(t,{testId:"report-icon",children:(e,i)=>{var o=uT();h(e,o)},$$slots:{default:!0}})}var pT=xe('<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 rp(t){Ye(t,{children:(e,i)=>{var o=pT();h(e,o)},$$slots:{default:!0}})}var fT=xe('<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 Tv(t){Ye(t,{testId:"info-icon",children:(e,i)=>{var o=fT();h(e,o)},$$slots:{default:!0}})}var mT=E('<div class="menu-item-value-wrapper s-1w"><!></div>'),vT={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function Cv(t,e){O(e,!0),W(t,vT);let[i,o]=Ee(),r=()=>_(p,"$currentQuality$",i),s=()=>_(f,"$availableQualities$",i),a=()=>_(v,"$isAutoQualityEnabled$",i),d=()=>_(m,"$isMobile$",i),l=ve(),p=l.state.currentQuality$,f=l.state.availableQualities$,v=l.state.isAutoQualityEnabled$,m=l.ui.isMobile,b=u(()=>gb({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var y=mT(),x=w(y);Ga(x,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),$(y),h(t,y),B(),o()}var hT={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?K("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_quality",{actual:o}),icon:jd,label:K("menu_quality"),value:e,valueComponent:Cv,weight:Kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Kr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:$v,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=np(t,e);return{id:"AUDIO_LANGUAGES",weight:Kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:yv,label:K("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:Kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:xv,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:js,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Kr.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:wv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Kr.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:Sv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Kr["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:rp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Kr["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:rp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Kr["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:Tv,isHiddenFor:["desktop"]})},wb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>hT[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(La)};var bT=(t,e)=>{Nu(t,e)},$T=E('<div><div> </div> <div class="close s-p"></div></div>'),yT=E('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),xT=E("<div><!> <!></div>"),wT={hash:"s-p",code:'.settings-menu-container.mobile.s-p{width:100%}.settings-menu-container.s-p ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-p .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-p .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-p .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-p .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-p .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-p .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-p{line-height:40px}.settings-menu.desktop.s-p{min-width:300px}.settings-menu-container.s-p .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-p .menu.mobile.hidden{display:none}.settings-menu-container.s-p .menu .item:not(.switch-item),.settings-menu-container.s-p .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-p .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-p .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-p .item:not(.switch-item),.settings-menu.s-p .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-p .item.mobile:not(.switch-item),.settings-menu.s-p .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-p .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-p .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-p .item.header.mobile:where(.s-p){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-p .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-p .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-p .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-p .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-p .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-p{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-p:after,.close.s-p:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-p:before{transform:rotate(45deg)}.close.s-p:after{transform:rotate(-45deg)}'};function wc(t,e){O(e,!0),W(t,wT);let[i,o]=Ee(),r=()=>_(Le,"$settingsMenuVisible",i),s=()=>_(G,"$settingsMenuOpenedByKeyboard",i),a=()=>_(He,"$debugPanelVisible",i),d=()=>_(Ae,"$isMobile",i),l=()=>_(Ve,"$playerSize",i),p=()=>_(De,"$hasMpegSources$",i),f=()=>_(Ue,"$mobileNotReportControlHidden$",i),v=()=>_(ne,"$autoQualityLimitingAvailable$",i),m=()=>_(le,"$availableSubtitlesList$",i),b=()=>_(Se,"$isLiveWithPlaybackSpeed",i),y=()=>_(pe,"$availableAudioStreams$",i),x=()=>_(Fe,"$availablePlaybackRates$",i),S=()=>_(fe,"$currentAudioStream$",i),I=()=>_(L,"$currentPlaybackRate$",i),C=()=>_(Ke,"$trafficSavingEnabled",i),V=()=>_(ke,"$currentQuality$",i),P=()=>_(Ne,"$isAutoQualityEnabled$",i),R=()=>_(he,"$currentSubtitle$",i),U=()=>_(je,"$additionalSettingsMenuItems$",i),N=()=>_(ce,"$isAutoQualityAvailable$",i),H=()=>_(we,"$availableQualities$",i),te=()=>_(Qe,"$highQualityEnabled",i),ie=g(e,"ref",15,void 0),de=g(e,"playerControlsHeight",3,0),Z=Yt({}),J=Yt({}),Q=ve(),Te=wt(),fe=Q.state.audioStream$,pe=Q.state.availableAudioStreams$,ke=Q.state.currentQuality$,we=Q.state.availableQualities$,ne=Q.state.autoQualityLimitingAvailable$,Ne=Q.state.isAutoQualityEnabled$,ce=Q.state.isAutoQualityAvailable$,L=Q.state.currentPlaybackRate$,Fe=Q.state.availablePlaybackRates$,he=Q.state.currentSubtitle$,le=Q.state.availableSubtitlesList$,me=Q.state.canDownload,De=Q.state.hasMpegSources$,Le=Q.ui.settingsMenu.visible$,G=Q.ui.settingsMenu.openedByBtnKeyboard$,Y=Q.ui.settingsMenu.ref$,Ae=Q.ui.isMobile,Ue=Q.ui.mobileNotReportControlHidden$,Se=Q.state.canChangePlaybackSpeed$,Ke=Q.state.trafficSavingEnabled$,Qe=Q.state.highQualityEnabled$,Ve=Q.ui.playerSize,He=Q.ui.debugPanelVisible,kt=Q.state.isInteractiveTime$,je=Q.ui.additionalSettingsMenuItems$,Et=Q.ui.t,Dt=Q.actions.internal.downloadVideo,gt=Q.actions.internal.closeSettingsMenu,Ft=Q.actions.internal.openSettingsSubMenu,Pt=Q.actions.internal.closeSettingsSubMenu,be=z(!1),$e=z(void 0),X=mb();Pe(()=>{!r()&&X.current&&(Pt(J[X.current]),X.popAllSubMenus())}),Pe(()=>{r()||M($e,void 0)}),Pe(()=>{!X.current&&n($e)&&T_(Z,n($e))}),Pe(()=>{ie()&&Y.set(ie())});async function ye(xt){X.pushSubMenu(xt),await eo(),Ft(xt,J[xt]);let Bt=ie()?.firstElementChild;Bt&&Qf(Bt)}function oe(xt){xt?.stopPropagation(),s()||e.returnFocus?.(),gt(),M(be,!1)}function rt(xt,Bt){Q.actions.internal.setQuality(xt,{appliesTo:Bt}),oe()}function at(xt){Q.actions.internal.setAudioStream(xt),oe()}function nt(xt,Bt){Q.actions.internal.setTrafficSavingEnabled(xt,Bt),Te.features.qualityDetailsSubMenuEnabled&&oe()}function yt(xt,Bt){Q.actions.internal.setHighQualityEnabled(xt,Bt),oe()}function Me(xt){Q.actions.internal.setPlaybackRate(xt),oe()}function Re(xt){Q.actions.internal.setSubtitle(xt),oe()}function st(){Dt()}function vt(){(0,xc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Q.actions.internal.reportProblem(),Q.actions.internal.pause()}function mi(){Rl(Q.actions.internal.getDebugTextData())}let ei=()=>{let xt=Q.actions.internal.getTraceTextData(),Bt=new Blob([...xt],{type:"application/json"}),q=window.URL.createObjectURL(Bt);Ca(q,"vk_player_trace_info","json")};function hi(){He.set(!a())}function Ai(){M(be,!0)}function Ro(){M(be,!1)}function At(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-de()}px; overflow: auto;`}let Lt=u(()=>me&&p()&&!f()),di=u(()=>Te.features.trafficSaving&&!f()&&v()&&!Te.features.qualityDetailsSubMenuEnabled),Hi=u(()=>m().length>0&&!f()),ci=u(()=>!!b()&&!f()),tn=u(()=>Te.features.audioLanguages&&y().length>=2&&!f()),Vo=u(()=>!f());Ct(()=>kt.subscribe(xt=>{xt&&!d()&&!n(be)&&!s()&&oe()}));let Zt=u(()=>{let xt=[n(Vo)&&"QUALITY_SETTINGS",n(tn)&&"AUDIO_LANGUAGES",n(ci)&&"PLAYBACK_RATE",n(Hi)&&"SUBTITLES",n(di)&&"TRAFFIC_SAVING_SWITCH",n(Lt)&&"DOWNLOAD",Te.showSupport&&"SHOW_SUPPORT","COPY_DATA",Te.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Bt=>!!Bt);return wb({items:xt,context:{qualityDetailsSubMenuEnabled:Te.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:Me,trafficSavingEnabled:C(),toggleTrafficSaving:nt,currentQuality:V()||xc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:R(),isMobile:d(),onDownloadClick:st,onCopyDataClick:mi,onReportProblemClick:vt,onSaveTraceDataClick:ei,toggleShowDebugInfo:hi},additionalSettingsMenuItems:U()})}),No=u(()=>xb({subMenuId:X.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Me,trafficSavingEnabled:C(),toggleTrafficSaving:nt,currentQuality:V()||xc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:N()||!1,availableQualities:H(),highQualityEnabled:te(),toggleHighQuality:yt,availableAudioStreams:y(),availableSubtitlesList:m(),closeSettingsMenu:gt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:at,selectQuality:rt,selectSubtitle:Re}}));var vi=xT();let to;var ho=w(vi);{var Mn=xt=>{var Bt=yT();let q;Bt.__keydown=[bT,gt];var Rt=w(Bt);{var Qt=Ut=>{var _t=$T();let Fi;var _o=w(_t),Do=w(_o,!0);$(_o);var bo=k(_o,2);bo.__click=oe,$(_t),D((io,Si)=>{Fi=ee(_t,1,"item header s-p",null,Fi,io),ue(Do,Si)},[()=>({mobile:d()}),()=>Et("submenu_settings")]),h(Ut,_t)};A(Rt,Ut=>{d()&&Ut(Qt)})}var lt=k(Rt,2);let Xt;ui(lt,21,()=>n(Zt),Ut=>Ut.id,(Ut,_t)=>{var Fi=Ie(),_o=se(Fi);{var Do=io=>{dv(io,{get isMobile(){return d()},get id(){return n(_t).id},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get value(){return n(_t).value},get valueComponent(){return n(_t).valueComponent},onClick:()=>{ye(n(_t).children),M($e,n(_t).id,!0)},get ref(){return Z[n(_t).id]},set ref(Si){Z[n(_t).id]=Si}})},bo=(io,Si)=>{{var tr=oo=>{uv(oo,{get isMobile(){return d()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},closeSettings:oe})},Ui=(oo,Ti)=>{{var Oo=Bo=>{fv(Bo,{get isMobile(){return d()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get enabled(){return n(_t).enabled},get tooltipText(){return n(_t).tooltipText},get maxTooltipWidth(){return n(_t).maxTooltipWidth}})};A(oo,Bo=>{n(_t).type==="SWITCH"&&Bo(Oo)},Ti)}};A(io,oo=>{n(_t).type==="CLICK"?oo(tr):oo(Ui,!1)},Si)}};A(_o,io=>{n(_t).type==="OPEN_SUB_MENU"?io(Do):io(bo,!1)})}h(Ut,Fi)}),$(lt),Je(lt,Ut=>ie(Ut),()=>ie()),$(Bt),D((Ut,_t,Fi)=>{q=ee(Bt,1,"settings-menu menu s-p",null,q,Ut),Xt=ee(lt,1,"items",null,Xt,_t),ze(lt,Fi)},[()=>({desktop:!d(),mobile:d(),hidden:!!X.current}),()=>({mobile:d()}),At]),ut("mouseenter",Bt,Ai),ut("mouseleave",Bt,Ro),h(xt,Bt)};A(ho,xt=>{r()&&xt(Mn)})}var Rn=k(ho,2);ui(Rn,17,()=>n(No),xt=>xt.id,(xt,Bt)=>{let q=u(()=>n(Bt).minWidth??137);lv(xt,{get isMobile(){return d()},get playerControlsHeight(){return de()},get returnFromSubMenu(){return X.popSubMenu},get id(){return n(Bt).id},get title(){return n(Bt).title},get closeSettingsMenu(){return gt},openSubMenuList:ye,get items(){return n(Bt).items},get minWidth(){return n(q)},get refMenuItems(){return Z},get listRef(){return J[n(Bt).id]},set listRef(Rt){J[n(Bt).id]=Rt}})}),$(vi),D(xt=>to=ee(vi,1,"settings-menu-container s-p",null,to,xt),[()=>({mobile:d(),hidden:!r()})]),h(t,vi),B(),o()}et(["keydown","click"]);var ST=E('<button class="btn s-1d"> </button>'),TT={hash:"s-1d",code:"button.btn.s-1d{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Iv(t,e){W(t,TT);var i=ST();i.__click=function(...r){e.onClick?.apply(this,r)};var o=w(i,!0);$(i),D(()=>ue(o,e.label)),h(t,i)}et(["click"]);var CT=E('<div class="container s-m"><div class="notification s-m"><div><p class="description s-m"><!></p> <!></div> <!></div></div>'),IT={hash:"s-m",code:".container.s-m{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-m{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-m{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Sc(t,e){O(e,!0),W(t,IT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=wt(),{ui:{t:r}}=ve(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=CT(),d=w(a),l=w(d),p=w(l),f=w(p);yc(f,{get message(){return s}}),$(p);var v=k(p,2);{var m=y=>{let x=u(()=>r("slow_video_notification_button"));Iv(y,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};A(v,y=>{o||y(m)})}$(l);var b=k(l,2);xs(b,{get onClick(){return e.onClose}}),$(d),$(a),Fr(3,d,()=>as,()=>({duration:i})),h(t,a),B()}var Tc=require("@vkontakte/videoplayer-shared"),Ya="annotation",sp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",Ya),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&this.store?.ui.isControlsAvailable.set(!1)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:d}=this.store?.ui||{},l=new MutationObserver(f=>f.forEach(()=>{let v=Ss(s,this.shadowRootContainer);o.forEach(m=>{let b=a?.[m],y=b?ge(b):null,x=d?.[m];y&&x?.set((0,Tc.isIntersecting)(y,v))})}));l.observe(s,{childList:!0,subtree:!0}),r.observer=l;let p=new Tc.Subscription;o.forEach(f=>{a&&p.add(a[f].subscribe(v=>{let m=d?.[f];v&&v.isDisplayed?m?.set((0,Tc.isIntersecting)(v,Ss(s,this.shadowRootContainer))):m?.set(!1)}))}),r.subs=p}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[r,s].forEach(p=>p?.disconnect()),a?.unsubscribe(),this.slots.delete(e),l&&this.store?.ui.isControlsAvailable.set(!0),d?.controlsToObserve?.forEach(p=>{this.store?.ui.hiddenControls[p]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var kT=E('<div class="container s-5"><!></div>'),ET={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 Cc(t,e){O(e,!0),W(t,ET);let i=g(e,"reversed",3,!1);var o=Ie(),r=se(o);_s(r,()=>e.Icon,s=>{var a=kT(),d=w(a);xi(d,()=>e.Icon,(l,p)=>{p(l,{get size(){return"48"},get reversed(){return i()}})}),$(a),D(()=>ze(a,`animation-duration: ${e.duration}ms`)),h(s,a)}),h(t,o),B()}var kv=require("@vkontakte/videoplayer-core"),PT=E('<div class="container s-13"><!></div>'),AT={hash:"s-13",code:".container.s-13{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Ev(t,e){O(e,!0),W(t,AT);let[i,o]=Ee(),r=()=>_(l,"$playbackState$",i),s=()=>_(f,"$previewTrackActive",i),a=()=>_(v,"$previewTrackDragInProgress",i),d=()=>_(p,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:p},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=ve(),{features:{playbackStatusShow:m},playbackStatusAnimationDuration:b}=wt(),y=0,x=z(null),S=z(!1);Pe(()=>{r()===kv.PlaybackState.PLAYING?M(x,gn,!0):r()===kv.PlaybackState.PAUSED?M(x,Cs,!0):M(x,null)}),Pe(()=>{if(!(!m||s()||a()))return y=window.setTimeout(()=>{y=0,M(x,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Pe(()=>{d()&&!n(S)&&(M(S,!0),M(x,null))});var I=Ie(),C=se(I);{var V=P=>{var R=PT(),U=w(R);Cc(U,{get duration(){return b},get Icon(){return n(x)}}),$(R),h(P,R)};A(C,P=>{n(x)&&m&&P(V)})}h(t,I),B(),o()}var LT=E('<div><div data-testid="video-container"></div></div>'),MT={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 ja(t,e){O(e,!0),W(t,MT);let[i,o]=Ee(),r=()=>_(f,"$rotateAlpha",i),s=()=>_(v,"$playerSize",i),a=()=>_(p,"$playerPhase",i),d=()=>_(m,"$isPlaying$",i),l=g(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:m}}=ve(),{isSmoothVideoRotate:b}=wt(),y=u(()=>l()&&r()%180?s().height/s().width:1);var x=LT();let S;x.__contextmenu=function(...V){e.onContextMenu?.apply(this,V)},x.__mousedown=function(...V){e.onMouseDown?.apply(this,V)},x.__mouseup=function(...V){e.onMouseUp?.apply(this,V)},x.__click=function(...V){e.onClick?.apply(this,V)},x.__dblclick=function(...V){e.onDblClick?.apply(this,V)};var I=w(x);let C;Je(I,V=>l(V),()=>l()),$(x),D((V,P)=>{S=ee(x,1,"video-wrapper s-c",null,S,V),C=ee(I,1,"video-container s-c",null,C,P),ze(I,`transform: rotate(${r()}deg) scale(${n(y)})`),Oe(I,"data-is-playing",d())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),h(t,x),B(),o()}et(["contextmenu","mousedown","mouseup","click","dblclick"]);var RT=E('<div><span class="text s-z"> </span> <!></div>'),VT={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 Pv(t,e){O(e,!0),W(t,VT);let{ui:{t:i}}=ve();var o=RT();let r;var s=w(o),a=w(s,!0);$(s);var d=k(s,2);gc(d,{get size(){return"16"},fill:"currentColor"}),$(o),D((l,p)=>{r=ee(o,1,"root s-z",null,r,l),ue(a,p)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),h(t,o),B()}var NT=E('<div class="container s-15" role="button" data-testid="preview-track-overlay"><div class="icon s-15"><!></div></div>'),DT={hash:"s-15",code:".container.s-15{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-15,.icon.s-15{align-items:center;display:flex;justify-content:center}.icon.s-15{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-15:hover .icon:where(.s-15){transform:scale(1.15)}"};function Av(t,e){O(e,!1),W(t,DT);let o=ve().actions.internal.closePreviewTrack,r=200,s=p=>{p.stopPropagation(),o()};ao();var a=NT();a.__click=s;var d=w(a),l=w(d);return gn(l,{get size(){return"32"}}),$(d),$(a),Fr(3,a,()=>as,()=>({duration:r})),h(t,a),gf(e,"handleClick",s),B({handleClick:s})}et(["click"]);var OT=E('<div class="container s-11"><div class="notification s-11"><span class="text s-11"> </span></div></div>'),BT={hash:"s-11",code:".container.s-11{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-11{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-11{font-size:14px;font-weight:500;line-height:18px}"};function Lv(t,e){O(e,!1),W(t,BT);let{ui:{t:i}}=ve();ao();var o=OT(),r=w(o),s=w(r),a=w(s,!0);$(s),$(r),$(o),D(d=>ue(a,d),[()=>i("preview_track_notification_text")],dn),Fr(3,r,()=>as,()=>({duration:340})),h(t,o),B()}var HT=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},FT=E("<div><!></div>"),UT=E('<div class="spherical-video-icon s-7"><!></div>'),zT=E("<div><!></div>"),WT=E('<div class="settings-menu s-7"><!></div>'),KT=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qT=E("<!> <!> <!>",1),QT=E('<div class="blocked s-7"></div>'),GT=E('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),YT={hash:"s-7",code:".blocked.s-7,.player-wrapper.s-7{height:100%;position:absolute;width:100%}.blocked.s-7{z-index:var(--overlay-container-z-index)}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-7{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Rv(t,e){O(e,!0),W(t,YT);let[i,o]=Ee(),r=()=>_(_i,"$notificationsToShow$",i),s=()=>_(Lt,"$playerPhase",i),a=()=>_(ho,"$isLoaderVisible",i),d=()=>_(Ai,"$adPlaybackState",i),l=()=>_(Qt,"$crashed",i),p=()=>_(io,"$isInteractiveTime$",i),f=()=>_(tn,"$settingsMenuVisible",i),v=()=>_(Si,"$isInteractiveExpectation$",i),m=()=>_(ci,"$controlsVisible",i),b=()=>_(Ui,"$touched",i),y=()=>_(or,"$graphIsOpened$",i),x=()=>_(di,"$isFullscreen",i),S=()=>_(qr,"$autoplayNextEnabled$",i),I=()=>_(Bt,"$postrollPassed",i),C=()=>_(Mn,"$isEnded$",i),V=()=>_(Hn,"$cursorInside",i),P=()=>_(Nn,"$isControlsAvailable",i),R=()=>_($o,"$doubleForwardOn$",i),U=()=>_(yr,"$fakeIsPlaying$",i),N=()=>_(sr,"$bottomNoSmooth",i),H=()=>_(Bo,"$interactiveTimeIndicator",i),te=()=>_(Fi,"$playerSize",i),ie=()=>_(_o,"$is3DVideo",i),de=()=>_(Fo,"$doubleForwardAvailable$",i),Z=()=>_(vi,"$contextMenuVisible$",i),J=()=>_(hi,"$playbackState$",i),Q=()=>_(oo,"$hotKeyMapData",i),Te=()=>_(Zt,"$scrubbingInProgress",i),fe=()=>_(No,"$volumeChangingInProgress",i),pe=()=>_(Rn,"$chromecastConnected$",i),ke=()=>_(Uo,"$controlsTimeoutActive",i),we=()=>_(Vo,"$settingsMenuOpenedByKeyboard",i),ne=()=>_(Ht,"$contextMenuOpenedByKeyboard$",i),Ne=()=>_(To,"$contextMenuOpenedByHotKey$",i),ce=()=>_($i,"$contextMenuButtonRef$",i),L=()=>_(Pr,"$contextMenuLastActiveElem$",i),Fe=()=>_(Hi,"$isFullscreenOpenedByKeyboard",i),he=()=>_(ei,"$language$",i),le=()=>_(Gi,"$previewTrackActive$",i),me=()=>_(Do,"$icon3DVideoVisible",i),De=()=>_(xt,"$chromecastDeviceName$",i),Le=()=>_(Ut,"$currentSubtitle$",i),G=()=>_(_t,"$currentSubtitleCaptions$",i),Y=()=>_(Ro,"$position$",i),Ae=()=>_(At,"$duration$",i),Ue=()=>_(q,"$isLive$",i),Se=()=>_(Rt,"$isPlaying$",i),Ke=()=>_(ir,"$contextMenuPosition$",i),Qe=()=>_(Dn,"$previewTrackNotificationVisible$",i),Ve=()=>_(Ti,"$showHotKeyMap",i),He=()=>_(to,"$debugPanelVisible",i),kt=()=>_(Qr,"$userActionsDisabled$",i),je=g(e,"videoContainer",15),Et=g(e,"adsSlotId",3,void 0),Dt=g(e,"adsParams",3,void 0),gt=g(e,"adsAutoplayParam",3,void 0),Ft=g(e,"duration",3,void 0),Pt=g(e,"logoTargetUrl",3,""),be=g(e,"showNextPrevButtons",3,!1),$e=g(e,"nextButtonActive",3,!1),X=g(e,"prevButtonActive",3,!1),ye=g(e,"endScreenVideoTitle",3,void 0),oe=g(e,"endScreenVideoThumb",3,void 0),rt=g(e,"isOneVideoPlaylist",3,!1),at=g(e,"shadowRootContainer",3,void 0),nt=g(e,"outerContainerRef",3,void 0),yt=g(e,"playerStarted",3,!1),Me=g(e,"fullScreenTarget",3,void 0),Re=g(e,"showMiniTimer",3,!1),st=g(e,"showEndScreen",3,!0),vt=g(e,"keyboardControls",15),mi=e.store.getLogger().createComponentLog("Root component"),ei=e.store.interfaceLanguage$,hi=e.store.state.playbackState$,Ai=e.store.ads.playbackState,Ro=e.store.state.positionWithScrubbing$,At=e.store.state.duration$,Lt=e.store.playerPhase,di=e.store.ui.isFullscreen,Hi=e.store.ui.isFullscreenOpenedByKeyboard,ci=e.store.ui.controlsVisible,tn=e.store.ui.settingsMenu.visible$,Vo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Zt=e.store.ui.scrubbingInProgress,No=e.store.ui.volumeChangingInProgress,vi=e.store.ui.contextMenu.visible$,to=e.store.ui.debugPanelVisible,ho=e.store.state.isLoaderVisible,Mn=e.store.state.isEnded$,Rn=e.store.state.chromecastConnected$,xt=e.store.state.chromecastDeviceName$,Bt=e.store.ads.postrollPassed,q=e.store.state.isLive$,Rt=e.store.state.isPlaying$,Qt=e.store.state.crashed$,lt=e.store.webApi.annotationsApi,Xt=e.store.webApi.pictureInPictureApi,Ut=e.store.state.currentSubtitle$,_t=e.store.state.currentSubtitleCaptions$,Fi=e.store.ui.playerSize,_o=e.store.ui.is3DVideo,Do=e.store.ui.icon3DVideoVisible,bo=e.store.state.isInteractive,io=e.store.state.isInteractiveTime$,Si=e.store.state.isInteractiveExpectation$,tr=e.store.state.hasInteractiveBranches,Ui=e.store.ui.touched,oo=e.store.ui.modals.hotKeyMap.data,Ti=e.store.ui.modals.hotKeyMap.show,Oo=e.store.ui.overlayContainer$,Bo=e.store.ui.controls.interactiveTimeIndicator,Vn=e.store.state.showInteractiveTimeIndicator,ir=e.store.ui.contextMenu.position$,br=e.store.actions.internal.setQuality,ls=e.store.actions.internal.closeSettingsMenu,qr=e.store.ui.autoplayNextEnabled$,Qr=e.store.ui.userActionsDisabled,Nn=e.store.ui.isControlsAvailable,Ho=e.store.ui.videoTitleInfo,$o=e.store.ui.doubleForwardOn$,Fo=e.store.ui.doubleForwardAvailable$,Dn=e.store.ui.previewTrackNotificationVisible,bn=e.store.actions.internal.getVideoElement,$r=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:yr,notifications$:Gr,graphIsOpened$:or}=lo(),zi=z(void 0),nr=z(void 0),On=z(void 0),on=z(void 0),Wi,xr,$n;oo.set(b_());let{closeNotification:dt,notificationsToShow$:_i}=Gr,Bn=u(()=>!!r().slow_video),rr=()=>dt("slow_video"),wr=u(()=>(s()==="video"&&a()||s()==="ads"&&d()==="inactive")&&!l()),nn=z(void 0),sr=re(!1),yo,Uo=re(!1),xo=re(),Hn=re(!1),Ci=z(!1),wo=z(!1),Fn=z(!1),Sr=z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ki=u(()=>p()&&!f()&&!(n(Ci)||n(wo))&&!(n(Fn)&&!v())),yn=!0,zo=u(()=>e.uiConfig.features.thumbTimer&&Re()&&s()==="video"&&!m()&&!l()&&!bo&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=u(()=>s()==="video"&&!y()&&x()),Un=z(!1),pt=u(()=>(st()||e.showAutoplayNext&&S())&&!!ye()&&!!oe()&&(e.showAds&&I()||!e.showAds)&&C()&&!l()&&!n(Un)),zt=u(()=>V()&&!(m()||n(pt))&&!p()&&P()&&!R()),no=z(!1),Wt=u(()=>U()!==null),{toggle:xn}=yr,wn=!1,rn=null;Xt?.setContext(dd());let ds=()=>{e.autoplay&&!bo&&e.uiConfig.controls.showOnStartupAtAutoplay&&bi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ds});let Cr=()=>{window.clearTimeout(Wi),Uo.set(!1)},Ir=()=>{window.clearTimeout(xr),xo.set(null)},bi=_e=>{Cr(),Uo.set(!0),Wi=window.setTimeout(()=>Uo.set(!1),_e);let Mt=_e-100;yo=window.setTimeout(()=>{N()&&sr.set(!1)},Mt>0?Mt:_e)},cs=(_e,Mt)=>{Ir(),xo.set(Mt),xr=window.setTimeout(()=>xo.set(null),_e)},zn=_o.subscribe(_e=>{Do.set(_e),_e&&(window.clearTimeout($n),$n=window.setTimeout(()=>Do.set(!1),e.uiConfig.controls.hide360IconTimeout))}),So=async()=>{let _e=Ws();if(_e){let Mt=Dd(),ii=lr();_e=Mt===ii||Mt===at()}if(_e){bi(e.uiConfig.controls.hideTimeoutFullscreen);try{await Xt?.exit()}catch(Mt){mi({message:String(Mt)})}}di.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),x()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},ar=_e=>{let{width:Mt,height:ii}=_e.target;Fi.set({width:Mt,height:ii})},Wn=()=>{let{width:_e,height:Mt}=n(zi).getBoundingClientRect();Fi.set({width:_e,height:Mt})};Ct(()=>(Ru(So),e.uiConfig.features.annotationsInside&<?.init(n(zi)),Pa(Xt)&&(Xt?.assignPlayerContainer(n(zi)),Xt?.setExternalEventHandlers({resize:ar,leavepictureinpicture:Wn})),e.interactiveContainer&&je().parentElement?.insertBefore(e.interactiveContainer,je().nextSibling),()=>{window.clearTimeout(Wi),window.clearTimeout(yo),window.clearTimeout(xr),window.clearTimeout($n),zn(),Xt?.dispose().catch(Mt=>{mi({message:String(Mt)})}),Vu(So)}));let lr=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!nt()?n(zi):nt(),Mt=_e.getRootNode(),ii=Mt instanceof ShadowRoot?Mt.host:Mt,oi=Me()instanceof HTMLElement&&Me().contains(ii);return e.uiConfig.allowChangingFullscreenTarget&&Me()&&oi?Me():_e},sn=()=>{vi.set(!1)},Wo=()=>{ls(),sn()},kr=async()=>{if(!$r()){mi({message:"fullscreen disabled"});return}sn(),Ws()?(await Mu(document),mi({message:"exit fullscreen"})):(mi({message:"request fullscreen"}),await Lu(lr()))},Ze=_e=>{y()||(_e.preventDefault(),vi.set(!0),ir.set({left:_e.clientX,top:_e.clientY}))};function It(){Hn.set(!0),bo||bi(e.uiConfig.controls.hideTimeoutCursor)}function Gt(_e){let{relatedTarget:Mt}=_e,oi=!!(Mt&&n(On)?.contains(Mt))&&vt()?.isFocused();!bo&&!oi&&(sr.set(!0),bi(e.uiConfig.controls.hideTimeoutCursor))}function qi(){Hn.set(!1),M(wo,!1),M(Ci,!1),wn=!1,e.store.actions.internal.releaseCamera(),bi(e.uiConfig.controls.hideTimeout),R()&&Ri()}function Li(_e){return _e?_e.offsetTop+Li(_e.offsetParent):0}function co(_e){return _e?_e.offsetLeft+co(_e.offsetParent):0}function ro(_e){if(H()&&Vn){let Mt=_e.currentTarget,ii=Li(Mt),oi=co(Mt),ai=_e.pageX-oi,uo=_e.pageY-ii,{left:Yi,bottom:Io,right:ji}=H(),Ls=ji-Yi;return ai>=Yi-Ls&&uo<=Io+Ls}}function Ko(_e){if(n(zi)){let Mt=Li(_e.currentTarget),ii=te().height,oi=_e.pageY-Mt;if(ro(_e)){M(wo,!1);return}oi<40?M(wo,!0):oi>ii-40?M(Ci,!0):(M(wo,!1),f()||M(Ci,!1))}}function an(_e){Ko(_e),!n(Ki)&&!R()&&bi(e.uiConfig.controls.hideTimeoutCursor),ie()&&wn&&rn&&e.store.actions.internal.moveCameraFocusPX(rn.clientX-_e.clientX,rn.clientY-_e.clientY,_e.timeStamp-rn.timeStamp),rn=_e}let so=null,Mi=()=>{so=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Cr()},e.uiConfig.doubleForwardActivationTime)},Ri=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),so&&clearTimeout(so),so=null},Kn=_e=>{_e.preventDefault(),_e.button===0&&(wn=!0,e.store.actions.internal.holdCamera(),de()&&Mi()),!wn&&bi(e.uiConfig.controls.hideTimeoutCursor)},qn=_e=>{_e.preventDefault(),_e.button===0&&(rn=_e,wn=!1,e.store.actions.internal.releaseCamera()),!R()&&bi(e.uiConfig.controls.hideTimeoutCursor)},qo=_e=>{_e.preventDefault(),yn&&(mi({message:"double click on video"}),kr(),bi(e.uiConfig.controls.hideTimeoutCursor))},Yr=_e=>{if(_e.preventDefault(),R()){Ri();return}if(so&&Ri(),Z()||f()){Wo();return}if(!(C()&&!tr)){if(n(Wt))return xn();if(vt()?.focus(),!yt()){e.firstStart(),bi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Mv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),bi(e.uiConfig.controls.hideTimeoutCursor)}},us=_e=>{Wo(),Ui.set(!0),bi(e.uiConfig.controls.hideTimeout),_e&&cs(e.uiConfig.controls.hideHotKeyHelpers,_e)},Er=()=>{Wo(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(Q()):Ti.update(_e=>!_e)},Ge=()=>{Ui.set(!0)},Ht=e.store.ui.contextMenu.openedByBtnKeyboard$,$i=e.store.ui.contextMenu.btnRef$,Qi=z(void 0),To=e.store.ui.contextMenu.openedByHotKey$,Pr=e.store.ui.contextMenu.lastActiveElem$,Gi=e.store.ui.previewTrackActive;Pe(()=>{Oo.set(n(nn))}),Pe(()=>{M(Fn,n(Sr)&&J()!==Mv.PlaybackState.PLAYING,!0),n(Sr)||$t(()=>M(Sr,!0))}),Pe(()=>{let _e=(n(Fn)||C()||f()||Te()||fe()||pe()||ke())&&!n(Ki)&&(s()==="video"||s()==="ads")&&!l()&&P();ci.set(_e),!_e&&!ke()&&e.uiConfig.returnFocusOnControlsHide&&n(On)?.contains(Fu())&&vt()?.focus()}),Pe(()=>{!Te()&&n(no)&&!p()&&bi(e.uiConfig.controls.hideTimeoutCursor),$t(()=>M(no,Te(),!0))}),Pe(()=>{n(on),f(),we(),$t(()=>Wd(n(on),f(),we()))}),Pe(()=>{n(Qi),Z(),ne(),Ne(),$t(()=>{let _e=ne()||Ne();Wd(n(Qi),Z(),_e)})}),Pe(()=>{let _e=ce();_e&&(Z(),$t(()=>Vl(_e,Z(),Ht)))}),Pe(()=>{let _e=L();_e&&(Z(),$t(()=>S_(_e,Z(),To)))}),Pe(()=>{!Fe()&&x()&&($t(()=>Hi.set(!1)),vt()?.focus())}),Pe(()=>{y()&&Wo()});let Sn=z(void 0),Es=_e=>{Ho.set(An(bn(),{title:n(Sn)},"title",_e))},ea=(_e,Mt)=>{let ii=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!ii)return;let oi=!!Mt,ai={...An(n(zi),{upcomingLiveScreen:Mt},"upcomingLiveScreen",oi),..._e};ii(ai)};var Ps=GT();ut("blur",va,Wo);var ln=se(Ps);ln.__mousemove=an;var As=w(ln);let tt=u(()=>s()==="ads"),Kt=u(()=>n(Wt)?xn:void 0);Je(tm(As,{startDoubleForwardActivationTimer:Mi,stopDoubleForward:Ri,toggleFullscreen:kr,hideContextMenu:Wo,showHotKeyHelpers:us,showKeyMap:Er,get isAds(){return n(tt)},get fakePlayButtonHandler(){return n(Kt)},get nextButtonActive(){return $e()},get prevButtonActive(){return X()},children:(_e,Mt)=>{var ii=qT(),oi=se(ii);ja(oi,{get hideCursor(){return n(zt)},onClick:Yr,onContextMenu:Ze,onMouseDown:Kn,onMouseUp:qn,onDblClick:qo,get videoContainer(){return je()},set videoContainer(Yi){je(Yi)}});var ai=k(oi,2);ya(ai,()=>"slot",!1,(Yi,Io)=>{Ni(Yi,()=>({name:Ya}))});var uo=k(ai,2);_s(uo,he,Yi=>{var Io=KT(),ji=se(Io);let Ls=u(()=>s()!=="thumb"||l()||bo&&e.autoplay);qa(ji,{get hidden(){return n(Ls)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Ze,onClick:sn});var cr=k(ji,2);{var id=Be=>{Av(Be,{})};A(cr,Be=>{le()&&Be(id)})}var Ja=k(cr,2);Ev(Ja,{});var Ms=k(Ja,2);Pv(Ms,{get isVisible(){return R()}});var ta=k(Ms,2);{var ia=Be=>{let ni=u(()=>e.live?.startTime);bc(Be,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ni)},onUpcomingLiveViewStateChanged:ea,onContextMenu:Ze,onClick:sn})};A(ta,Be=>{s()==="LiveWaitingStart"&&Be(ia)})}var Qo=k(ta,2);{var el=Be=>{Qa(Be,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Ze,onClick:sn})};A(Qo,Be=>{s()==="LiveWaitingRecover"&&Be(el)})}var oa=k(Qo,2);{var Lr=Be=>{Qa(Be,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Ze,onClick:sn})};A(oa,Be=>{s()==="LiveWaitingRecord"&&Be(Lr)})}var jr=k(oa,2);{var Rs=Be=>{var ni=FT();let Tn;var aa=w(ni);Bd(aa,{get adsSlotId(){return Et()},get adsParams(){return Dt()},get adsAutoplayParam(){return gt()},get duration(){return Ft()},get adsExternalApi(){return e.adsExternalApi}}),$(ni),D(pr=>Tn=ee(ni,1,"ads-container s-7",null,Tn,pr),[()=>({hidden:s()!=="ads"})]),h(Be,ni)};A(jr,Be=>{e.showAds&&yt()&&Be(Rs)})}var na=k(jr,2);{var tl=Be=>{let ni=u(()=>!st()&&e.showAutoplayNext&&S());Zf(Be,{get title(){return ye()},get thumb(){return oe()},get isHide(){return n(ni)},clickCloseIcon:()=>M(Un,!0)})};A(na,Be=>{n(pt)&&ye()&&oe()&&Be(tl)})}var il=k(na,2);{var od=Be=>{let ni=u(()=>!m());iv(Be,{get title(){return e.title},get isHidden(){return n(ni)},onVisibilityChanged:Es,get ref(){return n(Sn)},set ref(Tn){M(Sn,Tn,!0)}})};A(il,Be=>{n(Tr)&&Be(od)})}var ol=k(il,2);{var nl=Be=>{let ni=u(()=>s()==="video"&&m());hc(Be,{get isShifted(){return n(ni)}})};A(ol,Be=>{ie()&&Be(nl)})}var ur=k(ol,2);{var nd=Be=>{var ni=UT(),Tn=w(ni);Nd(Tn,{}),$(ni),h(Be,ni)};A(ur,Be=>{me()&&Be(nd)})}var ht=k(ur,2);{var bt=Be=>{_c(Be,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};A(ht,Be=>{pe()&&Be(bt)})}var Go=k(ht,2);{var Mr=Be=>{Wa(Be,{get shifted(){return m()},get captions(){return G()},get position(){return Y()},get playerSize(){return te()}})};A(Go,Be=>{Le().value!=="off"&&Be(Mr)})}var Xr=k(Go,2);{var ps=Be=>{var ni=zT();ni.__contextmenu=Ze,ni.__click=[HT,Z,vi,f,tn,Wo];var Tn=w(ni);Ka(Tn,{}),$(ni),h(Be,ni)};A(Xr,Be=>{l()&&Be(ps)})}var Rr=k(Xr,2);{var ra=Be=>{let ni=u(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Tn=u(()=>s()==="ads"),aa=u(()=>e.canRewindLive&&Ae()!==0);vc(Be,{get bottomHidden(){return n(ni)},get bottomNoSmooth(){return N()},get showControls(){return m()},get isAds(){return n(Tn)},get canRewindLive(){return n(aa)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return be()},get nextButtonActive(){return $e()},get prevButtonActive(){return X()},get isOneVideoPlaylist(){return rt()},customFullscreenSupported:yn,toggleFullscreen:kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(nr)},set playerControlsWrapperRef(pr){M(nr,pr,!0)},get playerControlsRef(){return n(On)},set playerControlsRef(pr){M(On,pr,!0)}})};A(Rr,Be=>{yt()&&Be(ra)})}var rl=k(Rr,2);{var xp=Be=>{var ni=WT(),Tn=w(ni);let aa=u(()=>n(On)?.clientHeight);wc(Tn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(aa)},returnFocus:()=>vt()?.focus(),get ref(){return n(on)},set ref(pr){M(on,pr,!0)}}),$(ni),h(Be,ni)};A(rl,Be=>{!pe()&&s()!=="ads"&&Be(xp)})}var Dc=k(rl,2);let wp=u(()=>!n(zo));Ud(Dc,{get isLive(){return Ue()},get isHidden(){return n(wp)},get isPlaying(){return Se()},get position(){return Y()},get duration(){return Ae()}});var Oc=k(Dc,2);ev(Oc,{get data(){return xo}});var Bc=k(Oc,2);jf(Bc,{get supportLink(){return e.supportLink},returnFocus:()=>vt()?.focus(),get visible(){return Z()},get playerContainerRef(){return n(zi)},get position(){return Ke()},get menuElementRef(){return n(Qi)},set menuElementRef(Be){M(Qi,Be,!0)}});var sa=k(Bc,2);{var Sp=Be=>{Sc(Be,{onClose:rr,onSelectAutoQuality:()=>{br("auto"),rr()}})};A(sa,Be=>{n(Bn)&&Be(Sp)})}var Vs=k(sa,2);{var sl=Be=>{Lv(Be,{})};A(Vs,Be=>{Qe()&&Be(sl)})}var Hc=k(Vs,2);{var Fc=Be=>{Ra(Be,{})};A(Hc,Be=>{n(wr)&&Be(Fc)})}var al=k(Hc,2);{var Uc=Be=>{nm(Be,{})};A(al,Be=>{Ve()&&Be(Uc)})}var Tp=k(al,2);{var zc=Be=>{qd(Be,{})};A(Tp,Be=>{He()&&Be(zc)})}h(Yi,Io)}),h(_e,ii)},$$slots:{default:!0}}),_e=>vt(_e),()=>vt());var Co=k(As,2);Je(Co,_e=>M(nn,_e),()=>n(nn)),$(ln),Je(ln,_e=>M(zi,_e),()=>n(zi));var dr=k(ln,2);{var Ar=_e=>{var Mt=QT();h(_e,Mt)};A(dr,_e=>{kt()&&_e(Ar)})}ut("mouseenter",ln,It),ut("mouseleave",ln,qi),ut("click",ln,Ge,!0),ut("focusin",ln,Gt,!0),h(t,Ps),B(),o()}et(["mousemove","contextmenu","click"]);var Js=require("@vkontakte/videoplayer-core"),Pb=require("@vkontakte/videoplayer-shared");var jT=E('<div></div> <div class="info s-t"><div class="triangles-wrapper s-t"><div></div> <div></div> <div></div></div> <p class="step-caption s-t"> </p></div>',1),XT=E("<div><!></div>"),ZT={hash:"s-t",code:".double-click-area.s-t{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-t{left:0}.double-click-area.right.s-t{right:0}.semicircle.s-t{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-t{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-t{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-t{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-t,.triangles-wrapper.s-t{display:flex;justify-content:center}.triangles-wrapper.s-t{margin-bottom:10px;position:relative}.triangle.s-t{animation:s-t-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-t:nth-child(3),.triangle.right.s-t:first-child{animation-delay:0s}.triangle.left.s-t:nth-child(2),.triangle.right.s-t:nth-child(2){animation-delay:.1s}.triangle.left.s-t:first-child,.triangle.right.s-t:nth-child(3){animation-delay:.2s}@keyframes s-t-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-t{border-right:8px solid var(--white)}.triangle.right.s-t{border-left:8px solid var(--white)}.triangle.s-t:not(:last-child){margin-right:5px}.step-caption.s-t{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function ap(t,e){O(e,!0),W(t,ZT);let i=g(e,"seekStep",3,0),o=z(!1),r=0,s=0,a=z(Yt(i())),d=v=>{v.stopPropagation(),s+=1,M(a,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(M(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,M(o,!1)},300)};Zo(()=>{window.clearTimeout(r)});var l=XT();l.__click=d;var p=w(l);{var f=v=>{var m=jT(),b=se(m),y=k(b,2),x=w(y),S=w(x),I=k(S,2),C=k(I,2);$(x);var V=k(x,2),P=w(V,!0);$(V),$(y),D(R=>{ee(b,1,`semicircle ${e.side??""}`,"s-t"),ee(S,1,`triangle ${e.side??""}`,"s-t"),ee(I,1,`triangle ${e.side??""}`,"s-t"),ee(C,1,`triangle ${e.side??""}`,"s-t"),ue(P,R)},[()=>K("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),h(v,m)};A(p,v=>{n(o)&&v(f)})}$(l),D(()=>ee(l,1,`double-click-area ${e.side??""}`,"s-t")),h(t,l),B()}et(["click"]);var JT=(t,e,i)=>{e(!1),i()},e2=E('<div class="overlay s-s"></div> <div class="next-video s-s"><div class="top s-s"><div class="caption s-s"> </div> <!></div> <div class="row s-s"><div class="column s-s"><div class="thumb s-s"><div></div> <!></div></div> <div class="column s-s"><div class="title s-s"> </div></div></div></div>',1),t2={hash:"s-s",code:".overlay.s-s{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-s{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-s{display:flex;justify-content:space-between}.caption.s-s{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-s{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-s{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-s{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-s,.thumb-overlay.s-s{height:100%;width:100%}.thumb-overlay.s-s{position:absolute}.thumb-overlay.withOpacity.s-s{background:var(--black);opacity:.3}.title.s-s{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Vv(t,e){O(e,!0),W(t,t2);let[i,o]=Ee(),r=()=>_(d,"$autoplayNextEnabled$",i),s=()=>_(l,"$timerNextVideoRunning$",i),a=ve(),d=a.ui.autoplayNextEnabled$,l=a.ui.timerNextVideoRunning$,p=a.actions.internal.nextVideoClick,f=a.actions.internal.nextVideoAnnouncementShow,v=a.actions.internal.nextVideoAnnouncementClick,m=a.actions.internal.nextVideoAnnouncementAuto,b=a.actions.internal.nextVideoAnnouncementCancel,y=()=>{p(!1),m()},x=()=>{e.clickCloseIcon(),b()};Ct(()=>{e.isHide||f(),e.isHide&&r()&&(p(!1),m())});var S=Ie(),I=se(S);{var C=V=>{var P=e2(),R=k(se(P),2),U=w(R),N=w(U),H=w(N,!0);$(N);var te=k(N,2);xs(te,{onClick:x}),$(U);var ie=k(U,2);ie.__click=[JT,p,v];var de=w(ie),Z=w(de),J=w(Z);let Q;var Te=k(J,2);{var fe=ne=>{Qd(ne,{get isRunning(){return s()},onTimerEnded:y})};A(Te,ne=>{r()&&ne(fe)})}$(Z),$(de);var pe=k(de,2),ke=w(pe),we=w(ke,!0);$(ke),$(pe),$(ie),$(R),D((ne,Ne)=>{ue(H,ne),ze(Z,`background-image: url('${e.thumb}')`),Q=ee(J,1,"thumb-overlay s-s",null,Q,Ne),ue(we,e.title)},[()=>r()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:r()})]),h(V,P)};A(I,V=>{e.isHide||V(C)})}h(t,S),B(),o()}et(["click"]);var Tb=require("@vkontakte/videoplayer-core");var Cb=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ct(()=>{Tb.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",d)}},0))}),Zo(()=>{i?.(),clearTimeout(o)})};var Ib=require("@vkontakte/videoplayer-core");var lp=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var kb=require("@vkontakte/videoplayer-core"),Eb=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),f=()=>kb.clientChecker.device.isIOS&&ge(a)===Ib.VideoFormat.DASH_LIVE_CMAF,v=()=>{l?.(),l=null},m=b=>{if(v(),!f()||!b)return;let y=p();if(!y)return;let x=new lp(y),S=ge(d),I=ge(s),C=ge(r);for(let R of S)I.some(N=>N.value===R.id)&&x.attach(R,C.value===R.id);let V=d.subscribe(R=>{for(let U of R)x.updateSrc(U)}),P=()=>{let R=x.getCurrentShowingId();o(ge(s).find(U=>U.value===R))};y.textTracks.addEventListener("change",P),l=()=>{V(),x.detachAll(),y.textTracks.removeEventListener("change",P)}};Ct(()=>i.subscribe(m)),Zo(v)};var i2=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},o2=E("<!> <!>",1),n2=E("<div><!></div>"),r2=E('<div class="spherical-video-icon s-9"><!></div>'),s2=E("<div><!></div>"),a2=E('<div class="settings-mobile s-9"><!></div>'),l2=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),d2=E('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),c2={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 Nv(t,e){O(e,!0),W(t,c2);let[i,o]=Ee(),r=()=>_(at,"$playerPhase",i),s=()=>_(Ai,"$isLoaderVisible",i),a=()=>_(ye,"$adPlaybackState",i),d=()=>_(Zt,"$crashed",i),l=()=>_(qr,"$notificationsToShow$",i),p=()=>_(X,"$playbackState$",i),f=()=>_(Pt,"$graphIsOpened$",i),v=()=>_(Re,"$interactiveHideMobileControls",i),m=()=>_(Ro,"$isEnded$",i),b=()=>_(lt,"$isInteractiveExpectation$",i),y=()=>_(yt,"$controlsVisible",i),x=()=>_(_t,"$touched",i),S=()=>_(_o,"$autoplayNextEnabled$",i),I=()=>_(di,"$postrollPassed",i),C=()=>_(Ho,"$bottomNoSmooth",i),V=()=>_(to,"$videoSize",i),P=()=>_(xt,"$playerSize",i),R=()=>_(nt,"$isFullscreen",i),U=()=>_(oe,"$position$",i),N=()=>_(rt,"$duration$",i),H=()=>_(Do,"$loadedMetadata",i),te=()=>_(st,"$settingsMenuVisible",i),ie=()=>_(mi,"$scrubbingInProgress",i),de=()=>_(ei,"$volumeChangingInProgress",i),Z=()=>_(At,"$chromecastConnected$",i),J=()=>_(Me,"$isControlsAvailable",i),Q=()=>_(Qt,"$isInteractiveTime$",i),Te=()=>_(tn,"$isActiveLive",i),fe=()=>_(vt,"$settingsMenuOpenedByKeyboard",i),pe=()=>_($e,"$language$",i),ke=()=>_(Ut,"$disabledControls$",i),we=()=>_(Bt,"$is3DVideo",i),ne=()=>_(q,"$icon3DVideoVisible",i),Ne=()=>_(Lt,"$chromecastDeviceName$",i),ce=()=>_(ho,"$currentSubtitle$",i),L=()=>_(Mn,"$currentSubtitleCaptions$",i),Fe=()=>_(Rn,"$realDuration$",i),he=()=>_(Hi,"$isLive$",i),le=()=>_(ci,"$isPlaying$",i),me=()=>_(hi,"$debugPanelVisible",i),De=g(e,"videoContainer",15),Le=g(e,"adsSlotId",3,void 0),G=g(e,"adsParams",3,void 0),Y=g(e,"adsAutoplayParam",3,void 0),Ae=g(e,"duration",3,void 0),Ue=g(e,"logoTargetUrl",3,""),Se=g(e,"showNextPrevButtons",3,!1),Ke=g(e,"nextButtonActive",3,!1),Qe=g(e,"prevButtonActive",3,!1),Ve=g(e,"endScreenVideoTitle",3,void 0),He=g(e,"endScreenVideoThumb",3,void 0),kt=g(e,"isOneVideoPlaylist",3,!1),je=g(e,"showMiniTimer",3,!1),Et=g(e,"fullScreenTarget",3,void 0),Dt=g(e,"playerStarted",3,!1),gt=g(e,"showEndScreen",3,!0),{notifications$:Ft,graphIsOpened$:Pt}=lo(),be=e.store.getLogger().createComponentLog("Root component"),$e=e.store.interfaceLanguage$,X=e.store.state.playbackState$,ye=e.store.ads.playbackState,oe=e.store.state.positionWithScrubbing$,rt=e.store.state.duration$,at=e.store.playerPhase,nt=e.store.ui.isFullscreen,yt=e.store.ui.controlsVisible,Me=e.store.ui.isControlsAvailable,Re=e.store.ui.interactiveHideMobileControls,st=e.store.ui.settingsMenu.visible$,vt=e.store.ui.settingsMenu.openedByBtnKeyboard$,mi=e.store.ui.scrubbingInProgress,ei=e.store.ui.volumeChangingInProgress,hi=e.store.ui.debugPanelVisible,Ai=e.store.state.isLoaderVisible,Ro=e.store.state.isEnded$,At=e.store.state.chromecastConnected$,Lt=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,Hi=e.store.state.isLive$,ci=e.store.state.isPlaying$,tn=e.store.state.isActiveLive$,Vo=e.store.state.isRewindableLive$,Zt=e.store.state.crashed$,No=e.store.webApi.annotationsApi,vi=e.store.webApi.pictureInPictureApi,to=e.store.state.videoSize$,ho=e.store.state.currentSubtitle$,Mn=e.store.state.currentSubtitleCaptions$,Rn=e.store.state.duration$,xt=e.store.ui.playerSize,Bt=e.store.ui.is3DVideo,q=e.store.ui.icon3DVideoVisible,Rt=e.store.state.isInteractive,Qt=e.store.state.isInteractiveTime$,lt=e.store.state.isInteractiveExpectation$,Xt=e.store.state.hasInteractiveBranches,Ut=e.store.ui.controls.disabledControls$,_t=e.store.ui.touched,Fi=e.store.ui.overlayContainer$,_o=e.store.ui.autoplayNextEnabled$,Do=e.store.state.loadedMetadata$,bo=e.store.actions.internal.closeSettingsMenu,io=e.store.callbacks?.onDisabledPlayPrevChapterClick,Si=e.store.callbacks?.onDisabledSeekToInteractiveClick,tr=e.store.actions.internal.setQuality,Ui=z(void 0),oo=z(void 0),Ti=z(void 0),Oo=z(void 0),Bo,Vn,ir=u(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!d()),br=z(void 0),{closeNotification:ls,notificationsToShow$:qr}=Ft,Qr=u(()=>!!l().slow_video),Nn=()=>ls("slow_video"),Ho=re(!1),$o,Fo=z(!1),Dn=u(()=>p()!==Js.PlaybackState.PLAYING),bn=z(!1),$r=u(()=>f()||v()||!n(Fo)&&(m()&&!!Xt||n(Dn)&&b())),yr=z(!0),Gr=u(()=>e.uiConfig.features.thumbTimer&&je()&&r()==="video"&&!y()&&!d()&&!Rt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),or=z(!1),zi=u(()=>(gt()||e.showAutoplayNext&&S())&&!!Ve()&&!!He()&&(e.showAds&&I()||!e.showAds)&&m()&&!d()&&!n(or)),nr=z(!1);vi?.setContext(dd());let On=pt=>{pt&&!Rt&&Wi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:On});let on=()=>{clearTimeout(Bo),M(Fo,!1),v()&&Re.set(!1)},Wi=pt=>{on(),M(Fo,!0),Bo=setTimeout(()=>M(Fo,!1),pt);let zt=pt-100;$o=setTimeout(()=>{C()&&Ho.set(!1)},zt>0?zt:pt)},xr=Bt.subscribe(pt=>{q.set(pt),pt&&(clearTimeout(Vn),Vn=setTimeout(()=>q.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$n=async(pt=Ws())=>{if(pt&&!Js.clientChecker.device.isIOS){let zt=Dd(),no=nn(),Wt=Js.clientChecker.browser.isSamsungBrowser&&zt===e.shadowRootContainer;pt=zt===no||Wt}if(pt){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await vi?.exit()}catch(zt){be({message:String(zt)})}try{let zt=V()?.width&&V()?.height?V():P();await __(zt)}catch(zt){be({message:String(zt)})}}nt.set(pt),e.store.getAdmanWrapper().setFullscreen(pt),R()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},dt=pt=>{let zt=pt,{width:no,height:Wt}=zt.target;xt.set({width:no,height:Wt})},_i=()=>{let{width:pt,height:zt}=n(Ui).getBoundingClientRect();xt.set({width:pt,height:zt})};Ct(()=>(Ru($n),e.uiConfig.features.annotationsInside&&No?.init(n(Ui)),Pa(vi)&&(vi?.assignPlayerContainer(n(Ui)),vi?.setExternalEventHandlers({resize:dt,leavepictureinpicture:_i})),M(yr,!Js.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&De().parentElement?.insertBefore(e.interactiveContainer,De().nextSibling),()=>{clearTimeout(Bo),clearTimeout($o),clearTimeout(Vn),xr(),vi?.dispose().catch(pt=>{be({message:String(pt)})}),Vu($n)}));let Bn=z(!0),rr=z(!0),wr=pt=>{let zt=U()+(pt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;zt<0?(M(Bn,!1),zt=0):zt>=N()&&(M(rr,!1),zt=N()),M(bn,!0),e.seekTime(zt)},nn=()=>Js.clientChecker.device.isIOS?n(Ui):!e.uiConfig.allowChangingFullscreenTarget||!Et()?e.outerContainerRef:Et().contains(e.outerContainerRef)?Et():e.outerContainerRef,sr=async()=>{try{if(Ws())await Mu(document),be({message:"exit fullscreen"});else{if(be({message:"request fullscreen"}),Js.clientChecker.device.isIOS&&!H())return;await Lu(nn())}}catch(pt){be({message:String(pt)})}},yo=()=>{bo()},Uo=pt=>{if(pt.preventDefault(),te()){yo();return}if(!Dt()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}M(bn,!1),y()?on():Wi(e.uiConfig.controls.hideTimeoutMobile)},xo=()=>{_t.set(!0)},Hn=()=>{Rt||(Ho.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))},Ci=pt=>{io&&(io(pt),Wi(e.uiConfig.controls.hideTimeoutMobile))},wo=pt=>{Si&&(Si(pt),Wi(e.uiConfig.controls.hideTimeoutMobile))};Pe(()=>{Fi.set(n(br))}),Pe(()=>{yt.set((n(Dn)||te()||ie()||de()||Z()||!n(zi)&&(m()||n(Fo)&&!n(bn)))&&!n($r)&&r()==="video"&&!d()&&J())}),Pe(()=>{!ie()&&n(nr)&&!Q()&&Wi(e.uiConfig.controls.hideTimeoutMobile),M(nr,ie(),!0)}),Pe(()=>{M(Bn,U()>0),M(rr,!Te()&&U()<N(),!0)}),Pe(()=>{Wd(n(Oo),te(),fe(),!0)});let Fn=K("aria_label_video_player");Cb({fullScreenChangeHandler:$n,getFullscreenTarget:nn}),Eb({store:e.store,getFullscreenTarget:nn});let Sr=(pt,zt)=>{let no=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!no)return;let Wt=!!zt,xn={...An(n(Ui),{upcomingLiveScreen:zt},"upcomingLiveScreen",Wt),...pt};no(xn)};var Ki=d2();ut("blur",va,yo);var yn=w(Ki);ja(yn,{onClick:Uo,get videoContainer(){return De()},set videoContainer(pt){De(pt)}});var zo=k(yn,2);ya(zo,()=>"slot",!1,(pt,zt)=>{Ni(pt,()=>({name:Ya}))});var Tr=k(zo,2);_s(Tr,pe,pt=>{var zt=l2(),no=se(zt);let Wt=u(()=>r()!=="thumb"||d()||Rt&&e.autoplay);qa(no,{get hidden(){return n(Wt)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var xn=k(no,2);{var wn=Ge=>{var Ht=o2(),$i=se(Ht);{var Qi=Gi=>{let Sn=u(()=>e.uiConfig.controls.seekStepMobile/1e3);ap(Gi,{side:"left",get seekStep(){return n(Sn)},handleSingleFirstClick:Uo,handleSecondClick:()=>wr("backward")})};A($i,Gi=>{n(Bn)&&Gi(Qi)})}var To=k($i,2);{var Pr=Gi=>{let Sn=u(()=>e.uiConfig.controls.seekStepMobile/1e3);ap(Gi,{side:"right",get seekStep(){return n(Sn)},handleSingleFirstClick:Uo,handleSecondClick:()=>wr("forward")})};A(To,Gi=>{n(rr)&&Gi(Pr)})}h(Ge,Ht)};A(xn,Ge=>{e.canRewindLive&&Vo&&!ke().has("TIMELINE")&&Ge(wn)})}var rn=k(xn,2);{var ds=Ge=>{let Ht=u(()=>e.live?.startTime);bc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Ht)},onUpcomingLiveViewStateChanged:Sr})};A(rn,Ge=>{r()==="LiveWaitingStart"&&Ge(ds)})}var Cr=k(rn,2);{var Ir=Ge=>{Qa(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};A(Cr,Ge=>{r()==="LiveWaitingRecover"&&Ge(Ir)})}var bi=k(Cr,2);{var cs=Ge=>{Qa(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};A(bi,Ge=>{r()==="LiveWaitingRecord"&&Ge(cs)})}var zn=k(bi,2);{var So=Ge=>{var Ht=n2();let $i;var Qi=w(Ht);Bd(Qi,{get adsSlotId(){return Le()},get adsParams(){return G()},get adsAutoplayParam(){return Y()},get duration(){return Ae()},get adsExternalApi(){return e.adsExternalApi}}),$(Ht),D(To=>$i=ee(Ht,1,"ads-container s-9",null,$i,To),[()=>({hidden:r()!=="ads"})]),h(Ge,Ht)};A(zn,Ge=>{e.showAds&&Dt()&&Ge(So)})}var ar=k(zn,2);{var Wn=Ge=>{let Ht=u(()=>!gt()&&e.showAutoplayNext&&S());Vv(Ge,{get title(){return Ve()},get thumb(){return He()},get isHide(){return n(Ht)},clickCloseIcon:()=>M(or,!0)})};A(ar,Ge=>{n(zi)&&Ve()&&He()&&Ge(Wn)})}var lr=k(ar,2);{var sn=Ge=>{hc(Ge,{})};A(lr,Ge=>{we()&&Ge(sn)})}var Wo=k(lr,2);{var kr=Ge=>{var Ht=r2(),$i=w(Ht);Nd($i,{}),$(Ht),h(Ge,Ht)};A(Wo,Ge=>{ne()&&Ge(kr)})}var Ze=k(Wo,2);{var It=Ge=>{_c(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};A(Ze,Ge=>{Z()&&Ge(It)})}var Gt=k(Ze,2);{var qi=Ge=>{Wa(Ge,{get shifted(){return y()},get captions(){return L()},get position(){return U()},get playerSize(){return P()},isMobile:!0})};A(Gt,Ge=>{ce().value!=="off"&&Ge(qi)})}var Li=k(Gt,2);{var co=Ge=>{var Ht=s2();Ht.__click=[i2,te,st,yo];var $i=w(Ht);Ka($i,{}),$(Ht),h(Ge,Ht)};A(Li,Ge=>{d()&&Ge(co)})}var ro=k(Li,2);{var Ko=Ge=>{let Ht=u(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),$i=u(()=>r()==="ads"),Qi=u(()=>e.canRewindLive&&Fe()!==0);vc(Ge,{get bottomHidden(){return n(Ht)},get showControls(){return y()},get bottomNoSmooth(){return C()},get isAds(){return n($i)},get canRewindLive(){return n(Qi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Se()},get nextButtonActive(){return Ke()},get prevButtonActive(){return Qe()},get isOneVideoPlaylist(){return kt()},get customFullscreenSupported(){return n(yr)},get endScreenShown(){return n(zi)},toggleFullscreen:sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ci,onDisabledSeekToInteractiveClick:wo,get playerControlsWrapperRef(){return n(oo)},set playerControlsWrapperRef(To){M(oo,To,!0)},get playerControlsRef(){return n(Ti)},set playerControlsRef(To){M(Ti,To,!0)}})};A(ro,Ge=>{Dt()&&Ge(Ko)})}var an=k(ro,2);{var so=Ge=>{var Ht=a2(),$i=w(Ht);wc($i,{get supportLink(){return e.supportLink},get returnFocus(){return Pb.noop},get ref(){return n(Oo)},set ref(Qi){M(Oo,Qi,!0)}}),$(Ht),h(Ge,Ht)};A(an,Ge=>{te()&&Ge(so)})}var Mi=k(an,2);let Ri=u(()=>!n(Gr));Ud(Mi,{get isLive(){return he()},get isHidden(){return n(Ri)},get isPlaying(){return le()},get position(){return U()},get duration(){return N()}});var Kn=k(Mi,2);{var qn=Ge=>{Ra(Ge,{})};A(Kn,Ge=>{n(ir)&&Ge(qn)})}var qo=k(Kn,2);{var Yr=Ge=>{qd(Ge,{})};A(qo,Ge=>{me()&&Ge(Yr)})}var us=k(qo,2);{var Er=Ge=>{Sc(Ge,{onClose:Nn,onSelectAutoQuality:()=>{tr("auto"),Nn()}})};A(us,Ge=>{n(Qr)&&Ge(Er)})}h(pt,zt)});var Un=k(Tr,2);Je(Un,pt=>M(br,pt),()=>n(br)),$(Ki),Je(Ki,pt=>M(Ui,pt),()=>n(Ui)),D(()=>Oe(Ki,"aria-label",Fn)),ut("click",Ki,xo,!0),ut("focusin",Ki,Hn,!0),h(t,Ki),B(),o()}et(["click"]);function dp(t){let e="";return Bi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Bi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Bi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Bi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Bi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Bi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Bi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Bi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Bi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Bi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Bi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Bi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Bi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Bi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Bi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Bi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Bi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Bi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Bi(t.font)&&(e+=`--font:${t.font};`),Bi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Bi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Bi(t){return typeof t=="string"&&!t.includes(";")}var Ab=require("@vkontakte/videoplayer-shared");var u2=E('<div class="time-container s-8"><!></div>'),p2=E('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),f2={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-8{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-8{opacity:1}.time-container.s-8{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function Dv(t,e){O(e,!0),W(t,f2);let[i,o]=Ee(),r=()=>_(Q,"$scrubbingInProgress",i),s=()=>_(Z,"$playerSize",i),a=()=>_(U,"$isPlaying$",i),d=()=>_(P,"$duration$",i),l=()=>_(te,"$positionWithScrubbing$",i),p=()=>_(C,"$playerPhase",i),f=()=>_(V,"$crashed$",i),v=()=>_(N,"$currentSubtitle$",i),m=()=>_(H,"$currentSubtitleCaptions$",i),b=()=>_(R,"$positionExact$",i),y=()=>_(ie,"$isLive$",i),x=()=>_(de,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:C,state:{crashed$:V,duration$:P,positionExact$:R,isPlaying$:U,currentSubtitle$:N,currentSubtitleCaptions$:H,positionWithScrubbing$:te,isLive$:ie,isRewindableLive$:de},ui:{playerSize:Z,controls:J,scrubbingInProgress:Q},actions:{internal:{getVideoElement:Te}}}=ve(),fe=8,pe=z(!1),ke=Yt({}),we=z(!1),ne=u(()=>!r()&&!n(we)),Ne=()=>{M(pe,!0)},ce=()=>{M(pe,!1)},L=(0,Ab.debounceFn)(Wl,260);Pe(()=>{s(),L(Te(),J,ke,n(pe))});let Fe=u(()=>a()?Mo(d()-l()):Mo(isFinite(d())?d():S()));var he=p2(),le=w(he);ja(le,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Ve){I(Ve)}});var me=k(le,2);ya(me,()=>"slot",!1,(Ve,He)=>{Ni(Ve,()=>({name:Ya}))});var De=k(me,2);let Le=u(()=>p()!=="thumb"||f());qa(De,{get hidden(){return n(Le)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=k(De,2);{var Y=Ve=>{Wa(Ve,{shifted:!1,get captions(){return m()},get position(){return b()},get playerSize(){return s()}})};A(G,Ve=>{v().value!=="off"&&n(ne)&&Ve(Y)})}var Ae=k(G,2);{var Ue=Ve=>{var He=u2(),kt=w(He);Fd(kt,{get isLive(){return y()},get isPlaying(){return a()},get time(){return n(Fe)}}),$(He),h(Ve,He)};A(Ae,Ve=>{n(ne)&&Ve(Ue)})}var Se=k(Ae,2);let Ke;var Qe=w(Se);Fa(Qe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:fe,tooltipRightOffset:fe,get ref(){return ke.timeline},set ref(Ve){ke.timeline=Ve}}),$(Se),$(he),D(Ve=>Ke=ee(Se,1,"timeline s-8",null,Ke,Ve),[()=>({visible:n(pe)})]),ut("mouseenter",he,Ne),ut("mouseleave",he,ce),ut("mouseenter",Se,()=>M(we,!0)),ut("mouseleave",Se,()=>M(we,!1)),h(t,he),B(),o()}var m2=E("<div><!></div>"),v2={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;--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 Ov(t,e){O(e,!0),W(t,v2);let[i,o]=Ee(),r=()=>_(Dt,"$isLive$",i),s=()=>_(No,"$availableSubtitlesList$",i),a=()=>_(vi,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),l=g(e,"store",7),p=g(e,"microStoresRoot",7),f=g(e,"videoConfig",7),v=g(e,"uiConfig",7),m=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),x=g(e,"interactiveController",7),S=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),C=g(e,"live",7),V=g(e,"preload",7),P=g(e,"autoplay",7),R=g(e,"volume",7,void 0),U=g(e,"muted",7,void 0),N=g(e,"fromTime",7),H=g(e,"canRewindLive",7),te=g(e,"showAds",7),ie=g(e,"adsSlotId",7,void 0),de=g(e,"adsParams",7,void 0),Z=g(e,"adsAutoplayParam",7,void 0),J=g(e,"duration",7,void 0),Q=g(e,"logoClickable",7),Te=g(e,"logoHidden",7),fe=g(e,"isMobile",7),pe=g(e,"showNextPrevButtons",7,!1),ke=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),ne=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),ce=g(e,"isOneVideoPlaylist",7,!1),L=g(e,"supportLink",7),Fe=g(e,"shadowRootContainer",7),he=g(e,"outerContainerRef",7),le=g(e,"fullScreenTarget",7,void 0),me=g(e,"failoverHosts",7,void 0),De=g(e,"showMiniTimer",7,!1),Le=g(e,"saveRate",7),G=g(e,"seekToInteractive",7,Xa.noop),Y=g(e,"playPrevChapter",7,Xa.noop),Ae=g(e,"volumeMultiplier",7),Ue=g(e,"showAutoplayNext",7),Se=g(e,"showEndScreen",7,!0),Ke=g(e,"keyboardControls",15,void 0),{subscribers:Qe,stores:Ve}=p();Ih(v());let He=wt(),kt=v().logoLink,je=l().ui.debugPanelVisible,Et=l().ui.playerSize,Dt=l().state.isLive$,Ft=l().state.isInteractive&&Yl.clientChecker.device.isAndroid,Pt=z(void 0),be=null,$e=z(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{vsid:l().vsid}),Oh(l(),Ve),Pe(()=>{l().ui.isMobile.set(fe()),f().callbacks?.onDomReady?.()});let X=(q=!1)=>{M($e,!0),q?l().actions.external.firstStart(te()):l().actions.internal.firstStart(te())},ye=()=>{if(He.features.qualityDetailsSubMenuEnabled){let q=s_(l().videoId);if(q)switch(q.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,q.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,q.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(q.quality);break}}else{a_(l().videoId),Lf()&&l().actions.internal.setTrafficSavingEnabled(!0);let Rt=kf(l().videoId);Rt&&l().actions.internal.setQuality(Rt)}};function oe(q){let Rt=d()||q;Rt&&l().initVideo({container:n(Pt),sources:Rt,failoverHosts:me(),subtitles:S(),subtitlesForcedLanguage:I(),volumeMultiplier:Ae()});let Qt=Xa.safeStorage.get(Pd)==="true";je.set(Qt),N()>0&&l().actions.external.seekTime(N());let lt=fe()?He.volumeDefault:R()??wu()??He.volumeDefault,Xt=U()??e_();if(l().actions.external.setVolume(lt),l().actions.external.setMuted(Xt),l().getAdmanWrapper().setInitialVolume(Xt?0:lt),ye(),He.features.saveRate&&Le()){let Ut=o_();Ut&&!r()&&l().actions.internal.setPlaybackRate(Ut)}if(Ue()){let Ut=r_();Ut&&l().actions.internal.setAutoplayNextEnabled(Ut)}l().ui.isAutoplay.set(P()),P()&&X(),V()&&He.features.preload&&l().actions.internal.preload()}let rt=q=>{if(window.ResizeObserver){let Rt,Qt;be=new ResizeObserver((0,Xa.throttleFn)(lt=>{let Xt=lt[0];if(Xt.contentBoxSize){let Ut=Array.isArray(Xt.contentBoxSize)?Xt.contentBoxSize[0]:Xt.contentBoxSize;Rt=Ut.inlineSize,Qt=Ut.blockSize}else Xt.contentRect&&(Rt=Xt.contentRect.width,Qt=Xt.contentRect.height);Et.set({width:Rt,height:Qt})},300)),be.observe(q)}Et.set({width:q.clientWidth,height:q.clientHeight})},at=()=>{document.hidden&&l().actions.external.stop()};Ct(()=>{Ft&&document.addEventListener("visibilitychange",at),He.debugLog&&l().actions.internal.startLogging(),rt(n(Pt));let q=Qe.map(Qt=>Qt.init({store:l(),microStores:Ve,config:f(),interactiveController:x(),uiConfig:v()})),Rt=()=>{Ft&&document.removeEventListener("visibilitychange",at),be?.disconnect(),q.forEach(Qt=>Qt.unsubscribe()),l().destroy()};return C()?.status==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Rt):C()?.status==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Rt):(C()?.status==="finished"||C()?.status==="postlive")&&!(d()&&(0,Yl.areValidLiveRecordSources)(d()))?(l().actions.internal.setLiveWaitingRecord(!0),Rt):(oe(),Rt)});function nt(){n($e)?l().actions.external.play():X(!0)}function yt(){l().actions.external.pause()}function Me(q){l().actions.external.setMuted(q)}function Re(){l().actions.external.toggleSubtitle()}function st(q,Rt){l().actions.external.changeSubtitle(q,Rt)}function vt(q){l().actions.external.changeAudioStream(q)}function mi(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.hideControls()}function ei(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.showControls()}function hi(q){fe()||q>=0&&q<=1&&l().actions.external.setVolume(q)}function Ai(q){l().actions.internal.seekTime(q,Lb.SeekAction.UNKNOWN)}function Ro(q){l().actions.external.seekEpisodeStartTime(q)}function At(){l().actions.external.returnFocusToEpisodes()}function Lt(q){l().actions.external.setPlaybackRate(q)}function di(q){l().actions.external.setAutoQualityLimits(q)}function Hi(){l().actions.external.setQuality("auto")}function ci(q){l().actions.external.setTrafficSavingEnabled(q)}function tn(q){l().actions.external.setHighQualityEnabled(q)}let Vo=dp(He.view),Zt=f().playerView==="preview",No=l().state.availableSubtitlesList$;if(He.features.initSubtitles){let q=!1;Pe(()=>{if(!q&&s().length){q=!0;let Rt;if(He.features.userVideoPrefs&&l().videoId){let lt=Iu(He.userSalt,String(l().videoId));lt?.subtitleTrackId&&(Rt=s().find(Xt=>Xt.value===lt.subtitleTrackId))}let Qt=I()??Rf();Qt&&(Rt=s().find(lt=>lt.language===Qt)),l().actions.internal.setSubtitle(Rt)}})}let vi=l().ui.isPreviewTrackHorizontallyAligned;var to=m2();let ho;var Mn=w(to);{var Rn=q=>{Nv(q,{get store(){return l()},get uiConfig(){return He},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return te()},get adsSlotId(){return ie()},get adsParams(){return de()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return Q()},get logoHidden(){return Te()},get logoTargetUrl(){return kt},get nextButtonActive(){return ke()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ce()},get supportLink(){return L()},get shadowRootContainer(){return Fe()},get outerContainerRef(){return he()},get fullScreenTarget(){return le()},get showMiniTimer(){return De()},get playerStarted(){return n($e)},get seekToInteractive(){return G()},get playPrevChapter(){return Y()},firstStart:X,seekTime:Ai,get showEndScreen(){return Se()},get showAutoplayNext(){return Ue()},get showNextPrevButtons(){return pe()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Pt)},set videoContainer(Rt){M(Pt,Rt,!0)}})},xt=q=>{var Rt=Ie(),Qt=se(Rt);{var lt=Ut=>{Dv(Ut,{get thumbUrl(){return b()},get outsideDuration(){return J()},get canRewindLive(){return H()},get videoContainer(){return n(Pt)},set videoContainer(_t){M(Pt,_t,!0)}})},Xt=Ut=>{Rv(Ut,{get store(){return l()},get uiConfig(){return He},get title(){return m()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return te()},get adsSlotId(){return ie()},get adsParams(){return de()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return Q()},get logoHidden(){return Te()},get logoTargetUrl(){return kt},get nextButtonActive(){return ke()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ce()},get supportLink(){return L()},get shadowRootContainer(){return Fe()},get outerContainerRef(){return he()},get fullScreenTarget(){return le()},get showMiniTimer(){return De()},get playerStarted(){return n($e)},get seekToInteractive(){return G()},get playPrevChapter(){return Y()},firstStart:X,get showEndScreen(){return Se()},get showAutoplayNext(){return Ue()},get showNextPrevButtons(){return pe()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Pt)},set videoContainer(_t){M(Pt,_t,!0)},get keyboardControls(){return Ke()},set keyboardControls(_t){Ke(_t)}})};A(Qt,Ut=>{Zt?Ut(lt):Ut(Xt,!1)})}h(q,Rt)};A(Mn,q=>{fe()?q(Rn):q(xt,!1)})}$(to),D(q=>{ho=ee(to,1,"vk-vp-root s-1",null,ho,q),ze(to,Vo)},[()=>({"root--miui-browser":Yl.clientChecker.device.isMobile&&Yl.clientChecker.browser.isMiuiBrowser,"visible-outside":Zt,"preview-track-horizontally-alinged":a()})]),h(t,to);var Bt=B({initVideo:oe,play:nt,pause:yt,setMuted:Me,toggleSubtitle:Re,changeSubtitle:st,changeAudioStream:vt,hideControls:mi,showControls:ei,setVolume:hi,seekTime:Ai,seekEpisodeStartTime:Ro,returnFocusToEpisodes:At,setPlaybackRate:Lt,setAutoQualityLimits:di,setAutoQuality:Hi,toggleTrafficSaving:ci,toggleHighQuality:tn,get sources(){return d()},set sources(q){d(q)},get store(){return l()},set store(q){l(q)},get microStoresRoot(){return p()},set microStoresRoot(q){p(q)},get videoConfig(){return f()},set videoConfig(q){f(q)},get uiConfig(){return v()},set uiConfig(q){v(q)},get title(){return m()},set title(q){m(q)},get thumbUrl(){return b()},set thumbUrl(q){b(q)},get interactiveContainer(){return y()},set interactiveContainer(q){y(q)},get interactiveController(){return x()},set interactiveController(q){x(q)},get subtitles(){return S()},set subtitles(q){S(q)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(q){I(q)},get live(){return C()},set live(q){C(q)},get preload(){return V()},set preload(q){V(q)},get autoplay(){return P()},set autoplay(q){P(q)},get volume(){return R()},set volume(q){R(q)},get muted(){return U()},set muted(q){U(q)},get fromTime(){return N()},set fromTime(q){N(q)},get canRewindLive(){return H()},set canRewindLive(q){H(q)},get showAds(){return te()},set showAds(q){te(q)},get adsSlotId(){return ie()},set adsSlotId(q){ie(q)},get adsParams(){return de()},set adsParams(q){de(q)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(q){Z(q)},get duration(){return J()},set duration(q){J(q)},get logoClickable(){return Q()},set logoClickable(q){Q(q)},get logoHidden(){return Te()},set logoHidden(q){Te(q)},get isMobile(){return fe()},set isMobile(q){fe(q)},get showNextPrevButtons(){return pe()},set showNextPrevButtons(q){pe(q)},get nextButtonActive(){return ke()},set nextButtonActive(q){ke(q)},get prevButtonActive(){return we()},set prevButtonActive(q){we(q)},get endScreenVideoTitle(){return ne()},set endScreenVideoTitle(q){ne(q)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(q){Ne(q)},get isOneVideoPlaylist(){return ce()},set isOneVideoPlaylist(q){ce(q)},get supportLink(){return L()},set supportLink(q){L(q)},get shadowRootContainer(){return Fe()},set shadowRootContainer(q){Fe(q)},get outerContainerRef(){return he()},set outerContainerRef(q){he(q)},get fullScreenTarget(){return le()},set fullScreenTarget(q){le(q)},get failoverHosts(){return me()},set failoverHosts(q){me(q)},get showMiniTimer(){return De()},set showMiniTimer(q){De(q)},get saveRate(){return Le()},set saveRate(q){Le(q)},get showAutoplayNext(){return Ue()},set showAutoplayNext(q){Ue(q)},get seekToInteractive(){return G()},set seekToInteractive(q){G(q)},get playPrevChapter(){return Y()},set playPrevChapter(q){Y(q)},get volumeMultiplier(){return Ae()},set volumeMultiplier(q){Ae(q)},get showEndScreen(){return Se()},set showEndScreen(q){Se(q)},get keyboardControls(){return Ke()},set keyboardControls(q){Ke(q)}});return o(),Bt}var g2=xe('<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 Bv(t,e){let i=g(e,"isWhite",3,!1),o=u(()=>i()?"#fff":"#909499");Ye(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,s)=>{var a=g2();Jt(9),h(r,a)},$$slots:{default:!0}})}var h2=E('<div class="title s-2"> </div>'),_2=E('<div class="playerStub s-2"><!> <!></div>'),b2={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 Hv(t,e){W(t,b2);var i=_2(),o=w(i);{var r=d=>{var l=h2(),p=w(l,!0);$(l),D(()=>ue(p,e.title)),h(d,l)};A(o,d=>{e.title&&d(r)})}var s=k(o,2);{var a=d=>{let l=u(()=>!!e.thumbUrl);Bv(d,{get isWhite(){return n(l)}})};A(s,d=>{(!e.title||!e.thumbUrl)&&d(a)})}$(i),D(()=>ze(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),h(t,i)}var $2=E('<div class="playerError s-0"><!></div>'),y2={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 Fv(t){W(t,y2);var e=$2(),i=w(e);Ka(i,{}),$(e),h(t,e)}var $p=require("@vkontakte/videoplayer-shared"),wi=require("@vkontakte/videoplayer-shared"),Nc=require("@vkontakte/videoplayer-core"),ed=require("@vkontakte/videoplayer-statistics");var up=require("@vkontakte/videoplayer-shared"),cp=class{constructor(){this.subscription=new up.Subscription,this.logger=new up.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){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=ge(e.state.currentPlaybackRate$),r=ge(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var jl=require("@vkontakte/videoplayer-shared");var x2=xe('<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),w2=E('<div><div><!></div> <span class="title s-6"> </span></div>'),S2={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 Uv(t,e){O(e,!0),W(t,S2);let[i,o]=Ee(),r=()=>_(p,"$interfaceLanguage$",i),s=()=>_(f,"$isMobile$",i),a=ve(),d=wt(),l=!!a.webApi.pictureInPictureApi,p=a.interfaceLanguage$,f=a.ui.isMobile,v=a.ui.t,m=u(()=>r()&&v("pip_dummy_title")),b=dp(d.view);var y=w2();let x;var S=w(y);let I;var C=w(S);Ye(C,{width:"57",height:"56",testId:"pip-dummy-icon",children:(R,U)=>{var N=x2();Jt(),h(R,N)},$$slots:{default:!0}}),$(S);var V=k(S,2),P=w(V,!0);$(V),$(y),D((R,U)=>{x=ee(y,1,"player-pip-dummy s-6",null,x,R),ze(y,b),I=ee(S,1,"dummy-image s-6",null,I,U),ue(P,n(m))},[()=>({"is-pip-api":l}),()=>({desktop:!s()})]),h(t,y),B(),o()}var T2=460,C2=280,Ic=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new jl.ValueSubject(!1),isEnabled$:new jl.ValueSubject(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new jl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,jl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:T2,height:C2,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(d=>d.cssText).join(" ")).filter(Boolean).join(`
|
|
63
|
-
`),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Br(Uv,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||($a(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{this.pipWindow&&documentPictureInPicture.window?.close(),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Mb(t){return t instanceof Ic}var pp=class{static getLatestSupportedVersion(e){let i=new Ea(e),o=new Ic(e);if(o.isSupported())return o;if(i.isSupported())return i}};function kc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var Rb="Inner error. Unexpectedly root annotation container null reference exception",Vb="Annotation with such name already exists",Nb="Annotation with such name does not exist";var Xl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Zl=require("@vkontakte/videoplayer-shared"),I2="1",k2=100,fp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Zl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Zl.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"},k2);this.subscriptions.add((0,Zl.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){if(!this.rootAnnotationsContainer)throw new Xl(Rb);if(this.annotations.has(e))throw new Xl(Vb);i.style.zIndex=i.style.zIndex??I2,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 Xl(Nb);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+a>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Za=require("@vkontakte/videoplayer-shared"),en=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,Za.assertNonNullable)(e),(0,Za.assertNonNullable)(i),(0,Za.assertNonNullable)(r),r.interactiveData&&(0,Za.assertNonNullable)(o),this.subscription=new Za.Subscription,this.subscription}};var Ec=class extends en{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Pc=class extends en{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:d,isPlaying$:l}=s.state,{controlsVisible:p,isMobile:f}=s.ui,v=ge(f),m=()=>v&&ge(p);return o.add(p.subscribe(b=>{if(!v)return;let y=ge(a);ge(l)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(l.subscribe(b=>{this.state$.set(!b||m())})),o.add(a.subscribe(b=>{if(b===null)return;let y=ge(d);if(m()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Ac=class extends en{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var Db=require("@vkontakte/videoplayer-shared"),zv=re(!1),mp=null,Lc=class extends en{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...zv,set:(i,o=!1)=>{i!==ge(zv)&&(this.clearTimeout(),zv.set(i),!i&&mp&&(mp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:d}=r.state,l=r.ui.controlsVisible,{interactiveTimeIndicator:p}=r.ui.controls;o.add(l.subscribe(v=>{ge(a)&&v&&this.state$.set(!1)}));let f=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add((0,Db.combine)({isPlaying$:d,isInteractiveTime$:a,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:m,interactiveTimeIndicator:b})=>{if(!(!v||!b?.isDisplayed)){if(!m)return this.state$.set(!1);f.tooltipHelpHintActive&&mp===null&&(mp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var vp=require("@vkontakte/videoplayer-shared");var Mc=class extends en{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:vp.noop};this.checkIfShouldHide=i=>ws(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ge(a)))return;let l=ge(this.state$),{isEnded$:p,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,m=ge(p),b=ge(f);if(l)try{await s?.toggleGraphView(!1),this.state$.set(!1),v.remove(yf),!m&&this.graphMadePause&&r.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),v.add(yf),!m&&this.graphMadePause&&r.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add((0,vp.combine)({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{d({message:"Cant hide graph"})}})),o}};var Wv=require("@vkontakte/videoplayer-shared"),Rc=class extends en{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Wv.ValueSubject(!1),isEnabled$:new Wv.ValueSubject(!1)}};return o.add(s.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(a.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var hp=require("@vkontakte/videoplayer-shared");var gp=require("@vkontakte/videoplayer-shared"),Ob=({maxShowCount:t,timeout:e})=>{let i=[t!==0?E2({maxCount:t}):void 0,e!==0?P2({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},E2=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,gp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},P2=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(gp.safeStorage.get(e)||"{}")}catch{return{}}},o=s=>gp.safeStorage.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let d=Date.now()-a.launchTime>t;return d&&r(s),d}else return!0}}};var Vc=class extends en{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),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:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=Ob({maxShowCount:s,timeout:a});let p=r.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,hp.filterChanged)(),(0,hp.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Bb=()=>[Ec,Pc,Ac,Lc,Mc,Rc,Vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Jl=require("@vkontakte/videoplayer-shared");var _p=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=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var A2=E('<div class="root s-3"><!></div>'),L2={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 Kv(t,e){O(e,!0),W(t,L2);let i=null,o=z(null);Pe(()=>(n(o)&&(i=window.setTimeout(()=>{M(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(l){e.playbackStatusShow&&M(o,l?"prev":"next",!0)}var s=Ie(),a=se(s);{var d=l=>{var p=Ie(),f=se(p);_s(f,()=>n(o),v=>{var m=A2(),b=w(m);let y=u(()=>n(o)==="prev");Cc(b,{get duration(){return e.animationDuration},get Icon(){return Zs},get reversed(){return n(y)}}),$(m),h(v,m)}),h(l,p)};A(a,l=>{e.playbackStatusShow&&n(o)&&l(d)})}return h(t,s),B({startVideoChangedAnimation:r})}var M2={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:wi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Nc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Ln=z(void 0),qv=Yt({animationDuration:0,playbackStatusShow:!1}),bp=class extends HTMLElement{svelteStubComponent;svelteRootComponent;sveltePersistentLayerComponent;svelteErrorComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;playerId;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;focusManager;prevIsid=void 0;isInited=!1;postponedInitParams=null;internalsExposure=null;shadowDOMCallbacksDisabled=!1;fatalError$=new $p.ValueSubject(null);constructor(){super(),Jl.devNull.create("ui"),this.logger=new wi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new wi.Subscription,this.interactiveSubscription=new wi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Br(Fv,{target:this.playerContainer}))})}connectedCallback(){if(this.rootContainer)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=Yt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=Br(Hv,r),this.sveltePersistentLayerComponent=Br(Kv,{target:this.playerContainer,props:qv}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;qv.animationDuration=e,qv.playbackStatusShow=i&&o}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),Jl.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.append(this.rootContainer)}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){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:d,refreshStatAuthToken:l,autoplay:p,isMobile:f,isTouch:v,refDomain:m,deviceId:b,interactiveData:y}=kc(this.videoConfig,i),x=y?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:C=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new ed.OneStat({movieId:I,albumId:o,place:r,trackCode:a,vkAppId:d,autoplay:(p&&!this.interactiveController)??!1,mobile:v??f,clip:C,refDomain:m,deviceId:b,isPreviewPlayerView:this.videoConfig.playerView==="preview",...x&&(!this.isInited||S)&&{projectId:Number(x)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(P){console.error(P),this.log({message:P.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=kc(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new ed.ThinOneStat.ThinOneStat({deviceId:o,movieId:a,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:d,autoplay:l,volume:p,muted:f,fromTime:v,canRewindLive:m,supportLink:b,showAds:y,adsSlotId:x,adsParams:S={},adsAutoplayParam:I,interfaceLanguage:C,isCyrillicRelatedInterface:V,logoClickable:P,logoHidden:R,isMobile:U,isTouch:N,isAudioDisabled:H,isLiveCatchUpMode:te,fullScreenTarget:ie,failoverHosts:de,canDownload:Z,callbacks:J,interactiveData:Q,showThumbTimer:Te,additionalButtons:fe=[],additionalSettingsMenuItems:pe=[],additionalContextMenuItems:ke=[],repeat:we,loop:ne,saveRate:Ne,volumeMultiplier:ce,showEndScreen:L,showAutoplayNext:Fe,mediascopePixels:he}=kc(this.videoConfig,i),{sources:le,title:me,thumbUrl:De,unitedVideoId:Le,isClip:G=!1,duration:Y,adsParams:Ae={},videoEpisodes:Ue,previewThumbsData:Se,subtitles:Ke,subtitlesForcedLanguage:Qe,live:Ve,adsExternalApi:He}=e;if(!le&&!Ve){let Me=new Error("empty sources and live");this.fatalError$.next(Me),J.onCrashed?.(Me.message);return}let kt={...S,...Ae},je=this.getNextVideoInfo(),Et={sources:le,title:me,thumbUrl:De,subtitles:Ke,subtitlesForcedLanguage:Qe,unitedVideoId:Le,isClip:G,live:Ve,albumId:r,statPlace:s,autoplay:l,muted:f,volume:p,fromTime:v,canRewindLive:m,showAds:y,adsSlotId:x,adsParams:kt,adsAutoplayParam:I,duration:Y,logoClickable:P,logoHidden:R,isTouch:N??U,repeat:we,loop:ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:je.nextVideoTitle,endScreenVideoThumb:je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Dt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Et)}`});let gt=this.interactiveController?.state.statistics$.getValue(),Ft=gt?.oneStat||this.createOneStat(e,i),Pt=this.createThinOneStat(e,i),be;he&&(be=new ed.MediascopePixel({pixels:he})),(Ft||Pt)&&(this.statistics=new ju(Ft,Pt,be,gt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ka(this.uiConfig.sentry,{version:Ta,env:$u},{movieId:Le,albumId:r,place:s,autoplay:(l&&!this.interactiveController)??!1,mobile:N??U,clip:G}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...ka.getInstance()};let X=!!Q,ye=[],oe="tooltip_interactive_go_back_disabled_first";if(X&&this.interactiveController){let Me=this.interactiveController.state.isInitialChapter$.getValue(),Re=this.interactiveController.getHistoryState();Me&&ye.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ye.push("SEEK_TO_INTERACTIVE_BUTTON"),Re.hasPrevChapter$.getValue()||(ye.push("PLAY_PREV_CHAPTER_BUTTON"),Me||(Re.isGoBackLimited$.getValue()?oe="tooltip_interactive_go_back_disabled_limit":oe="tooltip_interactive_go_back_disabled"))}let rt=()=>{this.isInited=!1,this.prevIsid=void 0;let Me=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!Me?J.onReplayInteractiveVideo():this.replayInteractiveVideo()},at=we&&this.videoConfig.videos.length===1;this.store=j_({player:o,interfaceLanguage:C,isCyrillicRelatedInterface:V,videoId:Le,isClip:G,isLiveCatchUpMode:te,isAudioDisabled:H,statAuthToken:a,callbacks:J,webApi:Dt,videoEpisodes:Ue,previewThumbsData:Se,canDownload:Z,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ye,isInteractive:X,saveRate:Ne,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:rt,playPrevChapterDisabledTooltip:oe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:pe??[],additionalContextMenuItems:ke??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:Me=>this.sveltePersistentLayerComponent?.startVideoChangedAnimation(Me),looped:this.uiConfig.features.useLoopSetting?ne:at,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:nt}=this.microStoresRoot=Bb(),yt=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Re=>J?.onCurrentFormatChanged?.(Re))),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(Re=>{Re!==null&&this?.interactiveController?.setDisabledControls(Re)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Re=>J?.onThroughputEstimationChanged?.(Re))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Re=>J?.onTrafficSavingEnabledChanged?.(Re))),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Re=>J?.onHighQualityEnabledChanged?.(Re))),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Re=>J?.onAutoQualityEnabledChanged?.(!!Re))),this.subscription.add(new wi.Observable(Re=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(st=>Re.next(st)))}).pipe((0,wi.skip)(1)).subscribe(Re=>J?.onCurrentPlaybackRateChanged?.(Re))),this.subscription.add(this.store.state.volume$.subscribe(Re=>J?.onVolumeChange?.(Re))),this.subscription.add(this.store.state.muted$.subscribe(Re=>{if(Re)J?.onMute?.();else{let st=(this.store?.state.volume$&&ge(this.store.state.volume$))??0;J?.onUnmute?.(st)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Re=>J?.onVideoBitrateChanged?.(Re))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Re=>{let st=this.store?.ui.controls.disabledControls$;st&&(Re&&!st.includes(Ad)&&st.add(Ad),Re||st.remove(Ad))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Re=>{if(!Nc.clientChecker.browser.isSamsungBrowser||!Re||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Re=>J?.onVSIDChanged?.(Re))),this.initMediaSession(),M(Ln,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:le,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:me,thumbUrl:De,subtitles:Ke,subtitlesForcedLanguage:Qe,live:Ve,preload:d,autoplay:l,muted:f,volume:p,fromTime:v,canRewindLive:m,supportLink:b,showAds:y,adsSlotId:x,adsParams:kt,adsAutoplayParam:I,duration:Y,logoClickable:P,logoHidden:R,isMobile:N??U,failoverHosts:de,fullScreenTarget:ie,saveRate:Ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:je.nextVideoTitle,endScreenVideoThumb:je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ce,showEndScreen:L,showAutoplayNext:Fe,adsExternalApi:He},!0);let Me={target:this.playerContainer,props:n(Ln)};this.svelteRootComponent=Br(Ov,Me),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?Jl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Jl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Nc.clientChecker.isInited$.subscribe(Me=>{Me&&(console.log("UI SDK async start"),yt())}):yt()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,wi.isNonNullable)(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?ge(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:d}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:d,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$:l,isSeekable$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(p.subscribe(v=>{if(!this.isInited)return;let m=this.store;v?m.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):m.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(l.subscribe(v=>{this.store&&this.store.state.isInteractiveExpectation$.set(v)}));let f=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(v=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...v.config,title:r?.title||v.config.title};let m=f?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(v.player,m),f&&(f=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:v,actionType:m})=>{if(!this.store||!this.microStoresRoot)return;let b=l.getValue();if(v==="action-choice"&&m==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ld)),v==="action-choice-canceled"){let y=ge(this.store.state.isPlaying$)||b;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&y){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:v,removeAllOpenURI:m})=>{this.store&&v==="container-fake-removed"&&m&&this.store.ui.controls.disabledControls$.remove(Ld)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let v=this.interactiveController.getHistoryState();this.subscription.add(v.history$.subscribe(m=>{m.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(m)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(v=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(v.chapter,v.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(v=>{this.log({message:v.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let o=new Error("empty videos");this.fatalError$.next(o),e.callbacks?.onCrashed?.(o.message);return}else this.fatalError$.next(null);if(this.videoConfig=kc(M2,(0,wi.cloneDeepWith)(e,o=>o instanceof HTMLElement?o:void 0)),this.playerId=(0,wi.getPlayerId)(e.playerId),this.uiConfig=Ch(i.ui??{}),this.updatePersistentLayerProps(),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new wi.InternalsExposure("ui",this.playerId)),Jl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[(0,$p.now)()]}),(0,wi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,wi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.uiConfig.ads.paramsOverride={preview:this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??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&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=pp.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ea(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new cp:void 0,this.slotsApi=this.uiConfig.features.slots?new sp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new fp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),Mb(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new _p(this._shadowRoot):void 0}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(Ln)&&(n(Ln).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Ln).nextButtonActive=this.isNextButtonActive(),n(Ln).prevButtonActive=this.isPrevButtonActive(),n(Ln).endScreenVideoTitle=o.nextVideoTitle,n(Ln).endScreenVideoThumb=o.nextVideoThumb,n(Ln).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onNextVideoClick?.()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onPrevVideoClick?.()}catch{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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}changeSubtitle(e,i){this.log({message:"change subtitle"}),this.svelteRootComponent?.changeSubtitle(e,i)}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Ln)&&(n(Ln).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Ln).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Ln).nextButtonActive=this.isNextButtonActive(),n(Ln).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}setAutoQuality(){this.svelteRootComponent?.setAutoQuality()}toggleTrafficSaving(e){this.svelteRootComponent?.toggleTrafficSaving(e)}toggleHighQuality(e){this.svelteRootComponent?.toggleHighQuality(e)}changeAudioStream(e){this.svelteRootComponent?.changeAudioStream(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){let i=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${i}`}),i||(this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.isStalled$.getValue()&&!i.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let i=this.isLiveTailPlaying(),o=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};o&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{o||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let o=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};i&&o(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{i||o(),this.store?.destroy()})}setLiveEnd(e){let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){r();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat?.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=ge(this.store.state.positionExact$),r=ge(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,wi.once)()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.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){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){return this.statistics?.thinOneStat?.getTotalViewTime()}unmountComponent(e){e&&$a(e)}};var td=require("@vkontakte/videoplayer-shared"),yp=require("@vkontakte/videoplayer-core"),R2=()=>{window.customElements.define("vk-video-player",bp)};
|
|
140
|
+
Audio: ${(n(l).audioCodec||"")??""} ${n(l).audioLanguage?`(${n(l).audioLanguage})`:""}`)),b(Se,Ae)};M(be,Se=>{(n(l).videoCodec||n(l).audioCodec)&&Se(Ve)})}var ke=I(be,2);{var te=Se=>{var Ae=C$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).viewport)),b(Se,Ae)};M(ke,Se=>{n(l).viewport&&Se(te)})}var He=I(ke,2);{var ue=Se=>{var Ae=T$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).videoSize)),b(Se,Ae)};M(He,Se=>{n(l).videoSize&&Se(ue)})}var P=I(He,2);{var Ke=Se=>{var Ae=k$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(()=>pe(_e,n(l).cdn)),b(Se,Ae)};M(P,Se=>{n(l).cdn&&Se(Ke)})}var $e=I(P,2);{var W=Se=>{var Ae=I$(),H=I(_(Ae),2),_e=_(H);m(H),m(Ae),O(()=>pe(_e,`${n(l).volume??""} %`)),b(Se,Ae)};M($e,Se=>{n(l).volume&&Se(W)})}var de=I($e,2);{var De=Se=>{var Ae=E$(),H=I(_(Ae),2),_e=_(H);m(H),m(Ae),O(he=>pe(_e,`${he??""} s`),[()=>n(l).position.toFixed(2)]),b(Se,Ae)};M(de,Se=>{n(l).position&&Se(De)})}var qe=I(de,2);{var fe=Se=>{var Ae=A$(),H=I(_(Ae),2),_e=_(H);m(H),m(Ae),O(he=>pe(_e,`${he??""} s`),[()=>n(l).buffer.toFixed(2)]),b(Se,Ae)};M(qe,Se=>{n(l).buffer&&Se(fe)})}var j=I(qe,2);{var Ee=Se=>{var Ae=P$(),H=I(_(Ae),2),_e=_(H);m(H),m(Ae),O(he=>pe(_e,`${he??""} s`),[()=>n(l).liveLatency.toFixed(2)]),b(Se,Ae)};M(j,Se=>{n(l).liveLatency&&Se(Ee)})}var Fe=I(j,2);{var Qe=Se=>{var Ae=M$(),H=I(_(Ae),2),_e=_(H,!0);m(H),m(Ae),O(he=>pe(_e,he),[()=>[{value:n(l).currentVideoSegmentLength,title:"Video:"},{value:n(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:he})=>he).map(({value:he,title:dt})=>`${dt} ${((he??0)/1e3).toFixed(2)} s`).join(" & ")]),b(Se,Ae)};M(Fe,Se=>{(n(l).currentVideoSegmentLength||n(l).currentAudioSegmentLength)&&Se(Qe)})}var Xe=I(Fe,2),tt=I(_(Xe),2),Be=_(tt);m(tt),m(Xe);var Ge=I(Xe,2);{var Lt=Se=>{var Ae=L$(),H=I(_(Ae),2);Dd(H,{get values(){return n(k)}});var _e=I(H,2),he=_(_e);m(_e),m(Ae),O(dt=>pe(he,`${dt??""} Kbps`),[()=>n(l).speed.toFixed(2)]),b(Se,Ae)};M(Ge,Se=>{n(l).speed&&Se(Lt)})}var Je=I(Ge,2);{var Rt=Se=>{var Ae=V$(),H=I(_(Ae),2);Dd(H,{get values(){return n(T)}});var _e=I(H,2),he=_(_e);m(_e),m(Ae),O(dt=>pe(he,`${dt??""} Kbps`),[()=>n(l).bitrate.toFixed(2)]),b(Se,Ae)};M(Je,Se=>{n(l).bitrate&&Se(Rt)})}var Ft=I(Je,2),xt=I(_(Ft),2);Dd(xt,{get values(){return n(C)}});var Gt=I(xt,2),Ct=_(Gt,!0);m(Gt),m(Ft),m(Z),m(A),O(Se=>{R=ee(A,1,"container svelte-lx3h69",null,R,Se),Oe(A,"aria-label",N),pe(re,n(l).version),pe(Be,`${n(v)??""} / ${n(g)??""} frames`),pe(Ct,n(u))},[()=>({"container-mobile":r()})]),b(t,A),U(),o()}nt(["click"]);var q1=require("@vkontakte/videoplayer-shared"),O$=(t,e)=>{t.stopPropagation(),e()()},D$=E('<div class="close svelte-1ome55p"></div>'),B$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function xs(t,e){F(e,!0),z(t,B$);let i=h(e,"onClick",3,q1.noop);var o=D$();o.__click=[O$,i],b(t,o),U()}nt(["click"]);var Q1=require("@vkontakte/videoplayer-shared"),H$=E('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),F$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Hd(t,e){F(e,!0),z(t,F$);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,Q1.noop),r=5e3,s=K(void 0),a,d,l=0,f;Ne(()=>{i()&&wt(()=>{d=Date.now(),l=requestAnimationFrame(v)})});let g=()=>{l&&(cancelAnimationFrame(l),l=0)},v=()=>{g(),i()&&(f=(Date.now()-d)/r,f<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a?.stroke(),l=requestAnimationFrame(v)):o()())};Mt(()=>{a=n(s).getContext("2d"),a&&(a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff")}),Ko(()=>{g()});var u=H$(),y=_(u);ot(y,x=>L(s,x),()=>n(s)),ye(2),m(u),b(t,u),U()}var U$=(t,e,i)=>{e(!1),i()},z$=E('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),W$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Gf(t,e){F(e,!0),z(t,W$);let[i,o]=Me(),r=()=>$(d,"$autoplayNextEnabled$",i),s=()=>$(l,"$timerNextVideoRunning$",i),a=ve(),d=a.ui.autoplayNextEnabled$,l=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,g=a.actions.internal.nextVideoAnnouncementShow,v=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{r()&&(f(!1),u())},w=()=>{e.clickCloseIcon(),y()};Mt(()=>{e.isHide||g(),e.isHide&&r()&&(f(!1),u())});var C=Le(),k=ce(C);{var T=N=>{var A=z$(),R=I(ce(A),2),V=_(R),Z=_(V),B=_(Z,!0);m(Z);var J=I(Z,2);xs(J,{onClick:w}),m(V);var re=I(V,2);re.__click=[U$,f,v];var le=_(re),Y=_(le),ne=_(Y);let X;var Ce=I(ne,2);{var ae=te=>{let He=p(()=>s()&&r());Hd(te,{get isRunning(){return n(He)},onTimerEnded:x})};M(Ce,te=>{r()&&te(ae)})}m(Y),m(le);var be=I(le,2),Ve=_(be),ke=_(Ve,!0);m(Ve),m(be),m(re),m(R),O((te,He)=>{pe(B,te),Ye(Y,`background-image: url('${e.thumb}')`),X=ee(ne,1,"thumb-overlay svelte-jfbaax",null,X,He),pe(ke,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),b(N,A)};M(k,N=>{e.isHide||N(T)})}b(t,C),U(),o()}nt(["click"]);var Ws=require("@vkontakte/videoplayer-core"),j1=require("@vkontakte/videoplayer-shared"),pn=require("@vkontakte/videoplayer-statistics");var Yf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Zf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Lu=(t,e,i)=>{let o=Yf(e,i);e<1&&t.actions.internal.setVolume(o)},Vu=(t,e,i)=>{let o=Zf(e,i);e>0&&t.actions.internal.setVolume(o)};var zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o?.(),!1):e?!0:(r?.(),!1);function Ru(){return document.activeElement?.shadowRoot?.activeElement??null}var q$=(t,e)=>{e(t)},Q$=E('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),j$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Xf(t,e){F(e,!0),z(t,j$);let[i,o]=Me(),r=()=>$(Ce,"$disabledControls$",i),s=()=>$(fe,"$isInteractiveTime$",i),a=()=>$(j,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>$(J,"$playbackState$",i),l=()=>$(Ke,"$isEnded$",i),f=()=>$(ue,"$doubleForwardAvailable$",i),g=()=>$(He,"$doubleForwardOn$",i),v=()=>$($e,"$overlayContainer$",i),u=()=>$(le,"$adPlaybackState",i),y=()=>$(Y,"$positionExact$",i),x=()=>$(ne,"$duration$",i),w=()=>$(De,"$isAudioAvailable$",i),C=()=>$(X,"$volume$",i),k=()=>$(re,"$canChangePlaybackSpeed$",i),T=()=>$(ae,"$muted$",i),N=()=>$(be,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),R=h(e,"prevButtonActive",3,!1),V=ve(),Z=It(),B=V.getLogger().createComponentLog("KeyboardControls component"),J=V.state.playbackState$,re=V.state.canChangePlaybackSpeed$,le=V.ads.playbackState,Y=V.state.positionExact$,ne=V.state.duration$,X=V.state.volume$,Ce=V.ui.controls.disabledControls$,ae=V.state.muted$,be=V.state.currentSubtitle$,Ve=V.ui.contextMenu.openedByHotKey$,ke=V.ui.contextMenu.lastActiveElem$,te=V.ui.contextMenu.visible$,He=V.ui.doubleForwardOn$,ue=V.ui.doubleForwardAvailable$,P=V.ui.contextMenu.position$,Ke=V.state.isEnded$,$e=V.ui.overlayContainer$,W=V.callbacks?.onAudioDoesNotExistHint,de=V.callbacks?.onAudioDisabledHint,De=V.state.isAudioAvailable$,qe=V.state.isAudioDisabled,fe=V.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:j}=io(),Ee=0,Fe=!0,Qe=K(void 0),Xe=H=>(H!==Fe&&(Fe=H,Ee=0),Ee+=1,(Z.controls.seekStepKeyboard+Z.controls.seekStepKeyboard*Ee)/1e3),tt=!0,Be=({type:H,repeat:_e,disableDoubleForward:he})=>{let dt=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&a()&&j.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{V.actions.internal.togglePlay();let rt="PLAY";d()===Ws.PlaybackState.PAUSED?rt="PAUSE":l()&&(rt="REPLAY"),e.showHotKeyHelpers({type:rt})}},ft=H==="down";if(!f()||he){ft&&dt(),tt=!0;return}if(ft)tt=!1;else if(tt)return;if(ft){!_e&&e.startDoubleForwardActivationTimer();return}g()||dt(),e.stopDoubleForward(),tt=!0},Ge=H=>{let _e=W1(v());P.set(_e),ke.set(H.target),Ve.set(!0),te.set(!0)},Lt=(H,_e=!1)=>{let he=H.target,dt=he?.getAttribute("role")?.includes("menuitem"),ft=he.classList.contains("btn"),rt=H.code;if(ft&&rt==="Space")return!1;let Vt=qh.has(rt);if(dt&&Vt)return!1;let Ze=!Kh.has(rt);if(H.ctrlKey&&Ze||H.altKey&&Ze||H.metaKey)return!1;let Re=dt&&rt==="Escape";Qh.has(rt)||Re||e.hideContextMenu();let ut=d()===Ws.PlaybackState.PLAYING||d()===Ws.PlaybackState.PAUSED,pt=e.isAds&&(u()==="paused"||u()==="playing"),ui=!pt&&!r().has("TIMELINE"),ai=H.shiftKey&&["Digit1","Numpad1"].includes(rt);if(!ai&&!(ut||pt))return!1;B({message:`key down, code: ${rt}, isExternal = ${_e}`});let hi=!1,St=()=>{hi=!0,_e||H.preventDefault()};if(ai)return Ge(H),St(),!0;switch(rt){case"KeyJ":case"ArrowLeft":{if(!ui)break;if(H.ctrlKey||H.altKey){let Nt=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(Nt),Nt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Nt.text}),St()}else{let Nt=H.shiftKey?Xe(!1):Z.controls.seekStepKeyboard/1e3,_i=Math.max(y()-Nt,0);y()>0&&(V.actions.internal.seekTime(_i,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Nt.toString()}),St())}break}case"KeyL":case"ArrowRight":{if(!ui)break;if(H.ctrlKey||H.altKey){let Nt=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(Nt),Nt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Nt.text}),St()}else{let Nt=H.shiftKey?Xe(!0):Z.controls.seekStepKeyboard/1e3,_i=Math.min(y()+Nt,x());Math.round(y())<Math.round(x())&&(V.actions.internal.seekTime(_i,pn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Nt.toString()}),St())}break}case"ArrowUp":{if(zs({isAudioDisabled:qe,audioDisabledHintCallback:de,isAudioAvailable:w(),audioIsNotExistHintCallback:W,isAds:e.isAds})){let Nt=C(),_i=Z.controls.volumeStepKeyboard,oo=Nt<=1;if(Lu(V,Nt,_i),oo){let no=Math.round(Yf(Nt,_i)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}St();break}case"ArrowDown":{if(zs({isAudioDisabled:qe,audioDisabledHintCallback:de,isAudioAvailable:w(),audioIsNotExistHintCallback:W,isAds:e.isAds})){let Nt=C(),_i=Z.controls.volumeStepKeyboard,oo=Nt>=0;if(Vu(V,Nt,_i),oo){let no=Math.round(Zf(Nt,_i)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:no}})}}St();break}case"Comma":{if(H.shiftKey){if(!g()&&k()){let Nt=V.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:Nt?.displayValue}),St()}}else{if(pt||d()!==Ws.PlaybackState.PAUSED)break;let Nt=Math.max(y()-Z.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Nt,pn.SeekAction.DOUBLE_TAP),St())}break}case"Period":{if(H.shiftKey){if(!g()&&k()){let Nt=V.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:Nt?.displayValue}),St()}}else{if(pt||d()!==Ws.PlaybackState.PAUSED)break;let Nt=Math.min(y()+Z.controls.seekStepFrame/1e3,x());y()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(Nt,pn.SeekAction.DOUBLE_TAP),St())}break}case"KeyK":case"Space":Be({type:"down",repeat:H.repeat,disableDoubleForward:"KeyK"===rt}),St();break;case"KeyM":{zs({isAudioDisabled:qe,audioDisabledHintCallback:de,isAudioAvailable:w(),audioIsNotExistHintCallback:W,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),V.actions.internal.toggleMuted()),St();break}case"KeyF":e.toggleFullscreen(),St();break;case"KeyC":V.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:N()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),St();break;case"KeyI":V.actions.internal.togglePictureInPicture(),St();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.1,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.2,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.3,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.4,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.5,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.6,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.7,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.8,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(.9,pn.SeekAction.DOUBLE_TAP),St();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),V.actions.internal.seekToPercent(0,pn.SeekAction.DOUBLE_TAP),St();break;case"Slash":{H.shiftKey&&Z.features.hotKeyMapModal&&(e.showKeyMap(),St());break}case"KeyN":H.shiftKey&&A()&&(V.actions.internal.nextVideoClick(),St());break;case"KeyP":H.shiftKey&&R()&&(V.actions.internal.prevVideoClick(),St());break;case"ShiftLeft":case"ShiftRight":St();break;case"Tab":case"Escape":case"Enter":break;default:(0,j1.checkNever)(rt);break}return hi},Je=H=>{let _e=H.code;if(H.ctrlKey||H.altKey||H.metaKey)return;let he=d()===Ws.PlaybackState.PLAYING||d()===Ws.PlaybackState.PAUSED,dt=e.isAds&&(u()==="paused"||u()==="playing");if(he||dt)switch(_e){case"ShiftLeft":case"ShiftRight":Ee=0;break;case"Space":Be({type:"up"});break}},Rt=Q("aria_label_video_player"),Ft=()=>n(Qe)?.focus(),xt=()=>n(Qe)===Ru(),Gt=H=>H.type==="keydown"?Lt(H,!0):(H.type==="keyup"&&Je(H),!1);var Ct=Q$();Ct.__keyup=Je,Ct.__keydown=[q$,Lt];var Se=_(Ct);ge(Se,()=>e.children??oe),m(Ct),ot(Ct,H=>L(Qe,H),()=>n(Qe)),O(()=>Oe(Ct,"aria-label",Rt)),b(t,Ct);var Ae=U({focus:Ft,isFocused:xt,handleExternalKeyboardEvent:Gt});return o(),Ae}nt(["keyup","keydown"]);var G$=E('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Y$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
|
|
141
|
+
|
|
142
|
+
@keyframes svelte-1dbnjb1-dot_animation {
|
|
143
|
+
0% {
|
|
144
|
+
opacity: 0.2;
|
|
145
|
+
}
|
|
146
|
+
30% {
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
100% {
|
|
150
|
+
opacity: 0.2;
|
|
151
|
+
}
|
|
152
|
+
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
153
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ea(t,e){z(t,Y$);let i=h(e,"style",3,"");var o=G$();O(()=>Ye(o,i())),b(t,o)}var Z$=xe('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var Aa=require("@vkontakte/videoplayer-shared"),X$=t=>{t.stopPropagation()},J$=E("<button><!></button>"),e2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
|
|
154
|
+
/**
|
|
155
|
+
* \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
|
|
156
|
+
* \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
|
|
157
|
+
* \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
|
|
158
|
+
*/will-change:opacity;}
|
|
159
|
+
|
|
160
|
+
/* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */button.w-max.svelte-7jez3e {width:100%;}button.btn--live.svelte-7jez3e {padding:10px 4px;}button.btn-jc-l.svelte-7jez3e {justify-content:left;}
|
|
161
|
+
|
|
162
|
+
/* mobile */
|
|
163
|
+
/* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
|
|
164
|
+
button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
|
|
165
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Dt(t,e){F(e,!0),z(t,e2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),a=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),l=h(e,"ref",15,void 0),f=h(e,"ariaKeyShortCut",3,void 0),g=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),u=h(e,"click",3,Aa.noop),y=h(e,"focus",3,Aa.noop),x=h(e,"blur",3,Aa.noop),w=p(()=>u()===Aa.noop?null:A=>{A.stopPropagation(),u()(A)}),C=p(()=>y()===Aa.noop?null:A=>{A.preventDefault(),y()()}),k=p(()=>x()===Aa.noop?null:A=>{A.preventDefault(),x()()});var T=J$();T.__pointerdown=[X$],T.__click=function(...A){n(w)?.apply(this,A)};var N=_(T);ge(N,()=>e.children??oe),m(T),ot(T,A=>l(A),()=>l()),O(()=>{ee(T,1,`btn ${i()??""}`,"svelte-7jez3e"),Ye(T,o()||null),T.disabled=r()??null,Oe(T,"aria-hidden",a()??null),Oe(T,"aria-label",d()??null),Oe(T,"aria-keyshortcuts",f()??null),Oe(T,"aria-expanded",g()??null),Oe(T,"data-testid",s()??null),Oe(T,"tabindex",v()),Oe(T,"role",e.role),Oe(T,"aria-checked",e.areaChecked??null)}),vt("focus",T,function(...A){n(C)?.apply(this,A)}),vt("blur",T,function(...A){n(k)?.apply(this,A)}),b(t,T),U()}nt(["pointerdown","click"]);var t2=E('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),i2=E('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),o2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function em(t,e){F(e,!0),z(t,o2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var s=i2(),a=_(s),d=_(a);{var l=u=>{var y=t2(),x=_(y),w=_(x,!0);m(x);var C=I(x,2);{var k=T=>{Dt(T,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(N,A)=>{Jf(N,{})},$$slots:{default:!0}})};M(C,T=>{o()&&T(k)})}m(y),O(()=>pe(w,e.title)),b(u,y)};M(d,u=>{i()&&u(l)})}var f=I(d,2),g=_(f),v=_(g);ge(v,()=>e.children??oe),m(g),m(f),m(a),m(s),b(t,s),U()}var n2=new Set(["BR"]),G1=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],s=r.tagName;n2.has(s)||r.parentElement?.removeChild(r)}return e.innerHTML};var r2=E('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),s2=E('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),a2=E('<div class="hot-key-map svelte-quklnq"></div>'),l2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {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.svelte-quklnq,
|
|
166
|
+
.hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
|
|
167
|
+
.hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function tm(t,e){F(e,!1),z(t,l2);let[i,o]=Me(),r=()=>$(a,"$data",i),s=ve(),{data:a,show:d}=s.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Vo(),em(t,{get title(){return r().title},onClose:l,children:(f,g)=>{var v=a2();di(v,5,()=>r().groups,({title:u,items:y})=>u,(u,y)=>{let x=()=>n(y).title,w=()=>n(y).items;var C=s2(),k=_(C),T=_(k,!0);m(k);var N=I(k,2);di(N,5,w,({description:A,value:R})=>R,(A,R)=>{let V=()=>n(R).description,Z=()=>n(R).value;var B=r2(),J=_(B),re=_(J);$d(re,()=>G1(V())),m(J);var le=I(J,2),Y=_(le,!0);m(le),m(B),O(()=>pe(Y,Z())),b(A,B)}),m(N),m(C),O(()=>pe(T,x())),b(u,C)}),m(v),b(f,v)},$$slots:{default:!0}}),U(),o()}var iv=require("@vkontakte/videoplayer-shared");var Oa=require("@vkontakte/videoplayer-core");var MR=require("@vkontakte/videoplayer-shared");var d2=E('<div class="pillow svelte-1oe0j8n"><!></div>'),c2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function im(t,e){z(t,c2);var i=d2(),o=_(i);ge(o,()=>e.children??oe),m(i),b(t,i)}var Ml=require("@vkontakte/videoplayer-shared");var u2=xe('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function om(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var p2=xe('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function nm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=p2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var f2=xe('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function rm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=f2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var m2=xe('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Fd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var v2=xe('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Ud(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=v2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var Nu=t=>{switch(t){case Ml.VideoQuality.Q_720P:return rm;case Ml.VideoQuality.Q_1080P:return Fd;case Ml.VideoQuality.Q_1440P:return Ud;case Ml.VideoQuality.Q_2160P:return om;case Ml.VideoQuality.Q_4320P:return nm}};var g2=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 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></svg>');function sm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=g2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var h2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function am(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=h2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var _2=E('<div aria-hidden="true"><!> <!></div>'),b2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function zd(t,e){F(e,!0),z(t,b2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=p(()=>Nu(o())),s=p(()=>!!n(r)&&[Fd,Ud].includes(n(r)));var a=Le(),d=ce(a);{var l=g=>{sm(g,{})},f=g=>{var v=_2();let u;var y=_(v);{var x=k=>{im(k,{children:(T,N)=>{var A=Le(),R=ce(A);gi(R,()=>n(r),(V,Z)=>{Z(V,{})}),b(T,A)},$$slots:{default:!0}})};M(y,k=>{n(r)&&k(x)})}var w=I(y,2);let C=p(()=>n(r)?"settings-icon--labeled":"settings-icon");am(w,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),m(v),O(k=>u=ee(v,1,"icon svelte-8t5w85",null,u,k),[()=>({triple:n(s)})]),b(g,v)};M(d,g=>{i()?g(l):g(f,!1)})}b(t,a),U()}var $2=E('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),y2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ll(t,e){F(e,!0),z(t,y2);let[i,o]=Me(),r=()=>$(f,"$settingsMenuVisible",i),s=()=>$(u,"$isMobile",i),a=()=>$(l,"$currentQuality",i),d=ve(),l=d.state.currentQuality$,f=d.ui.settingsMenu.visible$,g=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,x=K(void 0);Ne(()=>{n(x)&&wt(()=>{e.ref$.set(n(x))})});let w=y("aria_label_settings");async function C(T){let N=Us(T);r()?v():g(N,Yi)}let k=p(()=>r()?"opened":"");Dt(t,{get className(){return n(k)},testId:"btn-settings",click:C,get ariaLabel(){return w},get ariaExpanded(){return r()},get ref(){return n(x)},set ref(T){L(x,T,!0)},children:(T,N)=>{var A=$2(),R=_(A);zd(R,{get isMobile(){return s()},get currentQuality(){return a()}}),m(A),b(T,A)},$$slots:{default:!0}}),U(),o()}var x2=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function lm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var w2=xe('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Wd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w2();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function dm(t,e){F(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,s=p(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyC},role:"button",children:(a,d)=>{var l=Le(),f=ce(l);{var g=u=>{lm(u,{})},v=u=>{Wd(u,{})};M(f,u=>{i()?u(g):u(v,!1)})}b(a,l)},$$slots:{default:!0}}),U()}var S2=E('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),C2=E('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),T2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Kd(t,e){F(e,!0),z(t,T2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),a=It(),d=ie(!1),l=p(()=>Ro(e.duration)),f=p(()=>Ro(e.position));var g=C2();let v;var u=_(g),y=_(u,!0);m(u);var x=I(u,2);{var w=C=>{var k=S2(),T=_(k,!0);m(k),O(()=>pe(T,n(l))),b(C,k)};M(x,C=>{r()&&C(w)})}m(g),bs(g,()=>Tl(o()&&a.features.usePerformanceFix,d,a.disableInvisibleComponentsTimeout)),ot(g,C=>s(C),()=>s()),O(C=>{v=ee(g,1,"time svelte-sz9er7",null,v,C),pe(y,n(f))},[()=>({mobile:i()})]),b(t,g),U()}var Qd=require("@vkontakte/videoplayer-shared");var k2=xe('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),I2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
|
|
168
|
+
.icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
|
|
169
|
+
.icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ks(t,e){z(t,I2);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=p(()=>r(i(),o()));var a=k2();O(()=>{Oe(a,"data-value",n(s)),Oe(a,"data-testid",`volume-${n(s)??""}-icon`)}),b(t,a)}var fo=require("@vkontakte/videoplayer-shared");var Ou=require("@vkontakte/videoplayer-shared");var Y1=require("@vkontakte/videoplayer-shared");var E2=E('<div class="overlay"><!></div>');function cm(t,e){F(e,!0);let[i,o]=Me(),r=()=>$(a,"$overlayContainer$",i),a=ve().ui.overlayContainer$,d=K(void 0),l=u=>{!u||!n(d)||!u.contains(n(d))||u.removeChild(n(d))},f=u=>{!u||!n(d)||u.contains(n(d))||u.appendChild(n(d))};Ne(()=>{f(r())}),Mt(()=>(f(r()),()=>l(r())));var g=E2(),v=_(g);ge(v,()=>e.children??oe),m(g),ot(g,u=>L(d,u),()=>n(d)),b(t,g),U(),o()}var A2=E('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),P2=E("<div><!></div> <!>",1),M2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Pa(t,e){F(e,!0),z(t,M2);let[i,o]=Me(),r=()=>$(re,"$overlayContainer$",i),s=()=>$(J,"$containerSize",i),a=h(e,"isMobile",3,!1),d=h(e,"content",3,""),l=h(e,"active",15,!1),f=h(e,"translateX",3,0),g=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),u=h(e,"maxTooltipWidth",3,void 0),y=h(e,"placement",3,"top"),x=h(e,"onVisibilityChange",3,Y1.noop),w=5,C=K(void 0),k=K(void 0),T,N=K(0),A=K(0),R=K(0),V=K(0),Z=It(),B=ve(),J=B.ui.playerSize,re=B.ui.overlayContainer$;Ne(()=>{wt(()=>{x()(l())})});let le=B.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!r()||!n(k)||!n(C))return;L(A,w);let j=r().getBoundingClientRect(),Ee=n(C).getBoundingClientRect(),Fe=Ee.width,Qe=n(k).clientWidth,Xe=s().width,tt=(Fe-Qe)/2,Be=Ee.left+f()-j.left,Ge=Be+tt,Lt=Ee.top+g()-j.top,Je=Qe/2-w,Rt=Ge<8,Ft=Ge+Qe>Xe-8;Rt&&(Ge=8,Je=Be+Ee.width/2-2.5*w),Ft&&(Ge=Xe-8-Qe,Je=Ee.left-j.left+Ee.width/2-Ge-w),L(R,Ge,!0),L(V,Lt),L(N,Je,!0)},ne=()=>{!r()||!n(k)||!n(C)||L(A,-w)},X=()=>{if(!r()||!n(k)||!n(C))return;L(N,w);let j=r().getBoundingClientRect(),Ee=n(C).getBoundingClientRect(),Fe=Ee.height,Qe=n(k).clientHeight,Xe=(Fe-Qe)/2+Qe,tt=Ee.left+f()-j.left-n(k).clientWidth,Be=2,Ge=tt-w;Ge<8&&(Ge=8);let Je=Ee.top+g()-j.top+Xe,Rt=Be-Xe/2,Ft=Be-w;L(R,Ge,!0),L(V,Je),L(A,Rt),L(N,Ft)},Ce=()=>{!r()||!n(k)||!n(C)||L(N,-w)},ae=()=>{switch(y()){case"top":Y();break;case"bottom":ne();break;case"left":X();break;default:Ce()}},be=()=>{try{if(!r()||!n(C))return;ae(),l(!0)}catch(j){le({message:String(j)})}},Ve=()=>{l(!1)},ke=()=>{n(k)&&(T||(T=window.setTimeout(be,Z.controls.hideTimeoutTooltips)),l()&&be())},te=()=>{Ve(),window.clearTimeout(T),T=void 0},He=(j,Ee,Fe)=>{let Qe="";switch(y()){case"top":Qe=`transform: translate(${j}px, ${Ee}px);`;break;case"bottom":Qe=`transform: translate(${j}px, ${Ee}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${j}px, ${Ee}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${j}px, ${Ee}px);`}return Qe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Qe+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,Qe},ue=(j,Ee)=>{let Fe="";switch(y()){case"top":Fe=`transform: translate(${j}px, ${Ee}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${j}px, ${Ee}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${j}px, ${Ee}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${j}px, ${Ee}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},P=p(()=>He(n(R),n(V),l())),Ke=p(()=>ue(n(N),n(A)));Mt(ae),Ko(()=>window.clearTimeout(T));var $e=P2(),W=ce($e);let de;W.__mousemove=ke,W.__mousedown=te,W.__mouseup=function(...j){(e.disableMouseupTooltipShow?void 0:ke)?.apply(this,j)};var De=_(W);ge(De,()=>e.children??oe),m(W),ot(W,j=>L(C,j),()=>n(C));var qe=I(W,2);{var fe=j=>{cm(j,{children:(Ee,Fe)=>{var Qe=A2(),Xe=_(Qe),tt=_(Xe,!0);m(Xe);var Be=I(Xe,2);m(Qe),ot(Qe,Ge=>L(k,Ge),()=>n(k)),O(()=>{Ye(Qe,n(P)),pe(tt,d()),Ye(Be,n(Ke))}),b(Ee,Qe)},$$slots:{default:!0}})};M(qe,j=>{d()&&!a()&&j(fe)})}O(j=>de=ee(W,1,"tooltip-wrapper svelte-hxlyne",null,de,j),[()=>({"full-width":v()})]),vt("mouseenter",W,ke),vt("mouseleave",W,te),b(t,$e),U(),o()}nt(["mousemove","mousedown","mouseup"]);var Z1=t=>{t.stopPropagation()},L2=E("<div><!></div>"),V2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function po(t,e){F(e,!0),z(t,V2);let[i,o]=Me(),r=()=>$(f,"$isGraphOpened$",i),s=()=>$(l,"$isMobile",i),a=ve(),d=io(),l=a.ui.isMobile,f=d.graphIsOpened$,g=a.ui.t,v=h(e,"className",3,""),u=h(e,"disabled",3,!1),y=h(e,"hasTooltip",3,!0),x=h(e,"ref",15,void 0),w=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),k=h(e,"tooltipContent",3,""),T=h(e,"tooltipActive",3,!1),N=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>g("tooltip_button_disabled")),R=h(e,"isAriaHidden",3,!1),V=h(e,"onTooltipVisibilityChange",3,Ou.noop),Z=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),J=h(e,"mouseEnter",3,Ou.noop),re=h(e,"mouseLeave",3,Ou.noop),le=p(()=>u()?r()?g("tooltip_disabled_when_graph_on"):A():k());var Y=L2();Y.__pointerdown=[Z1],Y.__click=[Z1];var ne=_(Y);{var X=ae=>{Pa(ae,{get content(){return n(le)},get translateX(){return Z()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return T()},get placement(){return N()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(be,Ve)=>{var ke=Le(),te=ce(ke);ge(te,()=>e.children??oe),b(be,ke)},$$slots:{default:!0}})},Ce=ae=>{var be=Le(),Ve=ce(be);ge(Ve,()=>e.children??oe),b(ae,be)};M(ne,ae=>{y()&&n(le)&&!s()?ae(X):ae(Ce,!1)})}m(Y),ot(Y,ae=>x(ae),()=>x()),O(()=>{ee(Y,1,`btn-container ${v()??""}`,"svelte-p9r045"),Oe(Y,"aria-hidden",R()||null)}),vt("mouseenter",Y,function(...ae){J()?.apply(this,ae)}),vt("mouseleave",Y,function(...ae){re()?.apply(this,ae)}),un(Y,"clientWidth",w),b(t,Y),U(),o()}nt(["pointerdown","click"]);var R2=xe('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function qd(t,e){"use strict";var i=R2(),o=_(i),r=I(o);m(i),O(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var N2=E("<div><!></div>"),O2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function um(t,e){F(e,!0),z(t,O2);let o=ve().ui.t,r=K(0),s=p(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));po(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(a,d)=>{var l=N2();let f;var g=_(l);let v=p(()=>!!e.videoEpisode.completed);qd(g,{get completed(){return n(v)}}),m(l),O(u=>{f=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,f,u),Ye(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),un(l,"clientWidth",u=>L(r,u)),b(a,l)},$$slots:{default:!0}}),U()}var D2=E('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),B2=E('<div class="video-episodes-wrap svelte-1uc247w"></div>'),H2={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
|
|
170
|
+
.video-episode-loaded.svelte-1uc247w,
|
|
171
|
+
.video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
|
|
172
|
+
.video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function pm(t,e){z(t,H2);let i=h(e,"videoEpisodes",19,()=>[]);var o=B2();di(o,21,i,r=>r.from,(r,s)=>{var a=D2();let d;var l=_(a),f=_(l),g=I(f,2);let v;m(l),m(a),O((u,y)=>{d=ee(a,1,"video-episode svelte-1uc247w",null,d,u),Ye(a,`left: ${n(s).from}%; width: ${n(s).width}%`),Ye(f,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ee(g,1,"video-episode-filled svelte-1uc247w",null,v,y),Ye(g,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,a)}),m(o),b(t,o)}function F2(t,e,i,o,r,s,a){if(t.preventDefault(),e()&&L(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;L(r,!0);let d=s(t.clientX,t.clientY);a()(d,t),e().setPointerCapture(t.pointerId)}function U2(t,e,i,o,r,s,a,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),f=o(t.clientX);r()(l,f,n(s).width,t),n(a)&&d()(l)}function z2(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;L(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function W2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function K2(t,e,i,o,r,s){let a=e(t.clientX,t.clientY);i()&&o()(a),L(r,!1),s()(a)}var q2=E("<div></div>"),Q2=E('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),j2=E('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),G2={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
|
|
173
|
+
/* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
|
|
174
|
+
.slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
|
|
175
|
+
.slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
|
|
176
|
+
.slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
|
|
177
|
+
.slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
|
|
178
|
+
.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Ma(t,e){F(e,!0),z(t,G2);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),a=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),l=h(e,"isMobile",3,!1),f=h(e,"squareBorders",3,!1),g=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),u=h(e,"isInteractive",3,!1),y=h(e,"disabled",3,!1),x=h(e,"hideHandel",3,!1),w=h(e,"onPointerDown",3,fo.noop),C=h(e,"onHandleMove",3,fo.noop),k=h(e,"onPointerUp",3,fo.noop),T=h(e,"onPointerEnter",3,fo.noop),N=h(e,"onPointerMove",3,fo.noop),A=h(e,"onPointerLeave",3,fo.noop),R=h(e,"onMouseEnter",3,fo.noop),V=h(e,"onMouseLeave",3,fo.noop),Z=h(e,"onWheelUp",3,fo.noop),B=h(e,"onWheelDown",3,fo.noop),J=h(e,"onWheelLeft",3,fo.noop),re=h(e,"onWheelRight",3,fo.noop),le=h(e,"onDisabledClick",3,fo.noop),Y=h(e,"loadedProgress",3,0),ne=h(e,"filledProgress",3,0),X=h(e,"handleProgress",3,0),Ce=h(e,"ariaLabel",3,""),ae=h(e,"ariaValueMin",3,void 0),be=h(e,"ariaValueMax",3,void 0),Ve=h(e,"ariaValueNow",3,void 0),ke=h(e,"ariaValueText",3,""),te=h(e,"onContextMenu",3,fo.noop),He=h(e,"handleAlwaysVisible",3,!1),ue=It(),P=K(void 0),Ke=K(!1),$e=p(()=>be()??0),W=p(()=>(0,fo.isNonNullable)(g())&&g()[g().length-1]?.time<n($e)),de=p(()=>(0,fo.isNonNullable)(g())&&g().length&&n(W)&&n($e)?Xe(Y()*100,ne()*100):[]);function De(_e){if(_e.preventDefault(),i()&&L(P,i().getBoundingClientRect(),!0),y())return;let he=Fe(_e.clientX,_e.clientY),dt=Qe(_e.clientX);T()(he,dt,n(P).width)}function qe(_e){_e.preventDefault(),!y()&&A()()}function fe(){R()()}function j(){V()()}function Ee(_e){y()||v()&&(_e.preventDefault(),_e.deltaY<0?Z()():_e.deltaY>0?B()():_e.deltaX>0?re()():J()())}function Fe(_e,he){return a()?Math.max(0,Math.min(1,(n(P).height-(he-n(P).top))/n(P).height)):Math.min(Math.max(_e-n(P).x,0),n(P).width)/n(P).width}function Qe(_e){return Math.min(Math.max(_e-n(P).x,0),n(P).width)}function Xe(_e,he){let dt=ue.features.episodesClustering&&!u()?ue.episodeMinWidthPc:0,ft=[],rt=g()[0].time/n($e)*100,Vt=0,Ze=0;for(let pt=1;pt<g().length;pt++)Vt=g()[pt].time/n($e)*100,Vt-rt>dt&&(ft.push({from:rt,width:Math.max(0,Vt-rt),loadedWidth:Math.max(0,Math.min(Vt,_e)-rt),filledWidth:Math.max(0,Math.min(Vt,he)-rt),interactive:g()[pt-1].interactive,completed:g()[pt-1].completed}),rt=g()[pt].time/n($e)*100,Ze++);let Re={from:rt,width:Math.max(0,100-rt),loadedWidth:Math.max(0,Math.min(_e,100)-rt),filledWidth:Math.max(0,Math.min(he,100)-rt),interactive:g()[Ze].interactive,completed:g()[Ze].completed};100-rt<dt?(Ze-=1,ft[Ze].width+=100-rt,ft[Ze].loadedWidth+=Math.max(0,Math.min(_e,100)-rt),ft[Ze].filledWidth+=Math.max(0,Math.min(he,100)-rt)):ft[Ze]=Re;let ut=g()[0].time;if(ut!==0){let pt=ut/n($e)*100;ft.unshift({from:0,width:pt,loadedWidth:Math.min(pt,_e),filledWidth:Math.min(pt,he)})}return ft}function tt(_e){return Math.max(0,Math.min(100,_e*100))}var Be=j2(),Ge=ce(Be);{var Lt=_e=>{var he=q2();let dt;di(he,21,()=>n(de),ft=>ft.from,(ft,rt)=>{var Vt=Le(),Ze=ce(Vt);{var Re=ut=>{um(ut,{get videoEpisode(){return n(rt)},get disabled(){return y()}})};M(Ze,ut=>{n(rt).interactive&&ut(Re)})}b(ft,Vt)}),m(he),O(ft=>dt=ee(he,1,"interactive-icons svelte-12bsb23",null,dt,ft),[()=>({mobile:l(),hidden:l()&&!n(Ke)})]),b(_e,he)};M(Ge,_e=>{u()&&_e(Lt)})}var Je=I(Ge,2);let Rt;Je.__pointerdown=[F2,i,P,y,Ke,Fe,w],Je.__pointermove=[U2,y,Fe,Qe,N,P,Ke,C],Je.__pointerup=[z2,y,Ke,Fe,k],Je.__click=[W2,y,le,Fe],Je.__contextmenu=[K2,Fe,y,le,Ke,te];var Ft=_(Je);{var xt=_e=>{pm(_e,{get videoEpisodes(){return n(de)},get disabled(){return y()},get isMobile(){return l()}})},Gt=_e=>{var he=Q2(),dt=_(he),ft=I(dt,2);let rt;m(he),O((Vt,Ze,Re)=>{Ye(dt,Vt),rt=ee(ft,1,"filled svelte-12bsb23",null,rt,Ze),Ye(ft,Re)},[()=>`transform: translateX(${tt(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(ne())}%);`]),b(_e,he)};M(Ft,_e=>{n(de).length?_e(xt):_e(Gt,!1)})}var Ct=I(Ft,2);let Se;var Ae=_(Ct);let H;m(Ct),m(Je),ot(Je,_e=>i(_e),()=>i()),O((_e,he,dt,ft)=>{Rt=ee(Je,1,`slider ${o()??""}`,"svelte-12bsb23",Rt,_e),Oe(Je,"aria-label",Ce()),Oe(Je,"aria-valuemin",ae()),Oe(Je,"aria-valuemax",be()),Oe(Je,"aria-valuenow",Ve()),Oe(Je,"aria-valuetext",ke()),Oe(Je,"data-testid",r()??null),Se=ee(Ct,1,"handleWrap svelte-12bsb23",null,Se,he),Ye(Ct,dt),H=ee(Ae,1,"handle svelte-12bsb23",null,H,ft)},[()=>({disabled:y(),"slider-dragging":n(Ke),hidden:s(),"handle-always-visible":He(),"slider-vertical":a(),"no-handle":x(),square:f()}),()=>({hidden:x()}),()=>`transform: translateX(${tt(X())}%);`,()=>({"active-live":d()})]),vt("pointerenter",Je,De),vt("pointerleave",Je,qe),vt("mouseenter",Je,fe),vt("mouseleave",Je,j),vt("wheel",Je,Ee),b(t,Be),U()}nt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Bi=(t,e)=>ba[t]>=ba[e],X1=(t,e)=>ba[t]<ba[e],ws=(t,e)=>ba[t]<=ba[e],J1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Z2=E("<div><!></div>"),X2=E("<div><!> <!></div>"),J2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;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.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function fm(t,e){F(e,!0),z(t,J2);let[i,o]=Me(),r=()=>$(T,"$isAudioAvailable$",i),s=()=>$(v,"$muted$",i),a=()=>$(g,"$volume$",i),d=()=>$(w,"$currentGridType$",i),l=ve(),f=It(),g=l.state.volume$,v=l.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:x}=l.actions.internal,w=l.ui.currentGridType$,C=l.callbacks?.onAudioDoesNotExistHint,k=l.callbacks?.onAudioDisabledHint,T=l.state.isAudioAvailable$,N=l.state.isAudioDisabled,A=l.ui.t,R=K(!1),V,Z=p(()=>e.isAds||r()),B=p(()=>!n(Z)||s()||a()===0),J=p(()=>ws(d(),"s")),re=p(()=>n(J)?"":n(B)?!r()||N?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),le=p(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),Y=p(()=>n(B)?0:a()),ne=!1,X=p(()=>e.isAds?!1:N?!k:r()?!1:!C);function Ce(j){y(),u(j)}function ae(){Lu(l,a(),f.controls.volumeStepWheel)}function be(){Vu(l,a(),f.controls.volumeStepWheel)}function Ve(j){u(j)}function ke(j){u(j),x()}function te(){ne=!0}function He(){ne=!1,Ke()}function ue(){clearTimeout(V),L(R,!0)}function P(){Ke()}function Ke(){V=window.setTimeout(()=>{ne||L(R,!1)},f.controls.volumeBarTimeout)}function $e(j){j.preventDefault(),j.deltaY<0?ae():j.deltaY>0&&be()}var W=X2();let de;var De=_(W);Pa(De,{get content(){return n(re)},translateY:-18,children:(j,Ee)=>{let Fe=p(()=>n(J)?"btn-volume-vertical":"btn-volume-horizontal");Dt(j,{className:"btn-full-opacity",get disabled(){return n(X)},get testId(){return n(Fe)},get ariaLabel(){return n(le)},get click(){return e.click},get ariaKeyShortCut(){return is.KeyM},role:"button",children:(Qe,Xe)=>{Ks(Qe,{get volume(){return a()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=I(De,2);{var fe=j=>{var Ee=Z2();let Fe;var Qe=_(Ee);let Xe=p(()=>n(J)?"volumeBar-slider-vertical":""),tt=p(()=>n(J)&&!n(R)),Be=p(()=>n(J)?te:Qd.noop),Ge=p(()=>n(J)?He:Qd.noop),Lt=p(()=>Math.round(n(Y)*100)),Je=p(()=>`${Math.round(n(Y)*100)}%`),Rt=p(()=>n(J)?"volume-slider-vertical":"volume-slider");Ma(Qe,{get className(){return n(Xe)},get isHidden(){return n(tt)},get isVertical(){return n(J)},withWheelHandler:!0,onWheelUp:ae,onWheelDown:be,onPointerDown:Ce,onHandleMove:Ve,onPointerUp:ke,get onPointerEnter(){return n(Be)},get onPointerLeave(){return n(Ge)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Lt)},get ariaValueText(){return n(Je)},get filledProgress(){return n(Y)},get handleProgress(){return n(Y)},get testId(){return n(Rt)}}),m(Ee),O(Ft=>Fe=ee(Ee,1,"volumeBar svelte-1auih1j",null,Fe,Ft),[()=>({"volumeBar-vertical":n(J)})]),b(j,Ee)};M(qe,j=>{n(Z)&&j(fe)})}m(W),O(j=>de=ee(W,1,"volumeBar-container svelte-1auih1j",null,de,j),[()=>({vertical:n(J)})]),vt("mouseenter",W,function(...j){(n(J)?ue:Qd.noop)?.apply(this,j)}),vt("mouseleave",W,function(...j){(n(J)?P:Qd.noop)?.apply(this,j)}),vt("wheel",W,$e),b(t,W),U(),o()}var e0=require("@vkontakte/videoplayer-shared");var ey=xe('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><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.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ey();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var ty={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
179
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function vm(t,e){z(t,ty);let i=h(e,"isFullscreen",8,!1),o=sn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");mm(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function jd(t,e){F(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,e0.noop),r=ve(),s=r.ui.isFullscreenOpenedByKeyboard,a=r.ui.t,d=p(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:f=>{let g=Us(f);s.set(g),o()()},get ariaKeyShortCut(){return is.KeyF},role:"button",children:(f,g)=>{vm(f,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var iy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var oy=xe('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(6),m(o),b(t,o)}var ny={hash:"svelte-e5e2xr",code:`svg [data-logo],
|
|
180
|
+
svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
181
|
+
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
182
|
+
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
183
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
|
|
184
|
+
svg[data-logo="play_market"] [data-logo="play_market"],
|
|
185
|
+
svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function _m(t,e){F(e,!0),z(t,ny);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",a=24,d=p(()=>!o()&&!i()?91:i()?a:95),l=p(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),f=p(()=>`0 0 ${n(d)} 24`);hm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(f)},get"data-testid"(){return n(l)},get"data-logo"(){return r()}}),U()}function Gd(t,e){F(e,!0);let[i,o]=Me(),r=()=>$(y,"$isMobile",i),s=()=>$(u,"$currentGridType$",i),a=()=>$(w,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),l=h(e,"logoClickable",3,!1),f=h(e,"targetUrl",3,""),g=It(),v=ve(),u=v.ui.currentGridType$,y=v.ui.isMobile,x=v.ui.t,w=v.isCyrillicRelatedInterface$,C=p(()=>g.logoType!=="vk"),k=p(()=>n(C)?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=p(()=>(r()&&ws(s(),"m")||ws(s(),"l"))&&n(C)),N=()=>{e.click(),v.callbacks?.onLogoClicked?v.callbacks?.onLogoClicked():f()&&window.open(f(),"_blank")},A=p(()=>!l()),R=p(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:N,get testId(){return n(R)},get ariaLabel(){return n(k)},get ref(){return d()},set ref(V){d(V)},children:(V,Z)=>{var B=Le(),J=ce(B);{var re=Y=>{_m(Y,{get logo(){return g.logoType},get short(){return n(T)},get isCyrillic(){return a()}})},le=Y=>{gm(Y,{})};M(J,Y=>{n(C)?Y(re):Y(le,!1)})}b(V,B)},$$slots:{default:!0}}),U(),o()}var i0=require("@vkontakte/videoplayer-core");var bm=require("@vkontakte/videoplayer-core"),ry=xe('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),sy=xe('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),ay={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
|
|
186
|
+
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
187
|
+
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
188
|
+
animation-name: svelte-8z1bf5-wave3;}
|
|
189
|
+
|
|
190
|
+
@keyframes svelte-8z1bf5-wave1 {
|
|
191
|
+
0% {
|
|
192
|
+
opacity: 0.3;
|
|
193
|
+
}
|
|
194
|
+
33% {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
66% {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
}
|
|
200
|
+
100% {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@keyframes svelte-8z1bf5-wave2 {
|
|
206
|
+
0% {
|
|
207
|
+
opacity: 0.3;
|
|
208
|
+
}
|
|
209
|
+
33% {
|
|
210
|
+
opacity: 0.3;
|
|
211
|
+
}
|
|
212
|
+
66% {
|
|
213
|
+
opacity: 1;
|
|
214
|
+
}
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 1;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@keyframes svelte-8z1bf5-wave3 {
|
|
221
|
+
0% {
|
|
222
|
+
opacity: 0.3;
|
|
223
|
+
}
|
|
224
|
+
33% {
|
|
225
|
+
opacity: 0.3;
|
|
226
|
+
}
|
|
227
|
+
66% {
|
|
228
|
+
opacity: 0.3;
|
|
229
|
+
}
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
}
|
|
233
|
+
}`};function $m(t,e){F(e,!0),z(t,ay);let i=h(e,"isMobile",3,!1),o=p(()=>e.iconState===bm.ChromecastState.CONNECTED),r=p(()=>e.iconState===bm.ChromecastState.CONNECTING);var s=Le(),a=ce(s);{var d=f=>{var g=ry(),v=_(g),u=_(v),y=_(u);ye(),m(u);var x=I(u);ye(),m(v);var w=I(v),C=_(w),k=_(C);m(C),ye(),m(w),m(g),O(()=>{Oe(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(k,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),b(f,g)},l=f=>{var g=sy();let v;var u=_(g),y=I(_(u),5);let x;m(u),m(g),O((w,C)=>{v=ee(g,0,"svelte-8z1bf5",null,v,w),x=ee(y,0,"svelte-8z1bf5",null,x,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),b(f,g)};M(a,f=>{i()?f(d):f(l,!1)})}b(t,s),U()}var o0=require("@vkontakte/videoplayer-shared");function Yd(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,o0.noop),a=ve().ui.t,d=p(()=>e.state===i0.ChromecastState.CONNECTED?a("tooltip_chromecast_on"):a("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,f)=>{$m(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var n0=require("@vkontakte/videoplayer-shared");var ly=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function ym(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(3),m(o),b(t,o)}var dy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function xm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=dy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Du=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var cy=E('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),uy=E('<span class="text svelte-1yhs2ga"> </span>'),py=E('<span class="text count svelte-1yhs2ga"> </span>'),fy=E("<!> <!>",1),my={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Zd(t,e){F(e,!0),z(t,my);let[i,o]=Me(),r=()=>$(x,"$currentGridType$",i),s=()=>$(w,"$openedByKeyboard$",i),a=()=>$(C,"$panelOpened$",i),d=()=>$(k,"$isMobile",i),l=h(e,"position",3,0),f=h(e,"duration",3,0),g=h(e,"timeCodes",19,()=>[]),v=ve(),u=v.callbacks?.onEpisodeChanged??n0.noop,y=!!v.callbacks?.onEpisodeClicked,x=v.ui.currentGridType$,w=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,k=v.ui.isMobile,T=v.ui.t,N=K(void 0),A=X=>{if(!!v.callbacks?.onEpisodeClicked){let ae=Us(X);w.set(ae),C.set(!0),v.callbacks?.onEpisodeClicked?.(ae)}},R=K(null),V=p(()=>l()/f());Ne(()=>{let X=Du(n(V),f(),g());X?n(R)?.time!==X.time&&(u(X),L(R,X,!0)):L(R,null)});let Z=p(()=>n(R)?.text||""),B=p(()=>Bi(r(),"xl")?"FULL":Bi(r(),"m")&&X1(r(),"xl")?"COUNT":"SHORT"),J=p(()=>`${T("tooltip_episodes")}: ${n(Z)}`),re=async(X,Ce,ae)=>{await Yi(),X?.getAttribute("aria-expanded")==="false"&&Ce&&!ae&&wt(()=>{w.set(!1),X.focus()})};Ne(()=>{re(n(N),s(),a())});var le=Le(),Y=ce(le);{var ne=X=>{let Ce=p(()=>d()?"px-0":""),ae=p(()=>!y);Dt(X,{get className(){return`w-max btn-full-opacity btn-jc-l ${n(Ce)??""}`},testId:"btn-episodes",click:A,get disabled(){return n(ae)},get ariaExpanded(){return a()},get ariaLabel(){return n(J)},get ref(){return n(N)},set ref(be){L(N,be,!0)},children:(be,Ve)=>{var ke=Le(),te=ce(ke);{var He=P=>{var Ke=cy(),$e=ce(Ke),W=_($e,!0);m($e);var de=I($e,2),De=_(de);xm(De,{}),m(de),O(()=>pe(W,n(Z))),b(P,Ke)},ue=P=>{var Ke=fy(),$e=ce(Ke);ym($e,{});var W=I($e,2);{var de=qe=>{var fe=uy(),j=_(fe,!0);m(fe),O(()=>pe(j,n(Z))),b(qe,fe)},De=(qe,fe)=>{{var j=Ee=>{var Fe=py(),Qe=_(Fe,!0);m(Fe),O(()=>pe(Qe,g().length)),b(Ee,Fe)};M(qe,Ee=>{n(B)==="COUNT"&&Ee(j)},fe)}};M(W,qe=>{n(B)==="FULL"?qe(de):qe(De,!1)})}b(P,Ke)};M(te,P=>{d()?P(He):P(ue,!1)})}b(be,ke)},$$slots:{default:!0}})};M(Y,X=>{n(R)&&X(ne)})}b(t,le),U(),o()}var qm=require("@vkontakte/videoplayer-shared");var oi=require("@vkontakte/videoplayer-core"),lt=require("@vkontakte/videoplayer-shared"),ns=require("@vkontakte/videoplayer-statistics");var je=require("@vkontakte/videoplayer-shared"),Hi=require("@vkontakte/videoplayer-shared"),vy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Bu=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 Hi.Subject,loadStarted$:new Hi.Subject,loadEnded$:new Hi.Subject,loadError$:new Hi.Subject,ready$:new Hi.Subject,slotRequested$:new Hi.Subject,started$:new Hi.Subject,timeRemained$:new Hi.Subject,paused$:new Hi.Subject,resumed$:new Hi.Subject,ended$:new Hi.Subject,empty$:new Hi.Subject,skipped$:new Hi.Subject,clicked$:new Hi.Subject,closed$:new Hi.Subject,error$:new Hi.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,Hi.addScript)(vy,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(a=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[(0,je.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},a=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(r),clearTimeout(l),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.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(),this.externalApi?.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{(this.adsState?.playbackState?me(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=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[(0,je.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=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[(0,je.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=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.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"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:a,slotId:d,params:l={},paramsOverride:f={},duration:g,externalApi:v}=e;this.externalApi=v;let u,y=this.playerState&&me(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:x,immediateOrigin:w}=(0,je.detectEmbed)(),C=(x?w:window.location.href)??window.location.href,k={...l,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,...u?{request_id:u}:{},duration:g,...f};k=Object.fromEntries(Object.entries(k).filter(([N,A])=>(0,je.isNonNullable)(A)));let T={slot:d,wrapper:s,videoEl:a,videoQuality:o,params:k,browser:{mobile:!1}};try{let N=new window.AdmanHTML;if(N.onReady(this.onAdsReady),N.onStarted(this.onAdStarted),N.onPlayed(this.onAdPlayed),N.onPaused(this.onAdPaused),N.adMidrollPoint(this.onAdMidrollPoint),N.onClosed(this.onAdClosed),N.onSkipped(this.onAdSkipped),N.onClicked(this.onAdClicked),N.onTimeRemained(this.onAdTimeRemained),N.onCompleted(this.onAdCompleted),N.onError(this.onAdError),N.setDebug(!1),this.externalApi?.videoGetAds){let A=await this.safeExternalCall(this.externalApi.videoGetAds,k);A&&(delete T.slot,delete T.params,Object.assign(T,{json:A}))}N.init(T),this.adman=N,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(N){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(N)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[(0,je.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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}setPostrollPassed(e){this.adsState?.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let e=me(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&(0,Hi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){try{return await e(...i)}catch(o){return this.onAdError(o?.message??"External call failed"),null}}};var r0=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 wm=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 s of r){let a={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let l of d)if(!a.startTime&&!a.endTime){let f=new Hu,{startTime:g,endTime:v}=f.parse(l);a.startTime=g,a.endTime=v}else if(l.trim()!==""){let f=new Sm,{texts:g}=f.parse(l);a.texts=[...a.texts,...g]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},Hu=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 s=Number(e)*60*60,a=Number(i)*60,d=Number(o),l=+`0.${r}`;return s+a+d+l}},Sm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let d=0,l=[];for(;d<a.length;){let f=["<",">"].reduce((g,v)=>{let u=a.indexOf(v,d);return g===-1||g>u?u:g},-1);if(f===-1){l.push(a.substring(d));break}l.push(a.substring(d,f)),d=f+1}return l}}),s=new Hu;for(let a of r)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},s0=wm;var Uu=require("@vkontakte/videoplayer-shared"),La,mr,Cm=0,Tm=!1,a0="",l0=(t,e=0,i=0)=>t<e&&t<i,Fu=(t,e=0,i=0)=>t>=e&&t<=i,gy=(t,e=0,i=0)=>t>e&&t>i,d0=(t,e,i,o=!1)=>{let r=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return r?.find(({startTime:l,endTime:f})=>Fu(t,l,f));let s=t>=Cm,a=t<Cm;if(Cm=t,a&&(Tm=!1),(0,Uu.isNonNullable)(La)&&Fu(t,La.startTime,La.endTime)&&a0===e.value)return La;if(!(0,Uu.isNonNullable)(mr)&&r?.length&&!Tm){mr=r.find(({startTime:l,endTime:f})=>Fu(t,l,f)||s&&l0(t,l,f)),La=void 0,!(0,Uu.isNonNullable)(mr)&&r[r.length-1].endTime<t&&(Tm=!0);return}else{if(Fu(t,mr?.startTime,mr?.endTime))return La=mr,mr=void 0,a0=e.value,La;(s&&gy(t,mr?.startTime,mr?.endTime)||a&&l0(t,mr?.startTime,mr?.endTime))&&(mr=void 0)}};var zu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},hy={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"},Xd=t=>zu[t]??zu[hy[t]]??void 0;var c0=require("@vkontakte/videoplayer-shared"),cD=require("@vkontakte/videoplayer-statistics"),Wu=class{constructor(e,i,o,r=new c0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){this.oneStat?.destroy(),this.thinOneStat?.destroy(),this.mediascopePixel?.destroy(),this.statSubscription.unsubscribe()}};var Jd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Jd||{});var os=t=>t??0,Ss=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(os(i?.top)-os(o?.top)),left:Math.round(os(i?.left)-os(o?.left)),bottom:Math.round(os(i?.bottom)-os(o?.top)),right:Math.round(os(i?.right)-os(o?.left))}},Vl=t=>{let e=t?.getBoundingClientRect?.();return{width:os(e?.width),height:os(e?.height)}};var Cn="off";var Rl=t=>!!(Math.round(Math.abs(t)/90)%2);var u0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:a,canDownload:d,callbacks:l,webApi:f,videoEpisodes:g,previewThumbsData:v,uiConfig:u,coreConfig:y,player:x,disabledControls:w,isInteractive:C,interactiveRanges$:k,isInteractiveTime$:T,replayInteractive:N,stopPlayer:A,hasInteractiveBranches:R,playPrevChapterDisabledTooltip:V,additionalButtons:Z,additionalSettingsMenuItems:B,additionalContextMenuItems:J,playPrevVideo:re,playNextVideo:le,onVideoChanged:Y,looped:ne=!1,statistics:X,saveRate:Ce,internalsExposure:ae,playerView:be,playerId:Ve})=>{let ke={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:a,live:{...y.live??{},isLiveCatchUpMode:!!r}},te=u,He=lt.TracerFactory.createRootTracer(te.features.tracer),ue=He.createComponentTracer("Store"),P=x||new oi.Player(ke,He,{playerId:Ve});ae?.expose({corePlayer:P});let Ke=new lt.Logger,$e=new Bu(Ke,{loadTimeout:te.ads.loadTimeout,initTimeout:te.ads.initTimeout,runtimeTimeout:te.ads.runtimeTimeout,useAdmanFromNPM:te.ads.useAdmanFromNPM,volumeMultiplier:te.ads.volumeMultiplier,isVsidOriginal:te.ads.isVsidOriginal}),W=wa.getInstance(),de=f?.pictureInPictureApi,De=f?.annotationsApi,qe=f?.slotsApi,fe=Ke.createComponentLog("Store"),j,Ee,Fe={},Qe=new vu,Xe=new lt.Subscription,tt="",Be=ie(!1),Ge=X&&X.oneStat?Xt(X.oneStat.vsid$):pr(void 0),Lt=ie(Bs()),Je=ie(!1),Rt=()=>P1(document,oi.clientChecker.device.isIOS),Ft=de?.info.isActive$??new lt.ValueSubject(!1),xt=ie(0),Gt=ie(!1),Ct=ie(!1),Se=ie([]),Ae=(0,lt.merge)(P.events.fatalError$,P.events.managedError$).subscribe(c=>Se.update(S=>[...S,c])),H=pr(!1,c=>{let S=P.events.fatalError$.subscribe(()=>c(!0));return()=>S.unsubscribe()}),_e=async c=>{let S=Object.values(lt.InterfaceLanguage).includes(c);if(te.downloadVKLanguages&&(S&&te.updateBuiltinLanguages||!Lf(c))){let se;try{se=await(0,lt.loadVKLangPack)(c,zh,Wh)}catch(ze){X?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),W?.report(ze,{errorType:"VKLangPack",fatal:!1})}se&&(Mf({language:c,pack:se,fallback:te.defaultLanguage}),he.set(c),dt.update(ze=>ze+1))}Lf(c)&&he.set(c)},he=ie(t),dt=ie(0),ft=ie(e);_e(t);let rt=(c,S)=>{let D=me(he);return Vf(D,c,S,te.defaultLanguage)},Vt=ie("thumb");Vt.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&&ut()});let Ze=(()=>{let c=ri([H,Vt],([S,D])=>S?"crashed":D);return{...c,is:S=>me(c)===S}})(),Re=ie(),ut=()=>{Re.set({muted:P.info.muted$.getValue()})},pt=(()=>{let c=ie(new Set(w));return{...c,add:S=>{c.update(D=>new Set([...D].concat(S)))},remove:S=>{c.update(D=>{let se=[...D];return new Set(Array.isArray(S)?se.filter(ze=>!S.includes(ze)):se.filter(ze=>ze!==S))})},includes:S=>{let D=me(c);return Array.isArray(S)?S.every(se=>D.has(se)):D.has(S)}}})(),ui=ie({width:0,height:0}),ai=null,hi=P.info.isBuffering$,St=pr(hi.getValue(),c=>{let S=hi.subscribe(D=>{D&&ai===null?ai=window.setTimeout(()=>{c(hi.getValue()),ai=null},te.loaderDelay):c(D)});return()=>{S.unsubscribe(),ai&&clearTimeout(ai)}});ue.log("create store"),fe({message:"create store"});let Nt=c=>{let S=c.container,D=()=>{Oo=new MutationObserver(ze=>{let{removedNodes:at}=ze[0];at.length&&S.append(P.experimental.element$.getValue())}),Oo.observe(S,{childList:!0})},se=P.experimental.element$.getValue();if(se)S.append(se),D();else{let ze=P.experimental.element$.pipe((0,lt.filter)(at=>!!at),(0,lt.once)()).subscribe(at=>{S.append(at),D()});Xe.add(ze)}},_i=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),C?Nt(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),P.initVideo(c)),ue.log("init video",{isInteractive:C}),c.subtitles&&P.setExternalTextTracks(c.subtitles),j=c,tt=c.subtitlesForcedLanguage||""},oo=new lt.Subject,no=c=>oo.next(c),No=new lt.Subject,vi=new lt.Subject,Qo=new lt.Subject,Oo=null,ti={actionRewind$:No,actionSeek$:vi,inPiP$:Ft,inFullscreen$:new lt.Observable(c=>Lt.subscribe(S=>c.next(S))),actionSetSubtitle$:Qo,nextMovie$:oo},jo={actionSeek$:vi,playerSize$:new lt.Observable(c=>ui.subscribe(S=>c.next(S))),inPiP$:Ft,inFullscreen$:new lt.Observable(c=>Lt.subscribe(S=>c.next(S))),isLoaderVisible$:new lt.Observable(c=>St.subscribe(S=>c.next(S)))};if(X){let{oneStat:c,thinOneStat:S,mediascopePixel:D,statSubscription:se}=X;c&&(C||se.add(c.attachTo(P)),se.add(c.attachToUi(ti)),se.add(c.attachToAds($e.events)),c.authorize(s).catch(ze=>{fe({message:`onestat auth error ${String(ze)}`})}),D&&D.attachTo(P)),S&&(se.add(S.attachTo(P,$e.events)),se.add(S.attachToUi(jo)),se.add(S.attachToAds($e.events)),S.updateContext({isMobile:me(Be)}),S.authorize(s))}if(W){let c=new lt.Subscription,S=(D,se)=>c.add(D.subscribe(se));if(S(P.events.managedError$,D=>{W.logIError(D)}),S(P.events.fatalError$,D=>{W.logIError(D,!0)}),X){let{oneStat:D}=X;D&&S(D.experimental.error$,se=>{W.logIError(se)})}W.sentrySubscription.add(c)}let mi=()=>{if(oi.clientChecker.device.isIOS&&Ee)try{M1(Ee)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};Xe.add(P.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),Ca(de)&&de.updateVideoElement(),C&&c.setAttribute("pip","false"),be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{mi(),l?.onEnded?.()})).add(P.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(P.events.started$.subscribe(async()=>{Ca(de)&&await de?.revealPictureInPicture();let c=P.info.muted$.getValue();l?.onStarted?.(),Fe.onStarted?.(c)})).add(P.events.willSeek$.subscribe(({from:c,to:S})=>{l?.onSeek?.(c,S)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(P.info.position$.subscribe(c=>{let S=P.info.duration$.getValue();isFinite(S)&&S>0&&(l?.onTimeupdate?.(S,c),$e.setPosition(c,S))})).add(P.events.fatalError$.subscribe(c=>{l?.onCrashed?.(c?`${c.id}: ${c.message}`:void 0)})).add(P.events.fetcherRecoverableError$.subscribe(c=>{l?.onRecoverableError?.(c?`${c.id}: ${c.message}`:void 0)})).add(P.events.loadedMetadata$.subscribe(()=>{Gt.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{Ct.set(c)})).add(P.info.isEnded$.subscribe(c=>{C&&(c?(T?.getValue()&&pt.add(Td),pt.add("PLAY_BUTTON")):pt.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{l?.onLiveTime?.(c)})).add(P.info.isStalled$.subscribe(c=>{l?.onStalledChanged?.(c)})).add(P.info.isLiveEnded$.subscribe(c=>c&&l?.onLiveEnded?.())).add($e.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add($e.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add($e.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add($e.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add($e.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add($e.events.started$.subscribe(c=>l?.adsInfo?.onStarted?.(c))).add($e.events.timeRemained$.subscribe(c=>l?.adsInfo?.onTimeRemained?.(c))).add($e.events.ended$.subscribe(c=>l?.adsInfo?.onCompleted?.(c))).add($e.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add($e.events.clicked$.subscribe(c=>l?.adsInfo?.onClicked?.(c))).add($e.events.closed$.subscribe(c=>l?.adsInfo?.onClosed?.(c))).add($e.events.error$.subscribe(c=>l?.adsInfo?.onError?.(c))).add($e.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add($e.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.()));let Ui=new lt.Subscription,Go=()=>{let{debugLog:c}=te,S,D="#9df7b7",se="#efd169";if(c&&c!==!0){let{colors:at}=c;S=c.tag,D=at?.[0]??D,se=at?.[1]??at?.[0]??se}let ze=S?`: ${S}`:"";Ui.add(P.events.log$.subscribe(at=>{console.debug(`%c sdk${ze} `,`background:${D};`,`sdk component: ${at.component}`,at.message)})).add(Ke.log$.subscribe(at=>{console.debug(`%c ui${ze} `,`background:${se};`,`ui component: ${at.component}.`,at.message)}))},In=()=>{Ui.unsubscribe()},En=(c,S)=>{ue.log("start camera manual rotation",{mx:c,my:S}),P.startCameraManualRotation(c,S)},Tt=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},Ut=(c,S,D)=>{ue.log("move camera focus px",{xpx:c,ypx:S,dt:D}),P.moveCameraFocusPX(c,S,D)},G=()=>{P.holdCamera()},Ot=()=>{P.releaseCamera()},Kt=pr(P.info.position$.getValue(),c=>{let S,D,se=()=>{let ze=P.info.playbackState$.getValue(),at=P.info.isLive$.getValue(),Pt=P.info.duration$.getValue(),li=P.info.position$.getValue();if(ze&&[oi.PlaybackState.PLAYING,oi.PlaybackState.PAUSED].includes(ze)){let Uo=at?li-Pt:P.getExactTime();Uo!==D&&c(Uo),D=Uo}S=requestAnimationFrame(se)};return se(),()=>cancelAnimationFrame(S)}),mt=Xt(P.info.playbackState$),ii=Xt(P.info.currentBuffer$),qt=Xt(P.info.isEnded$),_t=Xt(P.info.isLive$),xi=te.features.playbackRate?Xt(P.info.canChangePlaybackSpeed$):pr(!1),Do=Xt(P.info.liveBufferTime$),Bo=Xt(P.info.volume$),mo=Xt(P.info.muted$),zi=gu(P.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===oi.PredefinedQualityLimits.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===oi.PredefinedQualityLimits.TRAFFIC_SAVING),wi=gu(P.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===oi.PredefinedQualityLimits.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===oi.PredefinedQualityLimits.HIGH_QUALITY),jn=Xt(P.info.autoQualityLimitingAvailable$),Zi=Xt(P.info.availableQualities$),Xi=Xt(P.info.availableQualitiesFps$),bi=Xt(P.info.chromecastState$),Yo=Xt(P.info.chromecastDeviceName$),vo=Xt(P.info.currentFormat$),Gn=Xt(P.info.throughputEstimation$),Yn=Xt(P.info.videoBitrate$),vr=Xt(P.info.intrinsicVideoSize$),Fr=Xt(P.info.duration$),ss=Xt(P.info.isAudioAvailable$),Ur=()=>{ai&&clearTimeout(ai),ai=null},ro=ri([Fr,_t],([c,S])=>S?-c:c),An=ri([mt],([c])=>c===oi.PlaybackState.PLAYING),go=Xt(P.info.atLiveEdge$),Zo=Xt(P.info.atLiveDurationEdge$),fn=Xt(P.info.position$),Zn=ri([fn,Fr],([c,S])=>isFinite(c)&&isFinite(S)&&!!S),gr=ri([bi],([c])=>c===oi.ChromecastState.CONNECTED),hr=Xt(P.info.availableVideoStreams$),_r=te.features.audioLanguages?Xt(P.info.availableAudioStreams$):pr([]),br=Xt(P.info.currentVideoStream$),Pi=Xt(P.info.currentAudioStream$),$r=c=>{c.language&&If(c.language),P.setVideoStream(c)},mn=(c,S)=>{P.setAudioStream(c),xo(S)&&(c.language&&If(c.language),te.features.userVideoPrefs&&i&&Pf(te.userSalt,String(i),{audioTrackId:c.id}))},Xo=c=>{let S;if(c.length===1&&(S=c.at(0)),S??=c.find(se=>"isDefault"in se&&se.isDefault),te.features.userVideoPrefs&&i){let se=yu(te.userSalt,String(i));se?.audioTrackId&&(S=c.find(at=>at.id===se.audioTrackId)??S)}let D=g1();return D&&(S??=c.find(({language:se})=>D===se)),S??=c.at(0),S},Ji=c=>{ue.log("change audio stream",{id:c});let S=P.info.availableAudioStreams$.getValue().find(D=>D.id===c);S&&mn(S,!0)},Xn=!1;Xe.add(P.info.availableAudioStreams$.subscribe(c=>{if(!Xn&&c.length){let S=Xo(c);S&&(P.setAudioStream(S),Xn=!0)}})),_r.subscribe(c=>{l?.onAvailableAudioStreamsChanged?.(c.map(({label:S="",id:D="",language:se=""})=>({label:S,language:se,id:D})))}),Pi.subscribe(c=>c&&l?.onAudioStreamChanged?.(c.id));let vn=!1;Xe.add(P.info.availableVideoStreams$.subscribe(c=>{if(!vn&&c.length){let S=Xo(c);S&&(P.setVideoStream(S),vn=!0)}}));let ct=ie(void 0),Si=Xt(P.info.isAutoQualityEnabled$,c=>c&&ct.set(void 0)),yr=Xt(P.info.currentQuality$,()=>ct.set(void 0)),Pn=ri([ct,yr],([c,S])=>c??S),xr=ri(vo,c=>c!==oi.VideoFormat.MPEG),gn=ri([Zi,Xi,Si,Pn,xr],([c,S,D,se,ze])=>{let at=[];ze&&at.push({value:"auto",displayValue:rt("auto_quality_option"),selected:D});let Pt=c.filter(li=>!(0,lt.isInvariantQuality)(li));for(let li of Pt){let Uo=S[li];at.push({value:li,displayValue:`${li}${Uo?r0(Uo):""}`,selected:D?!1:li===se})}return at}),hn=Xt(P.info.currentPlaybackRate$),ho=ri([hn,go,Zo],([c,S,D])=>{let se=D||C?1:te.controls.playbackRateMin,ze=S?1:te.controls.playbackRateMax,at=te.controls.playbackRateStep,Pt=[];for(let li=se;li<=ze;li+=at)Pt.push({value:li,displayValue:li===1?rt("playback_rate_1"):rt("playback_rate",{multiplier:li.toString(10)}),selected:c===li});return Pt}),_o=()=>({displayValue:rt("subtitles_off"),value:Cn,language:""}),Jo=ie(_o()),eo=ri([Jo,dt],([c],S)=>{c.value===Cn?S(_o()):S(c)}),bo=te.features.subtitles?Xt(P.info.availableTextTracks$):pr([]),Ho=r1(),Jn=ri([bo,eo],([c,S],D)=>{let se=[],ze=c.find(({id:at})=>at===S.value);if(ze?.url){let[,at]=Ho.find(ze.url)??[];if(at){D(at);return}Qe.download(ze.url).then(Pt=>{if(!Pt||Qe.isDestroyed())return;let li=new s0,Uo=ze.language;if(Uo){let wp=!!ze.isAuto,a_=li.parse(Pt,Uo);se.push({lang:Uo,subtitles:a_,isAuto:wp,id:ze.id})}Ho.add(ze.url,se),me(eo).value===S.value&&D(se)}).catch(Pt=>{X?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),W?.report(Pt,{errorType:"Subtitles download",fatal:!1})})}D(se)}),wr=ri([hn,An,eo],([c,S,D],se)=>{let Pt;if(P.info.isLive$.getValue()&&S&&D.value!==Cn){let Uo=()=>{let wp=1e3/(3*c);Pt=setTimeout(Uo,wp),se(Date.now())};return Uo(),()=>clearTimeout(Pt)}}),en=ri([bo,eo],([c,S])=>{if(!c.length)return[];let D=[];for(let{language:se,isAuto:ze,id:at}of c){let Pt=se&&Xd(se);se&&Pt&&D.push({displayValue:ze?rt("subtitles_auto",{language:Pt}):Pt,value:at,selected:S?.value===at,isAuto:ze,language:se})}return D.length?(D.unshift({..._o(),selected:S?.value===Cn}),D):[]}),Ci={available:[],prev:[]},er=()=>P.experimental.getCurrentTime$.getValue()?.()??Ee?.currentTime??0,Sr=ri([Kt,eo,Jn,wr],([c,S,D,se])=>{let ze=P.info.isLive$.getValue();if(ze&&Ci.prev!==D){let at=D.find(({id:li})=>li===S.value),Pt=Ci.prev.find(({id:li})=>li===S.value);if(at){let li={...at,subtitles:[...Pt?.subtitles??[],...at.subtitles]};Ci.available=[li],Ci.prev=D}}if(S&&S.value!==Cn){let at=ze?er():c,Pt=ze?Ci.available:D;return d0(at,S,Pt,ze)}}),_n=ri([Sr],([c])=>c?.texts?c.texts:[]);Xe.add(eo.subscribe(c=>{if(c.value===Cn)l?.onSubtitleOff?.();else{let S=Object.entries(zu).find(([D,se])=>se===c.displayValue);l?.onSubtitleOn?.(S?S[0]:"",c.value)}}));let Mn=ie(!0),bt=ri([ii,ro,fn,Do],([c,S,D,se])=>{let ze=c?.end??0;if(!se)return ze/S;let Pt=-D+se-S;return(ze-Pt)/S}),zt=Xt(P.info.availableSources$),Wt=ri([zt],([c])=>Object.keys(c?.[oi.VideoFormat.MPEG]||{}).length>0),$o=()=>{let c=Object.keys(P.info.availableSources$?.getValue()?.[oi.VideoFormat.MPEG]||{}),S=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return j.sources[oi.VideoFormat.MPEG]?.[S]},yo=()=>{let c=$o();if(c)ue.log("download video",{url:c}),i1(c,j?.meta?.title||"video");else{let S="There is no URL for download video";ue.log("download video",{message:S}),fe({message:S})}},bn=()=>{fe({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?Ln(ir(),!1):Vn(!c,!1)},zr=()=>{if(Bt.ui.settingsMenu.visible$.set(!1),!me(Bt.ui.settingsSubMenu.visible$)){let c=me(Bt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&c){let D=Vl(c),se={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:D,position:se,name:"settings"})}}ue.log("close settings menu")},Wr=async(c,S=()=>Promise.resolve())=>{Bt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Bt.ui.settingsMenu.visible$.set(!0),await S();let D=me(Bt.ui.settingsMenu.ref$),se=ta();if(l?.uiInfo?.onSettingsMenu&&D&&se){let at=Vl(D),Pt=Ss(D,se);l.uiInfo.onSettingsMenu({visible:!0,size:at,position:Pt,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},tr=(c,S=!1)=>{Bt.ui.settingsSubMenu.visible$.set(!1);let D=me(Bt.ui.settingsMenu.ref$),se=ta(),ze=me(Bt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&D&&se)if(ze&&!S){let Pt=Vl(D),li=Ss(D,se);l.uiInfo.onSettingsMenu({visible:!0,size:Pt,position:li,name:"settings"})}else{let Pt=Vl(c),li={top:0,left:0,bottom:0,right:0},Uo=me(Bt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Pt,position:li,name:Uo})}ue.log("close settings sub menu")},Ti=(c,S)=>{Bt.ui.settingsSubMenu.visible$.set(!0),Bt.ui.settingsSubMenu.ref$.set(S),Bt.ui.settingsSubMenu.name$.set(c);let D=ta();if(l?.uiInfo?.onSettingsMenu&&S&&D){let ze=Vl(S),at=Ss(S,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:ze,position:at})}ue.log("open settings sub menu",{name:c})},ir=()=>{let c=Math.max(te.volumeMinRestore,hu()??0);return c===0?te.volumeDefault:c},xo=c=>{let S=te.features.savePreferredStatesOnUserActionOnly;return!S||S&&!c},Ln=(c,S)=>{let D=c===0?ir():c,se=P.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${D}`});let ze=!a||Ze.is("ads");se&&c>0&&ze&&(se=!1,xo(S)&&Tf(!1)),P.setVolume(c,se),$e.setVolume(c),xo(S)&&yf(D)},Vn=(c,S)=>{let D=P.info.volume$.getValue();fe({message:`set muted, currentVolume: ${D}, mute: ${c}`});let se=Ze.is("ads");if(P.setMuted(c,se),$e.setVolume(c?0:D),xo(S)&&(!se||!c)&&Tf(c),!c&&D===0){let ze=ir();P.setVolume(ze),xo(S)&&yf(ze),$e.setVolume(ze)}},Cr=ie(!1),Tr=c=>{ue.log("set looped",{isLooped:c}),Cr.set(c),P.setLooped(c),l?.uiInfo?.onLoopedChanged?.(c)};Tr(ne);let tn=()=>{l?.uiInfo?.onReportProblem?.()},on=(c,S=!1)=>{fe({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Bt.ui.autoplayNextEnabled$.set(c),b1(c),S&&l?.onSetAutoplayNextEnabled?.(c)},or=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Bt.ui.timerNextVideoRunning$.set(c)},it=(c=!0)=>{let S=!0;if(c&&l?.onPrevVideoClick)try{S=l?.onPrevVideoClick?.()}catch{fe({message:"onPrevVideoClick callback failed to execute"})}Y(!0),S&&re()},At=(c=!0)=>{let S=!0;if(c&&l?.onNextVideoClick)try{S=l?.onNextVideoClick?.()}catch{fe({message:"onNextVideoClick callback failed to execute"})}Y(!1),S&&le()},Jt=()=>{l?.onNextVideoAnnouncementShow?.()},Mi=()=>{l?.onNextVideoAnnouncementClick?.()},Wi=()=>{l?.onNextVideoAnnouncementAuto?.()},to=()=>{l?.onNextVideoAnnouncementCancel?.()},so=()=>{P.prepare()},wo=()=>{(0,lt.assertNonNullable)(Bt);let c=me(Bt.ui.controls.disabledControls$),S=me(Bt.playerPhase),D={playerPhase:S,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),S==="ads"){D.action="play",ue.log("toggle adman play",D),$e.togglePlay();return}let se=()=>{fe({message:"toggle play, call player.play"}),D.action="play",P.play(),l?.onPlay?.()},ze=()=>{fe({message:"toggle play, call player.pause"}),D.action="pause",P.pause(),l?.onPause?.()};if(P.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),No.next(),vi.next(ns.SeekAction.REWIND),C){N?.();return}P.seekTime(0),se()}else P.info.playbackState$.getValue()!==oi.PlaybackState.PLAYING?se():ze();ue.log("toggle play",D)},Fo=(c,{changeReason:S="default",appliesTo:D="to-video"}={},se)=>{fe({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:ze}=te.features;_u(),c!=="auto"?(ze?(bu({type:"exact_quality",quality:c,videoId:i},D),P.setPredefinedQualityLimits(oi.PredefinedQualityLimits.UNKNOWN)):xf(i,c),ct.set(c),P.setQuality(c)):ze&&S==="default"&&(nr("auto_quality",D,se),me(zi)&&Ki(!1,void 0,se),me(wi)&&qi(!1,void 0,se))},Ki=(c,S="as-default",D)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let se=c?oi.PredefinedQualityLimits.TRAFFIC_SAVING:oi.PredefinedQualityLimits.UNKNOWN;te.features.qualityDetailsSubMenuEnabled?(Li(se,S,D),Id(!1)):(P.setPredefinedQualityLimits(se),xo(D)&&Id(c))},qi=(c,S="as-default",D)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),Li(c?oi.PredefinedQualityLimits.HIGH_QUALITY:oi.PredefinedQualityLimits.UNKNOWN,S,D)},Li=(c,S,D)=>{c!==oi.PredefinedQualityLimits.UNKNOWN&&(me(jn)&&!me(Si)&&Fo("auto",{appliesTo:S,changeReason:"limit-changed"},D),nr(c,S,D)),P.setPredefinedQualityLimits(c)},nr=(c,S,D)=>{xo(D)&&(bu({type:c,videoId:i},S),S==="as-default"&&bu({type:c,videoId:i},"to-video"))},So=(c,S=!0)=>{ue.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),te.features.saveRate&&Ce&&!P.info.isLive$.getValue()&&S&&h1(c)},kr=()=>{let c=me(xi),S=me(ho),D=S.findIndex(({selected:ze})=>ze);if(D===S.length-1||!c)return S[D];let se=S[D+1];return So(se.value),se},Ir=()=>{let c=me(xi),S=me(ho),D=S.findIndex(({selected:ze})=>ze);if(D===0||!c)return S[D];let se=S[D-1];return So(se.value),se},Er=(c={..._o(),selected:!1},S)=>{ue.log("set subtitles",{...c}),c.value!==Cn&&Qo.next(c.isAuto?c.value+"_auto":c.value),Jo.set(c),xo(S)&&(Af(c.value===Cn?void 0:c.language),te.features.userVideoPrefs&&i&&Pf(te.userSalt,String(i),{subtitleTrackId:c.value===Cn?void 0:c.value}))},Kr=c=>{ue.log("toggle subtitles"),me(eo)?.value===Cn?We(c):Qt(c)},as=(c,S)=>{ue.log("change subtitle",{enabled:c}),c?We(!0,S):Qt(!0)},We=(c,S)=>{ue.log("subtitle on");let D=me(en),se=me(he),ze=tt??se,at;S&&(at=D.find(Pt=>Pt.value===S)),at??=D.filter(Pt=>Pt.value!==Cn).find(Pt=>Pt.language===ze),Er(at??D[1],c)},Qt=c=>{ue.log("subtitle off"),Er(void 0,c)};Xe.add(P.info.availableTextTracks$.subscribe(c=>{function S(){let D=[];for(let{language:se,isAuto:ze,id:at}of c){let Pt=se&&Xd(se);se&&Pt&&D.push({id:at,language:se,title:ze?rt("subtitles_auto",{language:Pt}):Pt})}return D}l?.onAvailableSubtitlesChanged?.(S())}));let pi=ie(!0),Co=c=>{pi.set(c)},Vi=(c,S,D=!0)=>{if(fe({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:S,forcePrecise:D}),vi.next(S),P.info.isLive$.getValue()){let se=P.info.duration$.getValue(),ze=Math.min(0,se+c);P.seekTime(ze,D)}else{if(T?.getValue())return;P.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),P.seekTime(Gr(c),D)}},ls=c=>{fe({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),Vi(c,ns.SeekAction.EPISODE,!0)},To=(c,S,D=!1)=>{fe({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:S});let se=me(ro)*c;Vi(se,S,D)},Rn=c=>{fe({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),vi.next(ns.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},js=c=>{let S=c.max??"none",D=c.min??"none";fe({message:`set auto quality limitation. Max: ${S}. Min: ${D}`}),ue.log("set auto quality limits",{max:S,min:D}),P.setAutoQualityLimits(c)},Gs=c=>{fe({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),Vi(c,ns.SeekAction.EPISODE,!0)},Es=c=>{fe({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},Ri=ie(!1),st=ie(!1),ei=ri([ro],([c])=>!!v&&c>=te.suitableDurationForUsingRichSeek&&te.features.useRichSeek&&!C),ko=(v?.frameWidth||0)>=(v?.frameHeight||0),rr=ri([xt],([c])=>{let S=Rl(c);return ko?!S:S});Xe.add(Ze.subscribe(c=>{c!=="video"&&Ri.set(!1)}));let Nn=ie(void 0),sr=ie(!1),we=c=>{fe({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),sr.set(!0),kt(c)},kt=c=>{Nn.set(c)},Yt,jt,Ni=()=>{Nn.set(void 0),sr.set(!1)},nn=()=>{clearTimeout(jt),clearTimeout(Yt),Yt=window.setTimeout(()=>{Ni()},500),Ee?.removeEventListener("seeked",nn)},ao=(c,S=!1)=>{fe({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),To(c,ns.SeekAction.SLIDER,S),me(Bt.ui.isMobile)&&me(Bt.state.currentFormat$)===oi.VideoFormat.HLS?(Ee?.addEventListener("seeked",nn),jt=window.setTimeout(()=>{nn()},300)):Ni()},Oi=ri([Kt,ro,Nn],([c,S,D],se)=>{se((0,lt.isNonNullable)(D)?D*S:c)}),qr=ie(!1),ar=()=>{qr.set(!0)},ja=()=>{qr.set(!1)},Ys=ri([ui],([{width:c}],S)=>{let D=J1(c);S(D)}),Zs=Z.filter(c=>o1(c)),Xs=ri([Ys,Be],([c,S])=>S?Zs.filter(D=>!D.hideOnMobile):Zs.filter(D=>!D.hideOnDesktopGridTypes?.includes(c))),On=ie(Z.filter(c=>n1(c))),ds=ri([On,Ys],([c,S])=>c.filter(D=>!D.hideOnDesktopGridTypes?.includes(S))),Js=ri([ds,Xs],([c,S])=>[...te.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...te.features.additionalButtons?S.map((D,se)=>({id:se,weight:se,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:D.ariaLabel??D.tooltip,tooltipText:D.tooltip})):[]]),lr=ie(B),Ga=ri([lr],([c])=>te.features.additionalSettingsMenuItems?c.map(S=>S.type==="SWITCH"?{...S,onClick:S.onChangeEnabled}:S):[]),cs=(c,S)=>{let D=me(On).map(se=>se.id!==c?se:{...se,...S});On.set(D)},us=c=>{let S=me(On);if(S.some(D=>D.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}S.push(c),On.set(S)},Ya=c=>{let S=me(On);if(!S.some(D=>D.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}S=S.filter(D=>D.id!==c),On.set(S)},ea=c=>{vi.next(ns.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),P.setLiveLowLatency(c)},Gl=(c,S)=>{let D=me(lr).map(se=>se.id!==c?se:{...se,...S});lr.set(D)},Za=c=>{let S=me(lr);if(S.some(D=>D.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}S.push(c),lr.set(S)},Yl=c=>{let S=me(lr);if(!S.some(D=>D.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}S=S.filter(D=>D.id!==c),lr.set(S)},Dn=ie(J),Zl=ri([Dn],([c])=>te.features.additionalContextMenuItems?c:[]),Xa=(c,S)=>{let D=me(Dn).map(se=>se.id!==c?se:{...se,...S});Dn.set(D)},$t=c=>{let S=me(Dn);if(S.some(D=>D.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}S.push(c),Dn.set(S)},yt=c=>{let S=me(Dn);if(!S.some(D=>D.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}S=S.filter(D=>D.id!==c),Dn.set(S)},rn=ri([Be,H],([c,S],D)=>{D(c&&S)}),dr=()=>{vi.next(ns.SeekAction.LIVE),fe({message:"switch to active live"}),ue.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==oi.PlaybackState.PLAYING&&Bt.actions.internal.togglePlay()},ps=()=>{ue.log("skip adman"),$e.skip()},Qr=(c=!0)=>{(0,lt.assertNonNullable)(Bt),fe({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),Vt.set("video"),c&&P.play(),a&&Vn(!0,!0);let S=me(Re)?.muted,D=!P.info.muted$.getValue();S!==void 0&&!D&&Vn(S,!0),Re.set(void 0)},jr=()=>{(0,lt.assertNonNullable)(Bt),fe({message:"switch from video to ads"}),ue.log("switch from video to ads"),Bt.actions.internal.pause(),mi(),Vt.set("ads")},As=c=>{(0,lt.assertNonNullable)(Bt);let S=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:S}),Vt.set(S)},Xl=c=>{(0,lt.assertNonNullable)(Bt);let S=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:S}),Vt.set(S)},Ac=c=>{(0,lt.assertNonNullable)(Bt);let S=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:S}),Vt.set(S)},hp=()=>((0,lt.assertNonNullable)(Bt),ue.log("get debug text data"),e1(P,j,Bt,He.getTraceId())),Pc=()=>((0,lt.assertNonNullable)(Bt),JSON.stringify(He.getFinishedSpans())),_p=()=>((0,lt.assertNonNullable)(Bt),t1(P,j,Bt)),ta=()=>Ee,Mc=()=>{fe({message:"toggle chromecast"}),ue.log("toggle chromecast"),P.toggleChromecast()},Ps=c=>{if((0,lt.assertNonNullable)(Bt),P.info.isEnded$.getValue())return;let S=!c;if(me(Bt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${S}`}),ue.log("pause ads",{internalCall:S}),$e.pause();return}fe({message:`pause video, internalCall: ${S}`}),ue.log("pause video",{internalCall:S}),S&&l?.onPause?.(),P.pause()},Ja=c=>{(0,lt.assertNonNullable)(Bt);let S=!c;if(me(Bt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${S}`}),ue.log("play ads",{internalCall:S}),$e.play();return}fe({message:`play video, internalCall: ${S}`}),ue.log("play video",{internalCall:S}),S&&l?.onPlay?.(),P.play()},Lc=c=>{(0,lt.assertNonNullable)(Bt);let S=!c;if(me(Bt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${S}`}),A?.()},Vc=(c,S)=>{(0,lt.assertNonNullable)(Bt),fe({message:`first start, show ads: ${c}, internalCall: ${!S}`}),ue.log("first start",{showAds:c,external:S}),c?Vt.set("ads"):(Vt.set("video"),S?P.play():Bt.actions.internal.togglePlay())},el=()=>(fe({message:"getting time codes"}),g),Rc=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let S=P.info.position$.getValue();return c.find(D=>D.time>S)},Nc=c=>{let S=c;S||(S=Rc());let D=P.info.position$.getValue();ue.log("seek to next episode",{currentTime:D,...S}),S&&(fe({message:"seek to next episode"}),Vi(S.time,ns.SeekAction.EPISODE,!0))},Oc=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let S=P.info.position$.getValue(),D=c.findIndex(ze=>ze.time>S),se=D===-1?c.length-2:D-2;if(!(se<0))return c[se]},bp=c=>{let S=c;S||(S=Oc());let D=P.info.position$.getValue();ue.log("seek to prev episode",{currentTime:D,...S}),S&&(fe({message:"seek to prev episode"}),Vi(S.time,ns.SeekAction.EPISODE,!0))},$p=()=>(fe({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...v}),v),Ue=async()=>{let c=de?.isActive(),S="none";de?.isActive()?(S="exit",await de?.exit()):(S="request",await de?.request()),ue.log("toggle picture in picture",{isActive:c,action:S})},ni=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),xt.update(S=>S+c)},Io=ie([]);k?.subscribe(c=>{let S=[];for(let D=0;D<c.length;D++){let{range:[se,ze],subjects:at}=c[D];D===0&&se!==0&&S.push({time:0,text:"",interactive:!1,completed:!0}),S.push({time:se/1e3,text:"",interactive:!0,completed:te.features.interactiveTimeOpenUri?!at.length||at.every(Pt=>Pt.isRemoved):!at.length}),ze!==1/0&&S.push({time:ze/1e3,text:"",interactive:!1,completed:!0})}Io.set(S)});let ia=ie(!1);T?.subscribe(c=>{c&&me(sr)&&Ni()});let Gr=c=>{if(!C)return c;let S=me(Io),D=me(ro),ze=me(fn)/D,at=S.find(Pt=>Pt.interactive&&!Pt.completed&&Pt.time>ze);return typeof at?.time=="number"?Math.min(c,at.time-.05):c},e_=()=>{Bt.ui.episodes.panelOpened$.set(!1)},t_=()=>{ue.log("destroy store"),clearTimeout(jt),clearTimeout(Yt),Xe.unsubscribe(),Ui.unsubscribe(),P.destroy(),$e.destroy(),X?.destroy(),W?.destroy(),Ae.unsubscribe(),Oo?.disconnect(),Oo=null,Qe.destroy()},i_=ri([go,Ze,xi],([c,S,D])=>u.features.doubleForwardAvailable&&!c&&S==="video"&&D),yp=ie(!1),dg=2,Dc=null,cg=c=>{if(!me(An)&&c)return;let S=P.info.currentPlaybackRate$.getValue();c?S!==dg&&(Dc=S,So(dg,!1),yp.set(!0)):(Dc&&So(Dc,!1),yp.set(!1),Dc=null)};Ze.subscribe(c=>{c!=="video"&&cg(!1)});let o_=()=>{Ps(!1),Ri.set(!0)},n_=()=>{Ja(!1),Ri.set(!1)},xp=!1,r_=()=>{st.set(!0),xp=P.info.playbackState$.getValue()===oi.PlaybackState.PLAYING,Ps(!1)},s_=()=>{st.set(!1),!me(Ri)&&xp&&Ja(!1),xp=!1};P.events.playing$.subscribe(()=>{me(Ri)&&Ps(!1)});let Bt={interfaceLanguage$:he,isCyrillicRelatedInterface$:ft,initVideo:_i,videoId:i,isClip:o,playerPhase:Ze,vsid:Ge,state:{positionExact$:Kt,positionWithScrubbing$:Oi,duration$:ro,playbackState$:mt,isPlaying$:An,isLoaderVisible:St,bufferedProgress$:bt,isLive$:_t,canChangePlaybackSpeed$:xi,isActiveLive$:go,isOldestAvailableLive$:Zo,isRewindableLive$:Zn,isEnded$:qt,muted$:mo,volume$:Bo,trafficSavingEnabled$:zi,highQualityEnabled$:wi,autoQualityLimitingAvailable$:jn,availableVideoStreams$:hr,availableAudioStreams$:_r,videoStream$:br,audioStream$:Pi,currentQuality$:Pn,isAutoQualityEnabled$:Si,availableQualities$:gn,currentPlaybackRate$:hn,availablePlaybackRates$:ho,currentSubtitle$:eo,availableTextTracks$:bo,availableSubtitlesList$:en,currentSubtitleCaptions$:_n,isAutoSubtitleCaptionVisible$:Mn,chromecastState$:bi,chromecastDeviceName$:Yo,chromecastConnected$:gr,currentFormat$:vo,throughputEstimation$:Gn,videoBitrate$:Yn,videoSize$:vr,errorLog$:Se,crashed$:H,isAudioAvailable$:ss,isAudioDisabled:!!a,canDownload:te.features.download&&!!d,availableSources$:zt,hasMpegSources$:Wt,isInteractive:C,showInteractiveGraph:te.features.interactiveGraph,showSeekToInteractive:te.features.seekToInteractive,showPlayPrevChapter:te.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:te.features.interactiveTimeIndicator&&!!me(Io).length,interactiveEpisodes$:Io,isInteractiveTime$:T?Xt(T):ie(!1),isInteractiveExpectation$:ia,hasInteractiveBranches:R,playPrevChapterDisabledTooltip:V,looped$:Cr,loadedMetadata$:Gt,isAutoQualityAvailable$:xr,previewTrackActive:Ri,previewTrackDragInProgress:st},ui:{t:rt,controlsVisible:ie(!1),touched:ie(!1),controls:{prevButton:ie(void 0),playButton:ie(void 0),replayButton:ie(void 0),nextButton:ie(void 0),playPrevChapterButton:ie(void 0),seekToInteractiveButton:ie(void 0),interactiveGraphButton:ie(void 0),liveButton:ie(void 0),time:ie(void 0),episodes:ie(void 0),volume:ie(void 0),subtitles:ie(void 0),settings:ie(void 0),context:ie(void 0),chromecast:ie(void 0),pip:ie(void 0),fullscreen:ie(void 0),vkLogo:ie(void 0),interactiveTimeIndicator:ie(void 0),timeline:ie(void 0),autoplayNextToggle:ie(void 0),additionalButtons:Z.length?Z.reduce(c=>[...c,ie(void 0)],[]):[],disabledControls$:pt},modals:{hotKeyMap:{show:ie(!1),data:ie({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Lt,isFullscreenOpenedByKeyboard:Je,rotateAlpha:xt,isAutoplay:ie(!1),debugPanelVisible:ie(!1),episodes:{panelOpened$:ie(!1),openedByKeyboard$:ie(!1)},contextMenu:{visible$:ie(!1),btnRef$:ie(void 0),openedByBtnKeyboard$:ie(!1),openedByHotKey$:ie(!1),lastActiveElem$:ie(void 0),showContextMenuBtn$:ie(!1),position$:ie({top:0,left:0})},playerSize:ui,isMobile:Be,mobileNotReportControlHidden$:rn,icon3DVideoVisible:ie(!1),scrubbingInProgress:sr,volumeChangingInProgress:qr,is3DVideo:Ct,currentGridType$:Ys,additionalButtonsDeprecated$:Xs,additionalDesktopControlPanelRightButtons$:Js,additionalSettingsMenuItems$:Ga,additionalContextMenuItems$:Zl,interactiveHideMobileControls:ie(!1),overlayContainer$:ie(void 0),startedByKeyboard$:ie(!1),autoplayNextEnabled$:ie(!1),timerNextVideoRunning$:ie(!0),settingsMenu:{visible$:ie(!1),ref$:ie(void 0),openedByBtnKeyboard$:ie(!1)},settingsSubMenu:{visible$:ie(!1),ref$:ie(void 0),name$:ie(void 0)},userActionsDisabled:ie(!1),hiddenControls:{volume:ie(!1),vkLogo:ie(!1),pip:ie(!1),chromecast:ie(!1),settings:ie(!1)},isControlsAvailable:pi,controlBlocks:{topLeft:ie(void 0),topRight:ie(void 0),middle:ie(void 0),bottom:ie(void 0),bottomLeft:ie(void 0),bottomRight:ie(void 0)},videoTitleInfo:ie(void 0),doubleForwardOn$:yp,doubleForwardAvailable$:i_,previewTrackNotificationVisible:ie(!1),previewTrackActive:Ri,previewTrackDragInProgress:st,previewTrackAvailable:ei,isPreviewTrackHorizontallyAligned:rr},ads:{position:ie(0),duration:ie(0),playbackState:ie("inactive"),canSkip:ie(!1),secondsToWatchBeforeSkip:ie(0),postrollPassed:ie(!1)},webApi:{pictureInPictureApi:de,annotationsApi:De,slotsApi:qe},actions:{internal:{preload:so,firstStart:c=>Vc(c,!1),play:()=>Ja(!1),pause:()=>Ps(!1),togglePlay:wo,toggleMuted:bn,openSettingsMenu:Wr,closeSettingsMenu:zr,openSettingsSubMenu:Ti,closeSettingsSubMenu:tr,setVolume:c=>Ln(c,!1),setMuted:c=>Vn(c,!1),startVolumeChanging:ar,stopVolumeChanging:ja,setVideoStream:$r,setAudioStream:c=>mn(c,!1),setQuality:(c,S)=>Fo(c,S,!1),setTrafficSavingEnabled:(c,S)=>Ki(c,S,!1),setHighQualityEnabled:(c,S)=>qi(c,S,!1),setPlaybackRate:So,incrementPlaybackRate:kr,decrementPlaybackRate:Ir,setSubtitle:c=>Er(c,!1),toggleSubtitle:()=>Kr(!1),togglePictureInPicture:Ue,startScrubbing:we,progressScrubbing:kt,completeScrubbing:ao,toggleChromecast:Mc,switchToActiveLive:dr,switchFromAdsToVideo:Qr,switchFromVideoToAds:jr,skipAd:ps,setLiveWaitingStart:As,setLiveWaitingRecover:Xl,setLiveWaitingRecord:Ac,getDebugTextData:hp,getTraceTextData:Pc,getDebugPanelData:_p,getVideoElement:ta,seekTime:(c,S,D)=>Vi(c,S,D),clearDelayedBufferingCheckTimeout:Ur,seekEpisodeStartTime:ls,seekToPercent:To,getNextEpisode:Rc,seekToNextEpisode:Nc,getPrevEpisode:Oc,seekToPrevEpisode:bp,startLogging:Go,stopLogging:In,startCameraManualRotation:En,stopCameraManualRotation:Tt,moveCameraFocusPX:Ut,holdCamera:G,releaseCamera:Ot,getVideoEpisodes:el,getPreviewThumbsData:$p,downloadVideo:yo,addLanguage:Mf,setLanguage:_e,nextMovie:no,videoRotate:ni,correctSeekTimeToInteractive:Gr,replayInteractive:N,setLooped:Tr,reportProblem:tn,setAutoplayNextEnabled:on,setTimerNextVideoRunning:or,prevVideoClick:it,nextVideoClick:At,nextVideoAnnouncementShow:Jt,nextVideoAnnouncementClick:Mi,nextVideoAnnouncementAuto:Wi,nextVideoAnnouncementCancel:to,checkFullscreenSupport:Rt,changeDoubleForwardOn:cg,closePreviewTrack:n_,previewTrackOpened:o_,previewTrackDragStarted:r_,previewTrackDragFinished:s_},external:{firstStart:c=>Vc(c,!0),play:()=>Ja(!0),pause:()=>Ps(!0),stop:()=>Lc(!0),seekTime:c=>Rn(c),seekEpisodeStartTime:c=>Gs(c),setPlaybackRate:c=>Es(c),setAutoQualityLimits:c=>js(c),setMuted:c=>Vn(c,!0),toggleSubtitle:()=>Kr(!0),changeSubtitle:as,setVolume:c=>Ln(c,!0),returnFocusToEpisodes:e_,updateAdditionalSettingsItem:Gl,addAdditionalSettingsItem:Za,removeAdditionalSettingsItem:Yl,updateAdditionalContextItem:Xa,addAdditionalContextItem:$t,removeAdditionalContextItem:yt,updateAdditionalButton:cs,addAdditionalButton:us,removeAdditionalButton:Ya,setLiveLowLatency:ea,hideControls:()=>Co(!1),showControls:()=>Co(!0),setQuality:c=>Fo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ki(c,"to-video",!0),setHighQualityEnabled:c=>qi(c,"to-video",!0),changeAudioStream:Ji}},callbacks:l,setUiCallbacks:c=>{Fe={...c}},getAdmanWrapper:()=>$e,getLogger:()=>Ke,getPlayer:()=>P,destroy:t_};return Bt};function Tn(t,e,i,o){let r=e[i]?.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:a,left:d,bottom:l,right:f}=Ss(e[i],t||void 0);return{left:s?d:0,right:s?f:0,top:s?a:0,bottom:s?l:0,isDisplayed:s}}var _y=["disabledControls$","additionalButtons"],by=["interactiveTimeIndicator"],Ol=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!_y.includes(r)){let a=o||by.includes(r);s.set(Tn(t,i,r,a))}}};var Ku=async(t,e,i)=>{await Yi(),e&&i&&(i.focus(),t.set(!1))};var $y=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function km(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function Im(t,e){F(e,!0);let[i,o]=Me(),r=()=>$(l,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),a=h(e,"ariaLabel",3,""),d=ve(),l=d.ui.contextMenu.visible$,f=d.ui.contextMenu.openedByBtnKeyboard$,g=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=K(void 0);Ne(()=>{n(y)&&wt(()=>{u.set(n(y))})});let x=T=>{let N=Us(T),A=z1(n(y));v.set(A),f.set(N),l.set(!r())},w=()=>{g.set(!0)},C=()=>{g.set(!1)},k=p(()=>r()?"opened":"");Dt(t,{get className(){return n(k)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:x,focus:w,blur:C,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){L(y,T,!0)},children:(T,N)=>{km(T,{})},$$slots:{default:!0}}),U(),o()}var yy=t=>{t.stopPropagation()},xy=E("<div><!> <div></div> <div></div></div>"),wy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
|
|
234
|
+
|
|
235
|
+
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@keyframes svelte-od3veb-pulse {
|
|
239
|
+
0% {
|
|
240
|
+
transform: scale(1);
|
|
241
|
+
border-width: 1px;
|
|
242
|
+
opacity: 0;
|
|
243
|
+
}
|
|
244
|
+
10% {
|
|
245
|
+
opacity: 1;
|
|
246
|
+
}
|
|
247
|
+
50% {
|
|
248
|
+
transform: scale(1.5);
|
|
249
|
+
border-width: 1px;
|
|
250
|
+
opacity: 0.5;
|
|
251
|
+
}
|
|
252
|
+
100% {
|
|
253
|
+
transform: scale(1.5);
|
|
254
|
+
border-width: 0.5px;
|
|
255
|
+
opacity: 0;
|
|
256
|
+
}
|
|
257
|
+
}.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
|
|
258
|
+
animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function ec(t,e){F(e,!0),z(t,wy);let[i,o]=Me(),r=()=>$(C,"$isMobile",i),s=()=>$(A,"$areControlsVisible",i),a=()=>$(V,"$currentGridType$",i),d=()=>$(T,"$isInteractiveTime$",i),l=()=>$(w,"$interactiveControlsOpacity$",i),f=()=>$(N,"$showInteractiveTimeIndicatorTooltip$",i),g=()=>$(k,"$isFullscreen",i),v=h(e,"ref",15,void 0),u=K(void 0),y=ve(),x=io(),{interactiveControlsOpacity$:w}=x,C=y.ui.isMobile,k=y.ui.isFullscreen,T=y.state.isInteractiveTime$,N=x.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,R=y.callbacks?.onInteractiveTimeIndicatorClick,V=y.ui.currentGridType$,Z=p(()=>!r()&&s()),B=p(()=>ws(a(),"s")),J=p(()=>!d()||!!l()||n(Z)),re=K(!1);Ne(()=>{L(re,n(J),!0)});let le=()=>{L(re,!0)},Y=()=>{ne(),n(u)?.addEventListener("animationiteration",le,{once:!0})},ne=()=>{L(re,!1),n(u)?.removeEventListener("animationiteration",le)},X=W=>{N.set(W)},Ce=p(()=>f()&&!n(J));Ne(()=>{f()?Y():ne()});let ae=()=>{n(J)||(N.set(!0),R?.())};Ko(()=>{N.clearTimeout(),ne()});let be=()=>{N.set(!1)},Ve=Q("tooltip_interactive_interaction_time_indicator");var ke=xy();let te;ke.__mousemove=[yy],ke.__click=ae;var He=_(ke);po(He,{get tooltipContent(){return Ve},get tooltipActive(){return n(Ce)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return v()},set ref(W){v(W)},children:(W,de)=>{qd(W,{completed:!0})},$$slots:{default:!0}});var ue=I(He,2);let P;ot(ue,W=>v(W),()=>v());var Ke=I(ue,2);let $e;ot(Ke,W=>L(u,W),()=>n(u)),m(ke),O((W,de,De)=>{te=ee(ke,1,"interactive-episode-icon-animated svelte-od3veb",null,te,W),P=ee(ue,1,"ref-block svelte-od3veb",null,P,de),$e=ee(Ke,1,"pulse svelte-od3veb",null,$e,De)},[()=>({mobile:r(),fullscreen:g(),invisible:n(J),"icon-small":n(B)}),()=>({hidden:n(J)}),()=>({paused:n(re)})]),vt("mouseleave",ke,be),b(t,ke),U(),o()}nt(["mousemove","click"]);function qu(t,e){F(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);po(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 className(){return r()},get ref(){return s()},set ref(a){s(a)},children:(a,d)=>{var l=Le();let f=p(()=>e.buttonComponent);var g=ce(l);gi(g,()=>n(f),(v,u)=>{u(v,$s(()=>e.buttonComponentProps??{}))}),b(a,l)},$$slots:{default:!0}}),U()}var Cs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Cy=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function tc(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),a=p(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=p(()=>i()?"prev-icon":"next-icon");Em(t,{get style(){return n(a)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var Ty=E('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ky=E("<!> <!>",1),Iy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Va(t,e){F(e,!0),z(t,Iy);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=ve().ui.t,d=p(()=>e.type==="prev"?a("tooltip_previous"):a("tooltip_next")),l=p(()=>e.type==="prev"?a("hotkey_map_item_prev_video_value"):a("hotkey_map_item_next_video_value")),f=p(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(t,{get className(){return n(f)},get testId(){return`btn-${e.type??""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(l)},get ref(){return i()},set ref(g){i(g)},children:(g,v)=>{var u=ky(),y=ce(u);{var x=k=>{var T=Ty();b(k,T)};M(y,k=>{o()&&k(x)})}var w=I(y,2);let C=p(()=>e.type==="prev");tc(w,{get isMobile(){return o()},get isPrev(){return n(C)}}),b(g,u)},$$slots:{default:!0}}),U()}var Ey=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function ic(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ey();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var p0=require("@vkontakte/videoplayer-shared");var Ay=E('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Py=E("<!> <div><!></div>",1),My={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Dl(t,e){F(e,!0),z(t,My);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),a=h(e,"click",3,p0.noop),d=Q("tooltip_restart"),l=p(()=>`${o()?"btn-m--play":""} ${s()}`);Dt(t,{get className(){return n(l)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return a()},get ariaKeyShortCut(){return is.KeyK},get ref(){return i()},set ref(f){i(f)},children:(f,g)=>{var v=Py(),u=ce(v);{var y=k=>{var T=Ay();b(k,T)};M(u,k=>{o()&&k(y)})}var x=I(u,2);let w;var C=_(x);ic(C,{}),m(x),O(k=>w=ee(x,1,"svelte-1ot3duq",null,w,k),[()=>({mobile:o()})]),b(f,v)},$$slots:{default:!0}}),U()}var Ly=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Qn(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var a=Ly(),d=_(a);m(a),O(()=>{Oe(a,"width",i()),Oe(a,"height",o()),Oe(a,"viewBox",r()),Oe(d,"fill",s())}),b(t,a)}var Vy=xe('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ts(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var a=Vy(),d=_(a);m(a),O(()=>{Oe(a,"width",i()),Oe(a,"height",o()),Oe(a,"viewBox",r()),Oe(d,"fill",s())}),b(t,a)}var f0=require("@vkontakte/videoplayer-shared");var Ry=E('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ny=E("<!> <div><!></div>",1),Oy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Bl(t,e){F(e,!0),z(t,Oy);let[i,o]=Me(),r=()=>$(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=io(),a=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),l=h(e,"isPlaying",3,!1),f=h(e,"disabled",3,!1),g=h(e,"className",3,""),v=h(e,"click",3,f0.noop),y=ve().ui.t,{toggle:x}=s,w=p(()=>x),C=p(()=>r()!==null),k=p(()=>n(C)?r():l()),T=p(()=>n(k)?y("tooltip_pause"):y("tooltip_play")),N=p(()=>n(k)?Ts:Qn),A=p(()=>`${d()?"btn-m--play":""} ${g()}`),R=p(()=>n(C)?n(w):v());Dt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(R)},get disabled(){return f()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return is.KeyK},get ref(){return a()},set ref(V){a(V)},children:(V,Z)=>{var B=Ny();let J=p(()=>n(N));var re=ce(B);{var le=Ce=>{var ae=Ry();b(Ce,ae)};M(re,Ce=>{d()&&Ce(le)})}var Y=I(re,2);let ne;var X=_(Y);gi(X,()=>n(J),(Ce,ae)=>{ae(Ce,{})}),m(Y),O(Ce=>ne=ee(Y,1,"svelte-1ot3duq",null,ne,Ce),[()=>({mobile:d()})]),b(V,B)},$$slots:{default:!0}}),U(),o()}var Dy=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Am(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function oc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Q("tooltip_interactive_go_back"),a=p(()=>o()?"hidden":"");Dt(t,{get className(){return n(a)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Am(d,{})},$$slots:{default:!0}}),U()}var By=E('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Hy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function nc(t,e){F(e,!0),z(t,Hy);let[i,o]=Me(),r=()=>$(l,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),a=ve(),d=a.ui.t,l=a.ui.autoplayNextEnabled$,f=a.actions.internal.setAutoplayNextEnabled,g=()=>{f(!r(),!0)},v=d("aria_label_autoplay"),u=p(()=>r()?"true":"false");Dt(t,{click:g,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(u)},get ref(){return s()},set ref(y){s(y)},children:(y,x)=>{var w=By(),C=_(w);let k;var T=_(C);{var N=R=>{Qn(R,{width:"14",height:"14",fill:"#000"})},A=R=>{Ts(R,{width:"14",height:"14",fill:"#000"})};M(T,R=>{r()?R(N):R(A,!1)})}m(C),m(w),O(R=>k=ee(C,1,"toggler svelte-et3q1q",null,k,R),[()=>({enabled:r()})]),b(y,w)},$$slots:{default:!0}}),U(),o()}var Fy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function rc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Q("tooltip_interactive_seek"),a=p(()=>o()?"hidden":"");Dt(t,{get className(){return n(a)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Pm(d,{})},$$slots:{default:!0}}),U()}var Uy=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Mm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var zy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Lm(t,e){z(t,zy);let i=h(e,"isOpened",3,!1),o=p(()=>i()?"graph-close-icon":"graph-open-icon");Mm(t,{get"data-testid"(){return n(o)}})}function sc(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=ve().ui.t,l=p(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),f=p(()=>o()?"hidden":"");Dt(t,{get className(){return n(f)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(l)},get click(){return e.click},get ref(){return i()},set ref(g){i(g)},children:(g,v)=>{let u=p(()=>!!s());Lm(g,{get isOpened(){return n(u)}})},$$slots:{default:!0}}),U()}var Vm=require("@vkontakte/videoplayer-core");function ac(t,e){F(e,!0);let[i,o]=Me(),r=()=>$(f,"$playbackState$",i),s=h(e,"isMobile",3,!1),a=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),l=ve(),f=l.state.playbackState$,g=l.actions.internal.switchToActiveLive,v=l.actions.internal.togglePlay,u=p(()=>()=>{if(!a()){g();return}r()===Vm.PlaybackState.PAUSED&&v()}),y=p(()=>s()?"":"btn--live btn-full-opacity"),x=p(()=>a()?"btn-live":"btn-live-offset"),w=p(()=>a()&&r()===Vm.PlaybackState.PLAYING);Dt(t,{get className(){return n(y)},get testId(){return n(x)},get disabled(){return n(w)},get ariaLabel(){return d()},get click(){return n(u)},children:(C,k)=>{Ld(C,{get isActive(){return a()}})},$$slots:{default:!0}}),U(),o()}var Rm=require("@vkontakte/videoplayer-shared");var Wy=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ky=E('<img class="icon" aria-hidden="true"/>');function Ra(t,e){"use strict";let i=K(!1),o=()=>{L(i,!0)};var r=Le(),s=ce(r);{var a=l=>{var f=Wy();b(l,f)},d=l=>{var f=Ky();O(()=>Oe(f,"src",e.icon)),vt("error",f,o),ma(f),b(l,f)};M(s,l=>{n(i)?l(a):l(d,!1)})}b(t,r)}function Nm(t,e){F(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,Rm.noop),r=h(e,"ref",15),s=p(()=>o()===Rm.noop),a=p(()=>n(s)||i()),d=p(()=>n(s)?"btn-full-opacity":"");po(t,{get disabled(){return n(a)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(l){r(l)},children:(l,f)=>{let g=p(()=>e.testId??e.id);Dt(l,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return n(g)},children:(v,u)=>{Ra(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var m0=t=>!!t.buttonComponent;var ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Qu=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Tn(t,i,r,o))};var ju=require("@vkontakte/videoplayer-shared"),v0=10,g0=40,Om=.2,Qy=.5,jy=65,Gy=114,Yy=4,h0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=p(()=>i?jy:Gy),r=K(!1),s=K(0),a=K(0),d=p(()=>n(o)+v0-g0-Yy),l=p(()=>(0,ju.interpolate)(n(s),[Om,1],[0,-n(d)])),f=p(()=>(0,ju.interpolate)(n(s),[Om,1],[0,g0])),g=p(()=>(0,ju.interpolate)(n(s),[Om,1],[0,n(o)+v0]));return{progressBarY:()=>n(l),controlsY:()=>n(f),calculatedHeight:()=>n(g),onPointerDown:w=>{L(a,e()?.getBoundingClientRect().bottom||0,!0),L(r,!0)},onPointerMove:w=>{if(!n(r))return;let C=Math.max(Math.min(w.clientY-n(a),0),-n(d));L(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{L(r,!1),L(s,n(s)>=Qy?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{L(s,0)}}};var Zy=t=>t;function rs(t,{delay:e=0,duration:i=400,easing:o=Zy}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var Xy=E('<span class="root svelte-mx6l45"> </span>'),Jy={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Dm(t,e){z(t,Jy);var i=Xy(),o=_(i,!0);m(i),O(()=>pe(o,e.time)),b(t,i)}var e4=E('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),t4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function Bm(t,e){z(t,t4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),a=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),l=K(void 0),f=K(void 0);function g(C){if(!n(f))return 0;let{width:k}=n(f).getBoundingClientRect(),T=k/2;return C<T?T+a():C>e.containerWidth-T?e.containerWidth-T-d():C}let v=p(()=>g(r()));var u=e4(),y=_(u);let x;var w=_(y);ge(w,()=>e.children??oe),m(y),ot(y,C=>L(f,C),()=>n(f)),m(u),ot(u,C=>L(l,C),()=>n(l)),O(C=>{Ye(u,`transform: translate(${n(v)}px, ${s()}px);`),x=ee(y,1,"tooltip svelte-1xyyqd0",null,x,C),Ye(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var _0=t=>Math.abs(t)/90%4===1;var i4=E('<div class="preview svelte-1wqg760"></div>'),o4=E('<div class="time svelte-1wqg760"> </div>'),n4=E('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),r4={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Hm(t,e){F(e,!0),z(t,r4);let[i,o]=Me(),r=()=>$(x,"$rotateAlpha",i),s=()=>$(w,"$playerSize",i),a={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),l=h(e,"isMobile",3,!1),f=h(e,"videoEpisodes",19,()=>[]),g=h(e,"progress",3,0),v=h(e,"duration",3,0),u=h(e,"isInteractive",3,!1),y=ve(),x=y.ui.rotateAlpha,w=y.ui.playerSize,C=K(0),k=K(0),T=K(""),N=K(0),A=K(0),R=K(0),V=K(0),Z=p(()=>Du(g(),v(),f())),B=p(()=>Rl(r())),J=p(()=>_0(r())),re=p(ne),le=p(()=>(n(J)?1:-1)*(n(C)/2-n(k)/2)),Y=p(()=>n(le)*-1);Ne(()=>{(W=>{L(C,W.width,!0),L(k,W.height,!0)})(Ce())}),Ne(()=>{(W=>{L(T,W.imgSrc,!0),L(N,W.imgWidth,!0),L(A,W.imgHeight,!0),L(R,W.imgOffsetX,!0),L(V,W.imgOffsetY,!0)})(ae(g()))});function ne(){let W=l()?a.MOBILE:a.DESKTOP,{isVertical:de}=X(),De=30;return n(Z)?.text&&(De+=16),(de||n(B))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),W)}function X(){let W=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,De=de>W;return{width:W,height:de,isHorizontal:!De,isVertical:De}}function Ce(){let{height:W,isHorizontal:de,isVertical:De,width:qe}=X();return de&&(W=W/qe*n(re),qe=n(re)),De&&(qe=qe/W*n(re),W=n(re)),{width:qe,height:W}}function ae(W){let de;e.previewThumbsData.isUV?de=Math.floor(v()*W/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*W)));let De=Math.floor(de/e.previewThumbsData.countPerImage),qe=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),fe=de%e.previewThumbsData.countPerRow,j=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(j=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&j++);let Ee=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ee=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(C)*Ee,Qe=n(k)*j,Xe=-fe*n(C),tt=-qe*n(k);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Fe,imgHeight:Qe,imgOffsetX:Xe,imgOffsetY:tt}}var be=n4();let Ve;var ke=_(be);{var te=W=>{var de=i4();O(()=>Ye(de,`width: ${n(C)}px; height: ${n(k)}px; background-image: url(${n(T)}); background-size: ${n(N)}px ${n(A)}px; background-position: ${n(R)}px ${n(V)}px;
|
|
259
|
+
transform: rotate(${r()}deg) ${n(B)?`translate(${n(le)}px, ${n(Y)}px)`:""};
|
|
260
|
+
`)),b(W,de)};M(ke,W=>{n(T)&&W(te)})}var He=I(ke,2),ue=_(He);{var P=W=>{var de=Le(),De=ce(de);{var qe=j=>{var Ee=ts();O(Fe=>pe(Ee,Fe),[()=>Q("tooltip_episode_unfinished")]),b(j,Ee)},fe=j=>{var Ee=ts();O(()=>pe(Ee,n(Z).text||"")),b(j,Ee)};M(De,j=>{u()&&n(Z).completed===!1?j(qe):j(fe,!1)})}b(W,de)};M(ue,W=>{n(Z)&&W(P)})}m(He);var Ke=I(He,2);{var $e=W=>{var de=o4(),De=_(de,!0);m(de),O(()=>pe(De,d())),b(W,de)};M(Ke,W=>{u()||W($e)})}m(be),O(W=>{Ve=ee(be,1,"timeline-preview svelte-1wqg760",null,Ve,W),Ye(be,`width: ${n(B)?n(k):n(C)}px;`)},[()=>({mobile:l()})]),b(t,be),U(),o()}var s4=E('<span class="time svelte-1jr6obn"> </span>'),a4=E("<!> <!>",1),l4={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.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 Fm(t,e){F(e,!0),z(t,l4);let[i,o]=Me(),r=()=>$(Y,"$interactiveEpisodes$",i),s=()=>$(V,"$duration$",i),a=()=>$(R,"$position$",i),d=()=>$(Ce,"$isInteractiveExpectation$",i),l=()=>$(X,"$isInteractiveTime$",i),f=()=>$(ke,"$previewTrackActive",i),g=()=>$(Z,"$isLive$",i),v=()=>$(Ve,"$disabledControls$",i),u=()=>$(J,"$isMobile",i),y=()=>$(B,"$isActiveLive$",i),x=()=>$(A,"$bufferedProgress$",i),w=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),k=h(e,"ref",15,void 0),T=ve(),N=It(),A=T.state.bufferedProgress$,R=T.state.positionWithScrubbing$,V=T.state.duration$,Z=T.state.isLive$,B=T.state.isActiveLive$,J=T.ui.isMobile,re=N.features.episodes&&C()?T.actions.internal.getVideoEpisodes():void 0,le=T.actions.internal.getPreviewThumbsData(),Y=T.state.interactiveEpisodes$,ne=T.state.isInteractive,X=T.state.isInteractiveTime$,Ce=T.state.isInteractiveExpectation$,ae=T.actions.internal.correctSeekTimeToInteractive,be=T.callbacks?.onDisabledTimelineClick,Ve=T.ui.controls.disabledControls$,ke=T.ui.previewTrackActive,te=T.callbacks?.uiInfo?.onTimelineMouseEnter,He=T.callbacks?.uiInfo?.onTimelineMouseLeave,ue=T.ui.t,P=N.features.interactiveResponsiveUi,Ke=p(()=>ne?r():re),$e=p(()=>Ro(s())),W=p(()=>Ro(a())),de=p(()=>a()/s()),De=p(()=>d()||l()),qe=K(!1),fe=K(""),j=K(0),Ee=K(0),Fe=K(0),Qe=p(()=>({containerWidth:n(Ee),translateXPx:n(j),translateYPx:ne&&le?-36:-16,active:n(qe)&&w()&&!n(De)&&!P&&!f(),pointer:!N.features.timelinePreview||!le||g()})),Xe=ue("aria_timeline"),tt=p(()=>ue("aria_timeline_value",{position:n(W),duration:n($e)}));function Be(he){return!ae||!ne?he:ae(he*s())/s()}function Ge(he,dt){e.onSliderPointerDown?.(dt),T.actions.internal.startScrubbing(Be(he))}function Lt(he){l()||T.actions.internal.progressScrubbing(Be(he))}function Je(he){T.actions.internal.completeScrubbing(Be(he)),L(qe,!1),e.onSliderPointerUp?.()}function Rt(he,dt,ft){e.onSliderPointerEnter?.(he),Gt(he,dt,ft),L(qe,!0)}function Ft(he,dt,ft,rt){e.onSliderMove?.(rt,he),Gt(he,dt,ft),L(qe,!0)}function xt(){L(qe,!1),e.onSliderLeave?.()}function Gt(he,dt,ft){L(Fe,Be(he),!0),L(j,dt,!0),ft&&L(Ee,ft,!0),L(fe,Ct(he),!0)}function Ct(he){let dt=Ro((g()?1-he:he)*s());return g()?`-${dt}`:dt}let Se=p(()=>v().has("TIMELINE"));var Ae=a4(),H=ce(Ae);Bm(H,$s(()=>n(Qe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(he,dt)=>{var ft=Le(),rt=ce(ft);{var Vt=Re=>{Hm(Re,{get time(){return n(fe)},get isMobile(){return u()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return le},get progress(){return n(Fe)},get duration(){return s()},get isInteractive(){return ne}})},Ze=Re=>{var ut=s4(),pt=_(ut,!0);m(ut),O(()=>pe(pt,n(fe))),b(Re,ut)};M(rt,Re=>{N.features.timelinePreview&&le&&!g()?Re(Vt):Re(Ze,!1)})}b(he,ft)},$$slots:{default:!0}}));var _e=I(H,2);Ma(_e,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return u()},get ariaLabel(){return Xe},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return a()},get ariaValueText(){return n(tt)},get loadedProgress(){return x()},get filledProgress(){return n(de)},get handleProgress(){return n(de)},get videoEpisodes(){return n(Ke)},onPointerDown:Ge,onHandleMove:Lt,onPointerMove:Ft,onPointerUp:Je,onPointerEnter:Rt,onPointerLeave:xt,get onMouseEnter(){return te},get onMouseLeave(){return He},get onDisabledClick(){return be},get isInteractive(){return ne},get disabled(){return n(Se)},get handleAlwaysVisible(){return f()},get hideHandel(){return l()},testId:"progress_bar",onContextMenu:Je,get ref(){return k()},set ref(he){k(he)}}),b(t,Ae),U(),o()}var d4={hash:"svelte-1yate8h",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 lc(t,e){F(e,!0),z(t,d4);let[i,o]=Me(),r=()=>$(l,"$isMobile",i),s=h(e,"position",3,0),a=h(e,"duration",3,0),d=ve(),l=d.ui.isMobile,f=d.ui.t,g=p(()=>Ro(a())),v=p(()=>Ro(s())),u=p(()=>s()/a()),y=p(()=>f("aria_timeline_value",{position:n(v),duration:n(g)})),x=p(()=>Math.round(n(u)*100));Ma(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return n(x)},get ariaValueText(){return n(y)},get filledProgress(){return n(u)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var c4=E("<div><!></div>"),u4=E("<div></div>"),p4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Na(t,e){F(e,!0),z(t,p4);let[i,o]=Me(),r=()=>$(C,"$isLive$",i),s=()=>$(N,"$isMobile",i),a=()=>$(A,"$disabled",i),d=()=>$(T,"$adPosition",i),l=()=>$(k,"$adDuration",i),f=h(e,"isAds",3,!1),g=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),u=h(e,"needPadding",3,!0),y=h(e,"ref",15,void 0),x=ve(),w=It(),C=x.state.isLive$,k=x.ads.duration,T=x.ads.position,N=x.ui.isMobile,A=ie(!1),R=p(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||f()));var V=Le(),Z=ce(V);{var B=re=>{var le=c4();let Y;var ne=_(le);{var X=ae=>{lc(ae,{get position(){return d()},get duration(){return l()}})},Ce=ae=>{Fm(ae,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(R)},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 y()},set ref(be){y(be)}})};M(ne,ae=>{f()?ae(X):ae(Ce,!1)})}m(le),bs(le,()=>Tl(g()&&w.features.usePerformanceFix,A,w.disableInvisibleComponentsTimeout)),O(ae=>Y=ee(le,1,"timeline svelte-1b7iyrc",null,Y,ae),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":a()})]),b(re,le)},J=re=>{var le=u4();let Y;O(ne=>Y=ee(le,1,"timeline-stub svelte-1b7iyrc",null,Y,ne),[()=>({mobile:s()})]),b(re,le)};M(Z,re=>{n(R)?re(B):re(J,!1)})}b(t,V),U(),o()}var b0=require("@vkontakte/videoplayer-shared");var f4=(t,e,i,o,r,s,a)=>{L(e,!0),L(i,t.clientX,!0),L(o,n(r),!0),s(a())},m4=E("<div></div>"),v4=E('<div><div class="track svelte-j4sfvm"></div></div>'),g4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
|
|
261
|
+
.root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
|
|
265
|
+
*/.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function zm(t,e){F(e,!0),z(t,g4);let[i,o]=Me(),r=()=>$(N,"$rotateAlpha",i),s=()=>$(w,"$position$",i),a=()=>$(x,"$duration$",i),d=ve(),{countPerImage:l=0,countPerRow:f=0,countTotal:g=0,links:v=[],frameHeight:u=0,frameWidth:y=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:x,positionWithScrubbing$:w}=d.state,{startScrubbing:C,progressScrubbing:k,completeScrubbing:T}=d.actions.internal,N=d.ui.rotateAlpha,A=K(void 0),R=K(!1),V=K(0),Z=K(0),B=K(0),J=K(0),re=p(()=>u<=y),le=p(()=>Rl(r())),Y=p(()=>n(re)?!n(le):n(le)),ne=114,X=65,Ce=3,ae=p(()=>n(Y)?ne:X),be=p(()=>n(re)?ne:X),Ve=p(()=>n(re)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),ke=p(()=>g*n(ae)),te=K(0);Ne(()=>{L(J,Math.ceil(-n(B)/n(ae))-1),L(B,-n(ke)*s()/a())});let He=()=>{T(ue(),!0)},ue=()=>a()*-n(B)/n(ke)/a(),P=!1,Ke=tt=>{if(!n(R))return!1;let Be=tt.clientX-n(V);L(B,n(Z)+Be),L(B,Math.max(Math.min(n(B),0),-n(ke)),!0),Math.abs(Be)>1&&(P=!0),k(ue())},$e=tt=>{n(R)&&(L(R,!1),!P&&tt&&L(B,-(tt.offsetX-n(te)/2)),P=!1,He())},W=()=>{n(R)&&$e()},de=p(()=>l/f),De=(tt,Be)=>{if(tt!==v.length-1)return f;let Ge=0,Lt=Be*f;for(let Je=1;Je<=f;Je++)tt*l+Ge+Lt<g&&Ge++;return Ge},qe=p(()=>Math.floor(n(J)/l)),fe=p(()=>(0,b0.getRangeAroundIndex)(3,n(qe),v.length-1)),j=(tt,Be,Ge)=>{let Lt=l*n(ae);return tt*Lt+Be*n(ae)*f+n(te)/2-Ce/2+Ge*n(ae)},Ee=p(()=>[`--row-numbers: ${n(de)}`,`--column-numbers: ${f}`,`--frame-width: ${n(be)}px`,`--frame-height: ${n(Ve)}`].join(";"));var Fe=v4();let Qe;var Xe=_(Fe);Xe.__pointerdown=[f4,R,V,Z,B,C,ue],Xe.__pointermove=Ke,Xe.__pointerup=$e,di(Xe,20,()=>n(fe),tt=>tt,(tt,Be)=>{var Ge=Le(),Lt=ce(Ge);di(Lt,16,()=>Array.from({length:n(de)},(Je,Rt)=>Rt),Je=>Je,(Je,Rt)=>{var Ft=Le(),xt=ce(Ft);di(xt,16,()=>Array.from({length:De(Be,Rt)},(Gt,Ct)=>Ct),Gt=>Gt,(Gt,Ct)=>{var Se=m4();O((Ae,H)=>{Ye(Se,Ae),ee(Se,1,H,"svelte-j4sfvm")},[()=>`--row-index: ${Rt}; --column-index: ${Ct}; left: ${j(Be,Rt,Ct)}px; background-image: url(${v[Be]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Gt,Se)}),b(Je,Ft)}),b(tt,Ge)}),m(Xe),m(Fe),ot(Fe,tt=>L(A,tt),()=>n(A)),O(tt=>{Qe=ee(Fe,1,"root svelte-j4sfvm",null,Qe,tt),Ye(Fe,n(Ee)),Ye(Xe,`transform: translateX(${n(B)}px); width: ${n(ke)}px;`)},[()=>({"is-vertical-video":!n(re),"vertically-rotated":n(le)})]),vt("mouseleave",Xe,W),un(Fe,"clientWidth",tt=>L(te,tt)),b(t,Fe),U(),o()}nt(["pointerdown","pointermove","pointerup"]);var h4=E('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),_4={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function Wm(t,e){F(e,!1),z(t,_4);let i=340,{ui:{t:o}}=ve();Vo();var r=h4(),s=_(r),a=_(s,!0);m(s),m(r),O(d=>pe(a,d),[()=>o("preview_track_close_tooltip")],sn),Nr(3,r,()=>rs,()=>({duration:i})),b(t,r),U()}var $0=require("@vkontakte/videoplayer-shared"),b4=E('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),$4=E('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),y4=E('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),x4=E('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),w4={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
|
|
266
|
+
var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function Km(t,e){F(e,!0),z(t,w4);let[i,o]=Me(),r=()=>$(w,"$playerSize",i),s=()=>$(x,"$duration$",i),a=()=>$(C,"$previewTrackActive",i),d=()=>$(u,"$position$",i),l=()=>$(y,"$isRewindableLive$",i),f=h(e,"timelineRef",15,void 0),g=ve(),v=200,{positionWithScrubbing$:u,isRewindableLive$:y,duration$:x}=g.state,{playerSize:w,previewTrackActive:C}=g.ui,{countPerImage:k=0,links:T=[],frequency:N=0}=g.actions.internal.getPreviewThumbsData()||{},A=p(()=>r().width>100),R=K(!C1()),V=()=>{n(R)&&(S1(),L(R,!1))},Z=ae=>{let be=Math.floor(s()*ae/N),Ve=Math.floor(be/k),ke=(0,$0.getRangeAroundIndex)(3,Ve,T.length-1);for(let te of ke){let He=new Image;He.src=T[te]}},B=(ae,be)=>{Z(be),!a()&&e.onTimelineMove(ae)};var J=x4(),re=_(J);{var le=ae=>{var be=$4(),Ve=_(be);let ke=p(()=>Ro(d()));Dm(Ve,{get time(){return n(ke)}});var te=I(Ve,2),He=_(te);xs(He,{onClick:()=>g.actions.internal.closePreviewTrack()}),m(te);var ue=I(te,2);{var P=Ke=>{var $e=b4(),W=_($e);Wm(W,{}),m($e),b(Ke,$e)};M(ue,Ke=>{n(R)&&Ke(P)})}m(be),vt("mouseleave",te,V),Nr(3,be,()=>rs,()=>({duration:v})),b(ae,be)};M(re,ae=>{a()&&ae(le)})}var Y=I(re,2);let ne=p(()=>!n(A));Na(Y,{get isHidden(){return n(ne)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return l()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Z,get ref(){return f()},set ref(ae){f(ae)}});var X=I(Y,2);{var Ce=ae=>{var be=y4(),Ve=_(be);zm(Ve,{}),m(be),O(()=>Ye(be,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ae,be)};M(X,ae=>{e.previewTrackAvailable&&ae(Ce)})}m(J),O(()=>Ye(J,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,J),U(),o()}var C4=E('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),T4={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function Qm(t,e){F(e,!0),z(t,T4);let[i,o]=Me(),r=()=>$(In,"$disabledControls$",i),s=()=>$(_t,"$adPlaybackState",i),a=()=>$(ai,"$playbackState$",i),d=()=>$(Go,"$currentSubtitle$",i),l=()=>$(Nt,"$isEnded$",i),f=()=>$(Bo,"$currentGridType$",i),g=()=>$(_i,"$isLive$",i),v=()=>$(mi,"$chromecastState$",i),u=()=>$(No,"$isPictureInPictureActive",i),y=()=>$(vi,"$pictureInPictureType$",i),x=()=>$(Ui,"$availableSubtitlesList$",i),w=()=>$(Ut,"$contextMenuOpenedByKeyboard$",i),C=()=>$(Tt,"$showContextMenuBtn$",i),k=()=>$(no,"$isRewindableLive$",i),T=()=>$(oo,"$isActiveLive$",i),N=()=>$(Ur,"$graphIsOpened$",i),A=()=>$(En,"$contextMenuVisible$",i),R=()=>$(xi,"$isFullscreen",i),V=()=>$(zi,"$autoplayNextEnabled",i),Z=()=>$(n(yo),"$prevButton",i),B=()=>$(n(bn),"$replayButton",i),J=()=>$(n(zr),"$playButton",i),re=()=>$(n(Wr),"$nextButton",i),le=()=>$(n(tr),"$playPrevChapterButton",i),Y=()=>$(n(Ti),"$seekToInteractiveButton",i),ne=()=>$(n(ir),"$interactiveGraphButton",i),X=()=>$(n(xo),"$liveButton",i),Ce=()=>$(n(Ln),"$time",i),ae=()=>$(n(Vn),"$episodes",i),be=()=>$(n(Cr),"$vkLogo",i),Ve=()=>$(n(Tr),"$volume",i),ke=()=>$(n(tn),"$subtitles",i),te=()=>$(n(on),"$settings",i),He=()=>$(n(or),"$context",i),ue=()=>$(n(it),"$fullscreen",i),P=()=>$(n(At),"$chromecast",i),Ke=()=>$(mo,"$additionalDesktopControlPanelRightButtons$",i),$e=()=>$(Do,"$playerSize",i),W=()=>$(Yo,"$isInteractiveTime$",i),de=()=>$(rr,"$previewTrackActive",i),De=()=>$(Qo,"$settingsMenuVisible",i),qe=()=>$(Fo,"$settingButtonRef$",i),fe=()=>$(G,"$startedByKeyboard$",i),j=()=>$(hi,"$isAudioAvailable$",i),Ee=()=>$(Ae,"$fakeIsPlaying$",i),Fe=()=>$(ss,"$seekToInteractiveDisabledTooltip$",i),Qe=()=>$(we,"$isPreviewTrackHorizontallyAligned$",i),Xe=()=>$(sr,"$previewTrackAvailable",i),tt=()=>$(Nn,"$previewTrackDragInProgress",i),Be=()=>$(qt,"$adPosition",i),Ge=()=>$(ui,"$position$",i),Lt=()=>$(ii,"$adDuration",i),Je=()=>$(pt,"$duration$",i),Rt=h(e,"playerControlsWrapperRef",15,void 0),Ft=h(e,"playerControlsRef",15,void 0),xt=h(e,"isAds",3,!1),Gt=h(e,"logoTargetUrl",3,""),Ct=h(e,"isOneVideoPlaylist",3,!1),Se=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ae}=io(),H=ve(),_e=io(),he=It(),dt=H.actions.internal.toggleMuted,ft=H.actions.internal.togglePlay,rt=H.actions.internal.pause,Vt=H.actions.internal.toggleSubtitle,Ze=H.actions.internal.checkFullscreenSupport,Re=H.callbacks?.onAudioDoesNotExistHint,ut=H.callbacks?.onAudioDisabledHint,pt=H.state.duration$,ui=H.state.positionWithScrubbing$,ai=H.state.playbackState$,hi=H.state.isAudioAvailable$,St=H.state.isAudioDisabled,Nt=H.state.isEnded$,_i=H.state.isLive$,oo=H.state.isActiveLive$,no=H.state.isRewindableLive$,{isActive$:No,type$:vi}=_e.pictureInPicture$,Qo=H.ui.settingsMenu.visible$,Oo=H.ui.settingsMenu.openedByBtnKeyboard$,ti=H.ui.controls,jo=H.actions.internal.getVideoEpisodes(),mi=H.state.chromecastState$,Ui=H.state.availableSubtitlesList$,Go=H.state.currentSubtitle$,In=ti.disabledControls$,En=H.ui.contextMenu.visible$,Tt=H.ui.contextMenu.showContextMenuBtn$,Ut=H.ui.contextMenu.openedByBtnKeyboard$,G=H.ui.startedByKeyboard$,Ot=H.ui.controlBlocks,Kt=H.ui.previewTrackNotificationVisible,mt=H.ui.t,ii=H.ads.duration,qt=H.ads.position,_t=H.ads.playbackState,xi=H.ui.isFullscreen,Do=H.ui.playerSize,Bo=H.ui.currentGridType$,mo=H.ui.additionalDesktopControlPanelRightButtons$,zi=H.ui.autoplayNextEnabled$,wi=H.actions.internal.getVideoElement,jn=H.actions.internal.replayInteractive,Zi=H.actions.internal.prevVideoClick,Xi=H.actions.internal.nextVideoClick,bi=H.state.isInteractive,Yo=H.state.isInteractiveTime$,vo=H.state.showInteractiveGraph,Gn=H.state.showSeekToInteractive,Yn=H.state.showPlayPrevChapter,vr=H.state.showInteractiveTimeIndicator,Fr=H.state.playPrevChapterDisabledTooltip,ss=_e.seekToInteractiveDisabledTooltip$,Ur=_e.graphIsOpened$,ro=he.features.interactiveResponsiveUi,An=p(()=>r().has("EPISODE_BUTTON")),go=p(()=>r().has("GRAPH_BUTTON")),Zo=p(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),fn=p(()=>r().has("PLAY_BUTTON")),Zn=p(()=>r().has("REPLAY_BUTTON")),gr=p(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),hr=()=>H.actions.internal.toggleChromecast(),_r=p(()=>xt()?s()==="playing":a()===Oa.PlaybackState.PLAYING),br=p(()=>d().value!=="off"),Pi=p(()=>l()&&!xt()||bi),$r=p(()=>ro?n(Pi)&&Bi(f(),"m"):n(Pi)),mn=p(()=>!l()||bi||xt()),Xo=p(()=>Bi(f(),"m")),Ji=p(()=>e.showNextPrevButtons&&Bi(f(),"m")&&!xt()&&e.nextButtonActive),Xn=p(()=>e.showNextPrevButtons&&Bi(f(),"m")&&!xt()&&e.prevButtonActive),vn=p(()=>!xt()&&!!g()),ct=p(()=>v()!==Oa.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Bi(f(),"m")&&!bi),Si=p(()=>e.showAutoplayNext&&!Ct()&&Bi(f(),"s")),yr=p(()=>x().length>0&&Bi(f(),"m")),Pn=p(()=>w()||C()),xr=p(()=>Bi(f(),"s")&&!xt()),gn=p(()=>!e.logoHidden&&!xt()),hn=p(()=>he.features.fullscreen&&Ze()&&(e.logoHidden||Bi(f(),ro?"xs":"s"))&&!(u()&&y()===1)&&(bi?Se():!0)),ho=p(()=>(!g()||xt())&&!(he.features.interactiveHideTime&&bi)),_o=p(()=>vo&&Bi(f(),"m")),Jo=p(()=>ro?Gn&&Bi(f(),"s"):Gn),eo=p(()=>ro?Yn&&Bi(f(),"s"):Yn),bo=p(()=>!xt()&&!g()&&!!jo?.length&&n(Xo)&&!n(An)),Ho=p(()=>!k()||!!T()),Jn=p(()=>N()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),wr=p(()=>A()?mt("tooltip_context_menu_close"):mt("tooltip_context_menu_open")),en=($t,yt)=>$t?yt&&yt===Oa.PlaybackState.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),Ci=p(()=>en(n(Ho),a())),er=p(()=>he.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Sr=p(()=>n(br)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),_n=p(()=>R()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),Mn=p(()=>v()===Oa.ChromecastState.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),bt=p(()=>V()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),zt=K(0),Wt=Zt({}),$o=Zt({}),yo=p(()=>ti.prevButton),bn=p(()=>ti.replayButton),zr=p(()=>ti.playButton),Wr=p(()=>ti.nextButton),tr=p(()=>ti.playPrevChapterButton),Ti=p(()=>ti.seekToInteractiveButton),ir=p(()=>ti.interactiveGraphButton),xo=p(()=>ti.liveButton),Ln=p(()=>ti.time),Vn=p(()=>ti.episodes),Cr=p(()=>ti.vkLogo),Tr=p(()=>ti.volume),tn=p(()=>ti.subtitles),on=p(()=>ti.settings),or=p(()=>ti.context),it=p(()=>ti.fullscreen),At=p(()=>ti.chromecast),Jt=p(()=>({prevButton:Z()?Z().right-Z().left:0,replayButton:B()?B().right-B().left:0,playButton:J()?J().right-J().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:Y()?Y().right-Y().left:0,interactiveGraphButton:ne()?ne().right-ne().left:0,liveButton:X()?X().right-X().left:0,time:Ce()?Ce().right-Ce().left:0,episodes:ae()?ae().right-ae().left:0,vkLogo:be()?be().right-be().left:0,volume:Ve()?Ve().right-Ve().left:0,subtitles:ke()?ke().right-ke().left:0,settings:te()?te().right-te().left:0,context:He()?He().right-He().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:P()?P().right-P().left:0,additionalButtons:Ke().length?Ke().reduce($t=>[...$t,40],[]):[]})),Mi=K(0);Ne(()=>{(!n(Mi)||n(Mi)<n(Jt).time)&&wt(()=>L(Mi,n(Jt).time,!0))});let Wi=K(!1);Ne(()=>{let $t=0;n(bo)&&(Bi(f(),"xl")?$t=n(Jt).time:$t=60);let yt=n(Jt).prevButton+n(Jt).playButton+n(Jt).nextButton+n(Jt).seekToInteractiveButton+n(Jt).interactiveGraphButton+n(Jt).liveButton+n(Mi)+$t;L(Wi,n(ho)&&n(zt)>=yt,!0)});let to=p(()=>n(Wi)&&Bi(f(),"m")),so=(0,qm.debounceFn)(Ol,260),wo=(0,qm.debounceFn)(Qu,260);Ne(()=>{$e(),W(),de(),so(wi(),ti,Wt,e.showControls),wo(wi(),Ot,$o,e.showControls)}),Ne(()=>{$o.bottom=Rt()});let Fo=ie();Ne(()=>{De(),qe()&&wt(()=>Il(qe(),De(),Oo))});let Ki;Ne(()=>{fe(),wt(()=>Ku(G,fe(),Ki))});function qi(){zs({isAudioDisabled:St,isAudioAvailable:j(),isAds:xt(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:ut})&&dt()}let Li=bi?jn:ft,nr=p(()=>Ee()!==null),So=p(()=>n(nr)?Ee():n(_r)),kr=p(()=>n(So)?mt("tooltip_pause"):mt("tooltip_play")),Ir=mt("tooltip_episodes"),Er=p(()=>n(Xn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Cs.prevButton,buttonComponent:Va,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Zi.bind(null,!0)},tooltipEnabled:!H.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!H.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{H.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Tn(wi(),Wt,"prevButton",e.showControls))},mouseLeave:()=>{H.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Tn(wi(),Wt,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Kr=p(()=>n($r)?{id:"replayButton",type:"desktop-control-panel-left",weight:Cs.replayButton,buttonComponent:Dl,buttonComponentProps:{disabled:n(Zn),click:Li},tooltipText:mt("tooltip_restart"),disabled:n(Zn)}:void 0),as=p(()=>n(mn)?{id:"playButton",type:"desktop-control-panel-left",weight:Cs.playButton,buttonComponent:Bl,buttonComponentProps:{disabled:n(fn),isPlaying:n(_r),click:ft},tooltipText:n(kr),disabled:n(fn)}:void 0),We=p(()=>n(Ji)?{id:"nextButton",type:"desktop-control-panel-left",weight:Cs.nextButton,buttonComponent:Va,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Xi.bind(null,!0)},tooltipEnabled:!H.callbacks?.uiInfo?.onNextButtonMouseEnter&&!H.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{H.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Tn(wi(),Wt,"nextButton",e.showControls))},mouseLeave:()=>{H.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Tn(wi(),Wt,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Qt=p(()=>bi&&n(eo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Cs.playPrevChapterButton,buttonComponent:oc,buttonComponentProps:{disabled:n(gr),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(Fr),disabled:n(gr)}:void 0),pi=p(()=>bi&&n(Jo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Cs.seekToInteractiveButton,buttonComponent:rc,buttonComponentProps:{disabled:n(Zo),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:n(Zo),disabledTooltipContent:mt(Fe())}:void 0),Co=p(()=>bi&&n(_o)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Cs.interactiveGraphButton,buttonComponent:sc,buttonComponentProps:{disabled:n(go),click:Ur.toggle,graphIsOpened:N()},tooltipText:n(Jn)}:void 0),Vi=p(()=>n(vn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Cs.liveButton,buttonComponent:ac,buttonComponentProps:{isLiveActive:n(Ho),ariaLabel:n(Ci)},tooltipText:n(Ci),disabled:n(Ho)&&a()===Oa.PlaybackState.PLAYING}:void 0),ls=p(()=>[n(Er),n(Kr),n(as),n(We),n(Qt),n(pi),n(Co),n(Vi)].filter($t=>!!$t).sort(ka)),To=p(()=>n(gn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ks.vkLogo,buttonComponent:Gd,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:rt},tooltipText:n(er),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Rn=p(()=>n(Si)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ks.autoplayNext,buttonComponent:nc,tooltipText:n(bt)}:void 0),js=p(()=>({id:"volume",type:"desktop-control-panel-right",weight:ks.volume,buttonComponent:fm,buttonComponentProps:{click:qi,isAds:xt()}})),Gs=p(()=>n(yr)?{id:"subtitles",type:"desktop-control-panel-right",weight:ks.subtitles,buttonComponent:dm,buttonComponentProps:{isSubtitlesEnabled:n(br),click:Vt},tooltipText:n(Sr)}:void 0),Es=p(()=>n(xr)?{id:"settings",type:"desktop-control-panel-right",weight:ks.settings,buttonComponent:Ll,buttonComponentProps:{ref$:Fo},tooltipText:De()?void 0:mt("tooltip_settings_off")}:void 0),Ri=p(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ks.context,buttonComponent:Im,buttonComponentProps:{ariaLabel:mt("aria_label_context_menu")},className:n(Pn)?"":"out-of-view",tooltipText:n(wr)}:void 0),st=p(()=>n(hn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ks.fullscreen,buttonComponent:jd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:n(_n)}:void 0),ei=p(()=>n(ct)?{id:"chromecast",type:"desktop-control-panel-right",weight:ks.chromecast,buttonComponent:Yd,buttonComponentProps:{state:v(),click:hr},tooltipText:n(Mn)}:void 0),ko=p(()=>[n(To),n(Rn),n(js),n(Gs),n(Es),n(Ri),n(st),n(ei),...Ke()].filter($t=>!!$t).sort(ka)),rr=H.ui.previewTrackActive,Nn=H.ui.previewTrackDragInProgress,sr=H.ui.previewTrackAvailable,we=H.ui.isPreviewTrackHorizontallyAligned,kt=p(()=>h0({onPreviewTrackOpened:H.actions.internal.previewTrackOpened,getTimelineRef:()=>Wt.timeline,isHorizontal:Qe()})),Yt=p(()=>n(kt).progressBarY),jt=p(()=>n(kt).controlsY),Ni=p(()=>n(kt).onPointerDown),nn=p(()=>n(kt).onPointerMove),ao=p(()=>n(kt).onPointerUp),Oi=p(()=>n(kt).calculatedHeight),qr=p(()=>n(kt).closePreviewTrack);Ne(()=>{de()?Kt.set(!1):n(qr)()});let ar;Mt(()=>()=>ar&&clearTimeout(ar));let ja=$t=>{de()||!Xe()||(n(Ni)($t),ar=setTimeout(()=>{H.actions.internal.previewTrackDragStarted()},200))},Ys=()=>{de()||n(ao)(),ar&&clearTimeout(ar),tt()&&H.actions.internal.previewTrackDragFinished()},Zs=$t=>{n(nn)($t),!de()&&Xe()&&!de()&&Kt.set(!0)},Xs=()=>{Kt.set(!1)};var On=C4(),ds=ce(On);let Js;var lr=_(ds);{var Ga=$t=>{let yt=p(()=>n(Yt)()),rn=p(()=>n(Oi)());Km($t,{get animatedOffsetY(){return n(yt)},get animatedPreviewTrackHeight(){return n(rn)},get canRewindLive(){return e.canRewindLive},get isAds(){return xt()},onTimelineMove:Zs,onTimelinePointerDown:ja,onTimelinePointerUp:Ys,onTimelinePointerLeave:Xs,get previewTrackAvailable(){return Xe()},get timelineRef(){return Wt.timeline},set timelineRef(dr){Wt.timeline=dr}})};M(lr,$t=>{e.showControls&&$t(Ga)})}var cs=I(lr,2),us=_(cs),Ya=_(us);di(Ya,17,()=>n(ls),$t=>$t.id,($t,yt)=>{qu($t,{get buttonComponent(){return n(yt).buttonComponent},get buttonComponentProps(){return n(yt).buttonComponentProps},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(yt).disabled},get className(){return n(yt).className},get tooltipEnabled(){return n(yt).tooltipEnabled},get mouseEnter(){return n(yt).mouseEnter},get mouseLeave(){return n(yt).mouseLeave},get ref(){return Wt[n(yt).id]},set ref(rn){Wt[n(yt).id]=rn}})});var ea=I(Ya,2);{var Gl=$t=>{let yt=p(()=>!e.showControls),rn=p(()=>xt()?Be():Ge()),dr=p(()=>xt()?Lt():Je());Kd($t,{get isHidden(){return n(yt)},isMobile:!1,get showDuration(){return n(to)},get position(){return n(rn)},get duration(){return n(dr)},get ref(){return Wt.time},set ref(ps){Wt.time=ps}})};M(ea,$t=>{n(ho)&&$t(Gl)})}var Za=I(ea,2);let Yl=p(()=>!n(bo));po(Za,{className:"w-max",get disabled(){return n(Yl)},get tooltipContent(){return Ir},get ref(){return Wt.episodes},set ref($t){Wt.episodes=$t},children:($t,yt)=>{var rn=Le(),dr=ce(rn);{var ps=Qr=>{Zd(Qr,{get position(){return Ge()},get duration(){return Je()},get timeCodes(){return jo}})};M(dr,Qr=>{n(bo)&&Qr(ps)})}b($t,rn)},$$slots:{default:!0}}),m(us);var Dn=I(us,2);di(Dn,21,()=>n(ko),$t=>$t.id,($t,yt)=>{var rn=Le(),dr=ce(rn);{var ps=jr=>{qu(jr,{get buttonComponent(){return n(yt).buttonComponent},get buttonComponentProps(){return n(yt).buttonComponentProps},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(yt).disabled},get className(){return n(yt).className},get ref(){return Wt[n(yt).id]},set ref(As){Wt[n(yt).id]=As}})},Qr=jr=>{let As=p(()=>!!n(yt).disabled);Nm(jr,{get id(){return n(yt).id},get testId(){return n(yt).testId},get icon(){return n(yt).icon},get ariaLabel(){return n(yt).ariaLabel},get tooltipText(){return n(yt).tooltipText},get disabledTooltipContent(){return n(yt).disabledTooltipContent},get disabled(){return n(As)},get onClick(){return n(yt).onClick},get disableMouseupTooltipShow(){return n(yt).disableMouseupTooltipShow},get ref(){return Wt[n(yt).id]},set ref(Xl){Wt[n(yt).id]=Xl}})};M(dr,jr=>{m0(n(yt))?jr(ps):jr(Qr,!1)})}b($t,rn)}),m(Dn),m(cs),ot(cs,$t=>Ft($t),()=>Ft()),m(ds),ot(ds,$t=>Rt($t),()=>Rt());var Zl=I(ds,2);{var Xa=$t=>{ec($t,{get ref(){return Wt.interactiveTimeIndicator},set ref(yt){Wt.interactiveTimeIndicator=yt}})};M(Zl,$t=>{vr&&$t(Xa)})}O(($t,yt)=>{Js=ee(ds,1,"wrapper-bottom svelte-1ojrdvx",null,Js,$t),Ye(cs,yt),cs.inert=de()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||tt()}),()=>`transform: translateY(${n(jt)()}px);`]),un(us,"clientWidth",$t=>L(zt,$t)),b(t,On),U(),o()}var Hl=require("@vkontakte/videoplayer-core");var jm=require("@vkontakte/videoplayer-shared");var k4=E('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),I4=E('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),E4={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Gm(t,e){z(t,E4);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,jm.noop),r=p(()=>o()===jm.noop),s=p(()=>n(r)||i()),a=K(!1),d=()=>{L(a,!0)},l=p(()=>n(r)?"btn-full-opacity":"");Dt(t,{get className(){return n(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(f,g)=>{var v=Le(),u=ce(v);{var y=w=>{var C=k4();b(w,C)},x=w=>{var C=I4();O(()=>Oe(C,"src",e.iconUrl)),vt("error",C,d),ma(C),b(w,C)};M(u,w=>{n(a)?w(y):w(x,!1)})}b(f,v)},$$slots:{default:!0}})}var A4=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Ym(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var y0=require("@vkontakte/videoplayer-shared");var P4=E('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),M4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Gu(t,e){F(e,!0),z(t,M4);let i=h(e,"muted",3,!1),o=h(e,"click",3,y0.noop),r=h(e,"ref",15,void 0),a=ve().ui.t,d=p(()=>i()?a("tooltip_volume"):a("tooltip_volume_muted")),l=p(()=>i()?Ym:Ks),f=p(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Dt(t,{get testId(){return n(f)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(g){r(g)},children:(g,v)=>{var u=P4();let y=p(()=>n(l));var x=_(u);gi(x,()=>n(y),(w,C)=>{C(w,{})}),m(u),b(g,u)},$$slots:{default:!0}}),U()}var L4=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.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.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.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.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Zm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=L4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(3),m(o),b(t,o)}var V4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
267
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Xm(t,e){z(t,V4);let i=h(e,"isActive",3,!1),o=p(()=>i()?"color: #2688EB;":"color: #fff;"),r=p(()=>i()?"pip-icon--active":"pip-icon");Zm(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var x0=require("@vkontakte/videoplayer-shared");function Jm(t,e){F(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,x0.noop),s=Q("menu_pip");Dt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(a){i(a)},children:(a,d)=>{Xm(a,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var ev=require("@vkontakte/videoplayer-shared");var R4=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},N4=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},O4=E("<div><!></div>"),D4=E("<div><!></div>"),B4=E("<div><!></div>"),H4=E("<!> <!> <!>",1),F4=E("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),U4=E('<div class="wrapper-middle svelte-tg0ura"><!></div>'),z4=E("<div><!></div> <!> <div><!></div>",1),W4=E('<div aria-hidden="true">\xB7</div> <!>',1),K4=E('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),q4={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
|
|
268
|
+
.wrapper-middle-left-second.svelte-tg0ura,
|
|
269
|
+
.wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
|
|
270
|
+
|
|
271
|
+
@media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-tg0ura {top:16px;}.wrapper-top-left.fullscreen.svelte-tg0ura {top:16px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;bottom:30px;width:calc(100% - 8px);}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
275
|
+
}`};function tv(t,e){F(e,!0),z(t,q4);let[i,o]=Me(),r=()=>$(Do,"$seekToInteractiveDisabledTooltip$",i),s=()=>$(ti,"$disabledControls$",i),a=()=>$(Ct,"$playbackState$",i),d=()=>$(In,"$adPlaybackState",i),l=()=>$(H,"$isEnded$",i),f=()=>$(Tt,"$playerSize",i),g=()=>$(Vt,"$scrubbingInProgress",i),v=()=>$(Qo,"$chromecastState$",i),u=()=>$(Re,"$isPictureInPictureActive",i),y=()=>$(ut,"$pictureInPictureType$",i),x=()=>$(Ze,"$mobileNotReportControlHidden$",i),w=()=>$(no,"$chromecastHidden",i),C=()=>$(Ft,"$playerPhase",i),k=()=>$(_i,"$pipHidden",i),T=()=>$(mi,"$currentGridType$",i),N=()=>$(St,"$vkLogoHidden",i),A=()=>$(hi,"$volumeHidden",i),R=()=>$(_e,"$isLive$",i),V=()=>$(pt,"$settingsMenuVisible",i),Z=()=>$(rt,"$isRewindableLive$",i),B=()=>$(ft,"$isActiveLive$",i),J=()=>$(Se,"$isAudioAvailable$",i),re=()=>$(dt,"$muted$",i),le=()=>$(he,"$volume$",i),Y=()=>$(mt,"$isInteractiveTime$",i),ne=()=>$(Jo,"$settingButtonRef$",i),X=()=>$(jo,"$startedByKeyboard$",i),Ce=()=>$(En,"$isFullscreen",i),ae=()=>$(Ut,"$additionalButtons$",i),be=()=>$(Nt,"$autoplayNextToggleHidden",i),Ve=()=>$(Oo,"$crashed$",i),ke=()=>$(oo,"$settingsHidden",i),te=()=>$(Bo,"$graphIsOpened$",i),He=()=>$(Go,"$adPosition",i),ue=()=>$(Ui,"$adDuration",i),P=()=>$(Gt,"$position$",i),Ke=()=>$(xt,"$duration$",i),$e=h(e,"playerControlsWrapperRef",15,void 0),W=h(e,"playerControlsRef",15,void 0),de=h(e,"isAds",3,!1),De=h(e,"logoTargetUrl",3,""),qe=h(e,"isOneVideoPlaylist",3,!1),fe=h(e,"customFullscreenSupported",3,!0),j=ve(),Ee=io(),Fe=It(),Qe=j.actions.internal.toggleMuted,Xe=j.actions.internal.togglePlay,tt=j.actions.internal.pause,Be=j.actions.internal.prevVideoClick,Ge=j.actions.internal.nextVideoClick,Lt=j.actions.internal.checkFullscreenSupport,Je=j.callbacks?.onAudioDoesNotExistHint,Rt=j.callbacks?.onAudioDisabledHint,Ft=j.playerPhase,xt=j.state.duration$,Gt=j.state.positionWithScrubbing$,Ct=j.state.playbackState$,Se=j.state.isAudioAvailable$,Ae=j.state.isAudioDisabled,H=j.state.isEnded$,_e=j.state.isLive$,he=j.state.volume$,dt=j.state.muted$,ft=j.state.isActiveLive$,rt=j.state.isRewindableLive$,Vt=j.ui.scrubbingInProgress,Ze=j.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:ut}=Ee.pictureInPicture$,pt=j.ui.settingsMenu.visible$,ui=j.ui.settingsMenu.openedByBtnKeyboard$,ai=j.ui.controls,{volume:hi,vkLogo:St,autoplayNextToggle:Nt,pip:_i,settings:oo,chromecast:no}=j.ui.hiddenControls,No=j.actions.internal.getVideoEpisodes(),vi=j.webApi.pictureInPictureApi,Qo=j.state.chromecastState$,Oo=j.state.crashed$,ti=ai.disabledControls$,jo=j.ui.startedByKeyboard$,mi=j.ui.currentGridType$,Ui=j.ads.duration,Go=j.ads.position,In=j.ads.playbackState,En=j.ui.isFullscreen,Tt=j.ui.playerSize,Ut=j.ui.additionalButtonsDeprecated$,G=j.actions.internal.getVideoElement,Ot=j.actions.internal.replayInteractive,Kt=j.state.isInteractive,mt=j.state.isInteractiveTime$,ii=j.state.showInteractiveGraph,qt=j.state.showSeekToInteractive,_t=j.state.showPlayPrevChapter,xi=j.state.showInteractiveTimeIndicator,Do=Ee.seekToInteractiveDisabledTooltip$,Bo=Ee.graphIsOpened$,mo=j.ui.controlBlocks,zi=p(()=>Q(j.state.playPrevChapterDisabledTooltip)),wi=p(()=>Q(r())),jn=p(()=>s().has("EPISODE_BUTTON")),Zi=p(()=>s().has("GRAPH_BUTTON")),Xi=p(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),bi=p(()=>s().has("PLAY_BUTTON")),Yo=p(()=>s().has("REPLAY_BUTTON")),vo=p(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Gn=p(()=>a()===Hl.PlaybackState.PLAYING),Yn=p(()=>d()==="paused"),vr=p(()=>l()&&!de()&&!Kt),Fr=p(()=>!l()||de()),ss=p(()=>e.showNextPrevButtons&&!de()&&e.prevButtonActive),Ur=p(()=>e.showNextPrevButtons&&!de()&&e.nextButtonActive),ro=p(()=>f().width>300),An=p(()=>f().width>400),go=p(g),Zo=p(()=>v()!==Hl.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!x()&&!Kt&&!w()),fn=p(()=>C()==="LiveWaitingStart"),Zn=p(()=>!!vi&&v()!==Hl.ChromecastState.CONNECTED&&!x()&&(y()===1&&n(fn)||!n(fn))&&!n(go)&&!Kt&&!k()),gr=K(!1);Mt(()=>{let it=vi?.info.isActive$.subscribe(At=>L(gr,At,!0));return()=>it?.unsubscribe()});let hr=p(()=>!n(go)&&Bi(T(),"s")),_r=p(()=>!e.logoHidden&&f().width>350&&!N()),br=p(()=>Fe.features.fullscreen&&Lt()&&!(u()&&y()===1)&&(Kt?fe():!0)&&!n(go)&&!n(gr)),Pi=p(()=>!A()&&!n(go)),$r=p(()=>(!R()||de())&&f().width>260&&!n(go)&&!(Fe.features.interactiveHideTime&&Kt)),mn=p(()=>V()||e.showControls),Xo=p(()=>!de()&&!R()&&!!No?.length&&n(ro)&&!n(jn)&&!n(go)),Ji=p(()=>!Z()||!!B()),Xn=p(()=>ii&&Bi(T(),"m")),vn=p(()=>!J()||re()||le()===0),ct=Zt({}),Si=Zt({}),yr=(0,ev.debounceFn)(Ol,260),Pn=(0,ev.debounceFn)(Qu,260);Ne(()=>{f(),Y(),yr(G(),ai,ct,e.showControls),Pn(G(),mo,Si,e.showControls)});let xr=()=>j.actions.internal.toggleChromecast();async function gn(){vi?.isActive()?await vi?.exit():await vi?.request()}function hn(){zs({isAudioDisabled:Ae,audioDisabledHintCallback:Rt,isAudioAvailable:J(),audioIsNotExistHintCallback:Je,isAds:de()})&&Qe()}let ho=K(""),_o=(it,At)=>{if(!it){L(ho,Q("tooltip_live"),!0);return}At&&At===Hl.PlaybackState.PAUSED&&L(ho,Q("tooltip_play"),!0)};Ne(()=>{_o(n(Ji),a())});let Jo=ie();Ne(()=>{ne()&&Il(ne(),V(),ui)}),Ne(()=>{Ku(jo,X(),ct.playButton)}),Ne(()=>{Si.bottom=$e()});var eo=K4(),bo=ce(eo);{var Ho=it=>{var At=F4(),Jt=ce(At);let Mi;var Wi=I(Jt,2);let to;ot(Wi,st=>Si.topLeft=st,()=>Si?.topLeft);var so=I(Wi,2);let wo;var Fo=_(so);di(Fo,1,ae,({iconUrl:st,ariaLabel:ei,testId:ko,onClick:rr,tooltip:Nn})=>st,(st,ei)=>{let ko=()=>n(ei).iconUrl,rr=()=>n(ei).ariaLabel,Nn=()=>n(ei).testId,sr=()=>n(ei).onClick,we=()=>n(ei).tooltip,kt=p(()=>rr()??we());Gm(st,{get iconUrl(){return ko()},get ariaLabel(){return n(kt)},get testId(){return Nn()},get onClick(){return sr()}})});var Ki=I(Fo,2);{var qi=st=>{nc(st,{get ref(){return ct.autoplayNextToggle},set ref(ei){ct.autoplayNextToggle=ei}})};M(Ki,st=>{e.showAutoplayNext&&!qe()&&!be()&&st(qi)})}var Li=I(Ki,2);{var nr=st=>{Yd(st,{isMobile:!0,click:xr,get state(){return v()},get ref(){return ct.chromecast},set ref(ei){ct.chromecast=ei}})};M(Li,st=>{n(Zo)&&st(nr)})}var So=I(Li,2);{var kr=st=>{Jm(st,{click:gn,get isPictureInPictureActive(){return u()},get ref(){return ct.pip},set ref(ei){ct.pip=ei}})};M(So,st=>{n(Zn)&&st(kr)})}var Ir=I(So,2);{var Er=st=>{Ll(st,{get ref$(){return Jo}})};M(Ir,st=>{Ve()&&!ke()&&st(Er)})}var Kr=I(Ir,2);{var as=st=>{Gd(st,{get click(){return tt},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return ct.vkLogo},set ref(ei){ct.vkLogo=ei}})};M(Kr,st=>{n(_r)&&st(as)})}m(so),ot(so,st=>Si.topRight=st,()=>Si?.topRight);var We=I(so,2);let Qt;var pi=_(We);{var Co=st=>{let ei=p(()=>Be.bind(null,!0));Va(st,{get click(){return n(ei)},type:"prev",isMobile:!0,get ref(){return ct.prevButton},set ref(ko){ct.prevButton=ko}})};M(pi,st=>{n(ss)&&st(Co)})}var Vi=I(pi,2);{var ls=st=>{Bl(st,{get disabled(){return n(bi)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(Gn)},get ref(){return ct.playButton},set ref(ei){ct.playButton=ei}})};M(Vi,st=>{n(Fr)&&st(ls)})}var To=I(Vi,2);{var Rn=st=>{Dl(st,{get disabled(){return n(Yo)},get click(){return Xe},isMobile:!0,get ref(){return ct.replayButton},set ref(ei){ct.replayButton=ei}})};M(To,st=>{n(vr)&&st(Rn)})}var js=I(To,2);{var Gs=st=>{let ei=p(()=>Ge.bind(null,!0));Va(st,{get click(){return n(ei)},type:"next",isMobile:!0,get ref(){return ct.nextButton},set ref(ko){ct.nextButton=ko}})};M(js,st=>{n(Ur)&&st(Gs)})}m(We),ot(We,st=>Si.middle=st,()=>Si?.middle);var Es=I(We,2);{var Ri=st=>{var ei=H4(),ko=ce(ei);{var rr=Yt=>{var jt=O4();let Ni;jt.__click=[R4,vo,e,zi];var nn=_(jt);let ao=p(()=>!e.showControls);oc(nn,{get hidden(){return n(ao)},get disabled(){return n(vo)},get click(){return e.playPrevChapter},get ref(){return ct.playPrevChapterButton},set ref(Oi){ct.playPrevChapterButton=Oi}}),m(jt),O(Oi=>Ni=ee(jt,1,"wrapper-middle-left svelte-tg0ura",null,Ni,Oi),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),b(Yt,jt)};M(ko,Yt=>{_t&&Yt(rr)})}var Nn=I(ko,2);{var sr=Yt=>{var jt=D4();let Ni;var nn=_(jt);let ao=p(()=>!e.showControls&&!te());sc(nn,{get hidden(){return n(ao)},get disabled(){return n(Zi)},get click(){return Bo.toggle},get graphIsOpened(){return te()},get ref(){return ct.interactiveGraphButton},set ref(Oi){ct.interactiveGraphButton=Oi}}),m(jt),O(Oi=>Ni=ee(jt,1,yd(_t?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ni,Oi),[()=>({fullscreen:Ce(),hidden:!e.showControls&&!te()})]),b(Yt,jt)};M(Nn,Yt=>{n(Xn)&&Yt(sr)})}var we=I(Nn,2);{var kt=Yt=>{var jt=B4();let Ni;jt.__click=[N4,Xi,e,wi];var nn=_(jt);let ao=p(()=>!e.showControls);rc(nn,{get hidden(){return n(ao)},get disabled(){return n(Xi)},get click(){return e.seekToInteractive},get ref(){return ct.seekToInteractiveButton},set ref(Oi){ct.seekToInteractiveButton=Oi}}),m(jt),O(Oi=>Ni=ee(jt,1,"wrapper-middle-right svelte-tg0ura",null,Ni,Oi),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),b(Yt,jt)};M(we,Yt=>{qt&&Yt(kt)})}b(st,ei)};M(Es,st=>{Kt&&!g()&&st(Ri)})}O((st,ei,ko,rr)=>{Mi=ee(Jt,1,"overlay-mobile svelte-tg0ura",null,Mi,st),to=ee(Wi,1,"wrapper-top-left svelte-tg0ura",null,to,ei),wo=ee(so,1,"wrapper-top-right svelte-tg0ura",null,wo,ko),Qt=ee(We,1,"wrapper-middle svelte-tg0ura",null,Qt,rr)},[()=>({hidden:!n(mn)}),()=>({hidden:!e.showControls,fullscreen:Ce()}),()=>({hidden:!e.showControls&&!x(),fullscreen:Ce()}),()=>({hidden:!e.showControls||g()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,At)};M(bo,it=>{de()||it(Ho)})}var Jn=I(bo,2);{var wr=it=>{var At=z4(),Jt=ce(At);let Mi;var Wi=_(Jt);Gu(Wi,{get muted(){return re()},click:hn,get ref(){return ct.volume},set ref(qi){ct.volume=qi}}),m(Jt);var to=I(Jt,2);{var so=qi=>{var Li=U4(),nr=_(Li);let So=p(()=>!n(Yn));Bl(nr,{get disabled(){return n(bi)},get click(){return Xe},isMobile:!0,get isPlaying(){return n(So)},get ref(){return ct.playButton},set ref(kr){ct.playButton=kr}}),m(Li),b(qi,Li)};M(to,qi=>{n(Yn)&&qi(so)})}var wo=I(to,2);let Fo;var Ki=_(wo);lc(Ki,{get position(){return He()},get duration(){return ue()}}),m(wo),O((qi,Li)=>{Mi=ee(Jt,1,"wrapper-top-right svelte-tg0ura",null,Mi,qi),Fo=ee(wo,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Fo,Li)},[()=>({fullscreen:Ce()}),()=>({fullscreen:Ce()})]),b(it,At)};M(Jn,it=>{de()&&d()!=="inactive"&&it(wr)})}var en=I(Jn,2);let Ci;var er=_(en);let Sr;var _n=_(er),Mn=_(_n),bt=_(Mn);{var zt=it=>{po(it,{get disabled(){return n(Yo)},get ref(){return ct.replayButton},set ref(At){ct.replayButton=At},children:(At,Jt)=>{Dl(At,{get disabled(){return n(Yo)},get click(){return Ot}})},$$slots:{default:!0}})};M(bt,it=>{Kt&&it(zt)})}var Wt=I(bt,2);{var $o=it=>{po(it,{get ref(){return ct.liveButton},set ref(At){ct.liveButton=At},children:(At,Jt)=>{ac(At,{get isLiveActive(){return n(Ji)},isMobile:!0,get ariaLabel(){return n(ho)}})},$$slots:{default:!0}})};M(Wt,it=>{!de()&&R()&&it($o)})}var yo=I(Wt,2);{var bn=it=>{let At=p(()=>de()?He():P()),Jt=p(()=>de()?ue():Ke()),Mi=p(()=>!e.showControls);Kd(it,{get showDuration(){return n(An)},get position(){return n(At)},get duration(){return n(Jt)},isMobile:!0,get isHidden(){return n(Mi)},get ref(){return ct.time},set ref(Wi){ct.time=Wi}})};M(yo,it=>{n($r)&&it(bn)})}var zr=I(yo,2);let Wr=p(()=>!n(Xo));po(zr,{className:"w-max",get disabled(){return n(Wr)},get ref(){return ct.episodes},set ref(it){ct.episodes=it},children:(it,At)=>{var Jt=Le(),Mi=ce(Jt);{var Wi=to=>{var so=W4(),wo=I(ce(so),2);Zd(wo,{get position(){return P()},get duration(){return Ke()},get timeCodes(){return No}}),b(to,so)};M(Mi,to=>{n(Xo)&&to(Wi)})}b(it,Jt)},$$slots:{default:!0}}),m(Mn),ot(Mn,it=>Si.bottomLeft=it,()=>Si?.bottomLeft);var tr=I(Mn,2),Ti=_(tr);{var ir=it=>{po(it,{get ref(){return ct.volume},set ref(At){ct.volume=At},children:(At,Jt)=>{Gu(At,{get muted(){return n(vn)},click:hn})},$$slots:{default:!0}})};M(Ti,it=>{n(Pi)&&it(ir)})}var xo=I(Ti,2);{var Ln=it=>{po(it,{get ref(){return ct.settings},set ref(At){ct.settings=At},children:(At,Jt)=>{Ll(At,{get ref$(){return Jo}})},$$slots:{default:!0}})};M(xo,it=>{n(hr)&&it(Ln)})}var Vn=I(xo,2);{var Cr=it=>{po(it,{get ref(){return ct.fullscreen},set ref(At){ct.fullscreen=At},children:(At,Jt)=>{jd(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ce()}})},$$slots:{default:!0}})};M(Vn,it=>{n(br)&&it(Cr)})}m(tr),ot(tr,it=>Si.bottomRight=it,()=>Si?.bottomRight),m(_n),ot(_n,it=>W(it),()=>W());var Tr=I(_n,2);let tn=p(()=>!e.showControls);Na(Tr,{get isHidden(){return n(tn)},get isAds(){return de()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Z()},get ref(){return ct.timeline},set ref(it){ct.timeline=it}}),m(er),m(en),ot(en,it=>$e(it),()=>$e());var on=I(en,2);{var or=it=>{ec(it,{get ref(){return ct.interactiveTimeIndicator},set ref(At){ct.interactiveTimeIndicator=At}})};M(on,it=>{xi&&it(or)})}O((it,At)=>{Ci=ee(en,1,"wrapper-bottom mobile svelte-tg0ura",null,Ci,it),Sr=ee(er,1,"controls-wrapper svelte-tg0ura",null,Sr,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ce()})]),b(t,eo),U(),o()}nt(["click"]);function dc(t,e){F(e,!0);let[i,o]=Me(),r=()=>$(k,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),a=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),l=h(e,"isAds",3,!1),f=h(e,"logoTargetUrl",3,""),g=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),u=h(e,"customFullscreenSupported",3,!0),y=h(e,"endScreenShown",3,!1),x=h(e,"onDisabledPlayPrevChapterClick",3,iv.noop),w=h(e,"onDisabledSeekToInteractiveClick",3,iv.noop),k=ve().ui.isMobile,T=K(!1);Mt(()=>{let V=setTimeout(()=>L(T,!0),0);return()=>clearTimeout(V)});var N=Le(),A=ce(N);{var R=V=>{var Z=Le(),B=ce(Z);{var J=le=>{tv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get showAutoplayNext(){return g()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Y){a(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},re=le=>{Qm(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return f()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return g()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return a()},set playerControlsWrapperRef(Y){a(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};M(B,le=>{r()?le(J):le(re,!1)})}b(V,Z)};M(A,V=>{n(T)&&V(R)})}b(t,N),U(),o()}var Q4=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function ov(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Q4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function nv(t,e){let i=h(e,"reversed",3,!1),o=p(()=>i()?"transform: scaleX(-1);":void 0);ov(t,{get style(){return n(o)}})}var j4=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.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 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function rv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=j4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}var G4=xe('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.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" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function sv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=G4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function Yu(t,e){let i=h(e,"isOff",3,!1);var o=Le(),r=ce(o);{var s=d=>{sv(d,{})},a=d=>{rv(d,{})};M(r,d=>{i()?d(s):d(a,!1)})}b(t,o)}var Y4=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function av(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function lv(t,e){let i=h(e,"reversed",3,!1),o=p(()=>i()?"transform: scaleX(-1);":void 0);av(t,{get style(){return n(o)}})}var Z4=xe('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function dv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Z4();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(2),m(o),b(t,o)}function cv(t,e){let i=h(e,"reversed",3,!1),o=p(()=>i()?"transform: scaleX(-1);":void 0);dv(t,{get style(){return n(o)}})}var X4=E('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),J4=E('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),e3=E("<div><!></div>"),t3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
|
|
276
|
+
animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
|
|
277
|
+
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
|
|
278
|
+
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
279
|
+
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"] {transform:scale(2.5);}.hot-key-helpers-container--left.svelte-1ad3n06 {left:calc(25% - 100px);}.hot-key-helpers-container--right.svelte-1ad3n06 {left:calc(75% - 100px);}.hot-key-helpers-text.svelte-1ad3n06 {text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px; /* 133.333% */letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.hidden.svelte-1ad3n06 {visibility:hidden;
|
|
280
|
+
animation: svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0;}
|
|
281
|
+
|
|
282
|
+
@keyframes svelte-1ad3n06-fadeIn {
|
|
283
|
+
0% {opacity:0;}
|
|
284
|
+
100% {opacity:1;}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
@keyframes svelte-1ad3n06-fadeOut {
|
|
288
|
+
0% {opacity:1;}
|
|
289
|
+
100% {opacity:0;}
|
|
290
|
+
}`};function uv(t,e){F(e,!0),z(t,t3);let[i,o]=Me(),r=()=>$(e.data,"$data",i),s=ve(),{features:a}=It(),d=s.ui.t,l=p(()=>!r()),f=p(()=>r()?.type==="BACKWARD_SEEK"),g=p(()=>r()?.type==="FORWARD_SEEK"),v=p(()=>r()?.type),u=p(()=>r()?.t?d(r().t.key,{value:r().t.value||""}):r()?.text);var y=e3();let x;var w=_(y);{var C=k=>{var T=J4(),N=ce(T),A=_(N);{var R=W=>{let de=p(()=>n(v)==="FORWARD_SEEK");nv(W,{get reversed(){return n(de)}})};M(A,W=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&W(R)})}var V=I(A,2);{var Z=W=>{Ts(W,{})};M(V,W=>{n(v)==="PAUSE"&&!a.playbackStatusShow&&W(Z)})}var B=I(V,2);{var J=W=>{Qn(W,{})};M(B,W=>{n(v)==="PLAY"&&!a.playbackStatusShow&&W(J)})}var re=I(B,2);{var le=W=>{ic(W,{})};M(re,W=>{n(v)==="REPLAY"&&!a.playbackStatusShow&&W(le)})}var Y=I(re,2);{var ne=W=>{Yu(W,{isOff:!0})};M(Y,W=>{n(v)==="SUBTITLES_OFF"&&W(ne)})}var X=I(Y,2);{var Ce=W=>{Yu(W,{})};M(X,W=>{n(v)==="SUBTITLES_ON"&&W(Ce)})}var ae=I(X,2);{var be=W=>{let de=p(()=>n(v)==="RATE_UP");lv(W,{get reversed(){return n(de)}})};M(ae,W=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&W(be)})}var Ve=I(ae,2);{var ke=W=>{let de=p(()=>n(v)==="EPISODE_NEXT");cv(W,{get reversed(){return n(de)}})};M(Ve,W=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&W(ke)})}var te=I(Ve,2);{var He=W=>{Ks(W,{volume:0})};M(te,W=>{n(v)==="MUTE"&&W(He)})}var ue=I(te,2);{var P=W=>{Ks(W,{volume:1})};M(ue,W=>{n(v)==="VOLUME"&&W(P)})}m(N);var Ke=I(N,2);{var $e=W=>{var de=X4(),De=_(de,!0);m(de),O(()=>pe(De,n(u))),b(W,de)};M(Ke,W=>{n(u)&&W($e)})}b(k,T)};M(w,k=>{!n(l)&&n(v)&&k(C)})}m(y),O(k=>x=ee(y,1,"hot-key-helpers-container svelte-1ad3n06",null,x,k),[()=>({hidden:n(l),"hot-key-helpers-container--left":n(f),"hot-key-helpers-container--right":n(g)})]),b(t,y),U(),o()}var i3=xe('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function pv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var o3=xe('<svg><!><path fill="currentColor" 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.272z"></path></svg>');function fv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function qs(t,e){F(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=p(()=>["up","down"].includes(i())),s=p(()=>["right","down"].includes(i())),a=p(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Le(),l=ce(d);{var f=v=>{let u=p(()=>n(s)?"chevron-icon--down":"chevron-icon--up");pv(v,{get style(){return n(a)},get"data-testid"(){return n(u)}})},g=v=>{let u=p(()=>n(s)?"chevron-icon--right":"chevron-icon--left");fv(v,{get style(){return n(a)},get"data-testid"(){return n(u)}})};M(l,v=>{n(r)?v(f):v(g,!1)})}b(t,d),U()}var n3=(t,e,i,o,r,s)=>{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":s();break}},r3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},s3=E('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),a3={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function cc(t,e){F(e,!0),z(t,a3);let i=h(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),g=Q("aria_label_spherical_control");var v=s3();let u;v.__keydown=[n3,r,s,a,l,d],v.__keyup=[r3,r,f];var y=_(v),x=_(y),w=_(x);w.__mousedown=s,w.__mouseup=f;var C=_(w);qs(C,{direction:"up",useBtnColor:!0}),m(w);var k=I(w,2);k.__mousedown=d,k.__mouseup=f;var T=_(k);qs(T,{direction:"up",useBtnColor:!0}),m(k),m(x);var N=I(x,2),A=_(N);A.__mousedown=l,A.__mouseup=f;var R=_(A);qs(R,{direction:"up",useBtnColor:!0}),m(A);var V=I(A,2);V.__mousedown=a,V.__mouseup=f;var Z=_(V);qs(Z,{direction:"up",useBtnColor:!0}),m(V),m(N),m(y),m(v),O(B=>{u=ee(v,1,"immersive-controls svelte-1yzc86r",null,u,B),Oe(v,"aria-label",g)},[()=>({"m-shifted":i()})]),vt("mouseleave",w,f),vt("mouseleave",k,f),vt("mouseleave",A,f),vt("mouseleave",V,f),b(t,v),U()}nt(["keydown","keyup","mousedown","mouseup"]);var Is=require("@vkontakte/videoplayer-shared");var w0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Zu=class{constructor(){this.flickeringTimeout=w0(1e3);this.subscriptions=new Is.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Is.ValueSubject([]);this.captionsPrepared$=new Is.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Is.filter)(()=>this.isEnabled()),(0,Is.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:s,value:a},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(a),value:""}):r.length===0?r.push({value:String(a)}):r[r.length-1].value=String(a)),r),[])),this.captionsPrepared$.next(i)}};var l3=E('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),d3=E('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),c3=E('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),u3=E('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),p3=E("<div><!></div>"),f3={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
|
|
291
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ba(t,e){F(e,!0),z(t,f3);let[i,o]=Me(),r=()=>$(u,"$currentSubtitle$",i),s=()=>$(x,"$isLive$",i),a=()=>$(w,"$isFullscreen",i),d=()=>$(C,"$previewTrackActive",i),l=()=>$(y,"$isAutoSubtitleCaptionVisible$",i),f=h(e,"isMobile",3,!1),g=ve(),v=It(),u=g.state.currentSubtitle$,y=g.state.isAutoSubtitleCaptionVisible$,x=g.state.isLive$,w=g.ui.isFullscreen,C=g.ui.previewTrackActive,k=p(()=>!!r().isAuto),T=p(()=>!!s()),N=p(()=>e.playerSize.width*.02),A=p(()=>f()&&!a()||n(N)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(N)),R=K(null);Ne(()=>{n(R)?.setIsAuto(n(k)),n(R)?.setIsLive(n(T)),n(R)?.setCaptions(e.captions)});let V=K(Zt([[]]));Mt(()=>{L(R,new Zu().subscribe(),!0);let Y=n(R).captionsPrepared$.subscribe(ne=>{L(V,ne,!0)});return()=>{n(R)?.destroy(),Y.unsubscribe()}}),Mt(()=>{if(n(k)){let Y=window.setTimeout(()=>{y.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else y.set(!1)});let Z=p(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=p3();let J;var re=_(B);{var le=Y=>{var ne=u3();let X;var Ce=_(ne),ae=_(Ce);{var be=ke=>{var te=l3(),He=_(te),ue=_(He,!0);m(He),m(te),O(P=>{Ye(He,`font-size: ${n(A)??""}px`),pe(ue,P)},[()=>Q("subtitles_auto_caption")]),b(ke,te)},Ve=(ke,te)=>{{var He=P=>{var Ke=Le(),$e=ce(Ke);di($e,17,()=>n(V),bd,(W,de)=>{var De=d3(),qe=_(De);di(qe,21,()=>n(de),({value:fe,timeAppeared:j})=>j,(fe,j)=>{let Ee=()=>n(j).value,Fe=()=>n(j).timeAppeared;var Qe=Le(),Xe=ce(Qe);{var tt=Be=>{var Ge=ts();O(()=>pe(Ge,Ee())),b(Be,Ge)};M(Xe,Be=>{(!Fe()||Fe()<=e.position)&&Be(tt)})}b(fe,Qe)}),m(qe),m(De),O(()=>Ye(qe,`font-size: ${n(A)??""}px`)),b(W,De)}),b(P,Ke)},ue=P=>{var Ke=Le(),$e=ce(Ke);di($e,17,()=>e.captions,({value:W})=>W,(W,de)=>{let De=()=>n(de).value;var qe=c3(),fe=_(qe),j=_(fe,!0);m(fe),m(qe),O(()=>{Ye(fe,`font-size: ${n(A)??""}px`),pe(j,De())}),b(W,qe)}),b(P,Ke)};M(ke,P=>{n(k)&&n(V)?.length?P(He):P(ue,!1)},te)}};M(ae,ke=>{n(k)&&l()?ke(be):ke(Ve,!1)})}m(Ce),m(ne),O(ke=>{X=ee(ne,1,"subtitles-caption svelte-1i1hgvc",null,X,ke),Ye(ne,`--subtitles-caption-margin: ${n(Z)??""}%`)},[()=>({mobile:f()})]),b(Y,ne)};M(re,Y=>{(e.captions.length||n(V)?.length)&&Y(le)})}m(B),O(Y=>J=ee(B,1,"subtitles-container svelte-1i1hgvc",null,J,Y),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(k)&&!n(T)&&!l()})]),b(t,B),U(),o()}var m3=E('<div class="text svelte-raurnb"> </div>'),v3=E('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),g3={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function uc(t,e){F(e,!0),z(t,g3);let i=It();var o=v3();let r;var s=I(_(o),2);{var a=d=>{var l=m3(),f=_(l);m(l),O(()=>pe(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),b(d,l)};M(s,d=>{e.chromecastDeviceName&&d(a)})}m(o),O(d=>{r=ee(o,1,"wrapper svelte-raurnb",null,r,d),Ye(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var h3=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 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.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function mv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=h3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var _3=E('<div class="container svelte-13zpvm8"><!></div>'),b3={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Ha(t){z(t,b3);var e=_3(),i=_(e);mv(i,{}),m(e),b(t,e)}var $3=E('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),y3=E("<div><!></div>"),x3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
|
|
292
|
+
visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
|
|
293
|
+
transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Fa(t,e){F(e,!0),z(t,x3);let i=h(e,"iconVisible",3,!0),o=ve(),r=It(),s=o.ui.startedByKeyboard$,a=Q("tooltip_play"),d=y=>{let x=y.code;["Enter","Space"].includes(x)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),e.startVideo?.())},l=y=>{y.stopPropagation(),e.startVideo?.(),e.onClick?.(y)};var f=y3();let g;f.__click=l,f.__contextmenu=function(...y){e.onContextMenu?.apply(this,y)};var v=_(f);{var u=y=>{var x=$3();x.__keydown=d;var w=I(_(x),2);Qn(w,{}),m(x),O(()=>Oe(x,"aria-label",a)),b(y,x)};M(v,y=>{i()&&y(u)})}return m(f),O(y=>{g=ee(f,1,"container svelte-1ciju45",null,g,y),Ye(f,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,f),U({handlePressKey:d,handleClick:l})}nt(["click","contextmenu","keydown"]);var w3=E('<div data-testid="video_title"><span> </span></div>'),S3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
294
|
+
0deg,
|
|
295
|
+
rgba(0, 0, 0, 0) 0%,
|
|
296
|
+
rgba(0, 0, 0, 0.02) 19%,
|
|
297
|
+
rgba(0, 0, 0, 0.1) 34%,
|
|
298
|
+
rgba(0, 0, 0, 0.4) 60%,
|
|
299
|
+
rgba(0, 0, 0, 0.6) 100%
|
|
300
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function vv(t,e){F(e,!0),z(t,S3);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=K(void 0);Mt(()=>{requestAnimationFrame(()=>{e.onVisibilityChanged?.(!0)});function g(v){v.propertyName==="transform"&&e.onVisibilityChanged?.(!o())}return n(s)?.addEventListener("transitionend",g),()=>n(s)?.removeEventListener("transitionend",g)});var a=w3();let d;var l=_(a),f=_(l,!0);m(l),ot(l,g=>r(g),()=>r()),m(a),ot(a,g=>L(s,g),()=>n(s)),O(g=>{d=ee(a,1,"title svelte-14hk510",null,d,g),pe(f,i())},[()=>({hidden:o()})]),b(t,a),U()}var S0=require("@vkontakte/videoplayer-shared");var C3=E('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),T3=E('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),k3=E('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),I3=E('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),E3=E("<div><!> <!> <!> <!></div>"),A3={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function gv(t,e){F(e,!0),z(t,A3);let i=K(""),o=K(""),r=K(""),s=K(""),a,d=32,l=d/2,f=B=>String(B).padStart(2,"0"),g=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?l:d)*g(B)}px`,u=B=>{let J=Math.floor(B/86400);J&&(B-=J*86400,L(i,f(J),!0));let re=Math.floor(B/3600);L(o,f(re),!0);let le=Math.floor(B/60)%60;L(r,f(le),!0);let Y=B%60;L(s,f(Y),!0)},y=()=>{let B=Math.floor(Date.now()/1e3),J=e.startTime-B;u(J),J>=1?a=requestAnimationFrame(y):e.onTimerOver()};Mt(()=>{a=requestAnimationFrame(y)}),Ko(()=>{cancelAnimationFrame(a)});var x=E3();let w;var C=_(x);{var k=B=>{var J=C3(),re=ce(J);let le;var Y=_(re),ne=_(Y,!0);m(Y);var X=I(Y,2),Ce=_(X,!0);m(X),m(re);var ae=I(re,2),be=_(ae,!0);m(ae),O((Ve,ke,te)=>{le=Ye(re,"",le,{width:Ve}),pe(ne,n(i)),pe(Ce,ke),pe(be,te)},[()=>v(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),b(B,J)};M(C,B=>{n(i)&&B(k)})}var T=I(C,2);{var N=B=>{var J=T3(),re=ce(J);let le;var Y=_(re),ne=_(Y,!0);m(Y);var X=I(Y,2),Ce=_(X,!0);m(X),m(re);var ae=I(re,2),be=_(ae,!0);m(ae),O((Ve,ke,te)=>{le=Ye(re,"",le,{width:Ve}),pe(ne,n(o)),pe(Ce,ke),pe(be,te)},[()=>v(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),b(B,J)};M(T,B=>{n(o)&&B(N)})}var A=I(T,2);{var R=B=>{var J=k3(),re=ce(J);let le;var Y=_(re),ne=_(Y,!0);m(Y);var X=I(Y,2),Ce=_(X,!0);m(X),m(re);var ae=I(re,2),be=_(ae,!0);m(ae),O((Ve,ke,te)=>{le=Ye(re,"",le,{width:Ve}),pe(ne,n(r)),pe(Ce,ke),pe(be,te)},[()=>v(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),b(B,J)};M(A,B=>{n(r)&&B(R)})}var V=I(A,2);{var Z=B=>{var J=I3();let re;var le=_(J),Y=_(le,!0);m(le);var ne=I(le,2),X=_(ne,!0);m(ne),m(J),O((Ce,ae)=>{re=Ye(J,"",re,{width:Ce}),pe(Y,n(s)),pe(X,ae)},[()=>v(n(s)),()=>Q("waiting_live_second_value")]),b(B,J)};M(V,B=>{n(s)&&B(Z)})}m(x),O(B=>w=ee(x,1,"timer__container svelte-gt98rn",null,w,B),[()=>({small:e.isSmallSize})]),b(t,x),U()}var P3=E('<div class="waiting svelte-17m8dcd"><span> </span></div>'),M3=E('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),L3=E('<div class="waiting-container svelte-17m8dcd"><!></div>'),V3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function pc(t,e){F(e,!0),z(t,V3);let i=h(e,"startTime",3,0),o=p(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),s=K(void 0),a=0,d=K(void 0),l=K(void 0),f=p(()=>(n(d)??1/0)<=509||(n(l)??1/0)<=320),g=p(()=>!n(f)&&((n(d)??1/0)<=699||(n(l)??1/0)<=599)),v=e.onUpcomingLiveViewStateChanged?(0,S0.throttleFn)(()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(f)?"s":n(g)?"m":"l"},k=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,k)})},300):void 0;Ne(()=>{n(l),n(d),n(o),v?.()}),Ko(()=>{if(cancelAnimationFrame(a),v?.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(f)?"s":n(g)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var u=L3();u.__contextmenu=function(...C){e.onContextMenu?.apply(this,C)},u.__click=function(...C){e.onClick?.apply(this,C)};var y=_(u);{var x=C=>{var k=P3(),T=_(k);let N;var A=_(T,!0);m(T),m(k),ot(k,R=>L(r,R),()=>n(r)),O((R,V)=>{N=ee(T,1,"waiting__title svelte-17m8dcd",null,N,R),pe(A,V)},[()=>({medium:n(g),small:n(f)}),()=>Q("waiting_live_upcoming_title")]),b(C,k)},w=C=>{var k=M3(),T=_(k);let N;var A=_(T,!0);m(T);var R=I(T,2);let V=p(()=>n(f)||n(g)),Z=p(()=>i()||0);gv(R,{get isSmallSize(){return n(V)},get startTime(){return n(Z)},onTimerOver:()=>L(o,!0)}),m(k),ot(k,B=>L(s,B),()=>n(s)),O((B,J)=>{N=ee(T,1,"timer__title svelte-17m8dcd",null,N,B),pe(A,J)},[()=>({medium:n(g),small:n(f)}),()=>Q("waiting_live_timer_title")]),b(C,k)};M(y,C=>{n(o)?C(x):C(w,!1)})}m(u),O(()=>Ye(u,`background-image: url(${e.thumbUrl})`)),un(u,"clientWidth",C=>L(d,C)),un(u,"clientHeight",C=>L(l,C)),b(t,u),U()}nt(["contextmenu","click"]);var R3=E('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),N3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ua(t,e){F(e,!0),z(t,N3);let i=h(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=p(()=>o[e.kind]||"");var s=R3();s.__contextmenu=function(...g){e.onContextMenu?.apply(this,g)},s.__click=function(...g){e.onClick?.apply(this,g)};var a=_(s),d=_(a);Ea(d,{style:"position: static; transform: translate(0, 0)"});var l=I(d,2),f=_(l,!0);m(l),m(a),m(s),O(()=>{Ye(s,`background-image: url('${i()}')`),pe(f,n(r))}),b(t,s),U()}nt(["contextmenu","click"]);var O3=xe('<svg><!><path fill="var(--btn-color, #fff)" 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></svg>');function hv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var D3=E('<div class="select-icon svelte-124aexk"><!></div>'),B3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function fc(t){z(t,B3);var e=D3(),i=_(e);hv(i,{}),m(e),b(t,e)}var H3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},F3=(t,e)=>{El(t,()=>e.item.selectItem(e.item.value))},U3=E("<p> </p>"),z3=E('<p class="sublabel svelte-1t7rx2m"> </p>'),W3=E('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),K3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
|
|
304
|
+
* \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
|
|
305
|
+
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
306
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function _v(t,e){F(e,!0),z(t,K3);let i=h(e,"isMobile",3,!1);var o=W3();let r;o.__click=[H3,e],o.__keydown=[F3,e];var s=_(o);{var a=x=>{fc(x,{})};M(s,x=>{e.item.selected&&x(a)})}var d=I(s,2);let l;var f=_(d);{var g=x=>{var w=Le(),C=ce(w);gi(C,()=>e.item.valueComponent,(k,T)=>{T(k,$s(()=>e.item.valueComponentParams??{}))}),b(x,w)},v=x=>{var w=U3();let C;var k=_(w,!0);m(w),O(T=>{C=ee(w,1,"label svelte-1t7rx2m",null,C,T),pe(k,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(x,w)};M(f,x=>{e.item.valueComponent?x(g):x(v,!1)})}var u=I(f,2);{var y=x=>{var w=z3(),C=_(w,!0);m(w),O(()=>pe(C,e.item.sublabel)),b(x,w)};M(u,x=>{e.item.sublabel&&x(y)})}m(d),m(o),O((x,w,C)=>{r=ee(o,1,"item",null,r,x),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",w),Oe(o,"data-testid",e.item.dataTestid),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),U()}nt(["click","keydown"]);var q3=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function bv(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=p(()=>()=>e.openSubMenuList(e.item.children)),s=p(()=>w=>Pu(w,n(r)));var a=q3();let d;a.__click=function(...w){n(r)?.apply(this,w)},a.__keydown=function(...w){n(s)?.apply(this,w)};var l=_(a);{var f=w=>{fc(w,{})};M(l,w=>{e.item.selected&&w(f)})}var g=I(l,2);let v;var u=_(g);{var y=w=>{var C=Le();let k=p(()=>e.item.valueComponent);var T=ce(C);gi(T,()=>n(k),(N,A)=>{A(N,$s(()=>e.item.valueComponentParams??{}))}),b(w,C)},x=w=>{var C=ts();O(()=>pe(C,e.item.label)),b(w,C)};M(u,w=>{e.item.valueComponent?w(y):w(x,!1)})}m(g),m(a),ot(a,w=>o(o()[e.item.id]=w,!0),()=>o()?.[e.item.id]),O((w,C)=>{d=ee(a,1,"item",null,d,w),Oe(a,"aria-label",e.item.ariaLabel??e.item.label),Oe(a,"data-testid",e.item.id),v=ee(g,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,a),U()}nt(["click","keydown"]);var Hr={"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 j3=(t,e)=>{F1(t,e.returnFromSubMenu,e.closeSettingsMenu)},G3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Y3=(t,e)=>{Nd(t)&&(fr(t),e.returnFromSubMenu())},Z3=E('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),X3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
307
|
+
/*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
|
|
308
|
+
/**
|
|
309
|
+
* \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
|
|
310
|
+
* \u041F\u0440\u0435\u0434\u043F\u043E\u043B\u0430\u0433\u0430\u0435\u043C, \u0447\u0442\u043E \u0432 \u043E\u0434\u043D\u0443 \u0441\u0442\u0440\u043E\u043A\u0443 \u043E\u043D, \u0438\u043D\u0430\u0447\u0435 \u043D\u0443\u0436\u043D\u043E \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044B\u0432\u0430\u0442\u044C \u0434\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438.
|
|
311
|
+
* paddingTop + lineHeight + paddingBottom.
|
|
312
|
+
*/padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height));}.sub-menu.mobile.svelte-7dfsuh {padding-top:calc(
|
|
313
|
+
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
314
|
+
1px
|
|
315
|
+
);}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
|
|
316
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function yv(t,e){F(e,!0),z(t,X3);let[i,o]=Me(),r=()=>$(v,"$isFullscreen",i),s=()=>$(u,"$playerSize",i),a=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),l=h(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),f=h(e,"listRef",15);Mt(()=>{let Y=e.items.findIndex(ne=>ne.selected);f().children[Y+1].focus()});let g=ve(),v=g.ui.isFullscreen,u=g.ui.playerSize,y=K(void 0),x=K(0),w=K(0),C=p(()=>a()&&r()?`max-height: ${Math.round(s().height*.6)}px`:a()?"":`max-height: ${s().height-32-n(w)-d()}px; overflow: auto;`),k=p(()=>Math.max(e.minWidth,n(x)));var T=Z3();let N;var A=_(T);let R;A.__keydown=[j3,e];var V=_(A);let Z;V.__click=[G3,e],V.__keydown=[Y3,e];var B=_(V);qs(B,{direction:"left"});var J=I(B,2),re=_(J,!0);m(J),m(V),ot(V,Y=>L(y,Y),()=>n(y));var le=I(V,2);di(le,17,()=>e.items,bd,(Y,ne)=>{var X=Le(),Ce=ce(X);{var ae=Ve=>{_v(Ve,{get item(){return n(ne)},get isMobile(){return a()}})},be=(Ve,ke)=>{{var te=He=>{bv(He,{get isMobile(){return a()},get item(){return n(ne)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(Ve,He=>{n(ne).type==="OPEN_SUB_MENU"&&He(te)},ke)}};M(Ce,Ve=>{n(ne).type==="SELECT_VALUE"?Ve(ae):Ve(be,!1)})}b(Y,X)}),m(A),ot(A,Y=>f(Y),()=>f()),m(T),O((Y,ne,X)=>{N=ee(T,1,"sub-menu menu svelte-7dfsuh",null,N,Y),Oe(T,"data-testid",`sub-menu-${e.id}`),Ye(T,`min-width: ${n(k)}px`),R=ee(A,1,"items svelte-7dfsuh",null,R,ne),Ye(A,n(C)),Z=ee(V,1,"item header back svelte-7dfsuh",null,Z,X),Oe(V,"aria-label",l()),pe(re,e.title)},[()=>({desktop:!a(),mobile:a()}),()=>({mobile:a()}),()=>({mobile:a()})]),un(V,"clientWidth",Y=>L(x,Y)),un(V,"clientHeight",Y=>L(w,Y)),b(t,T),U(),o()}nt(["keydown","click"]);var T0=require("@vkontakte/videoplayer-shared");var J3=(t,e)=>Pu(t,e()),ex=(t,e)=>{t.stopPropagation(),e()()},tx=E('<div class="value svelte-1ikfjte"> </div>'),ix=E('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),ox={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function xv(t,e){F(e,!0),z(t,ox);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,T0.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var a=ix();let d;a.__click=[ex,o],a.__keydown=[J3,o];var l=_(a),f=_(l);{var g=k=>{Ra(k,{get icon(){return e.icon}})},v=k=>{var T=Le();let N=p(()=>e.icon);var A=ce(T);gi(A,()=>n(N),(R,V)=>{V(R,{})}),b(k,T)};M(f,k=>{typeof e.icon=="string"?k(g):k(v,!1)})}m(l);var u=I(l,2),y=_(u,!0);m(u);var x=I(u,2);{var w=k=>{var T=Le();let N=p(r);var A=ce(T);gi(A,()=>n(N),(R,V)=>{V(R,{})}),b(k,T)},C=k=>{var T=tx(),N=_(T,!0);m(T),O(()=>pe(N,e.value)),b(k,T)};M(x,k=>{r()?k(w):k(C,!1)})}m(a),ot(a,k=>s(k),()=>s()),O(k=>{d=ee(a,1,"item",null,d,k),Oe(a,"aria-label",e.ariaLabel),Oe(a,"data-testid",e.id),pe(y,e.label)},[()=>({mobile:i()})]),b(t,a),U()}nt(["click","keydown"]);var wv=require("@vkontakte/videoplayer-shared");var nx=(t,e)=>{El(t,()=>e())},rx=E('<div class="icon icon-error-stub"><div class="inner"></div></div>'),sx=E('<img class="icon" aria-hidden="true"/>'),ax=E('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),lx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Sv(t,e){F(e,!0),z(t,lx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,wv.noop),r=h(e,"closeSettings",3,wv.noop),s=K(!1),a=()=>{L(s,!0)},d=C=>{C?.stopPropagation(),o()(),r()()};var l=ax();let f;l.__click=d,l.__keydown=[nx,d];var g=_(l),v=_(g);{var u=C=>{var k=Le(),T=ce(k);{var N=R=>{var V=rx();b(R,V)},A=R=>{var V=sx();O(()=>Oe(V,"src",e.icon)),vt("error",V,a),ma(V),b(R,V)};M(T,R=>{n(s)?R(N):R(A,!1)})}b(C,k)},y=C=>{var k=Le();let T=p(()=>e.icon);var N=ce(k);gi(N,()=>n(T),(A,R)=>{R(A,{})}),b(C,k)};M(v,C=>{typeof e.icon=="string"?C(u):C(y,!1)})}m(g);var x=I(g,2),w=_(x,!0);m(x),m(l),O(C=>{f=ee(l,1,"item",null,f,C),Oe(l,"aria-label",e.ariaLabel??e.label),Oe(l,"data-testid",e.id),pe(w,e.label)},[()=>({mobile:i()})]),b(t,l),U()}nt(["click","keydown"]);var k0=require("@vkontakte/videoplayer-shared");var dx=E('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),cx={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Cv(t,e){z(t,cx);let i=h(e,"enabled",3,!1);var o=dx(),r=_(o);let s;ye(2),m(o),O(a=>s=ee(r,1,"toggle svelte-17wbjko",null,s,a),[()=>({on:i()})]),b(t,o)}var ux=(t,e,i)=>{U1(t,e(),o=>i()(o))},px=(t,e,i)=>{t.stopPropagation(),e()(!i())},fx=E('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),mx=E('<li role="menuitem" tabindex="0"><!></li>');function Tv(t,e){F(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,k0.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),a=h(e,"maxTooltipWidth",3,void 0);var d=mx();let l;d.__click=[px,o,r],d.__keydown=[ux,r,o];var f=_(d);Pa(f,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return a()},children:(g,v)=>{var u=fx();let y;var x=_(u),w=_(x);{var C=R=>{Ra(R,{get icon(){return e.icon}})},k=R=>{var V=Le();let Z=p(()=>e.icon);var B=ce(V);gi(B,()=>n(Z),(J,re)=>{re(J,{})}),b(R,V)};M(w,R=>{typeof e.icon=="string"?R(C):R(k,!1)})}m(x);var T=I(x,2),N=_(T,!0);m(T);var A=I(T,2);Cv(A,{get enabled(){return r()}}),m(u),O(R=>{y=ee(u,1,"switch-wrapper",null,y,R),pe(N,e.label)},[()=>({mobile:i()})]),b(g,u)},$$slots:{default:!0}}),m(d),O(g=>{l=ee(d,1,"item switch-item",null,l,g),Oe(d,"aria-label",e.ariaLabel??e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}nt(["click","keydown"]);var vc=require("@vkontakte/videoplayer-shared");var I0=()=>{let t=K(Zt([])),e=p(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{L(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{L(t,[],!0)}}};var vx=E('<div class="quality-icon svelte-t2qk8t"><!></div>'),gx=E('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),hx={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function za(t,e){F(e,!0),z(t,hx);let i=h(e,"isSubCase",3,!1),o=p(()=>Nu(e.quality));var r=gx(),s=_(r);let a;var d=_(s,!0);m(s);var l=I(s,2);{var f=g=>{var v=vx();let u=p(()=>n(o));var y=_(v);gi(y,()=>n(u),(x,w)=>{w(x,{})}),m(v),b(g,v)};M(l,g=>{n(o)&&!e.isMobile&&g(f)})}m(r),O(g=>{a=ee(s,1,"svelte-t2qk8t",null,a,g),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,r),U()}var M0=require("@vkontakte/videoplayer-shared");var kv=require("@vkontakte/videoplayer-core");var E0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},A0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=E0({quality:t,availableQualities:e});return i?t===kv.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},P0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===kv.VideoQuality.INVARIANT?i:`${i}${E0({quality:t,availableQualities:e})}`:"...";var _x=E('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),bx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Fl(t,e){F(e,!0),z(t,bx);let[i,o]=Me(),r=()=>$(l,"$currentQuality$",i),s=()=>$(f,"$availableQualities$",i),a=()=>$(g,"$isMobile$",i),d=ve(),l=d.state.currentQuality$,f=d.state.availableQualities$,g=d.ui.isMobile,v=" \xB7 ",u=p(()=>e.prefix+(e.selected&&r()!==M0.VideoQuality.INVARIANT?v:"")),y=p(()=>P0({prefix:n(u),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var x=_x(),w=_(x);let C=p(()=>e.selected?r():void 0);za(w,{get quality(){return n(C)},get label(){return n(y)},get isMobile(){return a()},isSubCase:!0}),m(x),b(t,x),U(),o()}var $x=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},yx={br:!0,span:!0},Iv=(t,e={})=>{if(!t)return t;let i={...yx,...e},o=Object.keys(i);if(!o.length)return t;let r=$x(o),s=[],a=0;for(let d of t.matchAll(r)){let l=d[0],f=d.groups?.keyhtml||d.groups?.keyi18n||d.groups?.keyhtmlself||d.groups?.keyi18nself||"",{index:g}=d;if(!i[f]){s.push(t.slice(a,g)),a=g+l.length;continue}let v=d.groups?.childrenhtml?Iv(d.groups.childrenhtml,i):"",u=d.groups?.childrenhtml?l.replace(new RegExp(d.groups?.childrenhtml),()=>v||""):l;s.push(t.slice(a,g),u),a=g+l.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function mc(t,e){F(e,!1);let i=h(e,"message",8),o=Iv(i());Vo();var r=Le(),s=ce(r);{var a=d=>{var l=Le(),f=ce(l);$d(f,()=>o),b(d,l)};M(s,d=>{o&&d(a)})}b(t,r),U()}var xx=E('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),wx={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Ev(t,e){F(e,!1),z(t,wx),Vo();var i=xx(),o=_(i);let r=sn(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));mc(o,{get message(){return n(r)}}),m(i),b(t,i),U()}var V0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Fl,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Av=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?Fl:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),R0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Ev,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Pv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Q("high_quality"),valueComponent:t?Fl:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Mv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Q("traffic_saving_quality"),valueComponent:t?Fl:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var Xu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Ju=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=Xd(i)??i),o&&i&&r){let a=e.filter(d=>d.label===o&&d.language===i);if(a.length===1)return Q("audio_stream_display_language_label",{language:r,label:o});{let d=Xu(t,a);return Q("audio_stream_display_language_label_index",{language:r,label:o,index:d})}}if(o){let a=e.filter(d=>d.label===o);if(a.length===1)return o;{let d=Xu(t,a);return Q("audio_stream_display_label_index",{label:o,index:d})}}if(i&&r){let a=e.filter(d=>d.language===i);if(a.length===1)return r;{let d=Xu(t,a);return Q("audio_stream_display_language_index",{language:r,index:d})}}let s=Xu(t,e);return Q("audio_stream_display_unknown",{index:s})};var Sx={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Av,selected:e&&!o&&!r||!1}),s.push({handler:Mv,selected:o},{handler:Pv,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[R0(t),...s.map(({handler:a,selected:d})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),V0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:za,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Av,selected:$u()?.type==="auto_quality"},{handler:Mv,selected:$u()?.type==="traffic_saving"},{handler:Pv,selected:$u()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===i?.id,label:Ju(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Q("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:Q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Cn?"sub_off":void 0}))})},N0=({subMenuId:t,context:e})=>t?[Sx[t](e)]:[];var Cx=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Lv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Cx();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Tx=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Vv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var kx=xe('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 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.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Rv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=kx();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Ix=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Nv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Ex=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 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" clip-rule="evenodd"></path></svg>');function Ov(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Ax=xe('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function ep(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Px=xe('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Dv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Px();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Mx=E('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Lx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Bv(t,e){F(e,!0),z(t,Lx);let[i,o]=Me(),r=()=>$(f,"$currentQuality$",i),s=()=>$(g,"$availableQualities$",i),a=()=>$(v,"$isAutoQualityEnabled$",i),d=()=>$(u,"$isMobile$",i),l=ve(),f=l.state.currentQuality$,g=l.state.availableQualities$,v=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,y=p(()=>A0({quality:r(),availableQualities:s(),isAutoQualityEnabled:a()}));var x=Mx(),w=_(x);za(w,{get quality(){return r()},get label(){return n(y)},get isMobile(){return d()}}),m(x),b(t,x),U(),o()}var Rx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_quality",{actual:o}),icon:zd,label:Q("menu_quality"),value:e,valueComponent:Bv,weight:Hr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Hr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Lv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Ju(t,e);return{id:"AUDIO_LANGUAGES",weight:Hr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Vv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:Hr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Rv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Hr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Wd,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Hr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:Nv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Hr.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Ov,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Hr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:ep,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Hr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:ep,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Hr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Dv,isHiddenFor:["desktop"]})},O0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>Rx[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>!r?.isHiddenFor?.length||!r?.isHiddenFor?.includes("desktop")&&!o||!r?.isHiddenFor?.includes("mobile")&&o).sort(ka)};var Ox=(t,e)=>{Au(t,e)},Dx=E('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Bx=E('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Hx=E("<div><!> <!></div>"),Fx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
|
|
317
|
+
/* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
|
|
318
|
+
.settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
|
|
319
|
+
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
320
|
+
.settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function gc(t,e){F(e,!0),z(t,Fx);let[i,o]=Me(),r=()=>$(qe,"$settingsMenuVisible",i),s=()=>$(fe,"$settingsMenuOpenedByKeyboard",i),a=()=>$(Ge,"$debugPanelVisible",i),d=()=>$(Ee,"$isMobile",i),l=()=>$(Be,"$playerSize",i),f=()=>$(De,"$hasMpegSources$",i),g=()=>$(Fe,"$mobileNotReportControlHidden$",i),v=()=>$(te,"$autoQualityLimitingAvailable$",i),u=()=>$(W,"$availableSubtitlesList$",i),y=()=>$(Qe,"$isLiveWithPlaybackSpeed",i),x=()=>$(be,"$availableAudioStreams$",i),w=()=>$(Ke,"$availablePlaybackRates$",i),C=()=>$(ae,"$currentAudioStream$",i),k=()=>$(P,"$currentPlaybackRate$",i),T=()=>$(Xe,"$trafficSavingEnabled",i),N=()=>$(Ve,"$currentQuality$",i),A=()=>$(He,"$isAutoQualityEnabled$",i),R=()=>$($e,"$currentSubtitle$",i),V=()=>$(Je,"$additionalSettingsMenuItems$",i),Z=()=>$(ue,"$isAutoQualityAvailable$",i),B=()=>$(ke,"$availableQualities$",i),J=()=>$(tt,"$highQualityEnabled",i),re=h(e,"ref",15,void 0),le=h(e,"playerControlsHeight",3,0),Y=Zt({}),ne=Zt({}),X=ve(),Ce=It(),ae=X.state.audioStream$,be=X.state.availableAudioStreams$,Ve=X.state.currentQuality$,ke=X.state.availableQualities$,te=X.state.autoQualityLimitingAvailable$,He=X.state.isAutoQualityEnabled$,ue=X.state.isAutoQualityAvailable$,P=X.state.currentPlaybackRate$,Ke=X.state.availablePlaybackRates$,$e=X.state.currentSubtitle$,W=X.state.availableSubtitlesList$,de=X.state.canDownload,De=X.state.hasMpegSources$,qe=X.ui.settingsMenu.visible$,fe=X.ui.settingsMenu.openedByBtnKeyboard$,j=X.ui.settingsMenu.ref$,Ee=X.ui.isMobile,Fe=X.ui.mobileNotReportControlHidden$,Qe=X.state.canChangePlaybackSpeed$,Xe=X.state.trafficSavingEnabled$,tt=X.state.highQualityEnabled$,Be=X.ui.playerSize,Ge=X.ui.debugPanelVisible,Lt=X.state.isInteractiveTime$,Je=X.ui.additionalSettingsMenuItems$,Rt=X.ui.t,Ft=X.actions.internal.downloadVideo,xt=X.actions.internal.closeSettingsMenu,Gt=X.actions.internal.openSettingsSubMenu,Ct=X.actions.internal.closeSettingsSubMenu,Se=K(!1),Ae=K(void 0),H=I0();Ne(()=>{!r()&&H.current&&(Ct(ne[H.current]),H.popAllSubMenus())}),Ne(()=>{r()||L(Ae,void 0)}),Ne(()=>{!H.current&&n(Ae)&&H1(Y,n(Ae))}),Ne(()=>{re()&&j.set(re())});async function _e(Tt){H.pushSubMenu(Tt),await Yi(),Gt(Tt,ne[Tt]);let Ut=re()?.firstElementChild;Ut&&Wf(Ut)}function he(Tt){Tt?.stopPropagation(),s()||e.returnFocus?.(),xt(),L(Se,!1)}function dt(Tt,Ut){X.actions.internal.setQuality(Tt,{appliesTo:Ut}),he()}function ft(Tt){X.actions.internal.setAudioStream(Tt),he()}function rt(Tt,Ut){X.actions.internal.setTrafficSavingEnabled(Tt,Ut),Ce.features.qualityDetailsSubMenuEnabled&&he()}function Vt(Tt,Ut){X.actions.internal.setHighQualityEnabled(Tt,Ut),he()}function Ze(Tt){X.actions.internal.setPlaybackRate(Tt),he()}function Re(Tt){X.actions.internal.setSubtitle(Tt),he()}function ut(){Ft()}function pt(){(0,vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function ui(){kl(X.actions.internal.getDebugTextData())}let ai=()=>{let Tt=X.actions.internal.getTraceTextData(),Ut=new Blob([...Tt],{type:"application/json"}),G=window.URL.createObjectURL(Ut);ya(G,"vk_player_trace_info","json")};function hi(){Ge.set(!a())}function St(){L(Se,!0)}function Nt(){L(Se,!1)}function _i(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-le()}px; overflow: auto;`}let oo=p(()=>de&&f()&&!g()),no=p(()=>Ce.features.trafficSaving&&!g()&&v()&&!Ce.features.qualityDetailsSubMenuEnabled),No=p(()=>u().length>0&&!g()),vi=p(()=>!!y()&&!g()),Qo=p(()=>Ce.features.audioLanguages&&x().length>=2&&!g()),Oo=p(()=>!g());Mt(()=>Lt.subscribe(Tt=>{Tt&&!d()&&!n(Se)&&!s()&&he()}));let ti=p(()=>{let Tt=[n(Oo)&&"QUALITY_SETTINGS",n(Qo)&&"AUDIO_LANGUAGES",n(vi)&&"PLAYBACK_RATE",n(No)&&"SUBTITLES",n(no)&&"TRAFFIC_SAVING_SWITCH",n(oo)&&"DOWNLOAD",Ce.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ce.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ut=>!!Ut);return O0({items:Tt,context:{qualityDetailsSubMenuEnabled:Ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:C(),availableAudioStreams:x(),currentPlaybackRate:k(),selectPlaybackRate:Ze,trafficSavingEnabled:T(),toggleTrafficSaving:rt,currentQuality:N()||vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:R(),isMobile:d(),onDownloadClick:ut,onCopyDataClick:ui,onReportProblemClick:pt,onSaveTraceDataClick:ai,toggleShowDebugInfo:hi},additionalSettingsMenuItems:V()})}),jo=p(()=>N0({subMenuId:H.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Ze,trafficSavingEnabled:T(),toggleTrafficSaving:rt,currentQuality:N()||vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Z()||!1,availableQualities:B(),highQualityEnabled:J(),toggleHighQuality:Vt,availableAudioStreams:x(),availableSubtitlesList:u(),closeSettingsMenu:xt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:ft,selectQuality:dt,selectSubtitle:Re}}));var mi=Hx();let Ui;var Go=_(mi);{var In=Tt=>{var Ut=Bx();let G;Ut.__keydown=[Ox,xt];var Ot=_(Ut);{var Kt=qt=>{var _t=Dx();let xi;var Do=_(_t),Bo=_(Do,!0);m(Do);var mo=I(Do,2);mo.__click=he,m(_t),O((zi,wi)=>{xi=ee(_t,1,"item header svelte-17or3al",null,xi,zi),pe(Bo,wi)},[()=>({mobile:d()}),()=>Rt("submenu_settings")]),b(qt,_t)};M(Ot,qt=>{d()&&qt(Kt)})}var mt=I(Ot,2);let ii;di(mt,21,()=>n(ti),qt=>qt.id,(qt,_t)=>{var xi=Le(),Do=ce(xi);{var Bo=zi=>{xv(zi,{get isMobile(){return d()},get id(){return n(_t).id},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get value(){return n(_t).value},get valueComponent(){return n(_t).valueComponent},onClick:()=>{_e(n(_t).children),L(Ae,n(_t).id,!0)},get ref(){return Y[n(_t).id]},set ref(wi){Y[n(_t).id]=wi}})},mo=(zi,wi)=>{{var jn=Xi=>{Sv(Xi,{get isMobile(){return d()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},closeSettings:he})},Zi=(Xi,bi)=>{{var Yo=vo=>{Tv(vo,{get isMobile(){return d()},get id(){return n(_t).id},get onClick(){return n(_t).onClick},get icon(){return n(_t).icon},get label(){return n(_t).label},get ariaLabel(){return n(_t).ariaLabel},get enabled(){return n(_t).enabled},get tooltipText(){return n(_t).tooltipText},get maxTooltipWidth(){return n(_t).maxTooltipWidth}})};M(Xi,vo=>{n(_t).type==="SWITCH"&&vo(Yo)},bi)}};M(zi,Xi=>{n(_t).type==="CLICK"?Xi(jn):Xi(Zi,!1)},wi)}};M(Do,zi=>{n(_t).type==="OPEN_SUB_MENU"?zi(Bo):zi(mo,!1)})}b(qt,xi)}),m(mt),ot(mt,qt=>re(qt),()=>re()),m(Ut),O((qt,_t,xi)=>{G=ee(Ut,1,"settings-menu menu svelte-17or3al",null,G,qt),ii=ee(mt,1,"items",null,ii,_t),Ye(mt,xi)},[()=>({desktop:!d(),mobile:d(),hidden:!!H.current}),()=>({mobile:d()}),_i]),vt("mouseenter",Ut,St),vt("mouseleave",Ut,Nt),b(Tt,Ut)};M(Go,Tt=>{r()&&Tt(In)})}var En=I(Go,2);di(En,17,()=>n(jo),Tt=>Tt.id,(Tt,Ut)=>{let G=p(()=>n(Ut).minWidth??137);yv(Tt,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return H.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return xt},openSubMenuList:_e,get items(){return n(Ut).items},get minWidth(){return n(G)},get refMenuItems(){return Y},get listRef(){return ne[n(Ut).id]},set listRef(Ot){ne[n(Ut).id]=Ot}})}),m(mi),O(Tt=>Ui=ee(mi,1,"settings-menu-container svelte-17or3al",null,Ui,Tt),[()=>({mobile:d(),hidden:!r()})]),b(t,mi),U(),o()}nt(["keydown","click"]);var Ux=E('<button class="btn svelte-1f0voc7"> </button>'),zx={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Hv(t,e){z(t,zx);var i=Ux();i.__click=function(...r){e.onClick?.apply(this,r)};var o=_(i,!0);m(i),O(()=>pe(o,e.label)),b(t,i)}nt(["click"]);var Wx=E('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Kx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
321
|
+
/**
|
|
322
|
+
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
323
|
+
*/pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function hc(t,e){F(e,!0),z(t,Kx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=It(),{ui:{t:r}}=ve(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var a=Wx(),d=_(a),l=_(d),f=_(l),g=_(f);mc(g,{get message(){return s}}),m(f);var v=I(f,2);{var u=x=>{let w=p(()=>r("slow_video_notification_button"));Hv(x,{get label(){return n(w)},get onClick(){return e.onSelectAutoQuality}})};M(v,x=>{o||x(u)})}m(l);var y=I(l,2);xs(y,{get onClick(){return e.onClose}}),m(d),m(a),Nr(3,d,()=>rs,()=>({duration:i})),b(t,a),U()}var _c=require("@vkontakte/videoplayer-shared"),Wa="annotation",tp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:a}=i;e.setAttribute("slot",Wa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),a&&this.store?.ui.isControlsAvailable.set(!1)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:a,hiddenControls:d}=this.store?.ui||{},l=new MutationObserver(g=>g.forEach(()=>{let v=Ss(s,this.shadowRootContainer);o.forEach(u=>{let y=a?.[u],x=y?me(y):null,w=d?.[u];x&&w?.set((0,_c.isIntersecting)(x,v))})}));l.observe(s,{childList:!0,subtree:!0}),r.observer=l;let f=new _c.Subscription;o.forEach(g=>{a&&f.add(a[g].subscribe(v=>{let u=d?.[g];v&&v.isDisplayed?u?.set((0,_c.isIntersecting)(v,Ss(s,this.shadowRootContainer))):u?.set(!1)}))}),r.subs=f}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,a=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){a.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),r(s)}});a.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=a)})}remove(e){let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:a,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[r,s].forEach(f=>f?.disconnect()),a?.unsubscribe(),this.slots.delete(e),l&&this.store?.ui.isControlsAvailable.set(!0),d?.controlsToObserve?.forEach(f=>{this.store?.ui.hiddenControls[f]?.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var qx=E('<div class="container svelte-16aykgd"><!></div>'),Qx={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
324
|
+
|
|
325
|
+
animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
326
|
+
|
|
327
|
+
@keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
|
|
328
|
+
from {
|
|
329
|
+
opacity: 0;
|
|
330
|
+
scale: 0.6;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
10% {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
scale: 1;
|
|
336
|
+
animation-timing-function: ease-in;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
75% {
|
|
340
|
+
opacity: 1;
|
|
341
|
+
scale: 1;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
90% {
|
|
345
|
+
opacity: 0;
|
|
346
|
+
scale: 0.4;
|
|
347
|
+
animation-timing-function: ease-out;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
to {
|
|
351
|
+
opacity: 0;
|
|
352
|
+
scale: 0;
|
|
353
|
+
}
|
|
354
|
+
}`};function bc(t,e){z(t,Qx);let i=h(e,"isPrev",3,!1);var o=Le(),r=ce(o);_s(r,()=>e.Icon,s=>{var a=qx(),d=_(a);gi(d,()=>e.Icon,(l,f)=>{f(l,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),m(a),O(()=>Ye(a,`animation-duration: ${e.duration}ms`)),b(s,a)}),b(t,o)}var Fv=require("@vkontakte/videoplayer-core"),jx=E('<div class="container svelte-1sw36pi"><!></div>'),Gx={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Uv(t,e){F(e,!0),z(t,Gx);let[i,o]=Me(),r=()=>$(l,"$playbackState$",i),s=()=>$(g,"$previewTrackActive",i),a=()=>$(v,"$previewTrackDragInProgress",i),d=()=>$(f,"$isPlaying$",i),{state:{playbackState$:l,isPlaying$:f},ui:{previewTrackActive:g,previewTrackDragInProgress:v}}=ve(),{features:{playbackStatusShow:u},playbackStatusAnimationDuration:y}=It(),x=0,w=K(null),C=K(!1);Ne(()=>{r()===Fv.PlaybackState.PLAYING?L(w,Qn,!0):r()===Fv.PlaybackState.PAUSED?L(w,Ts,!0):L(w,null)}),Ne(()=>{if(!(!u||s()||a()))return x=window.setTimeout(()=>{x=0,L(w,null)},y),()=>{x&&(window.clearTimeout(x),x=0)}}),Ne(()=>{d()&&!n(C)&&(L(C,!0),L(w,null))});var k=Le(),T=ce(k);{var N=A=>{var R=jx(),V=_(R);bc(V,{get duration(){return y},get Icon(){return n(w)}}),m(R),b(A,R)};M(T,A=>{n(w)&&u&&A(N)})}b(t,k),U(),o()}var Yx=E('<div><div data-testid="video-container"></div></div>'),Zx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
355
|
+
.video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ka(t,e){F(e,!0),z(t,Zx);let[i,o]=Me(),r=()=>$(g,"$rotateAlpha",i),s=()=>$(v,"$playerSize",i),a=()=>$(f,"$playerPhase",i),d=()=>$(u,"$isPlaying$",i),l=h(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:g,playerSize:v},state:{isPlaying$:u}}=ve(),{isSmoothVideoRotate:y}=It(),x=p(()=>l()&&r()%180?s().height/s().width:1);var w=Yx();let C;w.__contextmenu=function(...N){e.onContextMenu?.apply(this,N)},w.__mousedown=function(...N){e.onMouseDown?.apply(this,N)},w.__mouseup=function(...N){e.onMouseUp?.apply(this,N)},w.__click=function(...N){e.onClick?.apply(this,N)},w.__dblclick=function(...N){e.onDblClick?.apply(this,N)};var k=_(w);let T;ot(k,N=>l(N),()=>l()),m(w),O((N,A)=>{C=ee(w,1,"video-wrapper svelte-1czns9r",null,C,N),T=ee(k,1,"video-container svelte-1czns9r",null,T,A),Ye(k,`transform: rotate(${r()}deg) scale(${n(x)})`),Oe(k,"data-is-playing",d())},[()=>({hidden:a()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,w),U(),o()}nt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Xx=xe('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function zv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var Jx=E('<div><span class="text svelte-1gi6268"> </span> <!></div>'),e5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function Wv(t,e){F(e,!0),z(t,e5);let{ui:{t:i}}=ve();var o=Jx();let r;var s=_(o),a=_(s,!0);m(s);var d=I(s,2);zv(d,{}),m(o),O((l,f)=>{r=ee(o,1,"root svelte-1gi6268",null,r,l),pe(a,f)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),U()}var t5=E('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),i5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function Kv(t,e){F(e,!1),z(t,i5);let o=ve().actions.internal.closePreviewTrack,r=200,s=f=>{f.stopPropagation(),o()};Vo();var a=t5();a.__click=s;var d=_(a),l=_(d);return Qn(l,{width:"40",height:"40",viewBox:"0 0 24 24"}),m(d),m(a),Nr(3,a,()=>rs,()=>({duration:r})),b(t,a),uf(e,"handleClick",s),U({handleClick:s})}nt(["click"]);var o5=E('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),n5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
356
|
+
/**
|
|
357
|
+
* \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
|
|
358
|
+
*/pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function qv(t,e){F(e,!1),z(t,n5);let{ui:{t:i}}=ve();Vo();var o=o5(),r=_(o),s=_(r),a=_(s,!0);m(s),m(r),m(o),O(d=>pe(a,d),[()=>i("preview_track_notification_text")],sn),Nr(3,r,()=>rs,()=>({duration:340})),b(t,o),U()}var r5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},s5=E("<div><!></div>"),a5=E('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),l5=E("<div><!></div>"),d5=E('<div class="settings-menu svelte-nqua3g"><!></div>'),c5=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),u5=E("<!> <!> <!>",1),p5=E('<div class="blocked svelte-nqua3g"></div>'),f5=E('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),m5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function jv(t,e){F(e,!0),z(t,m5);let[i,o]=Me(),r=()=>$(Si,"$notificationsToShow$",i),s=()=>$(oo,"$playerPhase",i),a=()=>$(Go,"$isLoaderVisible",i),d=()=>$(St,"$adPlaybackState",i),l=()=>$(Kt,"$crashed",i),f=()=>$(zi,"$isInteractiveTime$",i),g=()=>$(Qo,"$settingsMenuVisible",i),v=()=>$(wi,"$isInteractiveExpectation$",i),u=()=>$(vi,"$controlsVisible",i),y=()=>$(Zi,"$touched",i),x=()=>$(br,"$graphIsOpened$",i),w=()=>$(no,"$isFullscreen",i),C=()=>$(ss,"$autoplayNextEnabled$",i),k=()=>$(Ut,"$postrollPassed",i),T=()=>$(In,"$isEnded$",i),N=()=>$(eo,"$cursorInside",i),A=()=>$(ro,"$isControlsAvailable",i),R=()=>$(go,"$doubleForwardOn$",i),V=()=>$(hr,"$fakeIsPlaying$",i),Z=()=>$(hn,"$bottomNoSmooth",i),B=()=>$(vo,"$interactiveTimeIndicator",i),J=()=>$(xi,"$playerSize",i),re=()=>$(Do,"$is3DVideo",i),le=()=>$(Zo,"$doubleForwardAvailable$",i),Y=()=>$(mi,"$contextMenuVisible$",i),ne=()=>$(hi,"$playbackState$",i),X=()=>$(Xi,"$hotKeyMapData",i),Ce=()=>$(ti,"$scrubbingInProgress",i),ae=()=>$(jo,"$volumeChangingInProgress",i),be=()=>$(En,"$chromecastConnected$",i),Ve=()=>$(_o,"$controlsTimeoutActive",i),ke=()=>$(Oo,"$settingsMenuOpenedByKeyboard",i),te=()=>$(We,"$contextMenuOpenedByKeyboard$",i),He=()=>$(Co,"$contextMenuOpenedByHotKey$",i),ue=()=>$(Qt,"$contextMenuButtonRef$",i),P=()=>$(Vi,"$contextMenuLastActiveElem$",i),Ke=()=>$(No,"$isFullscreenOpenedByKeyboard",i),$e=()=>$(ai,"$language$",i),W=()=>$(ls,"$previewTrackActive$",i),de=()=>$(Bo,"$icon3DVideoVisible",i),De=()=>$(Tt,"$chromecastDeviceName$",i),qe=()=>$(qt,"$currentSubtitle$",i),fe=()=>$(_t,"$currentSubtitleCaptions$",i),j=()=>$(Nt,"$position$",i),Ee=()=>$(_i,"$duration$",i),Fe=()=>$(G,"$isLive$",i),Qe=()=>$(Ot,"$isPlaying$",i),Xe=()=>$(Yn,"$contextMenuPosition$",i),tt=()=>$(fn,"$previewTrackNotificationVisible$",i),Be=()=>$(bi,"$showHotKeyMap",i),Ge=()=>$(Ui,"$debugPanelVisible",i),Lt=()=>$(Ur,"$userActionsDisabled$",i),Je=h(e,"videoContainer",15),Rt=h(e,"adsSlotId",3,void 0),Ft=h(e,"adsParams",3,void 0),xt=h(e,"adsAutoplayParam",3,void 0),Gt=h(e,"duration",3,void 0),Ct=h(e,"logoTargetUrl",3,""),Se=h(e,"showNextPrevButtons",3,!1),Ae=h(e,"nextButtonActive",3,!1),H=h(e,"prevButtonActive",3,!1),_e=h(e,"endScreenVideoTitle",3,void 0),he=h(e,"endScreenVideoThumb",3,void 0),dt=h(e,"isOneVideoPlaylist",3,!1),ft=h(e,"shadowRootContainer",3,void 0),rt=h(e,"outerContainerRef",3,void 0),Vt=h(e,"playerStarted",3,!1),Ze=h(e,"fullScreenTarget",3,void 0),Re=h(e,"showMiniTimer",3,!1),ut=h(e,"showEndScreen",3,!0),pt=h(e,"keyboardControls",15),ui=e.store.getLogger().createComponentLog("Root component"),ai=e.store.interfaceLanguage$,hi=e.store.state.playbackState$,St=e.store.ads.playbackState,Nt=e.store.state.positionWithScrubbing$,_i=e.store.state.duration$,oo=e.store.playerPhase,no=e.store.ui.isFullscreen,No=e.store.ui.isFullscreenOpenedByKeyboard,vi=e.store.ui.controlsVisible,Qo=e.store.ui.settingsMenu.visible$,Oo=e.store.ui.settingsMenu.openedByBtnKeyboard$,ti=e.store.ui.scrubbingInProgress,jo=e.store.ui.volumeChangingInProgress,mi=e.store.ui.contextMenu.visible$,Ui=e.store.ui.debugPanelVisible,Go=e.store.state.isLoaderVisible,In=e.store.state.isEnded$,En=e.store.state.chromecastConnected$,Tt=e.store.state.chromecastDeviceName$,Ut=e.store.ads.postrollPassed,G=e.store.state.isLive$,Ot=e.store.state.isPlaying$,Kt=e.store.state.crashed$,mt=e.store.webApi.annotationsApi,ii=e.store.webApi.pictureInPictureApi,qt=e.store.state.currentSubtitle$,_t=e.store.state.currentSubtitleCaptions$,xi=e.store.ui.playerSize,Do=e.store.ui.is3DVideo,Bo=e.store.ui.icon3DVideoVisible,mo=e.store.state.isInteractive,zi=e.store.state.isInteractiveTime$,wi=e.store.state.isInteractiveExpectation$,jn=e.store.state.hasInteractiveBranches,Zi=e.store.ui.touched,Xi=e.store.ui.modals.hotKeyMap.data,bi=e.store.ui.modals.hotKeyMap.show,Yo=e.store.ui.overlayContainer$,vo=e.store.ui.controls.interactiveTimeIndicator,Gn=e.store.state.showInteractiveTimeIndicator,Yn=e.store.ui.contextMenu.position$,vr=e.store.actions.internal.setQuality,Fr=e.store.actions.internal.closeSettingsMenu,ss=e.store.ui.autoplayNextEnabled$,Ur=e.store.ui.userActionsDisabled,ro=e.store.ui.isControlsAvailable,An=e.store.ui.videoTitleInfo,go=e.store.ui.doubleForwardOn$,Zo=e.store.ui.doubleForwardAvailable$,fn=e.store.ui.previewTrackNotificationVisible,Zn=e.store.actions.internal.getVideoElement,gr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:hr,notifications$:_r,graphIsOpened$:br}=io(),Pi=K(void 0),$r=K(void 0),mn=K(void 0),Xo=K(void 0),Ji,Xn,vn;Xi.set(V1());let{closeNotification:ct,notificationsToShow$:Si}=_r,yr=p(()=>!!r().slow_video),Pn=()=>ct("slow_video"),xr=p(()=>(s()==="video"&&a()||s()==="ads"&&d()==="inactive")&&!l()),gn=K(void 0),hn=ie(!1),ho,_o=ie(!1),Jo=ie(),eo=ie(!1),bo=K(!1),Ho=K(!1),Jn=K(!1),wr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),en=p(()=>f()&&!g()&&!(n(bo)||n(Ho))&&!(n(Jn)&&!v())),Ci=!0,er=p(()=>e.uiConfig.features.thumbTimer&&Re()&&s()==="video"&&!u()&&!l()&&!mo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Sr=p(()=>s()==="video"&&!x()&&w()),_n=K(!1),Mn=p(()=>(ut()||e.showAutoplayNext&&C())&&!!_e()&&!!he()&&(e.showAds&&k()||!e.showAds)&&T()&&!l()&&!n(_n)),bt=p(()=>N()&&!(u()||n(Mn))&&!f()&&A()&&!R()),zt=K(!1),Wt=p(()=>V()!==null),{toggle:$o}=hr,yo=!1,bn=null;ii?.setContext(od());let zr=()=>{e.autoplay&&!mo&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zr});let Wr=()=>{window.clearTimeout(Ji),_o.set(!1)},tr=()=>{window.clearTimeout(Xn),Jo.set(null)},Ti=we=>{Wr(),_o.set(!0),Ji=window.setTimeout(()=>_o.set(!1),we);let kt=we-100;ho=window.setTimeout(()=>{Z()&&hn.set(!1)},kt>0?kt:we)},ir=(we,kt)=>{tr(),Jo.set(kt),Xn=window.setTimeout(()=>Jo.set(null),we)},xo=Do.subscribe(we=>{Bo.set(we),we&&(window.clearTimeout(vn),vn=window.setTimeout(()=>Bo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ln=async()=>{let we=Bs();if(we){let kt=Ad(),Yt=Tr();we=kt===Yt||kt===ft()}if(we){Ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await ii?.exit()}catch(kt){ui({message:String(kt)})}}no.set(we),e.store.getAdmanWrapper().setFullscreen(we),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Vn=we=>{let{width:kt,height:Yt}=we.target;xi.set({width:kt,height:Yt})},Cr=()=>{let{width:we,height:kt}=n(Pi).getBoundingClientRect();xi.set({width:we,height:kt})};Mt(()=>(Iu(Ln),e.uiConfig.features.annotationsInside&&mt?.init(n(Pi)),Ca(ii)&&(ii?.assignPlayerContainer(n(Pi)),ii?.setExternalEventHandlers({resize:Vn,leavepictureinpicture:Cr})),e.interactiveContainer&&Je().parentElement?.insertBefore(e.interactiveContainer,Je().nextSibling),()=>{window.clearTimeout(Ji),window.clearTimeout(ho),window.clearTimeout(Xn),window.clearTimeout(vn),xo(),ii?.dispose().catch(kt=>{ui({message:String(kt)})}),Eu(Ln)}));let Tr=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!rt()?n(Pi):rt(),kt=we.getRootNode(),Yt=kt instanceof ShadowRoot?kt.host:kt,jt=Ze()instanceof HTMLElement&&Ze().contains(Yt);return e.uiConfig.allowChangingFullscreenTarget&&Ze()&&jt?Ze():we},tn=()=>{mi.set(!1)},on=()=>{Fr(),tn()},or=async()=>{if(!gr()){ui({message:"fullscreen disabled"});return}tn(),Bs()?(await ku(document),ui({message:"exit fullscreen"})):(ui({message:"request fullscreen"}),await Tu(Tr()))},it=we=>{x()||(we.preventDefault(),mi.set(!0),Yn.set({left:we.clientX,top:we.clientY}))};function At(){eo.set(!0),mo||Ti(e.uiConfig.controls.hideTimeoutCursor)}function Jt(we){let{relatedTarget:kt}=we,jt=!!(kt&&n(mn)?.contains(kt))&&pt()?.isFocused();!mo&&!jt&&(hn.set(!0),Ti(e.uiConfig.controls.hideTimeoutCursor))}function Mi(){eo.set(!1),L(Ho,!1),L(bo,!1),yo=!1,e.store.actions.internal.releaseCamera(),Ti(e.uiConfig.controls.hideTimeout),R()&&Li()}function Wi(we){return we?we.offsetTop+Wi(we.offsetParent):0}function to(we){return we?we.offsetLeft+to(we.offsetParent):0}function so(we){if(B()&&Gn){let kt=we.currentTarget,Yt=Wi(kt),jt=to(kt),Ni=we.pageX-jt,nn=we.pageY-Yt,{left:ao,bottom:Oi,right:qr}=B(),ar=qr-ao;return Ni>=ao-ar&&nn<=Oi+ar}}function wo(we){if(n(Pi)){let kt=Wi(we.currentTarget),Yt=J().height,jt=we.pageY-kt;if(so(we)){L(Ho,!1);return}jt<40?L(Ho,!0):jt>Yt-40?L(bo,!0):(L(Ho,!1),g()||L(bo,!1))}}function Fo(we){wo(we),!n(en)&&!R()&&Ti(e.uiConfig.controls.hideTimeoutCursor),re()&&yo&&bn&&e.store.actions.internal.moveCameraFocusPX(bn.clientX-we.clientX,bn.clientY-we.clientY,we.timeStamp-bn.timeStamp),bn=we}let Ki=null,qi=()=>{Ki=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Wr()},e.uiConfig.doubleForwardActivationTime)},Li=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ki&&clearTimeout(Ki),Ki=null},nr=we=>{we.preventDefault(),we.button===0&&(yo=!0,e.store.actions.internal.holdCamera(),le()&&qi()),!yo&&Ti(e.uiConfig.controls.hideTimeoutCursor)},So=we=>{we.preventDefault(),we.button===0&&(bn=we,yo=!1,e.store.actions.internal.releaseCamera()),!R()&&Ti(e.uiConfig.controls.hideTimeoutCursor)},kr=we=>{we.preventDefault(),Ci&&(ui({message:"double click on video"}),or(),Ti(e.uiConfig.controls.hideTimeoutCursor))},Ir=we=>{if(we.preventDefault(),R()){Li();return}if(Ki&&Li(),Y()||g()){on();return}if(!(T()&&!jn)){if(n(Wt))return $o();if(pt()?.focus(),!Vt()){e.firstStart(),Ti(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==Qv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ti(e.uiConfig.controls.hideTimeoutCursor)}},Er=we=>{on(),Zi.set(!0),Ti(e.uiConfig.controls.hideTimeout),we&&ir(e.uiConfig.controls.hideHotKeyHelpers,we)},Kr=()=>{on(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(X()):bi.update(we=>!we)},as=()=>{Zi.set(!0)},We=e.store.ui.contextMenu.openedByBtnKeyboard$,Qt=e.store.ui.contextMenu.btnRef$,pi=K(void 0),Co=e.store.ui.contextMenu.openedByHotKey$,Vi=e.store.ui.contextMenu.lastActiveElem$,ls=e.store.ui.previewTrackActive;Ne(()=>{Yo.set(n(gn))}),Ne(()=>{L(Jn,n(wr)&&ne()!==Qv.PlaybackState.PLAYING,!0),n(wr)||wt(()=>L(wr,!0))}),Ne(()=>{let we=(n(Jn)||T()||g()||Ce()||ae()||be()||Ve())&&!n(en)&&(s()==="video"||s()==="ads")&&!l()&&A();vi.set(we),!we&&!Ve()&&e.uiConfig.returnFocusOnControlsHide&&n(mn)?.contains(Ru())&&pt()?.focus()}),Ne(()=>{!Ce()&&n(zt)&&!f()&&Ti(e.uiConfig.controls.hideTimeoutCursor),wt(()=>L(zt,Ce(),!0))}),Ne(()=>{n(Xo),g(),ke(),wt(()=>Od(n(Xo),g(),ke()))}),Ne(()=>{n(pi),Y(),te(),He(),wt(()=>{let we=te()||He();Od(n(pi),Y(),we)})}),Ne(()=>{let we=ue();we&&(Y(),wt(()=>Il(we,Y(),We)))}),Ne(()=>{let we=P();we&&(Y(),wt(()=>B1(we,Y(),Co)))}),Ne(()=>{!Ke()&&w()&&(wt(()=>No.set(!1)),pt()?.focus())}),Ne(()=>{x()&&on()});let To=Q("video360"),Rn=K(void 0),js=we=>{An.set(Tn(Zn(),{title:n(Rn)},"title",we))},Gs=(we,kt)=>{let Yt=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!Yt)return;let jt=!!kt,Ni={...Tn(n(Pi),{upcomingLiveScreen:kt},"upcomingLiveScreen",jt),...we};Yt(Ni)};var Es=f5();vt("blur",ca,on);var Ri=ce(Es);Ri.__mousemove=Fo;var st=_(Ri);let ei=p(()=>s()==="ads"),ko=p(()=>n(Wt)?$o:void 0);ot(Xf(st,{startDoubleForwardActivationTimer:qi,stopDoubleForward:Li,toggleFullscreen:or,hideContextMenu:on,showHotKeyHelpers:Er,showKeyMap:Kr,get isAds(){return n(ei)},get fakePlayButtonHandler(){return n(ko)},get nextButtonActive(){return Ae()},get prevButtonActive(){return H()},children:(we,kt)=>{var Yt=u5(),jt=ce(Yt);Ka(jt,{get hideCursor(){return n(bt)},onClick:Ir,onContextMenu:it,onMouseDown:nr,onMouseUp:So,onDblClick:kr,get videoContainer(){return Je()},set videoContainer(ao){Je(ao)}});var Ni=I(jt,2);ga(Ni,()=>"slot",!1,(ao,Oi)=>{Te(ao,()=>({name:Wa}))});var nn=I(Ni,2);_s(nn,$e,ao=>{var Oi=c5(),qr=ce(Oi);let ar=p(()=>s()!=="thumb"||l()||mo&&e.autoplay);Fa(qr,{get hidden(){return n(ar)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:it,onClick:tn});var ja=I(qr,2);{var Ys=Ue=>{Kv(Ue,{})};M(ja,Ue=>{W()&&Ue(Ys)})}var Zs=I(ja,2);Uv(Zs,{});var Xs=I(Zs,2);Wv(Xs,{get isVisible(){return R()}});var On=I(Xs,2);{var ds=Ue=>{let ni=p(()=>e.live?.startTime);pc(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ni)},onUpcomingLiveViewStateChanged:Gs,onContextMenu:it,onClick:tn})};M(On,Ue=>{s()==="LiveWaitingStart"&&Ue(ds)})}var Js=I(On,2);{var lr=Ue=>{Ua(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:it,onClick:tn})};M(Js,Ue=>{s()==="LiveWaitingRecover"&&Ue(lr)})}var Ga=I(Js,2);{var cs=Ue=>{Ua(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:it,onClick:tn})};M(Ga,Ue=>{s()==="LiveWaitingRecord"&&Ue(cs)})}var us=I(Ga,2);{var Ya=Ue=>{var ni=s5();let Io;var ia=_(ni);Md(ia,{get adsSlotId(){return Rt()},get adsParams(){return Ft()},get adsAutoplayParam(){return xt()},get duration(){return Gt()},get adsExternalApi(){return e.adsExternalApi}}),m(ni),O(Gr=>Io=ee(ni,1,"ads-container svelte-nqua3g",null,Io,Gr),[()=>({hidden:s()!=="ads"})]),b(Ue,ni)};M(us,Ue=>{e.showAds&&Vt()&&Ue(Ya)})}var ea=I(us,2);{var Gl=Ue=>{let ni=p(()=>!ut()&&e.showAutoplayNext&&C());Gf(Ue,{get title(){return _e()},get thumb(){return he()},get isHide(){return n(ni)},clickCloseIcon:()=>L(_n,!0)})};M(ea,Ue=>{n(Mn)&&_e()&&he()&&Ue(Gl)})}var Za=I(ea,2);{var Yl=Ue=>{let ni=p(()=>!u());vv(Ue,{get title(){return e.title},get isHidden(){return n(ni)},onVisibilityChanged:js,get ref(){return n(Rn)},set ref(Io){L(Rn,Io,!0)}})};M(Za,Ue=>{n(Sr)&&Ue(Yl)})}var Dn=I(Za,2);{var Zl=Ue=>{let ni=p(()=>s()==="video"&&u());cc(Ue,{get isShifted(){return n(ni)}})};M(Dn,Ue=>{re()&&Ue(Zl)})}var Xa=I(Dn,2);{var $t=Ue=>{var ni=a5(),Io=_(ni);Ed(Io,{get"aria-label"(){return To}}),m(ni),b(Ue,ni)};M(Xa,Ue=>{de()&&Ue($t)})}var yt=I(Xa,2);{var rn=Ue=>{uc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};M(yt,Ue=>{be()&&Ue(rn)})}var dr=I(yt,2);{var ps=Ue=>{Ba(Ue,{get shifted(){return u()},get captions(){return fe()},get position(){return j()},get playerSize(){return J()}})};M(dr,Ue=>{qe().value!=="off"&&Ue(ps)})}var Qr=I(dr,2);{var jr=Ue=>{var ni=l5();ni.__contextmenu=it,ni.__click=[r5,Y,mi,g,Qo,on];var Io=_(ni);Ha(Io,{}),m(ni),b(Ue,ni)};M(Qr,Ue=>{l()&&Ue(jr)})}var As=I(Qr,2);{var Xl=Ue=>{let ni=p(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Io=p(()=>s()==="ads"),ia=p(()=>e.canRewindLive&&Ee()!==0);dc(Ue,{get bottomHidden(){return n(ni)},get bottomNoSmooth(){return Z()},get showControls(){return u()},get isAds(){return n(Io)},get canRewindLive(){return n(ia)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ct()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Se()},get nextButtonActive(){return Ae()},get prevButtonActive(){return H()},get isOneVideoPlaylist(){return dt()},customFullscreenSupported:Ci,toggleFullscreen:or,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n($r)},set playerControlsWrapperRef(Gr){L($r,Gr,!0)},get playerControlsRef(){return n(mn)},set playerControlsRef(Gr){L(mn,Gr,!0)}})};M(As,Ue=>{Vt()&&Ue(Xl)})}var Ac=I(As,2);{var hp=Ue=>{var ni=d5(),Io=_(ni);let ia=p(()=>n(mn)?.clientHeight);gc(Io,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ia)},returnFocus:()=>pt()?.focus(),get ref(){return n(Xo)},set ref(Gr){L(Xo,Gr,!0)}}),m(ni),b(Ue,ni)};M(Ac,Ue=>{!be()&&s()!=="ads"&&Ue(hp)})}var Pc=I(Ac,2);let _p=p(()=>!n(er));Rd(Pc,{get isLive(){return Fe()},get isHidden(){return n(_p)},get isPlaying(){return Qe()},get position(){return j()},get duration(){return Ee()}});var ta=I(Pc,2);uv(ta,{get data(){return Jo}});var Mc=I(ta,2);Qf(Mc,{get supportLink(){return e.supportLink},returnFocus:()=>pt()?.focus(),get visible(){return Y()},get playerContainerRef(){return n(Pi)},get position(){return Xe()},get menuElementRef(){return n(pi)},set menuElementRef(Ue){L(pi,Ue,!0)}});var Ps=I(Mc,2);{var Ja=Ue=>{hc(Ue,{onClose:Pn,onSelectAutoQuality:()=>{vr("auto"),Pn()}})};M(Ps,Ue=>{n(yr)&&Ue(Ja)})}var Lc=I(Ps,2);{var Vc=Ue=>{qv(Ue,{})};M(Lc,Ue=>{tt()&&Ue(Vc)})}var el=I(Lc,2);{var Rc=Ue=>{Ea(Ue,{})};M(el,Ue=>{n(xr)&&Ue(Rc)})}var Nc=I(el,2);{var Oc=Ue=>{tm(Ue,{})};M(Nc,Ue=>{Be()&&Ue(Oc)})}var bp=I(Nc,2);{var $p=Ue=>{Bd(Ue,{})};M(bp,Ue=>{Ge()&&Ue($p)})}b(ao,Oi)}),b(we,Yt)},$$slots:{default:!0}}),we=>pt(we),()=>pt());var rr=I(st,2);ot(rr,we=>L(gn,we),()=>n(gn)),m(Ri),ot(Ri,we=>L(Pi,we),()=>n(Pi));var Nn=I(Ri,2);{var sr=we=>{var kt=p5();b(we,kt)};M(Nn,we=>{Lt()&&we(sr)})}vt("mouseenter",Ri,At),vt("mouseleave",Ri,Mi),vt("click",Ri,as,!0),vt("focusin",Ri,Jt,!0),b(t,Es),U(),o()}nt(["mousemove","contextmenu","click"]);var Qs=require("@vkontakte/videoplayer-core"),W0=require("@vkontakte/videoplayer-shared");var v5=E('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),g5=E("<div><!></div>"),h5={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
|
|
359
|
+
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
360
|
+
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
361
|
+
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
362
|
+
.triangle.left.svelte-nhq2ld:nth-child(1) {animation-delay:200ms;}
|
|
363
|
+
|
|
364
|
+
@keyframes svelte-nhq2ld-blink {
|
|
365
|
+
0% {
|
|
366
|
+
opacity: 0;
|
|
367
|
+
}
|
|
368
|
+
50% {
|
|
369
|
+
opacity: 1;
|
|
370
|
+
}
|
|
371
|
+
100% {
|
|
372
|
+
opacity: 0;
|
|
373
|
+
}
|
|
374
|
+
}.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function ip(t,e){F(e,!0),z(t,h5);let i=h(e,"seekStep",3,0),o=K(!1),r=0,s=0,a=K(Zt(i())),d=v=>{v.stopPropagation(),s+=1,L(a,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(L(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,L(o,!1)},300)};Ko(()=>{window.clearTimeout(r)});var l=g5();l.__click=d;var f=_(l);{var g=v=>{var u=v5(),y=ce(u),x=I(y,2),w=_(x),C=_(w),k=I(C,2),T=I(k,2);m(w);var N=I(w,2),A=_(N,!0);m(N),m(x),O(R=>{ee(y,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),ee(k,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),pe(A,R)},[()=>Q("doubletap_seek_step",{seconds:n(a).toFixed(0)})]),b(v,u)};M(f,v=>{n(o)&&v(g)})}m(l),O(()=>ee(l,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,l),U()}nt(["click"]);var _5=(t,e,i)=>{e(!1),i()},b5=E('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),$5={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Gv(t,e){F(e,!0),z(t,$5);let[i,o]=Me(),r=()=>$(d,"$autoplayNextEnabled$",i),s=()=>$(l,"$timerNextVideoRunning$",i),a=ve(),d=a.ui.autoplayNextEnabled$,l=a.ui.timerNextVideoRunning$,f=a.actions.internal.nextVideoClick,g=a.actions.internal.nextVideoAnnouncementShow,v=a.actions.internal.nextVideoAnnouncementClick,u=a.actions.internal.nextVideoAnnouncementAuto,y=a.actions.internal.nextVideoAnnouncementCancel,x=()=>{f(!1),u()},w=()=>{e.clickCloseIcon(),y()};Mt(()=>{e.isHide||g(),e.isHide&&r()&&(f(!1),u())});var C=Le(),k=ce(C);{var T=N=>{var A=b5(),R=I(ce(A),2),V=_(R),Z=_(V),B=_(Z,!0);m(Z);var J=I(Z,2);xs(J,{onClick:w}),m(V);var re=I(V,2);re.__click=[_5,f,v];var le=_(re),Y=_(le),ne=_(Y);let X;var Ce=I(ne,2);{var ae=te=>{Hd(te,{get isRunning(){return s()},onTimerEnded:x})};M(Ce,te=>{r()&&te(ae)})}m(Y),m(le);var be=I(le,2),Ve=_(be),ke=_(Ve,!0);m(Ve),m(be),m(re),m(R),O((te,He)=>{pe(B,te),Ye(Y,`background-image: url('${e.thumb}')`),X=ee(ne,1,"thumb-overlay svelte-1qdxi6t",null,X,He),pe(ke,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(N,A)};M(k,N=>{e.isHide||N(T)})}b(t,C),U(),o()}nt(["click"]);var B0=require("@vkontakte/videoplayer-core");var H0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{B0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",d)}},0))}),Ko(()=>{i?.(),clearTimeout(o)})};var F0=require("@vkontakte/videoplayer-core");var op=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};var U0=require("@vkontakte/videoplayer-core"),z0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:d}=t.state,l=null,f=()=>e().querySelector("video"),g=()=>U0.clientChecker.device.isIOS&&me(a)===F0.VideoFormat.DASH_LIVE_CMAF,v=()=>{l?.(),l=null},u=y=>{if(v(),!g()||!y)return;let x=f();if(!x)return;let w=new op(x),C=me(d),k=me(s),T=me(r);for(let R of C)k.some(Z=>Z.value===R.id)&&w.attach(R,T.value===R.id);let N=d.subscribe(R=>{for(let V of R)w.updateSrc(V)}),A=()=>{let R=w.getCurrentShowingId();o(me(s).find(V=>V.value===R))};x.textTracks.addEventListener("change",A),l=()=>{N(),w.detachAll(),x.textTracks.removeEventListener("change",A)}};Mt(()=>i.subscribe(u)),Ko(v)};var y5=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},x5=E("<!> <!>",1),w5=E("<div><!></div>"),S5=E('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),C5=E("<div><!></div>"),T5=E('<div class="settings-mobile svelte-7yl31d"><!></div>'),k5=E("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),I5=E('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),E5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Yv(t,e){F(e,!0),z(t,E5);let[i,o]=Me(),r=()=>$(ft,"$playerPhase",i),s=()=>$(St,"$isLoaderVisible",i),a=()=>$(_e,"$adPlaybackState",i),d=()=>$(ti,"$crashed",i),l=()=>$(ss,"$notificationsToShow$",i),f=()=>$(H,"$playbackState$",i),g=()=>$(Ct,"$graphIsOpened$",i),v=()=>$(Re,"$interactiveHideMobileControls",i),u=()=>$(Nt,"$isEnded$",i),y=()=>$(mt,"$isInteractiveExpectation$",i),x=()=>$(Vt,"$controlsVisible",i),w=()=>$(_t,"$touched",i),C=()=>$(Do,"$autoplayNextEnabled$",i),k=()=>$(no,"$postrollPassed",i),T=()=>$(An,"$bottomNoSmooth",i),N=()=>$(Ui,"$videoSize",i),A=()=>$(Tt,"$playerSize",i),R=()=>$(rt,"$isFullscreen",i),V=()=>$(he,"$position$",i),Z=()=>$(dt,"$duration$",i),B=()=>$(Bo,"$loadedMetadata",i),J=()=>$(ut,"$settingsMenuVisible",i),re=()=>$(ui,"$scrubbingInProgress",i),le=()=>$(ai,"$volumeChangingInProgress",i),Y=()=>$(_i,"$chromecastConnected$",i),ne=()=>$(Ze,"$isControlsAvailable",i),X=()=>$(Kt,"$isInteractiveTime$",i),Ce=()=>$(Qo,"$isActiveLive",i),ae=()=>$(pt,"$settingsMenuOpenedByKeyboard",i),be=()=>$(Ae,"$language$",i),Ve=()=>$(qt,"$disabledControls$",i),ke=()=>$(Ut,"$is3DVideo",i),te=()=>$(G,"$icon3DVideoVisible",i),He=()=>$(oo,"$chromecastDeviceName$",i),ue=()=>$(Go,"$currentSubtitle$",i),P=()=>$(In,"$currentSubtitleCaptions$",i),Ke=()=>$(En,"$realDuration$",i),$e=()=>$(No,"$isLive$",i),W=()=>$(vi,"$isPlaying$",i),de=()=>$(hi,"$debugPanelVisible",i),De=h(e,"videoContainer",15),qe=h(e,"adsSlotId",3,void 0),fe=h(e,"adsParams",3,void 0),j=h(e,"adsAutoplayParam",3,void 0),Ee=h(e,"duration",3,void 0),Fe=h(e,"logoTargetUrl",3,""),Qe=h(e,"showNextPrevButtons",3,!1),Xe=h(e,"nextButtonActive",3,!1),tt=h(e,"prevButtonActive",3,!1),Be=h(e,"endScreenVideoTitle",3,void 0),Ge=h(e,"endScreenVideoThumb",3,void 0),Lt=h(e,"isOneVideoPlaylist",3,!1),Je=h(e,"showMiniTimer",3,!1),Rt=h(e,"fullScreenTarget",3,void 0),Ft=h(e,"playerStarted",3,!1),xt=h(e,"showEndScreen",3,!0),{notifications$:Gt,graphIsOpened$:Ct}=io(),Se=e.store.getLogger().createComponentLog("Root component"),Ae=e.store.interfaceLanguage$,H=e.store.state.playbackState$,_e=e.store.ads.playbackState,he=e.store.state.positionWithScrubbing$,dt=e.store.state.duration$,ft=e.store.playerPhase,rt=e.store.ui.isFullscreen,Vt=e.store.ui.controlsVisible,Ze=e.store.ui.isControlsAvailable,Re=e.store.ui.interactiveHideMobileControls,ut=e.store.ui.settingsMenu.visible$,pt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ui=e.store.ui.scrubbingInProgress,ai=e.store.ui.volumeChangingInProgress,hi=e.store.ui.debugPanelVisible,St=e.store.state.isLoaderVisible,Nt=e.store.state.isEnded$,_i=e.store.state.chromecastConnected$,oo=e.store.state.chromecastDeviceName$,no=e.store.ads.postrollPassed,No=e.store.state.isLive$,vi=e.store.state.isPlaying$,Qo=e.store.state.isActiveLive$,Oo=e.store.state.isRewindableLive$,ti=e.store.state.crashed$,jo=e.store.webApi.annotationsApi,mi=e.store.webApi.pictureInPictureApi,Ui=e.store.state.videoSize$,Go=e.store.state.currentSubtitle$,In=e.store.state.currentSubtitleCaptions$,En=e.store.state.duration$,Tt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,G=e.store.ui.icon3DVideoVisible,Ot=e.store.state.isInteractive,Kt=e.store.state.isInteractiveTime$,mt=e.store.state.isInteractiveExpectation$,ii=e.store.state.hasInteractiveBranches,qt=e.store.ui.controls.disabledControls$,_t=e.store.ui.touched,xi=e.store.ui.overlayContainer$,Do=e.store.ui.autoplayNextEnabled$,Bo=e.store.state.loadedMetadata$,mo=e.store.actions.internal.closeSettingsMenu,zi=e.store.callbacks?.onDisabledPlayPrevChapterClick,wi=e.store.callbacks?.onDisabledSeekToInteractiveClick,jn=e.store.actions.internal.setQuality,Zi=K(void 0),Xi=K(void 0),bi=K(void 0),Yo=K(void 0),vo,Gn,Yn=p(()=>(r()==="video"&&s()||r()==="ads"&&a()==="inactive")&&!d()),vr=K(void 0),{closeNotification:Fr,notificationsToShow$:ss}=Gt,Ur=p(()=>!!l().slow_video),ro=()=>Fr("slow_video"),An=ie(!1),go,Zo=K(!1),fn=p(()=>f()!==Qs.PlaybackState.PLAYING),Zn=K(!1),gr=p(()=>g()||v()||!n(Zo)&&(u()&&!!ii||n(fn)&&y())),hr=K(!0),_r=p(()=>e.uiConfig.features.thumbTimer&&Je()&&r()==="video"&&!x()&&!d()&&!Ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),br=K(!1),Pi=p(()=>(xt()||e.showAutoplayNext&&C())&&!!Be()&&!!Ge()&&(e.showAds&&k()||!e.showAds)&&u()&&!d()&&!n(br)),$r=K(!1);mi?.setContext(od());let mn=bt=>{bt&&!Ot&&Ji(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:mn});let Xo=()=>{clearTimeout(vo),L(Zo,!1),v()&&Re.set(!1)},Ji=bt=>{Xo(),L(Zo,!0),vo=setTimeout(()=>L(Zo,!1),bt);let zt=bt-100;go=setTimeout(()=>{T()&&An.set(!1)},zt>0?zt:bt)},Xn=Ut.subscribe(bt=>{G.set(bt),bt&&(clearTimeout(Gn),Gn=setTimeout(()=>G.set(!1),e.uiConfig.controls.hide360IconTimeout))}),vn=async(bt=Bs())=>{if(bt&&!Qs.clientChecker.device.isIOS){let zt=Ad(),Wt=gn(),$o=Qs.clientChecker.browser.isSamsungBrowser&&zt===e.shadowRootContainer;bt=zt===Wt||$o}if(bt){Ji(e.uiConfig.controls.hideTimeoutFullscreen);try{await mi?.exit()}catch(zt){Se({message:String(zt)})}try{let zt=N()?.width&&N()?.height?N():A();await L1(zt)}catch(zt){Se({message:String(zt)})}}rt.set(bt),e.store.getAdmanWrapper().setFullscreen(bt),R()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},ct=bt=>{let zt=bt,{width:Wt,height:$o}=zt.target;Tt.set({width:Wt,height:$o})},Si=()=>{let{width:bt,height:zt}=n(Zi).getBoundingClientRect();Tt.set({width:bt,height:zt})};Mt(()=>(Iu(vn),e.uiConfig.features.annotationsInside&&jo?.init(n(Zi)),Ca(mi)&&(mi?.assignPlayerContainer(n(Zi)),mi?.setExternalEventHandlers({resize:ct,leavepictureinpicture:Si})),L(hr,!Qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&De().parentElement?.insertBefore(e.interactiveContainer,De().nextSibling),()=>{clearTimeout(vo),clearTimeout(go),clearTimeout(Gn),Xn(),mi?.dispose().catch(bt=>{Se({message:String(bt)})}),Eu(vn)}));let yr=K(!0),Pn=K(!0),xr=bt=>{let zt=V()+(bt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;zt<0?(L(yr,!1),zt=0):zt>=Z()&&(L(Pn,!1),zt=Z()),L(Zn,!0),e.seekTime(zt)},gn=()=>Qs.clientChecker.device.isIOS?n(Zi):!e.uiConfig.allowChangingFullscreenTarget||!Rt()?e.outerContainerRef:Rt().contains(e.outerContainerRef)?Rt():e.outerContainerRef,hn=async()=>{try{if(Bs())await ku(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),Qs.clientChecker.device.isIOS&&!B())return;await Tu(gn())}}catch(bt){Se({message:String(bt)})}},ho=()=>{mo()},_o=bt=>{if(bt.preventDefault(),J()){ho();return}if(!Ft()){e.firstStart(),Ji(e.uiConfig.controls.hideTimeoutCursor);return}L(Zn,!1),x()?Xo():Ji(e.uiConfig.controls.hideTimeoutMobile)},Jo=()=>{_t.set(!0)},eo=()=>{Ot||(An.set(!0),Ji(e.uiConfig.controls.hideTimeoutCursor))},bo=bt=>{zi&&(zi(bt),Ji(e.uiConfig.controls.hideTimeoutMobile))},Ho=bt=>{wi&&(wi(bt),Ji(e.uiConfig.controls.hideTimeoutMobile))};Ne(()=>{xi.set(n(vr))}),Ne(()=>{Vt.set((n(fn)||J()||re()||le()||Y()||!n(Pi)&&(u()||n(Zo)&&!n(Zn)))&&!n(gr)&&r()==="video"&&!d()&&ne())}),Ne(()=>{!re()&&n($r)&&!X()&&Ji(e.uiConfig.controls.hideTimeoutMobile),L($r,re(),!0)}),Ne(()=>{L(yr,V()>0),L(Pn,!Ce()&&V()<Z(),!0)}),Ne(()=>{Od(n(Yo),J(),ae(),!0)});let Jn=Q("aria_label_video_player"),wr=Q("video360");H0({fullScreenChangeHandler:vn,getFullscreenTarget:gn}),z0({store:e.store,getFullscreenTarget:gn});let en=(bt,zt)=>{let Wt=e.store.callbacks?.uiInfo?.onUpcomingLiveViewStateChanged;if(!Wt)return;let $o=!!zt,yo={...Tn(n(Zi),{upcomingLiveScreen:zt},"upcomingLiveScreen",$o),...bt};Wt(yo)};var Ci=I5();vt("blur",ca,ho);var er=_(Ci);Ka(er,{onClick:_o,get videoContainer(){return De()},set videoContainer(bt){De(bt)}});var Sr=I(er,2);ga(Sr,()=>"slot",!1,(bt,zt)=>{Te(bt,()=>({name:Wa}))});var _n=I(Sr,2);_s(_n,be,bt=>{var zt=k5(),Wt=ce(zt);let $o=p(()=>r()!=="thumb"||d()||Ot&&e.autoplay);Fa(Wt,{get hidden(){return n($o)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yo=I(Wt,2);{var bn=We=>{var Qt=x5(),pi=ce(Qt);{var Co=To=>{let Rn=p(()=>e.uiConfig.controls.seekStepMobile/1e3);ip(To,{side:"left",get seekStep(){return n(Rn)},handleSingleFirstClick:_o,handleSecondClick:()=>xr("backward")})};M(pi,To=>{n(yr)&&To(Co)})}var Vi=I(pi,2);{var ls=To=>{let Rn=p(()=>e.uiConfig.controls.seekStepMobile/1e3);ip(To,{side:"right",get seekStep(){return n(Rn)},handleSingleFirstClick:_o,handleSecondClick:()=>xr("forward")})};M(Vi,To=>{n(Pn)&&To(ls)})}b(We,Qt)};M(yo,We=>{e.canRewindLive&&Oo&&!Ve().has("TIMELINE")&&We(bn)})}var zr=I(yo,2);{var Wr=We=>{let Qt=p(()=>e.live?.startTime);pc(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Qt)},onUpcomingLiveViewStateChanged:en})};M(zr,We=>{r()==="LiveWaitingStart"&&We(Wr)})}var tr=I(zr,2);{var Ti=We=>{Ua(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(tr,We=>{r()==="LiveWaitingRecover"&&We(Ti)})}var ir=I(tr,2);{var xo=We=>{Ua(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(ir,We=>{r()==="LiveWaitingRecord"&&We(xo)})}var Ln=I(ir,2);{var Vn=We=>{var Qt=w5();let pi;var Co=_(Qt);Md(Co,{get adsSlotId(){return qe()},get adsParams(){return fe()},get adsAutoplayParam(){return j()},get duration(){return Ee()},get adsExternalApi(){return e.adsExternalApi}}),m(Qt),O(Vi=>pi=ee(Qt,1,"ads-container svelte-7yl31d",null,pi,Vi),[()=>({hidden:r()!=="ads"})]),b(We,Qt)};M(Ln,We=>{e.showAds&&Ft()&&We(Vn)})}var Cr=I(Ln,2);{var Tr=We=>{let Qt=p(()=>!xt()&&e.showAutoplayNext&&C());Gv(We,{get title(){return Be()},get thumb(){return Ge()},get isHide(){return n(Qt)},clickCloseIcon:()=>L(br,!0)})};M(Cr,We=>{n(Pi)&&Be()&&Ge()&&We(Tr)})}var tn=I(Cr,2);{var on=We=>{cc(We,{})};M(tn,We=>{ke()&&We(on)})}var or=I(tn,2);{var it=We=>{var Qt=S5(),pi=_(Qt);Ed(pi,{get"aria-label"(){return wr}}),m(Qt),b(We,Qt)};M(or,We=>{te()&&We(it)})}var At=I(or,2);{var Jt=We=>{uc(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};M(At,We=>{Y()&&We(Jt)})}var Mi=I(At,2);{var Wi=We=>{Ba(We,{get shifted(){return x()},get captions(){return P()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};M(Mi,We=>{ue().value!=="off"&&We(Wi)})}var to=I(Mi,2);{var so=We=>{var Qt=C5();Qt.__click=[y5,J,ut,ho];var pi=_(Qt);Ha(pi,{}),m(Qt),b(We,Qt)};M(to,We=>{d()&&We(so)})}var wo=I(to,2);{var Fo=We=>{let Qt=p(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),pi=p(()=>r()==="ads"),Co=p(()=>e.canRewindLive&&Ke()!==0);dc(We,{get bottomHidden(){return n(Qt)},get showControls(){return x()},get bottomNoSmooth(){return T()},get isAds(){return n(pi)},get canRewindLive(){return n(Co)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Fe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Qe()},get nextButtonActive(){return Xe()},get prevButtonActive(){return tt()},get isOneVideoPlaylist(){return Lt()},get customFullscreenSupported(){return n(hr)},get endScreenShown(){return n(Pi)},toggleFullscreen:hn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:bo,onDisabledSeekToInteractiveClick:Ho,get playerControlsWrapperRef(){return n(Xi)},set playerControlsWrapperRef(Vi){L(Xi,Vi,!0)},get playerControlsRef(){return n(bi)},set playerControlsRef(Vi){L(bi,Vi,!0)}})};M(wo,We=>{Ft()&&We(Fo)})}var Ki=I(wo,2);{var qi=We=>{var Qt=T5(),pi=_(Qt);gc(pi,{get supportLink(){return e.supportLink},get returnFocus(){return W0.noop},get ref(){return n(Yo)},set ref(Co){L(Yo,Co,!0)}}),m(Qt),b(We,Qt)};M(Ki,We=>{J()&&We(qi)})}var Li=I(Ki,2);let nr=p(()=>!n(_r));Rd(Li,{get isLive(){return $e()},get isHidden(){return n(nr)},get isPlaying(){return W()},get position(){return V()},get duration(){return Z()}});var So=I(Li,2);{var kr=We=>{Ea(We,{})};M(So,We=>{n(Yn)&&We(kr)})}var Ir=I(So,2);{var Er=We=>{Bd(We,{})};M(Ir,We=>{de()&&We(Er)})}var Kr=I(Ir,2);{var as=We=>{hc(We,{onClose:ro,onSelectAutoQuality:()=>{jn("auto"),ro()}})};M(Kr,We=>{n(Ur)&&We(as)})}b(bt,zt)});var Mn=I(_n,2);ot(Mn,bt=>L(vr,bt),()=>n(vr)),m(Ci),ot(Ci,bt=>L(Zi,bt),()=>n(Zi)),O(()=>Oe(Ci,"aria-label",Jn)),vt("click",Ci,Jo,!0),vt("focusin",Ci,eo,!0),b(t,Ci),U(),o()}nt(["click"]);function np(t){let e="";return Fi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Fi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Fi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Fi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Fi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Fi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Fi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Fi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Fi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Fi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Fi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Fi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Fi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Fi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Fi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Fi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Fi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Fi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Fi(t.font)&&(e+=`--font:${t.font};`),Fi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Fi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Fi(t){return typeof t=="string"&&!t.includes(";")}var K0=require("@vkontakte/videoplayer-shared");var A5=E('<div class="time-container svelte-1qfjf44"><!></div>'),P5=E('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),M5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Zv(t,e){F(e,!0),z(t,M5);let[i,o]=Me(),r=()=>$(X,"$scrubbingInProgress",i),s=()=>$(Y,"$playerSize",i),a=()=>$(V,"$isPlaying$",i),d=()=>$(A,"$duration$",i),l=()=>$(J,"$positionWithScrubbing$",i),f=()=>$(T,"$playerPhase",i),g=()=>$(N,"$crashed$",i),v=()=>$(Z,"$currentSubtitle$",i),u=()=>$(B,"$currentSubtitleCaptions$",i),y=()=>$(R,"$positionExact$",i),x=()=>$(re,"$isLive$",i),w=()=>$(le,"$isRewindableLive$",i),C=h(e,"outsideDuration",3,0),k=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:N,duration$:A,positionExact$:R,isPlaying$:V,currentSubtitle$:Z,currentSubtitleCaptions$:B,positionWithScrubbing$:J,isLive$:re,isRewindableLive$:le},ui:{playerSize:Y,controls:ne,scrubbingInProgress:X},actions:{internal:{getVideoElement:Ce}}}=ve(),ae=8,be=K(!1),Ve=Zt({}),ke=K(!1),te=p(()=>!r()&&!n(ke)),He=()=>{L(be,!0)},ue=()=>{L(be,!1)},P=(0,K0.debounceFn)(Ol,260);Ne(()=>{s(),P(Ce(),ne,Ve,n(be))});let Ke=p(()=>a()?Ro(d()-l()):Ro(isFinite(d())?d():C()));var $e=P5(),W=_($e);Ka(W,{hideCursor:!1,get videoContainer(){return k()},set videoContainer(Be){k(Be)}});var de=I(W,2);ga(de,()=>"slot",!1,(Be,Ge)=>{Te(Be,()=>({name:Wa}))});var De=I(de,2);let qe=p(()=>f()!=="thumb"||g());Fa(De,{get hidden(){return n(qe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=I(De,2);{var j=Be=>{Ba(Be,{shifted:!1,get captions(){return u()},get position(){return y()},get playerSize(){return s()}})};M(fe,Be=>{v().value!=="off"&&n(te)&&Be(j)})}var Ee=I(fe,2);{var Fe=Be=>{var Ge=A5(),Lt=_(Ge);Vd(Lt,{get isLive(){return x()},get isPlaying(){return a()},get time(){return n(Ke)}}),m(Ge),b(Be,Ge)};M(Ee,Be=>{n(te)&&Be(Fe)})}var Qe=I(Ee,2);let Xe;var tt=_(Qe);Na(tt,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ae,tooltipRightOffset:ae,get ref(){return Ve.timeline},set ref(Be){Ve.timeline=Be}}),m(Qe),m($e),O(Be=>Xe=ee(Qe,1,"timeline svelte-1qfjf44",null,Xe,Be),[()=>({visible:n(be)})]),vt("mouseenter",$e,He),vt("mouseleave",$e,ue),vt("mouseenter",Qe,()=>L(ke,!0)),vt("mouseleave",Qe,()=>L(ke,!1)),b(t,$e),U(),o()}var L5=E("<div><!></div>"),V5={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.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, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
|
|
375
|
+
|
|
376
|
+
/* USER DEFINED COLORS */
|
|
377
|
+
|
|
378
|
+
/* timeline active live */--timeline-slider-filled-active-live-bg: var(--red);--timeline-slider-handle-active-live-bg: var(--red);
|
|
379
|
+
/* timeline & timeline ads */--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);
|
|
380
|
+
/* volume slider colors */--volume-slider-bg: var(--slider-bg);--volume-slider-filled-bg: var(--slider-filled-bg);--volume-slider-handle-bg: var(--slider-handle-bg);
|
|
381
|
+
/* controls time */--controls-time: var(--white);
|
|
382
|
+
|
|
383
|
+
/* /// USER DEFINED COLORS */--controls-gradient: linear-gradient(
|
|
384
|
+
to bottom,
|
|
385
|
+
rgba(0, 0, 0, 0) 0%,
|
|
386
|
+
rgba(0, 0, 0, 0.005) 6.67%,
|
|
387
|
+
rgba(0, 0, 0, 0.02) 13.33%,
|
|
388
|
+
rgba(1, 1, 1, 0.04) 20%,
|
|
389
|
+
rgba(1, 1, 1, 0.07) 26.67%,
|
|
390
|
+
rgba(2, 2, 2, 0.11) 33.33%,
|
|
391
|
+
rgba(3, 3, 3, 0.16) 40%,
|
|
392
|
+
rgba(4, 4, 4, 0.22) 46.67%,
|
|
393
|
+
rgba(6, 6, 6, 0.28) 53.33%,
|
|
394
|
+
rgba(7, 7, 7, 0.33) 60%,
|
|
395
|
+
rgba(8, 8, 8, 0.38) 66.67%,
|
|
396
|
+
rgba(9, 9, 9, 0.42) 73.33%,
|
|
397
|
+
rgba(9, 9, 9, 0.46) 80%,
|
|
398
|
+
rgba(10, 10, 10, 0.48) 86.67%,
|
|
399
|
+
rgba(10, 10, 10, 0.50) 100%
|
|
400
|
+
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--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, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.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;--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, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
401
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-3c0y7j {overflow:visible;}
|
|
402
|
+
|
|
403
|
+
/* css reset start */.vk-vp-root.svelte-3c0y7j * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-3c0y7j button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-3c0y7j p {margin:0;}.vk-vp-root.svelte-3c0y7j svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-3c0y7j .interactive-root {
|
|
404
|
+
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
|
|
405
|
+
/* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
406
|
+
|
|
407
|
+
/* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Xv(t,e){F(e,!0),z(t,V5);let[i,o]=Me(),r=()=>$(Ft,"$isLive$",i),s=()=>$(jo,"$availableSubtitlesList$",i),a=()=>$(mi,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),l=h(e,"store",7),f=h(e,"microStoresRoot",7),g=h(e,"videoConfig",7),v=h(e,"uiConfig",7),u=h(e,"title",7),y=h(e,"thumbUrl",7),x=h(e,"interactiveContainer",7),w=h(e,"interactiveController",7),C=h(e,"subtitles",7),k=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),N=h(e,"preload",7),A=h(e,"autoplay",7),R=h(e,"volume",7,void 0),V=h(e,"muted",7,void 0),Z=h(e,"fromTime",7),B=h(e,"canRewindLive",7),J=h(e,"showAds",7),re=h(e,"adsSlotId",7,void 0),le=h(e,"adsParams",7,void 0),Y=h(e,"adsAutoplayParam",7,void 0),ne=h(e,"duration",7,void 0),X=h(e,"logoClickable",7),Ce=h(e,"logoHidden",7),ae=h(e,"isMobile",7),be=h(e,"showNextPrevButtons",7,!1),Ve=h(e,"nextButtonActive",7,!1),ke=h(e,"prevButtonActive",7,!1),te=h(e,"endScreenVideoTitle",7,void 0),He=h(e,"endScreenVideoThumb",7,void 0),ue=h(e,"isOneVideoPlaylist",7,!1),P=h(e,"supportLink",7),Ke=h(e,"shadowRootContainer",7),$e=h(e,"outerContainerRef",7),W=h(e,"fullScreenTarget",7,void 0),de=h(e,"failoverHosts",7,void 0),De=h(e,"showMiniTimer",7,!1),qe=h(e,"saveRate",7),fe=h(e,"seekToInteractive",7,qa.noop),j=h(e,"playPrevChapter",7,qa.noop),Ee=h(e,"volumeMultiplier",7),Fe=h(e,"showAutoplayNext",7),Qe=h(e,"showEndScreen",7,!0),Xe=h(e,"keyboardControls",15,void 0),{subscribers:tt,stores:Be}=f();Uh(v());let Ge=It(),Lt=v().logoLink,Je=l().ui.debugPanelVisible,Rt=l().ui.playerSize,Ft=l().state.isLive$,Gt=l().state.isInteractive&&Ul.clientChecker.device.isAndroid,Ct=K(void 0),Se=null,Ae=K(!1);l().getAdmanWrapper().init({switchFromAdsToVideo:l().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l().actions.internal.switchFromVideoToAds,setMuted:l().actions.external.setMuted},l().ads,{vsid:l().vsid}),Jh(l(),Be),Ne(()=>{l().ui.isMobile.set(ae()),g().callbacks?.onDomReady?.()});let H=(G=!1)=>{L(Ae,!0),G?l().actions.external.firstStart(J()):l().actions.internal.firstStart(J())},_e=()=>{if(Ge.features.qualityDetailsSubMenuEnabled){let G=y1(l().videoId);if(G)switch(G.type){case"high_quality":l().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":l().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":l().actions.internal.setQuality(G.quality);break}}else{x1(l().videoId),kf()&&l().actions.internal.setTrafficSavingEnabled(!0);let Ot=wf(l().videoId);Ot&&l().actions.internal.setQuality(Ot)}};function he(G){let Ot=d()||G;Ot&&l().initVideo({container:n(Ct),sources:Ot,failoverHosts:de(),subtitles:C(),subtitlesForcedLanguage:k(),volumeMultiplier:Ee()});let Kt=qa.safeStorage.get(Sd)==="true";Je.set(Kt),Z()>0&&l().actions.external.seekTime(Z());let mt=ae()?Ge.volumeDefault:R()??hu()??Ge.volumeDefault,ii=V()??v1();if(l().actions.external.setVolume(mt),l().actions.external.setMuted(ii),l().getAdmanWrapper().setInitialVolume(ii?0:mt),_e(),Ge.features.saveRate&&qe()){let qt=_1();qt&&!r()&&l().actions.internal.setPlaybackRate(qt)}if(Fe()){let qt=$1();qt&&l().actions.internal.setAutoplayNextEnabled(qt)}l().ui.isAutoplay.set(A()),A()&&H(),N()&&Ge.features.preload&&l().actions.internal.preload()}let dt=G=>{if(window.ResizeObserver){let Ot,Kt;Se=new ResizeObserver((0,qa.throttleFn)(mt=>{let ii=mt[0];if(ii.contentBoxSize){let qt=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Ot=qt.inlineSize,Kt=qt.blockSize}else ii.contentRect&&(Ot=ii.contentRect.width,Kt=ii.contentRect.height);Rt.set({width:Ot,height:Kt})},300)),Se.observe(G)}Rt.set({width:G.clientWidth,height:G.clientHeight})},ft=()=>{document.hidden&&l().actions.external.stop()};Mt(()=>{Gt&&document.addEventListener("visibilitychange",ft),Ge.debugLog&&l().actions.internal.startLogging(),dt(n(Ct));let G=tt.map(Kt=>Kt.init({store:l(),microStores:Be,config:g(),interactiveController:w(),uiConfig:v()})),Ot=()=>{Gt&&document.removeEventListener("visibilitychange",ft),Se?.disconnect(),G.forEach(Kt=>Kt.unsubscribe()),l().destroy()};return T()?.status==="upcoming"?(l().actions.internal.setLiveWaitingStart(!0),Ot):T()?.status==="waiting"?(l().actions.internal.setLiveWaitingRecover(!0),Ot):(T()?.status==="finished"||T()?.status==="postlive")&&!(d()&&(0,Ul.areValidLiveRecordSources)(d()))?(l().actions.internal.setLiveWaitingRecord(!0),Ot):(he(),Ot)});function rt(){n(Ae)?l().actions.external.play():H(!0)}function Vt(){l().actions.external.pause()}function Ze(G){l().actions.external.setMuted(G)}function Re(){l().actions.external.toggleSubtitle()}function ut(G,Ot){l().actions.external.changeSubtitle(G,Ot)}function pt(G){l().actions.external.changeAudioStream(G)}function ui(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.hideControls()}function ai(){l().webApi.slotsApi?.haveSlots()&&l().actions.external.showControls()}function hi(G){ae()||G>=0&&G<=1&&l().actions.external.setVolume(G)}function St(G){l().actions.internal.seekTime(G,q0.SeekAction.UNKNOWN)}function Nt(G){l().actions.external.seekEpisodeStartTime(G)}function _i(){l().actions.external.returnFocusToEpisodes()}function oo(G){l().actions.external.setPlaybackRate(G)}function no(G){l().actions.external.setAutoQualityLimits(G)}function No(){l().actions.external.setQuality("auto")}function vi(G){l().actions.external.setTrafficSavingEnabled(G)}function Qo(G){l().actions.external.setHighQualityEnabled(G)}let Oo=np(Ge.view),ti=g().playerView==="preview",jo=l().state.availableSubtitlesList$;if(Ge.features.initSubtitles){let G=!1;Ne(()=>{if(!G&&s().length){G=!0;let Ot;if(Ge.features.userVideoPrefs&&l().videoId){let mt=yu(Ge.userSalt,String(l().videoId));mt?.subtitleTrackId&&(Ot=s().find(ii=>ii.value===mt.subtitleTrackId))}let Kt=k()??Ef();Kt&&(Ot=s().find(mt=>mt.language===Kt)),l().actions.internal.setSubtitle(Ot)}})}let mi=l().ui.isPreviewTrackHorizontallyAligned;var Ui=L5();let Go;var In=_(Ui);{var En=G=>{Yv(G,{get store(){return l()},get uiConfig(){return Ge},get thumbUrl(){return y()},get interactiveContainer(){return x()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return J()},get adsSlotId(){return re()},get adsParams(){return le()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return X()},get logoHidden(){return Ce()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Ve()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return He()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return $e()},get fullScreenTarget(){return W()},get showMiniTimer(){return De()},get playerStarted(){return n(Ae)},get seekToInteractive(){return fe()},get playPrevChapter(){return j()},firstStart:H,seekTime:St,get showEndScreen(){return Qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return be()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ct)},set videoContainer(Ot){L(Ct,Ot,!0)}})},Tt=G=>{var Ot=Le(),Kt=ce(Ot);{var mt=qt=>{Zv(qt,{get thumbUrl(){return y()},get outsideDuration(){return ne()},get canRewindLive(){return B()},get videoContainer(){return n(Ct)},set videoContainer(_t){L(Ct,_t,!0)}})},ii=qt=>{jv(qt,{get store(){return l()},get uiConfig(){return Ge},get title(){return u()},get thumbUrl(){return y()},get interactiveContainer(){return x()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return J()},get adsSlotId(){return re()},get adsParams(){return le()},get adsAutoplayParam(){return Y()},get duration(){return ne()},get logoClickable(){return X()},get logoHidden(){return Ce()},get logoTargetUrl(){return Lt},get nextButtonActive(){return Ve()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return He()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return $e()},get fullScreenTarget(){return W()},get showMiniTimer(){return De()},get playerStarted(){return n(Ae)},get seekToInteractive(){return fe()},get playPrevChapter(){return j()},firstStart:H,get showEndScreen(){return Qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return be()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ct)},set videoContainer(_t){L(Ct,_t,!0)},get keyboardControls(){return Xe()},set keyboardControls(_t){Xe(_t)}})};M(Kt,qt=>{ti?qt(mt):qt(ii,!1)})}b(G,Ot)};M(In,G=>{ae()?G(En):G(Tt,!1)})}m(Ui),O(G=>{Go=ee(Ui,1,"vk-vp-root svelte-3c0y7j",null,Go,G),Ye(Ui,Oo)},[()=>({"root--miui-browser":Ul.clientChecker.device.isMobile&&Ul.clientChecker.browser.isMiuiBrowser,"visible-outside":ti,"preview-track-horizontally-alinged":a()})]),b(t,Ui);var Ut=U({initVideo:he,play:rt,pause:Vt,setMuted:Ze,toggleSubtitle:Re,changeSubtitle:ut,changeAudioStream:pt,hideControls:ui,showControls:ai,setVolume:hi,seekTime:St,seekEpisodeStartTime:Nt,returnFocusToEpisodes:_i,setPlaybackRate:oo,setAutoQualityLimits:no,setAutoQuality:No,toggleTrafficSaving:vi,toggleHighQuality:Qo,get sources(){return d()},set sources(G){d(G)},get store(){return l()},set store(G){l(G)},get microStoresRoot(){return f()},set microStoresRoot(G){f(G)},get videoConfig(){return g()},set videoConfig(G){g(G)},get uiConfig(){return v()},set uiConfig(G){v(G)},get title(){return u()},set title(G){u(G)},get thumbUrl(){return y()},set thumbUrl(G){y(G)},get interactiveContainer(){return x()},set interactiveContainer(G){x(G)},get interactiveController(){return w()},set interactiveController(G){w(G)},get subtitles(){return C()},set subtitles(G){C(G)},get subtitlesForcedLanguage(){return k()},set subtitlesForcedLanguage(G){k(G)},get live(){return T()},set live(G){T(G)},get preload(){return N()},set preload(G){N(G)},get autoplay(){return A()},set autoplay(G){A(G)},get volume(){return R()},set volume(G){R(G)},get muted(){return V()},set muted(G){V(G)},get fromTime(){return Z()},set fromTime(G){Z(G)},get canRewindLive(){return B()},set canRewindLive(G){B(G)},get showAds(){return J()},set showAds(G){J(G)},get adsSlotId(){return re()},set adsSlotId(G){re(G)},get adsParams(){return le()},set adsParams(G){le(G)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(G){Y(G)},get duration(){return ne()},set duration(G){ne(G)},get logoClickable(){return X()},set logoClickable(G){X(G)},get logoHidden(){return Ce()},set logoHidden(G){Ce(G)},get isMobile(){return ae()},set isMobile(G){ae(G)},get showNextPrevButtons(){return be()},set showNextPrevButtons(G){be(G)},get nextButtonActive(){return Ve()},set nextButtonActive(G){Ve(G)},get prevButtonActive(){return ke()},set prevButtonActive(G){ke(G)},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(G){te(G)},get endScreenVideoThumb(){return He()},set endScreenVideoThumb(G){He(G)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(G){ue(G)},get supportLink(){return P()},set supportLink(G){P(G)},get shadowRootContainer(){return Ke()},set shadowRootContainer(G){Ke(G)},get outerContainerRef(){return $e()},set outerContainerRef(G){$e(G)},get fullScreenTarget(){return W()},set fullScreenTarget(G){W(G)},get failoverHosts(){return de()},set failoverHosts(G){de(G)},get showMiniTimer(){return De()},set showMiniTimer(G){De(G)},get saveRate(){return qe()},set saveRate(G){qe(G)},get showAutoplayNext(){return Fe()},set showAutoplayNext(G){Fe(G)},get seekToInteractive(){return fe()},set seekToInteractive(G){fe(G)},get playPrevChapter(){return j()},set playPrevChapter(G){j(G)},get volumeMultiplier(){return Ee()},set volumeMultiplier(G){Ee(G)},get showEndScreen(){return Qe()},set showEndScreen(G){Qe(G)},get keyboardControls(){return Xe()},set keyboardControls(G){Xe(G)}});return o(),Ut}var R5=xe('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Jv(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R5();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}function eg(t,e){let i=h(e,"isWhite",3,!1),o=p(()=>i()?"color: #fff;":"color: #909499;");Jv(t,{get style(){return n(o)}})}var N5=E('<div class="title svelte-1y9fytq"> </div>'),O5=E('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),D5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function tg(t,e){z(t,D5);var i=O5(),o=_(i);{var r=d=>{var l=N5(),f=_(l,!0);m(l),O(()=>pe(f,e.title)),b(d,l)};M(o,d=>{e.title&&d(r)})}var s=I(o,2);{var a=d=>{let l=p(()=>!!e.thumbUrl);eg(d,{get isWhite(){return n(l)}})};M(s,d=>{(!e.title||!e.thumbUrl)&&d(a)})}m(i),O(()=>Ye(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var B5=E('<div class="playerError svelte-m5iv29"><!></div>'),H5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function ig(t){z(t,H5);var e=B5(),i=_(e);Ha(i,{}),m(e),b(t,e)}var vp=require("@vkontakte/videoplayer-shared"),yi=require("@vkontakte/videoplayer-shared"),Ec=require("@vkontakte/videoplayer-core"),Ql=require("@vkontakte/videoplayer-statistics");var sp=require("@vkontakte/videoplayer-shared"),rp=class{constructor(){this.subscription=new sp.Subscription,this.logger=new sp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=me(e.state.currentPlaybackRate$),r=me(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:r})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var zl=require("@vkontakte/videoplayer-shared");var F5=xe('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function og(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=F5();Te(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);ge(r,()=>e.children??oe),ye(),m(o),b(t,o)}var U5=E('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),z5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function ng(t,e){F(e,!0),z(t,z5);let[i,o]=Me(),r=()=>$(f,"$interfaceLanguage$",i),s=()=>$(g,"$isMobile$",i),a=ve(),d=It(),l=!!a.webApi.pictureInPictureApi,f=a.interfaceLanguage$,g=a.ui.isMobile,v=a.ui.t,u=p(()=>r()&&v("pip_dummy_title")),y=np(d.view);var x=U5();let w;var C=_(x);let k;var T=_(C);og(T,{}),m(C);var N=I(C,2),A=_(N,!0);m(N),m(x),O((R,V)=>{w=ee(x,1,"player-pip-dummy svelte-1pbsod4",null,w,R),Ye(x,y),k=ee(C,1,"dummy-image svelte-1pbsod4",null,k,V),pe(A,n(u))},[()=>({"is-pip-api":l}),()=>({desktop:!s()})]),b(t,x),U(),o()}var W5=460,K5=280,$c=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new zl.ValueSubject(!1),isEnabled$:new zl.ValueSubject(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new zl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,zl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:W5,height:K5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(d=>d.cssText).join(" ")).filter(Boolean).join(`
|
|
408
|
+
`),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),r=o.attachShadow({mode:"open"});r.append(i),r.append(this.playerDomElement);let s={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Vr(ng,s),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(va(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{this.pipWindow&&documentPictureInPicture.window?.close(),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Q0(t){return t instanceof $c}var ap=class{static getLatestSupportedVersion(e){let i=new Sa(e),o=new $c(e);if(o.isSupported())return o;if(i.isSupported())return i}};function yc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=e[r]??t[r]??void 0;return o}var j0="Inner error. Unexpectedly root annotation container null reference exception",G0="Annotation with such name already exists",Y0="Annotation with such name does not exist";var Wl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Kl=require("@vkontakte/videoplayer-shared"),q5="1",Q5=100,lp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Kl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Kl.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"},Q5);this.subscriptions.add((0,Kl.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){if(!this.rootAnnotationsContainer)throw new Wl(j0);if(this.annotations.has(e))throw new Wl(G0);i.style.zIndex=i.style.zIndex??q5,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 Wl(Y0);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+a>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Qa=require("@vkontakte/videoplayer-shared"),qo=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,Qa.assertNonNullable)(e),(0,Qa.assertNonNullable)(i),(0,Qa.assertNonNullable)(r),r.interactiveData&&(0,Qa.assertNonNullable)(o),this.subscription=new Qa.Subscription,this.subscription}};var xc=class extends qo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ie(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var wc=class extends qo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ie(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:a}=r,{isInteractiveExpectation$:d,isPlaying$:l}=s.state,{controlsVisible:f,isMobile:g}=s.ui,v=me(g),u=()=>v&&me(f);return o.add(f.subscribe(y=>{if(!v)return;let x=me(a);me(l)?this.state$.set(y):x!==null&&this.state$.set(!x||y)})),o.add(l.subscribe(y=>{this.state$.set(!y||u())})),o.add(a.subscribe(y=>{if(y===null)return;let x=me(d);if(u()){this.state$.set(!0);return}x&&this.state$.set(!y)})),o}};var Sc=class extends qo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ie("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var Z0=require("@vkontakte/videoplayer-shared"),rg=ie(!1),dp=null,Cc=class extends qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...rg,set:(i,o=!1)=>{i!==me(rg)&&(this.clearTimeout(),rg.set(i),!i&&dp&&(dp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:a,isPlaying$:d}=r.state,l=r.ui.controlsVisible,{interactiveTimeIndicator:f}=r.ui.controls;o.add(l.subscribe(v=>{me(a)&&v&&this.state$.set(!1)}));let g=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add((0,Z0.combine)({isPlaying$:d,isInteractiveTime$:a,interactiveTimeIndicator:f}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{if(!(!v||!y?.isDisplayed)){if(!u)return this.state$.set(!1);g.tooltipHelpHintActive&&dp===null&&(dp=!0,g.tooltipHelpHintActive=!1,this.state$.set(!0),r.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var cp=require("@vkontakte/videoplayer-shared");var Tc=class extends qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ie(null),toggle:cp.noop};this.checkIfShouldHide=i=>ws(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,a=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(me(a)))return;let l=me(this.state$),{isEnded$:f,playbackState$:g}=r.state,{disabledControls$:v}=r.ui.controls,u=me(f),y=me(g);if(l)try{await s?.toggleGraphView(!1),this.state$.set(!1),v.remove(gf),!u&&this.graphMadePause&&r.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),v.add(gf),!u&&this.graphMadePause&&r.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add((0,cp.combine)({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:l,currentGridType:f})=>{if(this.checkIfShouldHide(f)&&l)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{d({message:"Cant hide graph"})}})),o}};var sg=require("@vkontakte/videoplayer-shared"),kc=class extends qo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ie(!1),isEnabled$:ie(!1),type$:ie(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:a,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new sg.ValueSubject(!1),isEnabled$:new sg.ValueSubject(!1)}};return o.add(s.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(a.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};var pp=require("@vkontakte/videoplayer-shared");var up=require("@vkontakte/videoplayer-shared"),X0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?j5({maxCount:t}):void 0,e!==0?G5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},j5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,up.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},G5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(up.safeStorage.get(e)||"{}")}catch{return{}}},o=s=>up.safeStorage.set(e,JSON.stringify(s)),r=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let d=Date.now()-a.launchTime>t;return d&&r(s),d}else return!0}}};var Ic=class extends qo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ie({}),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:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=X0({maxShowCount:s,timeout:a});let f=r.getPlayer();return o.add(f.events.severeStallOccured$.pipe((0,pp.filterChanged)(),(0,pp.filter)(g=>g)).subscribe(()=>{d&&!f.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var J0=()=>[xc,wc,Sc,Cc,Tc,kc,Ic].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var ql=require("@vkontakte/videoplayer-shared");var fp=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=()=>{this.lastFocusedNode?.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Y5=E('<div class="root svelte-9ubj1t"><!></div>'),Z5={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function ag(t,e){F(e,!0),z(t,Z5);let i=null,o=K(null);Ne(()=>(n(o)&&(i=window.setTimeout(()=>{L(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(l){e.playbackStatusShow&&L(o,l?"prev":"next",!0)}var s=Le(),a=ce(s);{var d=l=>{var f=Le(),g=ce(f);_s(g,()=>n(o),v=>{var u=Y5(),y=_(u);let x=p(()=>n(o)==="prev");bc(y,{get duration(){return e.animationDuration},get Icon(){return tc},get isPrev(){return n(x)}}),m(u),b(v,u)}),b(l,f)};M(a,l=>{e.playbackStatusShow&&n(o)&&l(d)})}return b(t,s),U({startVideoChangedAnimation:r})}var X5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:yi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Ec.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},kn=K(void 0),lg=Zt({animationDuration:0,playbackStatusShow:!1}),mp=class extends HTMLElement{svelteStubComponent;svelteRootComponent;sveltePersistentLayerComponent;svelteErrorComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;playerId;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;focusManager;prevIsid=void 0;isInited=!1;internalsExposure=null;shadowDOMCallbacksDisabled=!1;fatalError$=new vp.ValueSubject(null);constructor(){super(),ql.devNull.create("ui"),this.logger=new yi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new yi.Subscription,this.interactiveSubscription=new yi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Vr(ig,{target:this.playerContainer}))})}connectedCallback(){if(this.rootContainer)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=Zt({title:e,thumbUrl:i}),r={target:this.playerContainer,props:o};this.svelteStubComponent=Vr(tg,r),this.sveltePersistentLayerComponent=Vr(ag,{target:this.playerContainer,props:lg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;lg.animationDuration=e,lg.playbackStatusShow=i&&o}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(this.annotationsApi?.destroy(),this.slotsApi?.destroy(),this.focusManager?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),ql.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.append(this.rootContainer)}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){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{if(!this.videoConfig)return;let{albumId:o,statPlace:r,statUserSalt:s,statTrackCode:a,statVKAppId:d,refreshStatAuthToken:l,autoplay:f,isMobile:g,isTouch:v,refDomain:u,deviceId:y,interactiveData:x}=yc(this.videoConfig,i),w=x?.projectInfo?.pid,C=this.interactiveController?.state.isReplay$.getValue()??!1;C&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:T=!1}=e;if(this.uiConfig.features.statistics&&k)try{return new Ql.OneStat({movieId:k,albumId:o,place:r,trackCode:a,vkAppId:d,autoplay:(f&&!this.interactiveController)??!1,mobile:v??g,clip:T,refDomain:u,deviceId:y,isPreviewPlayerView:this.videoConfig.playerView==="preview",...w&&(!this.isInited||C)&&{projectId:Number(w)}},{refreshAuthToken:l,userSalt:s,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(A){console.error(A),this.log({message:A.message})}};createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=yc(this.videoConfig,i),{unitedVideoId:a}=e;if(this.uiConfig.features.thinStatistics&&a)return new Ql.ThinOneStat.ThinOneStat({deviceId:o,movieId:a,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:r,statPlace:s,statAuthToken:a,preload:d,autoplay:l,volume:f,muted:g,fromTime:v,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:C={},adsAutoplayParam:k,interfaceLanguage:T,isCyrillicRelatedInterface:N,logoClickable:A,logoHidden:R,isMobile:V,isTouch:Z,isAudioDisabled:B,isLiveCatchUpMode:J,fullScreenTarget:re,failoverHosts:le,canDownload:Y,callbacks:ne,interactiveData:X,showThumbTimer:Ce,additionalButtons:ae=[],additionalSettingsMenuItems:be=[],additionalContextMenuItems:Ve=[],repeat:ke,loop:te,saveRate:He,volumeMultiplier:ue,showEndScreen:P,showAutoplayNext:Ke,mediascopePixels:$e}=yc(this.videoConfig,i),{sources:W,title:de,thumbUrl:De,unitedVideoId:qe,isClip:fe=!1,duration:j,adsParams:Ee={},videoEpisodes:Fe,previewThumbsData:Qe,subtitles:Xe,subtitlesForcedLanguage:tt,live:Be,adsExternalApi:Ge}=e;if(!W&&!Be){let Ze=new Error("empty sources and live");this.fatalError$.next(Ze),ne.onCrashed?.(Ze.message);return}let Lt={...C,...Ee},Je=this.getNextVideoInfo(),Rt={sources:W,title:de,thumbUrl:De,subtitles:Xe,subtitlesForcedLanguage:tt,unitedVideoId:qe,isClip:fe,live:Be,albumId:r,statPlace:s,autoplay:l,muted:g,volume:f,fromTime:v,canRewindLive:u,showAds:x,adsSlotId:w,adsParams:Lt,adsAutoplayParam:k,duration:j,logoClickable:A,logoHidden:R,isTouch:Z??V,repeat:ke,loop:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Je.nextVideoTitle,endScreenVideoThumb:Je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ft={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Rt)}`});let xt=this.interactiveController?.state.statistics$.getValue(),Gt=xt?.oneStat||this.createOneStat(e,i),Ct=this.createThinOneStat(e,i),Se;$e&&(Se=new Ql.MediascopePixel({pixels:$e})),(Gt||Ct)&&(this.statistics=new Wu(Gt,Ct,Se,xt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new wa(this.uiConfig.sentry,{version:$a,env:mu},{movieId:qe,albumId:r,place:s,autoplay:(l&&!this.interactiveController)??!1,mobile:Z??V,clip:fe}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat?.isid$.getValue()),this.sentry={...this.sentry,...wa.getInstance()};let H=!!X,_e=[],he="tooltip_interactive_go_back_disabled_first";if(H&&this.interactiveController){let Ze=this.interactiveController.state.isInitialChapter$.getValue(),Re=this.interactiveController.getHistoryState();Ze&&_e.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||_e.push("SEEK_TO_INTERACTIVE_BUTTON"),Re.hasPrevChapter$.getValue()||(_e.push("PLAY_PREV_CHAPTER_BUTTON"),Ze||(Re.isGoBackLimited$.getValue()?he="tooltip_interactive_go_back_disabled_limit":he="tooltip_interactive_go_back_disabled"))}let dt=()=>{this.isInited=!1,this.prevIsid=void 0;let Ze=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();ne.onReplayInteractiveVideo&&!Ze?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()},ft=ke&&this.videoConfig.videos.length===1;this.store=u0({player:o,interfaceLanguage:T,isCyrillicRelatedInterface:N,videoId:qe,isClip:fe,isLiveCatchUpMode:J,isAudioDisabled:B,statAuthToken:a,callbacks:ne,webApi:Ft,videoEpisodes:Fe,previewThumbsData:Qe,canDownload:Y,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:_e,isInteractive:H,saveRate:He,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:he,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?ae:[],additionalSettingsMenuItems:be??[],additionalContextMenuItems:Ve??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:Ze=>this.sveltePersistentLayerComponent?.startVideoChangedAnimation(Ze),looped:this.uiConfig.features.useLoopSetting?te:ft,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:rt}=this.microStoresRoot=J0(),Vt=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Re=>ne?.onCurrentFormatChanged?.(Re))),this.subscription.add(rt.interactiveControlsOpacity$.subscribe(Re=>{Re!==null&&this?.interactiveController?.setDisabledControls(Re)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Re=>ne?.onThroughputEstimationChanged?.(Re))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Re=>ne?.onTrafficSavingEnabledChanged?.(Re))),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Re=>ne?.onHighQualityEnabledChanged?.(Re))),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Re=>ne?.onAutoQualityEnabledChanged?.(!!Re))),this.subscription.add(new yi.Observable(Re=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>Re.next(ut)))}).pipe((0,yi.skip)(1)).subscribe(Re=>ne?.onCurrentPlaybackRateChanged?.(Re))),this.subscription.add(this.store.state.volume$.subscribe(Re=>ne?.onVolumeChange?.(Re))),this.subscription.add(this.store.state.muted$.subscribe(Re=>{if(Re)ne?.onMute?.();else{let ut=(this.store?.state.volume$&&me(this.store.state.volume$))??0;ne?.onUnmute?.(ut)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Re=>ne?.onVideoBitrateChanged?.(Re))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Re=>{let ut=this.store?.ui.controls.disabledControls$;ut&&(Re&&!ut.includes(Cd)&&ut.add(Cd),Re||ut.remove(Cd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Re=>{if(!Ec.clientChecker.browser.isSamsungBrowser||!Re||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Re=>ne?.onVSIDChanged?.(Re))),this.initMediaSession(),L(kn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:W,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:de,thumbUrl:De,subtitles:Xe,subtitlesForcedLanguage:tt,live:Be,preload:d,autoplay:l,muted:g,volume:f,fromTime:v,canRewindLive:u,supportLink:y,showAds:x,adsSlotId:w,adsParams:Lt,adsAutoplayParam:k,duration:j,logoClickable:A,logoHidden:R,isMobile:Z??V,failoverHosts:le,fullScreenTarget:re,saveRate:He,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Je.nextVideoTitle,endScreenVideoThumb:Je.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ue,showEndScreen:P,showAutoplayNext:Ke,adsExternalApi:Ge},!0);let Ze={target:this.playerContainer,props:n(kn)};this.svelteRootComponent=Vr(Xv,Ze),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?ql.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ql.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Ec.clientChecker.isInited$.subscribe(Ze=>{Ze&&(console.log("UI SDK async start"),Vt())}):Vt()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(s=>o.onPlayerPhaseChanged?.(s))).add(e.state.playbackState$.subscribe(s=>s&&o.onPlaybackStateChanged?.(s))).add(e.state.isLive$.subscribe(s=>o.onIsLiveChanged?.(s))).add(e.state.isActiveLive$.subscribe(s=>o.onIsActiveLiveChanged?.(s))).add(e.state.isAudioAvailable$.subscribe(s=>o.onIsAudioAvailableChanged?.(s))).add(e.state.currentQuality$.subscribe(s=>o.onCurrentQualityChanged?.(s))).add(e.state.availableQualities$.subscribe(s=>o.onAvailableQualitiesChanged?.(s.map(({value:a})=>a).filter(a=>a!=="auto")))).add(e.state.availableAudioStreams$.subscribe(s=>{s.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(s=>s?o.onPiPEnter?.():o.onPiPExit?.()));let r=o?.uiInfo;r&&this.subscription.add(e.ui.controlsVisible.subscribe(s=>r.onControlsVisibleChanged?.(s))).add(e.ui.isMobile.subscribe(s=>r.onIsMobileChanged?.(s))).add(e.ui.playerSize.subscribe(s=>r.onPlayerSizeChanged?.(s))).add(e.ui.controls.prevButton.subscribe(s=>r.onPrevButtonChanged?.(s))).add(e.ui.controls.playButton.subscribe(s=>r.onPlayButtonChanged?.(s))).add(e.ui.controls.replayButton.subscribe(s=>r.onReplayButtonChanged?.(s))).add(e.ui.controls.nextButton.subscribe(s=>r.onNextButtonChanged?.(s))).add(e.ui.controls.playPrevChapterButton.subscribe(s=>r.onPlayPrevChapterChanged?.(s))).add(e.ui.controls.seekToInteractiveButton.subscribe(s=>r.onSeekToInteractiveButtonChanged?.(s))).add(e.ui.controls.interactiveGraphButton.subscribe(s=>r.onGraphButtonChanged?.(s))).add(e.ui.controls.liveButton.subscribe(s=>r.onLiveButtonChanged?.(s))).add(e.ui.controls.time.subscribe(s=>r.onTimeUpdateChanged?.(s))).add(e.ui.controls.episodes.subscribe(s=>r.onEpisodesChanged?.(s))).add(e.ui.controls.subtitles.subscribe(s=>r.onSubtitlesChanged?.(s))).add(e.ui.controlBlocks.topLeft.subscribe(s=>r.onTopLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.topRight.subscribe(s=>r.onTopRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomLeft.subscribe(s=>r.onBottomLeftControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottomRight.subscribe(s=>r.onBottomRightControlBlockChanged?.(s))).add(e.ui.controlBlocks.middle.subscribe(s=>r.onMiddleControlBlockChanged?.(s))).add(e.ui.controlBlocks.bottom.subscribe(s=>r.onBottomControlBlockChanged?.(s))).add(e.ui.videoTitleInfo.subscribe(s=>r.onTitleChanged?.(s))).add(e.ui.controls.settings.subscribe(s=>r.onSettingsChanged?.(s))).add(e.ui.controls.fullscreen.subscribe(s=>r.onFullscreenChanged?.(s))).add(e.ui.controls.chromecast.subscribe(s=>r.onChromecastChanged?.(s))).add(e.ui.controls.pip.subscribe(s=>r.onPipChanged?.(s))).add(e.ui.controls.vkLogo.subscribe(s=>r.onVkLogoChanged?.(s))).add(e.ui.controls.interactiveTimeIndicator.subscribe(s=>r.onInteractiveTimeIndicatorChanged?.(s))).add(e.ui.controls.timeline.subscribe(s=>r.onTimelineChanged?.(s)))}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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,yi.isNonNullable)(o.unitedVideoId)&&this.store?.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?me(i):this.videoConfig.interfaceLanguage,{projectInfo:r,initChapterId:s,historyApi:a,videoLoader:d}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:r,initChapterId:s,historyApi:a,vkVideoLoader:d,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$:l,isSeekable$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(f.subscribe(v=>{if(!this.isInited)return;let u=this.store;v?u.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):u.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(l.subscribe(v=>{this.store&&this.store.state.isInteractiveExpectation$.set(v)}));let g=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(v=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...v.config,title:r?.title||v.config.title};let u=g?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(v.player,u),g&&(g=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:v,actionType:u})=>{if(!this.store||!this.microStoresRoot)return;let y=l.getValue();if(v==="action-choice"&&u==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Td)),v==="action-choice-canceled"){let x=me(this.store.state.isPlaying$)||y;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&x){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:v,removeAllOpenURI:u})=>{this.store&&v==="container-fake-removed"&&u&&this.store.ui.controls.disabledControls$.remove(Td)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let v=this.interactiveController.getHistoryState();this.subscription.add(v.history$.subscribe(u=>{u.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(u)}))}this.videoConfig?.callbacks?.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(v=>{this.videoConfig?.callbacks.onInteractiveChapterChanged?.(v.chapter,v.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(v=>{this.log({message:v.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let o=new Error("empty videos");this.fatalError$.next(o),e.callbacks?.onCrashed?.(o.message);return}else this.fatalError$.next(null);if(this.videoConfig=yc(X5,(0,yi.cloneDeepWith)(e,o=>o instanceof HTMLElement?o:void 0)),this.playerId=(0,yi.getPlayerId)(e.playerId),this.uiConfig=Fh(i.ui??{}),this.updatePersistentLayerProps(),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},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:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new yi.InternalsExposure("ui",this.playerId)),ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[(0,vp.now)()]}),(0,yi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,yi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.uiConfig.ads.paramsOverride={preview:this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??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&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ap.getLatestSupportedVersion(o):this.pictureInPictureApi=new Sa(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new rp:void 0,this.slotsApi=this.uiConfig.features.slots?new tp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new lp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),Q0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),this.slotsApi?.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new fp(this._shadowRoot):void 0}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(kn)&&(n(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(kn).nextButtonActive=this.isNextButtonActive(),n(kn).prevButtonActive=this.isPrevButtonActive(),n(kn).endScreenVideoTitle=o.nextVideoTitle,n(kn).endScreenVideoThumb=o.nextVideoThumb,n(kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onNextVideoClick?.()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{this.videoConfig?.callbacks?.onPrevVideoClick?.()}catch{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="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",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(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}toggleSubtitle(){this.log({message:"toggle subtitle"}),this.svelteRootComponent?.toggleSubtitle()}changeSubtitle(e,i){this.log({message:"change subtitle"}),this.svelteRootComponent?.changeSubtitle(e,i)}hideControls(){this.log({message:"hide controls"}),this.svelteRootComponent?.hideControls()}showControls(){this.log({message:"show controls"}),this.svelteRootComponent?.showControls()}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(kn)&&(n(kn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(kn).nextButtonActive=this.isNextButtonActive(),n(kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}setAutoQuality(){this.svelteRootComponent?.setAutoQuality()}toggleTrafficSaving(e){this.svelteRootComponent?.toggleTrafficSaving(e)}toggleHighQuality(e){this.svelteRootComponent?.toggleHighQuality(e)}changeAudioStream(e){this.svelteRootComponent?.changeAudioStream(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){let i=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${i}`}),i||(this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){let e=this.store?.getPlayer();if(!e)return!1;let{info:i}=e;return i.canPlayLiveTailBuffer$.getValue()&&!i.isStalled$.getValue()&&!i.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){let i=this.isLiveTailPlaying(),o=e||!i;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0)};o&&r(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{o||r(),this.store?.destroy()})}setLiveWaitingRecord(){let e=this.isLiveTailPlaying(),i=!e;this.log({message:`live waiting record: liveTailPlaying = ${e}`});let o=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0)};i&&o(),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{i||o(),this.store?.destroy()})}setLiveEnd(e){let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live ended: liveTailPlaying = ${i}`});let r=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(o){r();return}this.store?.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}setLooped(e){this.store?.actions.internal.setLooped(e)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}getDeviceId(){return this.statistics?.oneStat?.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=me(this.store.state.positionExact$),r=me(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,yi.once)()).subscribe(()=>{r&&i>=r.time?this.seekTime(r.time):this.seekTime(i),e?.()});let s=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:s?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.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){this.store?.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){this.store?.actions.internal.togglePictureInPicture()}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}restoreFocus(){this.focusManager?.restoreFocus()}handleExternalKeyboardEvent(e){return!!this.svelteRootComponent?.keyboardControls?.handleExternalKeyboardEvent(e)}setAutoplayNext(e){this.store?.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){return this.statistics?.thinOneStat?.getTotalViewTime()}unmountComponent(e){e&&va(e)}};var jl=require("@vkontakte/videoplayer-shared"),gp=require("@vkontakte/videoplayer-core"),J5=()=>{window.customElements.define("vk-video-player",mp)};
|