@vkontakte/videoplayer 1.1.64 → 1.1.65-beta.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 +77 -81
- package/es2015.esm.js +77 -81
- package/es2018.cjs.js +77 -81
- package/es2018.esm.js +77 -81
- package/es2024.cjs.js +79 -83
- package/es2024.esm.js +79 -83
- package/esnext.cjs.js +79 -83
- package/esnext.esm.js +79 -83
- package/evergreen.esm.js +79 -83
- package/package.json +5 -5
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +0 -1
- package/types/components/Menus/subMenuTabs/types.d.ts +1 -0
- package/types/config.d.ts +6 -0
- package/types/constans/subtitles.d.ts +1 -0
- package/types/store/index.d.ts +8 -1
- package/types/store/utils.d.ts +1 -0
- package/types/translation/types.d.ts +1 -1
- package/types/types/index.d.ts +27 -0
- package/types/utils/changeVolume.d.ts +6 -3
- package/types/utils/getControlInfo.d.ts +7 -0
- package/types/utils/updatePlayerControlBlocks.d.ts +3 -0
- package/types/utils/getButtonControlInfo.d.ts +0 -14
package/es2015.esm.js
CHANGED
|
@@ -1,63 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.65-beta.0
|
|
3
|
+
* Wed, 25 Jun 2025 16:30:06 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-65/doc/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
6
|
+
var Z1=Object.defineProperty,X1=Object.defineProperties;var J1=Object.getOwnPropertyDescriptors;var tv=Object.getOwnPropertySymbols;var e0=Object.prototype.hasOwnProperty,t0=Object.prototype.propertyIsEnumerable;var iv=t=>{throw TypeError(t)};var Pu=(t,e,i)=>e in t?Z1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||(e={}))e0.call(e,i)&&Pu(t,i,e[i]);if(tv)for(var i of tv(e))t0.call(e,i)&&Pu(t,i,e[i]);return t},Ot=(t,e)=>X1(t,J1(e));var Wn=(t,e,i)=>Pu(t,typeof e!="symbol"?e+"":e,i),Au=(t,e,i)=>e.has(t)||iv("Cannot "+i);var Mi=(t,e,i)=>(Au(t,e,"read from private field"),i?i.call(t):e.get(t)),ws=(t,e,i)=>e.has(t)?iv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Aa=(t,e,i,o)=>(Au(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),ov=(t,e,i)=>(Au(t,e,"access private method"),i);var xt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())});var Ss="[",Ws="[!",qs="]",os={};var Li=Symbol(),vi=Symbol("filename"),nv=Symbol("hmr"),rv="http://www.w3.org/1999/xhtml",Mu="http://www.w3.org/2000/svg";var Xd=!0;var av,lv,sv=(lv=(av=globalThis.process)==null?void 0:av.env)==null?void 0:lv.NODE_ENV,Re=sv&&!sv.toLowerCase().startsWith("prod");var Yo=Symbol("$state"),ns=Symbol("$state metadata"),_l=Symbol("legacy props"),dv=Symbol("");var Tr=Array.isArray,cv=Array.prototype.indexOf,bl=Array.from,Lu=Object.keys,ro=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Jd=Object.getOwnPropertyDescriptors,Vu=Object.prototype,uv=Array.prototype,rs=Object.getPrototypeOf;function Cs(t){return typeof t=="function"}var oe=()=>{};function pv(t){return t()}function Ts(t){for(var e=0;e<t.length;e++)t[e]()}var $l=[],Ru=[];function fv(){var t=$l;$l=[],Ts(t)}function i0(){var t=Ru;Ru=[],Ts(t)}function ln(t){$l.length===0&&queueMicrotask(fv),$l.push(t)}function Bu(){$l.length>0&&fv(),Ru.length>0&&i0()}function ec(t){return t===this.v}function Ma(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function mv(t,e){return t!==e}function La(t){return!Ma(t,this.v)}function vv(){if(Re){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 gv(t){if(Re){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 hv(){if(Re){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 _v(t){if(Re){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 bv(){if(Re){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 $v(){if(Re){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 yv(){if(Re){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 xv(t){if(Re){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 wv(t){if(Re){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 Sv(t){if(Re){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 Cv(){if(Re){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 Tv(){if(Re){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 Iv(){if(Re){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ev(){if(Re){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 Qr=!1,Gr=!1;function kv(){Qr=!0}var yl=null;function ss(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),n=[`
|
|
24
|
-
`];for(let a=0;a<o.length;a++){let
|
|
25
|
-
`)}),
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let r=o[a];if(r!=="Error"){if(r.includes("validate_each_keys"))return null;r.includes("svelte/src/internal")||n.push(r)}}if(n.length===1)return null;ro(e,"stack",{value:n.join(`
|
|
25
|
+
`)}),ro(e,"name",{value:`${t}Error`})}return e}var Ks=new Set,Va=new Map;function Hu(t){Ks=t}function zi(t,e){var i={f:0,v:t,reactions:null,equals:ec,rv:0,wv:0};return Re&&Gr&&(i.created=e!=null?e:ss("CreatedAt"),i.debug=null),i}function J(t){return o0(zi(t))}function ls(t,e=!1){var o,n;let i=zi(t);return e||(i.equals=La),Qr&&Pt!==null&&Pt.l!==null&&((n=(o=Pt.l).s)!=null?n:o.s=[]).push(i),i}function o0(t){return zt!==null&&!Qn&&(zt.f&2)!==0&&(Ir===null?Mv([t]):Ir.push(t)),t}function D(t,e){return zt!==null&&!Qn&&Yr()&&(zt.f&18)!==0&&(Ir===null||!Ir.includes(t))&&Ev(),Ra(t,e)}function Ra(t,e){var o;if(!t.equals(e)){var i=t.v;if(Gs?Va.set(t,e):Va.set(t,i),t.v=e,t.wv=wl(),Re&&Gr&&(t.updated=ss("UpdatedAt"),Et!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),Av(t,2048),Yr()&&Et!==null&&(Et.f&1024)!==0&&(Et.f&96)===0&&(Kn===null?Lv([t]):Kn.push(t)),Re&&Ks.size>0){let n=Array.from(Ks);for(let a of n)(a.f&1024)!==0&&un(a,4096),Is(a)&&Ba(a);Ks.clear()}}return e}function Av(t,e){var i=t.reactions;if(i!==null)for(var o=Yr(),n=i.length,a=0;a<n;a++){var r=i[a],d=r.f;if((d&2048)===0&&!(!o&&r===Et)){if(Re&&(d&262144)!==0){Ks.add(r);continue}un(r,e),(d&1280)!==0&&((d&2)!==0?Av(r,4096):Na(r))}}}function v(t){var e=2050,i=zt!==null&&(zt.f&2)!==0?zt:null;Et===null||i!==null&&(i.f&256)!==0?e|=256:Et.f|=1048576;let o={ctx:Pt,deps:null,effects:null,equals:ec,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Et};return Re&&Gr&&(o.created=ss("CreatedAt")),o}function kr(t){let e=v(t);return e.equals=La,e}function tc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ao(e[i])}}var Fu=[];function n0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function r0(t){var e,i=Et;if(so(n0(t)),Re){let o=Ks;Hu(new Set);try{Fu.includes(t)&&vv(),Fu.push(t),tc(t),e=ic(t)}finally{so(i),Hu(o),Fu.pop()}}else try{tc(t),e=ic(t)}finally{so(i)}return e}function zu(t){var e=r0(t),i=(ds||(t.f&256)!==0)&&t.deps!==null?4096:1024;un(t,i),t.equals(e)||(t.v=e,t.wv=wl())}var Ys="font-weight: bold",js="font-weight: normal";function Vv(t,e,i){Re?console.warn(`%c[svelte] hydration_attribute_changed
|
|
26
26
|
%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
|
|
27
|
-
https://svelte.dev/e/hydration_attribute_changed`,
|
|
27
|
+
https://svelte.dev/e/hydration_attribute_changed`,Ys,js):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Rv(t){Re?console.warn(`%c[svelte] hydration_html_changed
|
|
28
28
|
%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"}
|
|
29
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
29
|
+
https://svelte.dev/e/hydration_html_changed`,Ys,js):console.warn("https://svelte.dev/e/hydration_html_changed")}function Zs(t){Re?console.warn(`%c[svelte] hydration_mismatch
|
|
30
30
|
%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"}
|
|
31
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
31
|
+
https://svelte.dev/e/hydration_mismatch`,Ys,js):console.warn("https://svelte.dev/e/hydration_mismatch")}function Bv(){Re?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
32
32
|
%cTried to unmount a component that was not mounted
|
|
33
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
33
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Ys,js):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Nv(t,e,i){Re?console.warn(`%c[svelte] ownership_invalid_binding
|
|
34
34
|
%c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
|
|
35
|
-
https://svelte.dev/e/ownership_invalid_binding`,
|
|
35
|
+
https://svelte.dev/e/ownership_invalid_binding`,Ys,js):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Wu(t,e){Re?console.warn(`%c[svelte] ownership_invalid_mutation
|
|
36
36
|
%c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
37
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
37
|
+
https://svelte.dev/e/ownership_invalid_mutation`,Ys,js):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function oc(t){Re?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
38
38
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
39
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
39
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Ys,js):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Xe=!1;function lo(t){Xe=t}var vt;function gi(t){if(t===null)throw Zs(),os;return vt=t}function Di(){return gi(Bo(vt))}function g(t){if(Xe){if(Bo(vt)!==null)throw Zs(),os;vt=t}}function Ce(t=1){if(Xe){for(var e=t,i=vt;e--;)i=Bo(i);vt=i}}function Da(){for(var t=0,e=vt;;){if(e.nodeType===8){var i=e.data;if(i===qs){if(t===0)return e;t-=1}else(i===Ss||i===Ws)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function ve(t,e=null,i){var u,f;var o=null;if(Re&&Gr&&(o=ss("CreatedAt")),typeof t!="object"||t===null||Yo in t)return t;let n=rs(t);if(n!==Vu&&n!==uv)return t;var a=new Map,r=Tr(t),d=zi(0);r&&a.set("length",zi(t.length,o));var l;if(Re)if(l={parent:e,owners:null},i){let $=(f=(u=i.v)==null?void 0:u[ns])==null?void 0:f.owners;l.owners=$?new Set($):null}else l.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty($,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Cv();var w=a.get(p);return w===void 0?(w=zi(_.value,o),a.set(p,w)):D(w,ve(_.value,l)),!0},deleteProperty($,p){var _=a.get(p);if(_===void 0)p in $&&a.set(p,zi(Li,o));else{if(r&&typeof p=="string"){var w=a.get("length"),b=Number(p);Number.isInteger(b)&&b<w.v&&D(w,b)}D(_,Li),Dv(d)}return!0},get($,p,_){var I;if(Re&&p===ns)return l;if(p===Yo)return t;var w=a.get(p),b=p in $;if(w===void 0&&(!b||(I=qn($,p))!=null&&I.writable)&&(w=zi(ve(b?$[p]:Li,l),o),a.set(p,w)),w!==void 0){var C=s(w);if(Re){var T=C==null?void 0:C[ns];T&&(T==null?void 0:T.parent)!==l&&qu(l,T)}return C===Li?void 0:C}return Reflect.get($,p,_)},getOwnPropertyDescriptor($,p){var _=Reflect.getOwnPropertyDescriptor($,p);if(_&&"value"in _){var w=a.get(p);w&&(_.value=s(w))}else if(_===void 0){var b=a.get(p),C=b==null?void 0:b.v;if(b!==void 0&&C!==Li)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has($,p){var C;if(Re&&p===ns||p===Yo)return!0;var _=a.get(p),w=_!==void 0&&_.v!==Li||Reflect.has($,p);if(_!==void 0||Et!==null&&(!w||(C=qn($,p))!=null&&C.writable)){_===void 0&&(_=zi(w?ve($[p],l):Li,o),a.set(p,_));var b=s(_);if(b===Li)return!1}return w},set($,p,_,w){var W;var b=a.get(p),C=p in $;if(r&&p==="length")for(var T=_;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Li):T in $&&(I=zi(Li,o),a.set(T+"",I))}if(b===void 0?(!C||(W=qn($,p))!=null&&W.writable)&&(b=zi(void 0,o),D(b,ve(_,l)),a.set(p,b)):(C=b.v!==Li,D(b,ve(_,l))),Re){var M=_==null?void 0:_[ns];M&&(M==null?void 0:M.parent)!==l&&qu(l,M),Ov(l)}var P=Reflect.getOwnPropertyDescriptor($,p);if(P!=null&&P.set&&P.set.call(w,_),!C){if(r&&typeof p=="string"){var E=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=E.v&&D(E,V+1)}Dv(d)}return!0},ownKeys($){s(d);var p=Reflect.ownKeys($).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Li});for(var[_,w]of a)w.v!==Li&&!(_ in $)&&p.push(_);return p},setPrototypeOf(){Tv()}})}function Dv(t,e=1){D(t,t.v+e)}function nc(t){return t!==null&&typeof t=="object"&&Yo in t?t[Yo]:t}function Hv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,r){let d=i.call(this,a,r);if(d===-1){for(let l=r!=null?r:0;l<this.length;l+=1)if(nc(this[l])===a){oc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,r){let d=o.call(this,a,r!=null?r:this.length-1);if(d===-1){for(let l=0;l<=(r!=null?r:this.length-1);l+=1)if(nc(this[l])===a){oc("array.lastIndexOf(...)");break}}return d},t.includes=function(a,r){let d=n.call(this,a,r);if(!d){for(let l=0;l<this.length;l+=1)if(nc(this[l])===a){oc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,Fv,Sl,Uv,zv;function rc(){if(Xs===void 0){Xs=window,Fv=document,Sl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Uv=qn(e,"firstChild").get,zv=qn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,Re&&(t.__svelte_meta=null,Hv())}}function pn(t=""){return document.createTextNode(t)}function hi(t){return Uv.call(t)}function Bo(t){return zv.call(t)}function h(t,e){if(!Xe)return hi(t);var i=hi(vt);if(i===null)i=vt.appendChild(pn());else if(e&&i.nodeType!==3){var o=pn();return i==null||i.before(o),gi(o),o}return gi(i),i}function ge(t,e){var n,a;if(!Xe){var i=hi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==3){var o=pn();return(a=vt)==null||a.before(o),gi(o),o}return vt}function A(t,e=1,i=!1){let o=Xe?vt:t;for(var n;e--;)n=o,o=Bo(o);if(!Xe)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var r=pn();return o===null?n==null||n.after(r):o.before(r),gi(r),r}return gi(o),o}function Cl(t){t.textContent=""}var Wv=new WeakSet,sc=!1,El=!1,Tl=null,Js=!1,Gs=!1;function Gu(t){Gs=t}var Il=[],lc=[],zt=null,Qn=!1;function $o(t){zt=t}var Et=null;function so(t){Et=t}var Ir=null;function Mv(t){Ir=t}var fn=null,Yn=0,Kn=null;function Lv(t){Kn=t}var Yv=1,dc=0,ds=!1,xl=null;function wl(){return++Yv}function Is(t){var $,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,r=(e&512)!==0,d=o&&Et!==null&&!ds,l=i.length;if(r||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(r||!(($=a==null?void 0:a.reactions)!=null&&$.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);r&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],Is(a)&&zu(a),a.wv>t.wv)return!0}(!o||Et!==null&&!ds)&&un(t,1024)}return!1}function qv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw sc=!1,t}function Kv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ha(t,e,i,o){var f,$;if(sc){if(i===null&&(sc=!1),Kv(e))throw t;return}if(i!==null&&(sc=!0),!Re||o===null||!(t instanceof Error)||Wv.has(t)){qv(t,e);return}Wv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let r=o;for(;r!==null;){if(Re){var d=($=r.function)==null?void 0:$[vi];if(d){let p=d.split("/").pop();n.push(p)}}r=r.p}let l=Sl?" ":" ";ro(t,"message",{value:t.message+`
|
|
40
40
|
${n.map(p=>`
|
|
41
41
|
${l}in ${p}`).join("")}
|
|
42
|
-
`}),
|
|
43
|
-
`)
|
|
44
|
-
`)})}if(
|
|
45
|
-
`)){let n=(i=
|
|
42
|
+
`}),ro(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
|
|
43
|
+
`),_=[];for(let w=0;w<p.length;w++){let b=p[w];b.includes("svelte/src/internal")||_.push(b)}ro(t,"stack",{value:_.join(`
|
|
44
|
+
`)})}if(qv(t,e),Kv(e))throw t}function jv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?jv(a,e,!1):e===a&&(i?un(a,2048):(a.f&1024)!==0&&un(a,4096),Na(a))}}function ic(t){var _,w;var e=fn,i=Yn,o=Kn,n=zt,a=ds,r=Ir,d=Pt,l=Qn,u=t.f;fn=null,Yn=0,Kn=null,ds=(u&256)!==0&&(Qn||!Js||zt===null),zt=(u&96)===0?t:null,Ir=null,Pl(t.ctx),Qn=!1,dc++;try{var f=(0,t.fn)(),$=t.deps;if(fn!==null){var p;if(kl(t,Yn),$!==null&&Yn>0)for($.length=Yn+fn.length,p=0;p<fn.length;p++)$[Yn+p]=fn[p];else t.deps=$=fn;if(!ds)for(p=Yn;p<$.length;p++)((w=(_=$[p]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&Yn<$.length&&(kl(t,Yn),$.length=Yn);if(Yr()&&Kn!==null&&!Qn&&$!==null&&(t.f&6146)===0)for(p=0;p<Kn.length;p++)jv(Kn[p],t);return n!==null&&(dc++,Kn!==null&&(o===null?o=Kn:o.push(...Kn))),f}finally{fn=e,Yn=i,Kn=o,zt=n,ds=a,Ir=r,Pl(d),Qn=l}}function s0(t,e){let i=e.reactions;if(i!==null){var o=cv.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(fn===null||!fn.includes(e))&&(un(e,4096),(e.f&768)===0&&(e.f^=512),tc(e),kl(e,0))}function kl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)s0(t,i[o])}function Ba(t){var e=t.f;if((e&16384)===0){un(t,1024);var i=Et,o=Pt,n=Js;if(Et=t,Js=!0,Re){var a=mn;Al(t.component_function)}try{(e&16)!==0?Zv(t):ju(t),Yu(t);var r=ic(t);t.teardown=typeof r=="function"?r:null,t.wv=Yv;var d=t.deps;if(Re&&Gr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=wl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Re&&lc.push(t)}catch(u){Ha(u,t,i,o||t.ctx)}finally{Js=n,Et=i,Re&&Al(a)}}}function Qv(){console.error("Last ten effects were: ",lc.slice(-10).map(t=>t.fn)),lc=[]}function a0(){try{bv()}catch(t){if(Re&&ro(t,"stack",{value:""}),Tl!==null)if(Re)try{Ha(t,Tl,null,null)}catch(e){throw Qv(),e}else Ha(t,Tl,null,null);else throw Re&&Qv(),t}}function Ku(){var t=Js;try{var e=0;for(Js=!0;Il.length>0;){e++>1e3&&a0();var i=Il,o=i.length;Il=[];for(var n=0;n<o;n++){var a=d0(i[n]);l0(a)}}}finally{El=!1,Js=t,Tl=null,Re&&(lc=[]),Va.clear()}}function l0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{Is(o)&&(Ba(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Zu(o):o.fn=null))}catch(n){Ha(n,o,null,o.ctx)}}}function Na(t){El||(El=!0,queueMicrotask(Ku));for(var e=Tl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Il.push(e)}function d0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var r=zt;try{zt=i,Is(i)&&Ba(i)}catch(u){Ha(u,i,null,i.ctx)}finally{zt=r}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Fa(t){var e;for(t&&(El=!0,Ku(),e=t()),Bu();Il.length>0;)El=!0,Ku(),Bu();return e}function yo(){return xt(this,null,function*(){yield Promise.resolve(),Fa()})}function s(t){var e=t.f,i=(e&2)!==0;if(xl!==null&&xl.add(t),zt!==null&&!Qn){Ir!==null&&Ir.includes(t)&&Iv();var o=zt.deps;t.rv<dc&&(t.rv=dc,fn===null&&o!==null&&o[Yn]===t?Yn++:fn===null?fn=[t]:(!ds||!fn.includes(t))&&fn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,Is(n)&&zu(n)),Re&&Gr&&yl!==null&&zt!==null&&yl.reaction===zt){if(t.debug)t.debug();else if(t.created){var r=yl.entries.get(t);r===void 0&&(r={read:[]},yl.entries.set(t,r)),r.read.push(ss("TracedAt"))}}return Gs&&Va.has(t)?Va.get(t):t.v}function wt(t){var e=Qn;try{return Qn=!0,t()}finally{Qn=e}}var c0=-7169;function un(t,e){t.f=t.f&c0|e}function uc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yo in t)cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Yo in i&&cc(i)}}}function cc(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{cc(t[o],e)}catch(n){}let i=rs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Jd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(r){}}}}}function Ju(t){Et===null&&zt===null&&_v(t),zt!==null&&(zt.f&256)!==0&&Et===null&&hv(),Gs&&gv(t)}function u0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ea(t,e,i,o=!0){var l;var n=Et;if(Re)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Pt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Re&&(a.component_function=mn),i)try{Ba(a),a.f|=32768}catch(u){throw ao(a),u}else e!==null&&Na(a);var r=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!r&&o&&(n!==null&&u0(a,n),zt!==null&&(zt.f&2)!==0)){var d=zt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function vn(t){let e=ea(8,null,!1);return un(e,1024),e.teardown=t,e}function We(t){var n;Ju("$effect");var e=Et!==null&&(Et.f&32)!==0&&Pt!==null&&!Pt.m;if(Re&&ro(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:zt})}else{var o=Tn(t);return o}}function Ua(t){return Ju("$effect.pre"),Re&&ro(t,"name",{value:"$effect.pre"}),xo(t)}function fc(t){let e=ea(64,t,!0);return()=>{ao(e)}}function Jv(t){let e=ea(64,t,!0);return(i={})=>new Promise(o=>{i.outro?In(e,()=>{ao(e),o(void 0)}):(ao(e),o(void 0))})}function Tn(t){return ea(4,t,!1)}function xo(t){return ea(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(s));return Re&&ro(n,"name",{value:"{expression}"}),co(n)}function co(t,e=0){return ea(24|e,t,!0)}function Wi(t,e=!0){return ea(40,t,!0,e)}function Yu(t){var e=t.teardown;if(e!==null){let i=Gs,o=zt;Gu(!0),$o(null);try{e.call(null)}finally{Gu(i),$o(o)}}}function ju(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:ao(i,e),i=o}}function Zv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ao(e),e=i}}function ao(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Bo(o);o.remove(),o=a}i=!0}ju(t,e&&!i),kl(t,0),un(t,16384);var r=t.transitions;if(r!==null)for(let l of r)l.stop();Yu(t);var d=t.parent;d!==null&&d.first!==null&&Zu(t),Re&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Zu(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 In(t,e){var i=[];mc(t,i,!0),ep(i,()=>{ao(t),e&&e()})}function ep(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function mc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let r of t.transitions)(r.is_global||i)&&e.push(r);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;mc(o,e,a?i:!1),o=n}}}function cs(t){eg(t,!0)}function eg(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),Is(t)&&(un(t,2048),Na(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;eg(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var p0={},f0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,m0=/@(.+):(\d+):(\d+)$/;function v0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
|
|
45
|
+
`)){let n=(i=f0.exec(o))!=null?i:m0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function tg(){var e;let t=(e=v0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=p0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var vc=Symbol("ADD_OWNER");function tp(t,e,i=!1,o=!1){if(t&&!i){let n=mn,a=t[ns];if(a&&!ip(a,n)){let r=op(a);e&&e[vi]!==n[vi]&&!o&&Nv(n[vi],e[vi],r[vi])}}gc(t,e,new Set)}function qu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function gc(t,e,i){var a;let o=t==null?void 0:t[ns];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),vc in t&&t[vc])xo(()=>{t[vc](e)});else{var n=rs(t);if(n===Object.prototype)for(let r in t)if((a=Object.getOwnPropertyDescriptor(t,r))!=null&&a.get){let d=Li;xo(()=>{let l=t[r];d!==l&&(d=l,gc(l,e,i))})}else gc(t[r],e,i);else if(n===Array.prototype)for(let r=0;r<t.length;r+=1)gc(t[r],e,i)}}}function ip(t,e){return t.owners===null?!0:t.owners.has(e)||vi in e&&[...t.owners].some(i=>i[vi]===e[vi])||t.parent!==null&&ip(t.parent,e)}function op(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:op(t.parent)}var g0=!1;function Ov(t){if(g0)return;let e=tg();if(e&&!ip(t,e)){let i=op(t);i[vi]!==e[vi]?Wu(e[vi],i[vi]):Wu()}}function za(t){if(Re){let e=new Error(`lifecycle_outside_component
|
|
46
46
|
\`${t}(...)\` can only be used during component initialisation
|
|
47
|
-
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 At=null;function Cl(t){At=t}var en=null;function Tl(t){en=t}function Oa(t){return Xu("getContext").get(t)}function Ha(t,e){let i=Xu("setContext");return Pe&&wt(()=>ju(e,null,!0)),i.set(t,e),e}function kl(){return Xu("getAllContexts")}function U(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Nr&&!e&&(At.l={s:null,u:null,r1:[],r2:Gi(!1)}),tn(()=>{o.d=!0}),Pe&&(At.function=i,en=i)}function z(t){var s,d;let e=At;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=kt,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];lo(a.effect),_o(a.reaction),gn(a.fn)}}finally{lo(i),_o(o)}}At=e.p,Pe&&(en=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Dr(){return!Nr||At!==null&&At.l===null}function Xu(t){var e;return At===null&&Da(t),(e=At.c)!=null?e:At.c=new Map(f0(At)||void 0)}function f0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var m0=/\r/g;function Zv(t){t=t.replace(m0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Xv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var v0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Jv(t){return v0.includes(t)}var g0=["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 h0={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 eg(t){var e;return t=t.toLowerCase(),(e=h0[t])!=null?e:t}var B6=[...g0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var _0=["touchstart","touchmove"];function tg(t){return _0.includes(t)}var b0=["textarea","script","style","title"];function ig(t){return b0.includes(t)}function Ju(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var og=new Map;function ng(t,e){var i=og.get(t);i||(i=new Set,og.set(t,i)),i.add(e)}function ep(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function El(t){var e=Ft,i=kt;_o(null),lo(null);try{return t()}finally{_o(e),lo(i)}}var tp=new Set,mc=new Set;function Ws(t){if(!Qe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function ip(t,e,i,o={}){function n(a){if(o.capture||Fa.call(e,a),!a.cancelBubble)return El(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Go(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},s=ip(t,e,i,a);(e===document.body||e===window||e===document)&&tn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)tp.add(t[e]);for(var i of mc)i(t)}function Fa(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){ao(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ft,b=kt;_o(null),lo(null);try{for(var p,$=[];a!==null;){var x=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(gr(_)){var[C,...T]=_;C.apply(a,[t,...T])}else _.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||x===e||x===null)break;a=x}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,_o(f),lo(b)}}}var y0;function rg(){y0=void 0}function Ua(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function yo(t,e){var i=kt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return yo(gt,null),gt;n===void 0&&(n=Ua(a?t:"<!>"+t),i||(n=wi(n)));var s=o||bl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=wi(s),l=s.lastChild;yo(d,l)}else yo(s,s);return s}}function we(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Qe)return yo(gt,null),gt;if(!s){var d=Ua(a),l=wi(d);if(n)for(s=document.createDocumentFragment();wi(l);)s.appendChild(wi(l));else s=wi(l)}var u=s.cloneNode(!0);if(n){var f=wi(u),b=u.lastChild;yo(f,b)}else yo(u,u);return u}}function Or(t=""){if(!Qe){var e=Xo(t+"");return yo(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=Xo()),xi(i)),yo(i,i),i}function Oe(){if(Qe)return yo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),yo(e,i),t}function y(t,e){if(Qe){kt.nodes_end=gt,zi();return}t!==null&&t.before(e)}var Pl=!0;function vc(t){Pl=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function es(t,e){return ag(t,e)}function np(t,e){var s;ic(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Qe,n=gt;try{for(var a=wi(i);a&&(a.nodeType!==8||a.data!==ps);)a=Po(a);if(!a)throw Kr;uo(!0),xi(a),zi();let d=ag(t,Dt(W({},e),{anchor:a}));if(gt===null||gt.nodeType!==8||gt.data!==Rs)throw Fs(),Kr;return uo(!1),d}catch(d){if(d===Kr)return e.recover===!1&&vv(),ic(),$l(i),uo(!1),es(t,e);throw d}finally{uo(o),xi(n),rg()}}var za=new Map;function ag(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){ic();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var x=tg($);e.addEventListener($,Fa,{passive:x});var _=za.get($);_===void 0?(document.addEventListener($,Fa,{passive:x}),za.set($,1)):za.set($,_+1)}}};l(ml(tp)),mc.add(l);var u=void 0,f=Gv(()=>{var b=i!=null?i:e.appendChild(Xo());return ji(()=>{if(a){U({});var p=At;p.c=a}n&&(o.$$events=n),Qe&&yo(b,null),Pl=s,u=t(b,o)||{},Pl=!0,Qe&&(kt.nodes_end=gt),a&&z()}),()=>{var x;for(var p of d){e.removeEventListener(p,Fa);var $=za.get(p);--$===0?(document.removeEventListener(p,Fa),za.delete(p)):za.set(p,$)}mc.delete(l),b!==i&&((x=b.parentNode)==null||x.removeChild(b))}});return op.set(u,f),u}var op=new WeakMap;function Ks(t,e){let i=op.get(t);return i?(op.delete(t),i(e)):(Pe&&Av(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Qe&&i===0&&zi();var n=t,a=null,s=null,d=Bi,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let x=!1;if(Qe&&o!==-1){if(i===0){let C=n.data;C===ps?o=0:C===Vs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(n=La(),xi(n),uo(!1),x=!0,o=-1)}d?(a?Jr(a):$&&(a=ji(()=>$(n))),s&&hn(s,()=>{s=null})):(s?Jr(s):$&&(s=ji(()=>$(n,[i+1,o]))),a&&hn(a,()=>{a=null})),x&&uo(!0)};po(()=>{u=!1,e(f),u||b(null,null)},l),Qe&&(n=gt)}function Qs(t,e,i){Qe&&zi();var o=t,n=Bi,a,s=Dr()?dv:Ia;po(()=>{s(n,n=e())&&(a&&hn(a),a=ji(()=>i(o)))}),Qe&&(o=gt)}var hs=null;function ap(t){hs=t}function Al(t,e){return e}function C0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)uc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;$l(l),l.append(i),o.clear(),gs(t,e[0].prev,e[a-1].next)}Gu(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),gs(t,f.prev,f.next)),co(f.e,!d)}})}function Ei(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=Qe?xi(wi(u)):u.appendChild(Xo())}Qe&&zi();var f=null,b=!1,p=br(()=>{var $=i();return gr($)?$:$==null?[]:ml($)});po(()=>{var $=r(p),x=$.length;if(b&&x===0)return;b=x===0;let _=!1;if(Qe){var C=s.data===Vs;C!==(x===0)&&(s=La(),xi(s),uo(!1),_=!0)}if(Qe){for(var T=null,k,P=0;P<x;P++){if(gt.nodeType===8&>.data===Rs){s=gt,_=!0,uo(!1);break}var A=$[P],I=o(A,P);k=cg(gt,d,T,null,A,I,P,n,e,i),d.items.set(I,k),T=k}x>0&&xi(La())}Qe||T0($,d,s,n,e,o,i),a!==null&&(x===0?f?Jr(f):f=ji(()=>a(s)):f!==null&&hn(f,()=>{f=null})),_&&uo(!0),r(p)}),Qe&&(s=gt)}function T0(t,e,i,o,n,a,s){var ue,Ve,Me,_e;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,b=e.first,p=b,$,x=null,_,C=[],T=[],k,P,A,I;if(d)for(I=0;I<u;I+=1)k=t[I],P=a(k,I),A=f.get(P),A!==void 0&&((ue=A.a)==null||ue.measure(),(_!=null?_:_=new Set).add(A));for(I=0;I<u;I+=1){if(k=t[I],P=a(k,I),A=f.get(P),A===void 0){var V=p?p.e.nodes_start:i;x=cg(V,e,x,x===null?e.first:x.next,k,P,I,o,n,s),f.set(P,x),C=[],T=[],p=x.next;continue}if(l&&I0(A,k,I,n),(A.e.f&8192)!==0&&(Jr(A.e),d&&((Ve=A.a)==null||Ve.unfix(),(_!=null?_:_=new Set).delete(A))),A!==p){if($!==void 0&&$.has(A)){if(C.length<T.length){var q=T[0],G;x=q.prev;var H=C[0],Z=C[C.length-1];for(G=0;G<C.length;G+=1)lg(C[G],q,i);for(G=0;G<T.length;G+=1)$.delete(T[G]);gs(e,H.prev,Z.next),gs(e,x,H),gs(e,Z,q),p=q,x=Z,I-=1,C=[],T=[]}else $.delete(A),lg(A,p,i),gs(e,A.prev,A.next),gs(e,A,x===null?e.first:x.next),gs(e,x,A),x=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),x=A,p=A.next}if(p!==null||$!==void 0){for(var re=$===void 0?[]:ml($);p!==null;)(p.e.f&8192)===0&&re.push(p),p=p.next;var X=re.length;if(X>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<X;I+=1)(Me=re[I].a)==null||Me.measure();for(I=0;I<X;I+=1)(_e=re[I].a)==null||_e.fix()}C0(e,re,ce,f)}}d&&Go(()=>{var ae;if(_!==void 0)for(A of _)(ae=A.a)==null||ae.apply()}),kt.first=e.first&&e.first.e,kt.last=x&&x.e}function I0(t,e,i,o){(o&1)!==0&&Pa(t.v,e),(o&2)!==0?Pa(t.i,i):t.i=i}function cg(t,e,i,o,n,a,s,d,l,u){var f=hs,b=(l&1)!==0,p=(l&16)===0,$=b?p?Zr(n):Gi(n):n,x=(l&2)===0?s:Gi(s);Pe&&b&&($.debug=()=>{var C=typeof x=="number"?s:x.v;u()[C]});var _={i:x,v:$,k:a,a:null,e:null,prev:i,next:o};hs=_;try{return _.e=ji(()=>d(t,$,x,u),Qe),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{hs=f}}function lg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Po(a);n.before(a),a=s}}function gs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function k0(t,e,i){var a,s;if(!e||e===Zv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=en)!=null&&s[yi]&&(o=`in ${en[yi]}`),Pv(Ju(o))}function Ml(t,e,i,o,n){var a=t,s="",d;po(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Qe&&zi();return}d!==void 0&&(co(d),d=void 0),s!==""&&(d=ji(()=>{if(Qe){for(var u=gt.data,f=zi(),b=f;f!==null&&(f.nodeType!==8||f.data!=="");)b=f,f=Po(f);if(f===null)throw Fs(),Kr;Pe&&!n&&k0(f.parentNode,u,s),yo(gt,b),a=xi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ua(p);if((i||o)&&($=wi($)),yo(wi($),$.lastChild),i||o)for(;wi($);)a.before(wi($));else a.before($)}))})}function he(t,e,...i){var o=t,n=oe,a;po(()=>{n!==(n=e())&&(a&&(co(a),a=null),Pe&&n==null&&gv(),a=ji(()=>n(o,...i)))},65536),Qe&&(o=gt)}function Pi(t,e,i){Qe&&zi();var o=t,n,a;po(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=ji(()=>i(o,n))))},65536),Qe&&(o=gt)}function Gs(t,e,i,o,n,a){var x;let s=Qe;Qe&&zi();var d=Pe&&a&&((x=At)==null?void 0:x.function[yi]),l,u,f=null;Qe&>.nodeType===1&&(f=gt,zi());var b=Qe?gt:t,p,$=hs;po(()=>{let _=e()||null;var C=n?n():i||_==="svg"?Tu:null;if(_!==l){var T=hs;ap($),p&&(_===null?hn(p,()=>{p=null,u=null}):_===u?Jr(p):(co(p),vc(!1))),_&&_!==u&&(p=ji(()=>{if(f=Qe?f:C?document.createElementNS(C,_):document.createElement(_),Pe&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),yo(f,f),o){Qe&&ig(_)&&f.append(document.createComment(""));var k=Qe?wi(f):f.appendChild(Xo());Qe&&(k===null?uo(!1):xi(k)),o(f,k)}kt.nodes_end=f,b.before(f)})),l=_,l&&(u=l),vc(!0),ap(T)}},65536),s&&(uo(!0),xi(b))}var dp;function ug(t){return dp=t.target,new lp(t)}var ts,er,lp=class{constructor(e){us(this,ts);us(this,er);var a,s;var i=new Map,o=(d,l)=>{var u=Zr(l);return i.set(d,u),u};let n=new Proxy(Dt(W({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===fl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return D((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Ta(this,er,(e.hydrate?np:es)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Na(),Ta(this,ts,n.$$events);for(let d of Object.keys(Ni(this,er)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Ni(this,er)[d]},set(l){Ni(this,er)[d]=l},enumerable:!0});Ni(this,er).$set=d=>{Object.assign(n,d)},Ni(this,er).$destroy=()=>{Ks(Ni(this,er))}}$set(e){Ni(this,er).$set(e)}$on(e,i){Ni(this,ts)[e]=Ni(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Ni(this,ts)[e].push(o),()=>{Ni(this,ts)[e]=Ni(this,ts)[e].filter(n=>n!==o)}}$destroy(){Ni(this,er).$destroy()}};ts=new WeakMap,er=new WeakMap;function K(t,e){Go(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=dp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&ng(e.hash,d)}})}function pg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=pg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=pg(t))&&(o&&(o+=" "),o+=e);return o}function Ll(t){return typeof t=="object"?fg(t):t!=null?t:""}var mg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function gg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||mg.includes(o[s-1]))&&(d===o.length||mg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function vg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function cp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function hg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(cp)),n&&l.push(...Object.keys(n).map(cp));var u=0,f=-1;let _=t.length;for(var b=0;b<_;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=b;else if(p===";"||b===_-1){if(f!==-1){var $=cp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&b++;var x=t.substring(u,b).trim();i+=" "+x+";"}}u=b+1,f=-1}}}}return o&&(i+=vg(o)),n&&(i+=vg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=gg(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function up(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function rt(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=hg(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(up(t,i==null?void 0:i[0],o[0]),up(t,i==null?void 0:i[1],o[1],"important")):up(t,i,o));return o}var qa=Symbol("class"),Wa=Symbol("style"),$g=Symbol("is custom element"),yg=Symbol("is html");function xg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=wg(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||R0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[nv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=wg(t),s=a[$g],d=!a[yg];let l=Qe&&s;l&&uo(!1);var u=e||{},f=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Ll(i.class):(o||i[qa])&&(i.class=null),i[Wa]&&((A=i.style)!=null||(i.style=null));var p=Sg(t);for(let I in i){let V=i[I];if(f&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,$,V,o,e==null?void 0:e[qa],i[qa]),u[I]=V,u[qa]=i[qa];continue}if(I==="style"){rt(t,V,e==null?void 0:e[Wa],i[Wa]),u[I]=V,u[Wa]=i[Wa];continue}var x=u[I];if(V!==x){u[I]=V;var _=I[0]+I[1];if(_!=="$$")if(_==="on"){let q={},G="$$"+I,H=I.slice(2);var C=Jv(H);if(Xv(H)&&(H=H.slice(0,-7),q.capture=!0),!C&&x){if(V!=null)continue;t.removeEventListener(H,u[G],q),u[G]=null}if(V!=null)if(C)t[`__${H}`]=V,at([H]);else{let Z=function(re){u[I].call(this,re)};var P=Z;u[G]=ip(H,t,Z,q)}else C&&(t[`__${H}`]=void 0)}else if(I==="style")De(t,I,V);else if(I==="autofocus")ep(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&f)xg(t,V);else{var T=I;d||(T=eg(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!k)if(a[I]=null,T==="value"||T==="checked"){let q=t,G=e===void 0;if(T==="value"){let H=q.defaultValue;q.removeAttribute(T),q.defaultValue=H,q.value=q.__value=G?H:null}else{let H=q.defaultChecked;q.removeAttribute(T),q.defaultChecked=H,q.checked=G?H:!1}}else t.removeAttribute(I);else k||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&De(t,T,V,n)}}}return l&&uo(!0),u}function wg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[$g]:t.nodeName.includes("-"),[yg]:t.namespaceURI===ev}}var _g=new Map;function Sg(t){var e=_g.get(t.nodeName);if(e)return e;_g.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function R0(t,e,i){var o;Pe&&(e==="srcset"&&N0(t,i)||pp((o=t.getAttribute(e))!=null?o:"",i)||Ev(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function bg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function N0(t,e){var i=bg(t.srcset),o=bg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(pp(i[s][0],n)||pp(n,i[s][0])))}var B0=jd?()=>performance.now():()=>Date.now(),yr={tick:t=>(jd?requestAnimationFrame:oe)(t),now:()=>B0(),tasks:new Set};function Cg(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(Cg)}function Tg(t){let e;return yr.tasks.size===0&&yr.tick(Cg),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function gc(t,e){El(()=>{t.dispatchEvent(new CustomEvent(e))})}function F0(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 Ig(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=F0(n.trim());e[s]=a.trim()}return e}var U0=t=>t;function mp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,b=e.style.overflow,p,$;function x(){var V;var A=Ft,I=kt;_o(null),lo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{_o(A),lo(I)}}var _={is_global:d,in(){var A;if(e.inert=f,!n){$==null||$.abort(),(A=$==null?void 0:$.reset)==null||A.call($);return}a||p==null||p.abort(),gc(e,"introstart"),p=fp(e,x(),$,1,()=>{gc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=b})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,gc(e,"outrostart"),$=fp(e,x(),p,0,()=>{gc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},C=kt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(_),n&&Pl){var T=d;if(!T){for(var k=C.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&gn(()=>{wt(()=>_.in())})}}function fp(t,e,i,o,n){var a=o===1;if(fs(e)){var s,d=!1;return Go(()=>{if(!d){var C=e({direction:a?"in":"out"});s=fp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:b=U0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Ig(u(0,1));p.push($,$)}var x=()=>1-o,_=t.animate(p,{duration:l});return _.onfinish=()=>{var H;var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,k=e.duration*Math.abs(T),P=[];if(k>0){var A=!1;if(u)for(var I=Math.ceil(k/16.666666666666668),V=0;V<=I;V+=1){var q=C+T*b(V/I),G=Ig(u(q,1-q));P.push(G),A||(A=G.overflow==="hidden")}A&&(t.style.overflow="hidden"),x=()=>{var Z=_.currentTime;return C+T*b(Z/k)},f&&Tg(()=>{if(_.playState!=="running")return!1;var Z=x();return f(Z,1-Z),!0})}_=t.animate(P,{duration:k,fill:"forwards"}),_.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var _s,Ka,Vl,_c,kg,bc=class bc{constructor(e){us(this,_c);us(this,_s,new WeakMap);us(this,Ka);us(this,Vl);Ta(this,Vl,e)}observe(e,i){var o=Ni(this,_s).get(e)||new Set;return o.add(i),Ni(this,_s).set(e,o),Xm(this,_c,kg).call(this).observe(e,Ni(this,Vl)),()=>{var n=Ni(this,_s).get(e);n.delete(i),n.size===0&&(Ni(this,_s).delete(e),Ni(this,Ka).unobserve(e))}}};_s=new WeakMap,Ka=new WeakMap,Vl=new WeakMap,_c=new WeakSet,kg=function(){var e;return(e=Ni(this,Ka))!=null?e:Ta(this,Ka,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Ni(this,_s).get(o.target)||[])n(o)}}))},En(bc,"entries",new WeakMap);var vp=bc;var W0=new vp({box:"border-box"});function Hr(t,e,i){var o=W0.observe(t,()=>i(t[e]));gn(()=>(wt(()=>i(t[e])),o))}function Eg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function ft(t={},e,i,o){return gn(()=>{var n,a;return $o(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Eg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&Eg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>lc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ba(()=>{Pg(e,o),ms(i.b)}),Fe(()=>{let n=wt(()=>i.m.map(av));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{Pg(e,o),ms(i.a)})}function Pg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;bv(e)},set:o=>{i=o}})}};Q0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Q0;function Wt(t){At===null&&Da("onMount"),Nr&&At.l!==null?K0(At).m.push(t):Fe(()=>{let e=wt(t);if(typeof e=="function")return e})}function _n(t){At===null&&Da("onDestroy"),Wt(()=>()=>wt(t))}function K0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Rl(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 Qa=[];function tr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(Ia(t,d)&&(t=d,i)){let l=!Qa.length;for(let u of o)u[1](),Qa.push(u,t);if(l){for(let u=0;u<Qa.length;u+=2)Qa[u][0](Qa[u+1]);Qa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function Si(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return tr(i,(s,d)=>{let l=!1,u=[],f=0,b=oe,p=()=>{if(f)return;b();let x=e(o?u[0]:u,s,d);a?s(x):b=typeof x=="function"?x:oe},$=n.map((x,_)=>Rl(x,C=>{u[_]=C,f&=~(1<<_),l&&p()},()=>{f|=1<<_}));return l=!0,p(),function(){ms($),b(),l=!1}})}function Te(t){let e;return Rl(t,i=>e=i)(),e}var $c=!1,gp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:oe};if(o.store!==t&&!(gp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Rl(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&gp in i?Te(t):r(o.source)}function Ne(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();ao(t,gp,{enumerable:!1,value:!0})})}return[t,e]}function hp(t){var e=$c;try{return $c=!1,[t(),$c]}finally{$c=e}}var e_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&_v(`${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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},e_)}var t_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(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 n=t.props[o];fs(n)&&(n=n());let a=Pn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Pn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===fl)return!1;for(let i of t.props)if(fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){fs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},t_)}function Ag(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var q,G;var n=(i&1)!==0,a=!Nr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=hp(()=>t[e]):u=t[e];var f=Ho in t||fl in t,b=s&&((G=(q=Pn(t,e))==null?void 0:q.set)!=null?G:f&&e in t&&(H=>t[e]=H))||void 0,p=o,$=!0,x=!1,_=()=>(x=!0,$&&($=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&(b&&a&&hv(e),u=_(),b&&b(u));var C;if(a)C=()=>{var H=t[e];return H===void 0?_():($=!0,x=!1,H)};else{var T=(n?v:br)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0)return C;if(b){var k=t.$$legacy;return function(H,Z){return arguments.length>0?((!a||!Z||k||l)&&b(Z?C():H),H):C()}}var P=!1,A=!1,I=Zr(u),V=v(()=>{var H=C(),Z=r(I);return P?(P=!1,A=!0,Z):(A=!1,I.v=H)});return s&&r(V),n||(V.equals=ka),function(H,Z){if(hl!==null&&(P=A,C(),r(I)),arguments.length>0){let re=Z?r(V):a&&s?me(H):H;if(!V.equals(re)){if(P=!0,D(I,re),x&&p!==void 0&&(p=re),Ag(V))return H;wt(()=>r(V))}return H}return Ag(V)?V.v:r(V)}}var i_;typeof HTMLElement=="function"&&(i_=class extends HTMLElement{constructor(e,i,o){super();En(this,"$$ctor");En(this,"$$s");En(this,"$$c");En(this,"$$cn",!1);En(this,"$$d",{});En(this,"$$r",!1);En(this,"$$p_d",{});En(this,"$$l",{});En(this,"$$l_u",new Map);En(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),y(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=o_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=_p(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=ug({component:this.$$ctor,target:this.shadowRoot||this,props:Dt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=cc(()=>{$o(()=>{var a;this.$$r=!0;for(let s of Iu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=_p(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=_p(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Iu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _p(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function o_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Mg="5";var Lg,Vg,Rg;typeof window!="undefined"&&((Rg=(Vg=(Lg=window.__svelte)!=null?Lg:window.__svelte={}).v)!=null?Rg:Vg.v=new Set).add(Mg);import{clientChecker as Lm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as P1,safeStorage as Ux,throttleFn as zx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as qx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as r_,fillWithDefault as s_,VideoQuality as Ng}from"@vkontakte/videoplayer-shared/es2015";var a_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:r_.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:Ng.Q_480P,highQualityLimit:Ng.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,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}},Bg=t=>s_(t,a_),Dg=t=>Ha("ui-config",t),Kt=()=>Oa("ui-config");var Nl="vk_player_debug_panel_opened";var Og="videoplayer",Hg="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Fg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ug=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),zg=new Set(["ShiftRight","ShiftLeft"]);var qg=["TIMELINE"],Bl=[...qg,"GRAPH_BUTTON"],bp=[...qg,"PLAY_BUTTON"],Dl=[...Bl,"PLAY_BUTTON"];var Ur=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ur||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Wg,VERSION as l_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as d_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as c_}from"@vkontakte/videoplayer-statistics/es2015";var yc="prod",Ga="1.1.64";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Kg=Symbol("storeContext"),Qg=Symbol("microStoresContext"),Gg=(t,e)=>{Ha(Kg,t),Ha(Qg,e),yc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Oa(Kg);return Wg(t,"Store context is empty!"),t},fo=()=>{let t=Oa(Qg);return Wg(t,"MicroStores context is empty!"),t},oi=(t,e)=>wc(t,t.getValue(),e),wc=(t,e,i)=>tr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),jg=(t,e,i,o)=>{var k,P,A,I,V,q;let n=t.info,{width:a,height:s}=Te(i.ui.playerSize),d=(P=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?P:0,l=(I=(A=n.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?I:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ga} (core: ${d_}, stat: ${c_}, shared: ${l_})`,b=Te(i.state.errorLog$),p=b.length?`
|
|
49
|
-
|
|
50
|
-
`,
|
|
51
|
-
`,
|
|
52
|
-
`;return
|
|
53
|
-
`):void 0
|
|
54
|
-
`)},Yg=(t,e,i)=>{var q,G,H,Z;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s={version:Ga,viewport:`${n}x${a}`,volume:Math.round(Te(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),b=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(b&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-Te(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let x=o.videoBitrate$.getValue();x&&(s.bitrate=x);let _=o.liveLatency$.getValue();_&&(s.liveLatency=_);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let k=Te(i.vsid);typeof k=="string"&&(s.vsid=k);let P=(q=t.info.currentVideoStream$.getValue())==null?void 0:q.codec;P&&(s.videoCodec=P);let A=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.codec;A&&(s.audioCodec=A),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},Zg=(t,e)=>Zs(t,e,"mp4"),Xg=t=>!t.type,Jg=t=>!!t.type,eh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},xc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as xp,safeStorage as xo}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var th="vk_player_prefer_traffic_saving_enabled",ih="vk_player_preferred_volume",oh="vk_player_prefer_volume_mute",wp="vk_player_preferred_quality",$p="vk_player_preferred_default_quality_settings",yp="vk_player_preferred_quality_settings_by_video",nh="vk_player_preferred_stream_language",rh="vk_player_preferred_rate",sh="vk_player_preferred_autoplay_next",ah=t=>t>1?1:t<0?0:t,Sp=t=>xo.set(ih,ah(t).toString(10)),Sc=()=>{let t=xo.get(ih);return xp(t)?void 0:ah(parseFloat(t))},Cp=(t,e)=>xo.set(wp,JSON.stringify({videoId:t,value:e})),Hl=()=>xo.remove(wp),Tp=t=>{let e=xo.get(wp);if(xp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hl();return}return o},Ip=(t,e)=>{e?xo.set(t,"true"):xo.remove(t)},kp=t=>xo.get(t)==="true",Ep=t=>Ip(oh,t),lh=()=>kp(oh),Ol=t=>Ip(th,t),Pp=()=>kp(th),dh=()=>xo.get(nh),Ap=t=>xo.set(nh,t),ch=t=>xo.set(rh,JSON.stringify({rate:t})),uh=()=>{let t=xo.get(rh);if(xp(t))return;let{rate:e}=JSON.parse(t);return e},ph=t=>Ip(sh,t),fh=()=>kp(sh),u_=()=>{let t=f=>{xo.set($p,JSON.stringify(f))},e=()=>{try{let f=xo.get($p);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=xo.get(yp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{xo.set(yp,JSON.stringify(f))},n=f=>{u(f);let b=f?i():null;if(b&&(b==null?void 0:b.videoId)===f)return Dt(W({},b),{appliesTo:"to-video"});b&&a();let p=e();return p?Dt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{xo.remove(yp)},s=()=>{xo.remove($p)},d=(f,b="as-default")=>{f.type==="exact_quality"?o(f):b==="as-default"?t(f):o(f)},l=f=>{let b=n(f);if(b){switch(b.type){case"traffic_saving":Ol(!0);break;case"exact_quality":Cp(f,b.quality)}a(),s()}},u=f=>{let b=Tp(f);if(b){o({type:"exact_quality",videoId:f,quality:b});return}Pp()&&t({type:"traffic_saving",videoId:f}),Ol(!1),Hl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:mh,migrateSettingsToLegacyWay:vh,savePreferredQualitySettings:Cc,savePreferredDefaultQualitySettings:mA,removePreferredQualitySettingsByVideo:vA,getPreferredDefaultQualitySettings:Tc}=u_();import{PlaybackState as I1}from"@vkontakte/videoplayer-core/es2015";var p_=we('<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 Fl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=p_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),y(t,o)}import{isNullable as _h,InterfaceLanguage as bh}from"@vkontakte/videoplayer-shared/es2015";var f_={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_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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",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_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",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",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_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",aria_label_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",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_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",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,
|
|
55
|
-
|
|
56
|
-
\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`},gh=f_;var m_={mobile_unmute:"Unmute",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_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}",aria_open_settings:"Open video player settings",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_disable:"Disabled",traffic_saving_enable:"Enabled",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:"Turn 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",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_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",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_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable 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_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",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,
|
|
57
|
-
so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
58
|
-
Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh);os.set(bh.RU,gh);var $h=new Map,Mp=({language:t,pack:e,fallback:i})=>{if(os.has(t)){let o=os.get(t);os.set(t,W(W({},o),e))}else os.set(t,e);$h.set(t,i)},Lp=t=>os.has(t),Vp=(t,e,i,o)=>{var s;let n=os.get(t),a=n==null?void 0:n[e];if(_h(a)){let d=(s=$h.get(t))!=null?s:o,l=d?os.get(d):void 0;a=l==null?void 0:l[e]}return _h(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=Te(i),n=Kt();return Vp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var ja;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ja||(ja={}));var v_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,g_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,h_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ic="?",__="X-Sentry-Auth",b_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function $_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
59
|
-
`),o,n;for(let a=0;a<i.length;++a){if(o=v_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ic,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=h_.exec(i[a]))n={filename:o[2],function:o[1]||Ic,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=g_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Ic,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Ic),e.push(n)}return e.length?{value:yh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function yh(t){return(t&&t.message||"No error message").split(`
|
|
60
|
-
`).filter(i=>!!i)[0]}function y_(t){try{let e=$_(t);if(e)return e}catch(e){}return{value:yh(t),type:t&&t.name,stacktrace:{frames:[]}}}function x_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var kc=class{constructor(e){if(e&&e.dsn){let i=b_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.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 Dt(W({},this.getRequestBlank()),{exception:{values:[y_(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(__,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:x_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function xh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function w_(){return window}var Ec=class t extends kc{constructor(e,i=w_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},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",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Dt(W({},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:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Dt(W({},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=>xh(i,o))):!1}getRequestBlank(){return W(Dt(W({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(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>xh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return Dt(W({},i),{[o]:a||d?[...a||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Pc,Subscription as S_}from"@vkontakte/videoplayer-shared/es2015";var Ac=null,Xs=class{constructor(e,i,o={}){!Ac&&e.dsn&&(this.sentryClient=new Ec({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new S_,this.options=e,this.context=o,Ac=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ac=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:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:b}=s,{errorType:p,category:$}=i;if(Pc($)&&b.includes($)||Pc(p)&&f.includes(p))return;if(Math.random()<=d||Pc($)&&u.includes($)||Pc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(W(W({},a),o));try{p&&n.captureMessage(p,i.fatal?ja.fatal:ja.error),n.report(e)}catch(_){console.error(_)}}}static getInstance(){return Ac}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var Mc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Lc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),wh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ul=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},bs=()=>!!Ul(),Vc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Rc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Sh=t=>{let e=window.screen;return(n=>xt(void 0,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Ch}from"@vkontakte/videoplayer-core/es2015";var Th=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Ch.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Ch.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as C_,ValueSubject as Rp}from"@vkontakte/videoplayer-shared/es2015";var Js=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:C_(this.onResize.bind(this),300)};this.info={isActive$:new Rp(!1),isEnabled$:new Rp(!1),type:0};this.info.isEnabled$=new Rp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return xt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return xt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return xt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=W({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return xt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ea(t){return t instanceof Js}import{devNull as Ih,now as kh}from"@vkontakte/videoplayer-shared/es2015";Sv();function Dp(t,e){U(e,!1);let i=Ie();Wt(()=>{i.getAdmanWrapper().startPostroll()}),xr(),z()}import{noop as T_}from"@vkontakte/videoplayer-shared/es2015";var I_=(t,e)=>{t.stopPropagation(),e()()},k_=L('<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>'),E_=L("<div><!></div>"),P_={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 Op(t,e){U(e,!0),K(t,P_);let[i,o]=Ne(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,T_),u=Ie().ui.isMobile,f=v(()=>a()>0&&a()>=s());var b=E_();let p;var $=h(b);{var x=C=>{var T=k_();T.__click=[I_,d];var k=h(T);xe(),g(T),E(P=>ge(k,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),y(C,T)},_=C=>{var T=Or();E(k=>ge(T,k),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),y(C,T)};R($,C=>{r(f)?C(x):C(_,!1)})}g(b),E(C=>p=ee(b,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),y(t,b),z(),o()}at(["click"]);var A_=L('<button class="svelte-1wy3dql"> </button>'),M_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {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 Hp(t,e){U(e,!1),K(t,M_),xr();var i=A_(),o=h(i,!0);g(i),E(n=>ge(o,n),[()=>F("visit_advertiser")],br),y(t,i),z()}var L_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),V_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),R_={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(
|
|
47
|
+
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 Pt=null;function Pl(t){Pt=t}var mn=null;function Al(t){mn=t}function Wa(t){return np("getContext").get(t)}function qa(t,e){let i=np("setContext");return Re&&wt(()=>tp(e,null,!0)),i.set(t,e),e}function Ll(){return np("getAllContexts")}function O(t,e=!1,i){var o=Pt={p:Pt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Qr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:zi(!1)}),vn(()=>{o.d=!0}),Re&&(Pt.function=i,mn=i)}function H(t){var r,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Et,o=zt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];so(a.effect),$o(a.reaction),Tn(a.fn)}}finally{so(i),$o(o)}}Pt=e.p,Re&&(mn=(d=(r=e.p)==null?void 0:r.function)!=null?d:null),e.m=!0}return t||{}}function Yr(){return!Qr||Pt!==null&&Pt.l===null}function np(t){var e;return Pt===null&&za(t),(e=Pt.c)!=null?e:Pt.c=new Map(_0(Pt)||void 0)}function _0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var b0=/\r/g;function ig(t){t=t.replace(b0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function og(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var $0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ng(t){return $0.includes(t)}var y0=["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 x0={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 rg(t){var e;return t=t.toLowerCase(),(e=x0[t])!=null?e:t}var z6=[...y0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var w0=["touchstart","touchmove"];function sg(t){return w0.includes(t)}var S0=["textarea","script","style","title"];function ag(t){return S0.includes(t)}function rp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var lg=new Map;function dg(t,e){var i=lg.get(t);i||(i=new Set,lg.set(t,i)),i.add(e)}function sp(t,e){if(e){let i=document.body;t.autofocus=!0,ln(()=>{document.activeElement===i&&t.focus()})}}function Vl(t){var e=zt,i=Et;$o(null),so(null);try{return t()}finally{$o(e),so(i)}}var ap=new Set,hc=new Set;function ta(t){if(!Xe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function lp(t,e,i,o={}){function n(a){if(o.capture||Ka.call(e,a),!a.cancelBubble)return Vl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ln(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var a={capture:o,passive:n},r=lp(t,e,i,a);(e===document.body||e===window||e===document)&&vn(()=>{e.removeEventListener(t,r,a)})}function dt(t){for(var e=0;e<t.length;e++)ap.add(t[e]);for(var i of hc)i(t)}function Ka(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,r=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(r=l)}if(a=n[r]||t.target,a!==e){ro(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=zt,$=Et;$o(null),so(null);try{for(var p,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(Tr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){p?_.push(M):p=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let M of _)queueMicrotask(()=>{throw M});throw p}}finally{t.__root=e,delete t.currentTarget,$o(f),so($)}}}var T0;function cg(){T0=void 0}function Qa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=Et;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Xe)return wo(vt,null),vt;n===void 0&&(n=Qa(a?t:"<!>"+t),i||(n=hi(n)));var r=o||Sl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(r),l=r.lastChild;wo(d,l)}else wo(r,r);return r}}function Te(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,r;return()=>{if(Xe)return wo(vt,null),vt;if(!r){var d=Qa(a),l=hi(d);if(n)for(r=document.createDocumentFragment();hi(l);)r.appendChild(hi(l));else r=hi(l)}var u=r.cloneNode(!0);if(n){var f=hi(u),$=u.lastChild;wo(f,$)}else wo(u,u);return u}}function jr(t=""){if(!Xe){var e=pn(t+"");return wo(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=pn()),gi(i)),wo(i,i),i}function Fe(){if(Xe)return wo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=pn();return t.append(e,i),wo(e,i),t}function y(t,e){if(Xe){Et.nodes_end=vt,Di();return}t!==null&&t.before(e)}var Rl=!0;function _c(t){Rl=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function us(t,e){return pg(t,e)}function cp(t,e){var r;rc(),e.intro=(r=e.intro)!=null?r:!1;let i=e.target,o=Xe,n=vt;try{for(var a=hi(i);a&&(a.nodeType!==8||a.data!==Ss);)a=Bo(a);if(!a)throw os;lo(!0),gi(a),Di();let d=pg(t,Ot(z({},e),{anchor:a}));if(vt===null||vt.nodeType!==8||vt.data!==qs)throw Zs(),os;return lo(!1),d}catch(d){if(d===os)return e.recover===!1&&$v(),rc(),Cl(i),lo(!1),us(t,e);throw d}finally{lo(o),gi(n),cg()}}var Ga=new Map;function pg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:r=!0}){rc();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=sg(_);e.addEventListener(_,Ka,{passive:w});var b=Ga.get(_);b===void 0?(document.addEventListener(_,Ka,{passive:w}),Ga.set(_,1)):Ga.set(_,b+1)}}};l(bl(ap)),hc.add(l);var u=void 0,f=Jv(()=>{var $=i!=null?i:e.appendChild(pn());return Wi(()=>{if(a){O({});var p=Pt;p.c=a}n&&(o.$$events=n),Xe&&wo($,null),Rl=r,u=t($,o)||{},Rl=!0,Xe&&(Et.nodes_end=vt),a&&H()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ka);var _=Ga.get(p);--_===0?(document.removeEventListener(p,Ka),Ga.delete(p)):Ga.set(p,_)}hc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return dp.set(u,f),u}var dp=new WeakMap;function ia(t,e){let i=dp.get(t);return i?(dp.delete(t),i(e)):(Re&&Bv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Xe&&i===0&&Di();var n=t,a=null,r=null,d=Li,l=i>0?65536:0,u=!1;let f=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(Xe&&o!==-1){if(i===0){let C=n.data;C===Ss?o=0:C===Ws?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Da(),gi(n),lo(!1),w=!0,o=-1)}d?(a?cs(a):_&&(a=Wi(()=>_(n))),r&&In(r,()=>{r=null})):(r?cs(r):_&&(r=Wi(()=>_(n,[i+1,o]))),a&&In(a,()=>{a=null})),w&&lo(!0)};co(()=>{u=!1,e(f),u||$(null,null)},l),Xe&&(n=vt)}function oa(t,e,i){Xe&&Di();var o=t,n=Li,a,r=Yr()?mv:Ma;co(()=>{r(n,n=e())&&(a&&In(a),a=Wi(()=>i(o)))}),Xe&&(o=vt)}var ks=null;function fp(t){ks=t}function Bl(t,e){return e}function P0(t,e,i,o){for(var n=[],a=e.length,r=0;r<a;r++)mc(e[r].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Cl(l),l.append(i),o.clear(),Es(t,e[0].prev,e[a-1].next)}ep(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),Es(t,f.prev,f.next)),ao(f.e,!d)}})}function Si(t,e,i,o,n,a=null){var r=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;r=Xe?gi(hi(u)):u.appendChild(pn())}Xe&&Di();var f=null,$=!1,p=kr(()=>{var _=i();return Tr(_)?_:_==null?[]:bl(_)});co(()=>{var _=s(p),w=_.length;if($&&w===0)return;$=w===0;let b=!1;if(Xe){var C=r.data===Ws;C!==(w===0)&&(r=Da(),gi(r),lo(!1),b=!0)}if(Xe){for(var T=null,I,M=0;M<w;M++){if(vt.nodeType===8&&vt.data===qs){r=vt,b=!0,lo(!1);break}var P=_[M],E=o(P,M);I=vg(vt,d,T,null,P,E,M,n,e,i),d.items.set(E,I),T=I}w>0&&gi(Da())}Xe||A0(_,d,r,n,e,o,i),a!==null&&(w===0?f?cs(f):f=Wi(()=>a(r)):f!==null&&In(f,()=>{f=null})),b&&lo(!0),s(p)}),Xe&&(r=vt)}function A0(t,e,i,o,n,a,r){var le,Me,Ne,_e;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,$=e.first,p=$,_,w=null,b,C=[],T=[],I,M,P,E;if(d)for(E=0;E<u;E+=1)I=t[E],M=a(I,E),P=f.get(M),P!==void 0&&((le=P.a)==null||le.measure(),(b!=null?b:b=new Set).add(P));for(E=0;E<u;E+=1){if(I=t[E],M=a(I,E),P=f.get(M),P===void 0){var V=p?p.e.nodes_start:i;w=vg(V,e,w,w===null?e.first:w.next,I,M,E,o,n,r),f.set(M,w),C=[],T=[],p=w.next;continue}if(l&&M0(P,I,E,n),(P.e.f&8192)!==0&&(cs(P.e),d&&((Me=P.a)==null||Me.unfix(),(b!=null?b:b=new Set).delete(P))),P!==p){if(_!==void 0&&_.has(P)){if(C.length<T.length){var W=T[0],K;w=W.prev;var U=C[0],j=C[C.length-1];for(K=0;K<C.length;K+=1)fg(C[K],W,i);for(K=0;K<T.length;K+=1)_.delete(T[K]);Es(e,U.prev,j.next),Es(e,w,U),Es(e,j,W),p=W,w=j,E-=1,C=[],T=[]}else _.delete(P),fg(P,p,i),Es(e,P.prev,P.next),Es(e,P,w===null?e.first:w.next),Es(e,w,P),w=P;continue}for(C=[],T=[];p!==null&&p.k!==M;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;P=p}C.push(P),w=P,p=P.next}if(p!==null||_!==void 0){for(var ae=_===void 0?[]:bl(_);p!==null;)(p.e.f&8192)===0&&ae.push(p),p=p.next;var Y=ae.length;if(Y>0){var de=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<Y;E+=1)(Ne=ae[E].a)==null||Ne.measure();for(E=0;E<Y;E+=1)(_e=ae[E].a)==null||_e.fix()}P0(e,ae,de,f)}}d&&ln(()=>{var ce;if(b!==void 0)for(P of b)(ce=P.a)==null||ce.apply()}),Et.first=e.first&&e.first.e,Et.last=w&&w.e}function M0(t,e,i,o){(o&1)!==0&&Ra(t.v,e),(o&2)!==0?Ra(t.i,i):t.i=i}function vg(t,e,i,o,n,a,r,d,l,u){var f=ks,$=(l&1)!==0,p=(l&16)===0,_=$?p?ls(n):zi(n):n,w=(l&2)===0?r:zi(r);Re&&$&&(_.debug=()=>{var C=typeof w=="number"?r:w.v;u()[C]});var b={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};ks=b;try{return b.e=Wi(()=>d(t,_,w,u),Xe),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ks=f}}function fg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var r=Bo(a);n.before(a),a=r}}function Es(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 L0(t,e,i){var a,r;if(!e||e===ig(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(r=mn)!=null&&r[vi]&&(o=`in ${mn[vi]}`),Rv(rp(o))}function Nl(t,e,i,o,n){var a=t,r="",d;co(()=>{var l;if(r===(r=(l=e())!=null?l:"")){Xe&&Di();return}d!==void 0&&(ao(d),d=void 0),r!==""&&(d=Wi(()=>{if(Xe){for(var u=vt.data,f=Di(),$=f;f!==null&&(f.nodeType!==8||f.data!=="");)$=f,f=Bo(f);if(f===null)throw Zs(),os;Re&&!n&&L0(f.parentNode,u,r),wo(vt,$),a=gi(f);return}var p=r+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=Qa(p);if((i||o)&&(_=hi(_)),wo(hi(_),_.lastChild),i||o)for(;hi(_);)a.before(hi(_));else a.before(_)}))})}function be(t,e,...i){var o=t,n=oe,a;co(()=>{n!==(n=e())&&(a&&(ao(a),a=null),Re&&n==null&&yv(),a=Wi(()=>n(o,...i)))},65536),Xe&&(o=vt)}function Ci(t,e,i){Xe&&Di();var o=t,n,a;co(()=>{n!==(n=e())&&(a&&(In(a),a=null),n&&(a=Wi(()=>i(o,n))))},65536),Xe&&(o=vt)}function na(t,e,i,o,n,a){var w;let r=Xe;Xe&&Di();var d=Re&&a&&((w=Pt)==null?void 0:w.function[vi]),l,u,f=null;Xe&&vt.nodeType===1&&(f=vt,Di());var $=Xe?vt:t,p,_=ks;co(()=>{let b=e()||null;var C=n?n():i||b==="svg"?Mu:null;if(b!==l){var T=ks;fp(_),p&&(b===null?In(p,()=>{p=null,u=null}):b===u?cs(p):(ao(p),_c(!1))),b&&b!==u&&(p=Wi(()=>{if(f=Xe?f:C?document.createElementNS(C,b):document.createElement(b),Re&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),wo(f,f),o){Xe&&ag(b)&&f.append(document.createComment(""));var I=Xe?hi(f):f.appendChild(pn());Xe&&(I===null?lo(!1):gi(I)),o(f,I)}Et.nodes_end=f,$.before(f)})),l=b,l&&(u=l),_c(!0),fp(T)}},65536),r&&(lo(!0),gi($))}var vp;function gg(t){return vp=t.target,new mp(t)}var ps,ur,mp=class{constructor(e){ws(this,ps);ws(this,ur);var a,r;var i=new Map,o=(d,l)=>{var u=ls(l);return i.set(d,u),u};let n=new Proxy(Ot(z({},e.props||{}),{$$events:{}}),{get(d,l){var u;return s((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===_l?!0:(s((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return D((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Aa(this,ur,(e.hydrate?cp:us)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((r=e==null?void 0:e.props)!=null&&r.$$host)||e.sync===!1)&&Fa(),Aa(this,ps,n.$$events);for(let d of Object.keys(Mi(this,ur)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return Mi(this,ur)[d]},set(l){Mi(this,ur)[d]=l},enumerable:!0});Mi(this,ur).$set=d=>{Object.assign(n,d)},Mi(this,ur).$destroy=()=>{ia(Mi(this,ur))}}$set(e){Mi(this,ur).$set(e)}$on(e,i){Mi(this,ps)[e]=Mi(this,ps)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,ps)[e].push(o),()=>{Mi(this,ps)[e]=Mi(this,ps)[e].filter(n=>n!==o)}}$destroy(){Mi(this,ur).$destroy()}};ps=new WeakMap,ur=new WeakMap;function q(t,e){ln(()=>{var n,a,r;var i=t.getRootNode(),o=i.host?i:(r=(n=i.head)!=null?n:i.ownerDocument.head)!=null?r:(a=vp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Re&&dg(e.hash,d)}})}function hg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=hg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function _g(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=hg(t))&&(o&&(o+=" "),o+=e);return o}function Dl(t){return typeof t=="object"?_g(t):t!=null?t:""}var bg=[...`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function yg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,r=0;(r=o.indexOf(n,r))>=0;){var d=r+a;(r===0||bg.includes(o[r-1]))&&(d===o.length||bg.includes(o[d]))?o=(r===0?"":o.substring(0,r))+o.substring(d+1):r=d}}return o===""?null:o}function $g(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function gp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function xg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,r=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(gp)),n&&l.push(...Object.keys(n).map(gp));var u=0,f=-1;let b=t.length;for(var $=0;$<b;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?r++:p===")"&&r--,!d&&a===!1&&r===0){if(p===":"&&f===-1)f=$;else if(p===";"||$===b-1){if(f!==-1){var _=gp(t.substring(u,f).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,f=-1}}}}return o&&(i+=$g(o)),n&&(i+=$g(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var r=t.__className;if(Xe||r!==i){var d=yg(i,o,a);(!Xe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function hp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function st(t,e,i,o){var n=t.__style;if(Xe||n!==e){var a=xg(e,o);(!Xe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(hp(t,i==null?void 0:i[0],o[0]),hp(t,i==null?void 0:i[1],o[1],"important")):hp(t,i,o));return o}var Ya=Symbol("class"),ja=Symbol("style"),Cg=Symbol("is custom element"),Tg=Symbol("is html");function Ig(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=Eg(t);if(Xe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||H0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[dv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&kg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Pe(t,e,i,o,n=!1){var P;var a=Eg(t),r=a[Cg],d=!a[Tg];let l=Xe&&r;l&&lo(!1);var u=e||{},f=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Dl(i.class):(o||i[Ya])&&(i.class=null),i[ja]&&((P=i.style)!=null||(i.style=null));var p=kg(t);for(let E in i){let V=i[E];if(f&&E==="value"&&V==null){t.value=t.__value="",u[E]=V;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Ya],i[Ya]),u[E]=V,u[Ya]=i[Ya];continue}if(E==="style"){st(t,V,e==null?void 0:e[ja],i[ja]),u[E]=V,u[ja]=i[ja];continue}var w=u[E];if(V!==w){u[E]=V;var b=E[0]+E[1];if(b!=="$$")if(b==="on"){let W={},K="$$"+E,U=E.slice(2);var C=ng(U);if(og(U)&&(U=U.slice(0,-7),W.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(U,u[K],W),u[K]=null}if(V!=null)if(C)t[`__${U}`]=V,dt([U]);else{let j=function(ae){u[E].call(this,ae)};var M=j;u[K]=lp(U,t,j,W)}else C&&(t[`__${U}`]=void 0)}else if(E==="style")Oe(t,E,V);else if(E==="autofocus")sp(t,!!V);else if(!r&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&f)Ig(t,V);else{var T=E;d||(T=rg(T));var I=T==="defaultValue"||T==="defaultChecked";if(V==null&&!r&&!I)if(a[E]=null,T==="value"||T==="checked"){let W=t,K=e===void 0;if(T==="value"){let U=W.defaultValue;W.removeAttribute(T),W.defaultValue=U,W.value=W.__value=K?U:null}else{let U=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=U,W.checked=K?U:!1}}else t.removeAttribute(E);else I||p.includes(T)&&(r||typeof V!="string")?t[T]=V:typeof V!="function"&&Oe(t,T,V,n)}}}return l&&lo(!0),u}function Eg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Cg]:t.nodeName.includes("-"),[Tg]:t.namespaceURI===rv}}var wg=new Map;function kg(t){var e=wg.get(t.nodeName);if(e)return e;wg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Jd(o);for(var a in i)i[a].set&&e.push(a);o=rs(o)}return e}function H0(t,e,i){var o;Re&&(e==="srcset"&&F0(t,i)||_p((o=t.getAttribute(e))!=null?o:"",i)||Vv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function _p(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function F0(t,e){var i=Sg(t.srcset),o=Sg(e);return o.length===i.length&&o.every(([n,a],r)=>a===i[r][1]&&(_p(i[r][0],n)||_p(n,i[r][0])))}var U0=Xd?()=>performance.now():()=>Date.now(),Ar={tick:t=>(Xd?requestAnimationFrame:oe)(t),now:()=>U0(),tasks:new Set};function Pg(){let t=Ar.now();Ar.tasks.forEach(e=>{e.c(t)||(Ar.tasks.delete(e),e.f())}),Ar.tasks.size!==0&&Ar.tick(Pg)}function Ag(t){let e;return Ar.tasks.size===0&&Ar.tick(Pg),{promise:new Promise(i=>{Ar.tasks.add(e={c:t,f:i})}),abort(){Ar.tasks.delete(e)}}}function bc(t,e){Vl(()=>{t.dispatchEvent(new CustomEvent(e))})}function K0(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 Mg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let r=K0(n.trim());e[r]=a.trim()}return e}var Q0=t=>t;function $p(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,r=n&&a,d=(t&4)!==0,l=r?"both":n?"in":"out",u,f=e.inert,$=e.style.overflow,p,_;function w(){var V;var P=zt,E=Et;$o(null),so(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{$o(P),so(E)}}var b={is_global:d,in(){var P;if(e.inert=f,!n){_==null||_.abort(),(P=_==null?void 0:_.reset)==null||P.call(_);return}a||p==null||p.abort(),bc(e,"introstart"),p=bp(e,w(),_,1,()=>{bc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,bc(e,"outrostart"),_=bp(e,w(),p,0,()=>{bc(e,"outroend"),P==null||P()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=Et;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Rl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Tn(()=>{wt(()=>b.in())})}}function bp(t,e,i,o,n){var a=o===1;if(Cs(e)){var r,d=!1;return ln(()=>{if(!d){var C=e({direction:a?"in":"out"});r=bp(t,C,i,o,n)}}),{abort:()=>{d=!0,r==null||r.abort()},deactivate:()=>r.deactivate(),reset:()=>r.reset(),t:()=>r.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:$=Q0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var _=Mg(u(0,1));p.push(_,_)}var w=()=>1-o,b=t.animate(p,{duration:l});return b.onfinish=()=>{var U;var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),V=0;V<=E;V+=1){var W=C+T*$(V/E),K=Mg(u(W,1-W));M.push(K),P||(P=K.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var j=b.currentTime;return C+T*$(j/I)},f&&Ag(()=>{if(b.playState!=="running")return!1;var j=w();return f(j,1-j),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Ps,Za,Ol,yc,Lg,xc=class xc{constructor(e){ws(this,yc);ws(this,Ps,new WeakMap);ws(this,Za);ws(this,Ol);Aa(this,Ol,e)}observe(e,i){var o=Mi(this,Ps).get(e)||new Set;return o.add(i),Mi(this,Ps).set(e,o),ov(this,yc,Lg).call(this).observe(e,Mi(this,Ol)),()=>{var n=Mi(this,Ps).get(e);n.delete(i),n.size===0&&(Mi(this,Ps).delete(e),Mi(this,Za).unobserve(e))}}};Ps=new WeakMap,Za=new WeakMap,Ol=new WeakMap,yc=new WeakSet,Lg=function(){var e;return(e=Mi(this,Za))!=null?e:Aa(this,Za,new ResizeObserver(i=>{for(var o of i){xc.entries.set(o.target,o);for(var n of Mi(this,Ps).get(o.target)||[])n(o)}}))},Wn(xc,"entries",new WeakMap);var yp=xc;var j0=new yp({box:"border-box"});function Zr(t,e,i){var o=j0.observe(t,()=>i(t[e]));Tn(()=>(wt(()=>i(t[e])),o))}function Vg(t,e){return t===e||(t==null?void 0:t[Yo])===e}function it(t={},e,i,o){return Tn(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],wt(()=>{t!==i(...a)&&(e(t,...a),n&&Vg(i(...n),t)&&e(null,...n))})}),()=>{ln(()=>{a&&Vg(i(...a),t)&&e(null,...a)})}}),t}function Mr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>uc(e.s);if(t){let n=0,a={},r=v(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>s(r)}i.b.length&&Ua(()=>{Rg(e,o),Ts(i.b)}),We(()=>{let n=wt(()=>i.m.map(pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Rg(e,o),Ts(i.a)})}function Rg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}if(Re){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Sv(e)},set:o=>{i=o}})}};X0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var X0;function Ht(t){Pt===null&&za("onMount"),Qr&&Pt.l!==null?Z0(Pt).m.push(t):We(()=>{let e=wt(t);if(typeof e=="function")return e})}function En(t){Pt===null&&za("onDestroy"),Ht(()=>()=>wt(t))}function Z0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Hl(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 Xa=[];function pr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=oe){let i=null,o=new Set;function n(d){if(Ma(t,d)&&(t=d,i)){let l=!Xa.length;for(let u of o)u[1](),Xa.push(u,t);if(l){for(let u=0;u<Xa.length;u+=2)Xa[u][0](Xa[u+1]);Xa.length=0}}}function a(d){n(d(t))}function r(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:r}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return pr(i,(r,d)=>{let l=!1,u=[],f=0,$=oe,p=()=>{if(f)return;$();let w=e(o?u[0]:u,r,d);a?r(w):$=typeof w=="function"?w:oe},_=n.map((w,b)=>Hl(w,C=>{u[b]=C,f&=~(1<<b),l&&p()},()=>{f|=1<<b}));return l=!0,p(),function(){Ts(_),$(),l=!1}})}function we(t){let e;return Hl(t,i=>e=i)(),e}var wc=!1,xp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ls(void 0),unsubscribe:oe};if(o.store!==t&&!(xp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Hl(t,r=>{n?o.source.v=r:D(o.source,r)}),n=!1}return t&&xp in i?we(t):s(o.source)}function He(){let t={};function e(){vn(()=>{for(var i in t)t[i].unsubscribe();ro(t,xp,{enumerable:!1,value:!0})})}return[t,e]}function wp(t){var e=wc;try{return wc=!1,[t(),wc]}finally{wc=e}}var r_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Re&&wv(`${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 Be(t,e,i){return new Proxy(Re?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},r_)}var s_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(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 n=t.props[o];Cs(n)&&(n=n());let a=qn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=qn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Yo||e===_l)return!1;for(let i of t.props)if(Cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function fs(...t){return new Proxy({props:t},s_)}function Bg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var W,K;var n=(i&1)!==0,a=!Qr||(i&2)!==0,r=(i&8)!==0,d=(i&16)!==0,l=!1,u;r?[u,l]=wp(()=>t[e]):u=t[e];var f=Yo in t||_l in t,$=r&&((K=(W=qn(t,e))==null?void 0:W.set)!=null?K:f&&e in t&&(U=>t[e]=U))||void 0,p=o,_=!0,w=!1,b=()=>(w=!0,_&&(_=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&xv(e),u=b(),$&&$(u));var C;if(a)C=()=>{var U=t[e];return U===void 0?b():(_=!0,w=!1,U)};else{var T=(n?v:kr)(()=>t[e]);T.f|=131072,C=()=>{var U=s(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return C;if($){var I=t.$$legacy;return function(U,j){return arguments.length>0?((!a||!j||I||l)&&$(j?C():U),U):C()}}var M=!1,P=!1,E=ls(u),V=v(()=>{var U=C(),j=s(E);return M?(M=!1,P=!0,j):(P=!1,E.v=U)});return r&&s(V),n||(V.equals=La),function(U,j){if(xl!==null&&(M=P,C(),s(E)),arguments.length>0){let ae=j?s(V):a&&r?ve(U):U;if(!V.equals(ae)){if(M=!0,D(E,ae),w&&p!==void 0&&(p=ae),Bg(V))return U;wt(()=>s(V))}return U}return Bg(V)?V.v:s(V)}}var a_;typeof HTMLElement=="function"&&(a_=class extends HTMLElement{constructor(e,i,o){super();Wn(this,"$$ctor");Wn(this,"$$s");Wn(this,"$$c");Wn(this,"$$cn",!1);Wn(this,"$$d",{});Wn(this,"$$r",!1);Wn(this,"$$p_d",{});Wn(this,"$$l",{});Wn(this,"$$l_u",new Map);Wn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return r=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),y(r,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=l_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let r=this.$$g_p(a.name);r in this.$$d||(this.$$d[r]=Sp(r,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=gg({component:this.$$ctor,target:this.shadowRoot||this,props:Ot(z({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=fc(()=>{xo(()=>{var a;this.$$r=!0;for(let r of Lu(this.$$c)){if(!((a=this.$$p_d[r])!=null&&a.reflect))continue;this.$$d[r]=this.$$c[r];let d=Sp(r,this.$$d[r],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,d)}this.$$r=!1})});for(let a in this.$$l)for(let r of this.$$l[a]){let d=this.$$c.$on(a,r);this.$$l_u.set(r,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Sp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Lu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Sp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function l_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Ng="5";var Dg,Og,Hg;typeof window!="undefined"&&((Hg=(Og=(Dg=window.__svelte)!=null?Dg:window.__svelte={}).v)!=null?Hg:Og.v=new Set).add(Ng);import{clientChecker as Om}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as D1,safeStorage as Gx,throttleFn as Yx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as jx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as c_,fillWithDefault as u_,VideoQuality as Fg}from"@vkontakte/videoplayer-shared/es2015";var p_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:c_.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:Fg.Q_480P,highQualityLimit:Fg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,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}},Ug=t=>u_(t,p_),zg=t=>qa("ui-config",t),Wt=()=>Wa("ui-config");var Fl="vk_player_debug_panel_opened";var Wg="videoplayer",qg="videoplayer";var Xr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Qg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Gg=new Set(["ShiftRight","ShiftLeft"]);var Yg=["TIMELINE"],Ul=[...Yg,"GRAPH_BUTTON"],Cp=[...Yg,"PLAY_BUTTON"],zl=[...Ul,"PLAY_BUTTON"];var Jr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Jr||{}),sa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as jg,VERSION as f_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as m_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as v_}from"@vkontakte/videoplayer-statistics/es2015";var Sc="prod",Ja="1.1.65-beta.0";var aa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Zg=Symbol("storeContext"),Xg=Symbol("microStoresContext"),Jg=(t,e)=>{qa(Zg,t),qa(Xg,e),Sc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Wa(Zg);return jg(t,"Store context is empty!"),t},uo=()=>{let t=Wa(Xg);return jg(t,"MicroStores context is empty!"),t},Jt=(t,e)=>Tc(t,t.getValue(),e),Tc=(t,e,i)=>pr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),eh=(t,e,i,o)=>{var V,W,K,U,j,ae,Y,de;let n=t.info,{width:a,height:r}=we(i.ui.playerSize),d=(W=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?W:0,l=(U=(K=n.rttEstimation$.getValue())==null?void 0:K.toFixed(0))!=null?U:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ja} (core: ${m_}, stat: ${v_}, shared: ${f_})`,$=we(i.state.errorLog$),p=$.length?`
|
|
49
|
+
`+$.map((le,Me)=>{var Le;let Ne=`${Me}) Type: ${le.id}
|
|
50
|
+
`,_e=`Message: ${le.message} (${le.thrown})
|
|
51
|
+
`,ce=`Trace: ${(Le=le.thrown)==null?void 0:Le.stack}
|
|
52
|
+
`;return Ne+_e+ce}).join(`
|
|
53
|
+
`):void 0,_=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(j=w==null?void 0:w.codec)!=null?j:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(ae=b==null?void 0:b.codec)!=null?ae:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let le=n.availableQualitiesFps$.getValue()[T];I=le?`${le}fps`:""}let M=(de=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?de:0,P=Math.max(M-we(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:we(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:_,Position:`${we(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${we(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${r}`,URL:window.location.href,Errors:p};return Object.entries(E).filter(([le,Me])=>Me!==void 0).map(([le,Me])=>`${le}: ${Me}`).join(`
|
|
54
|
+
`)},th=(t,e,i)=>{var W,K,U,j;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),r={version:Ja,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};r.id=i.videoId,o.currentFormat$.getValue()&&(r.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(r.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&($&&p?r.buffer=f.end-p:r.buffer=Math.max(f.end-we(i.state.positionExact$),0)),r.position=we(i.state.positionExact$);let _=o.throughputEstimation$.getValue();_&&(r.speed=_);let w=o.videoBitrate$.getValue();w&&(r.bitrate=w);let b=o.liveLatency$.getValue();b&&(r.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(r.currentAudioSegmentLength=T);let I=we(i.vsid);typeof I=="string"&&(r.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(r.videoCodec=M);let P=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.codec;P&&(r.audioCodec=P),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(r.hdr=!0);let V=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.language;return V&&(r.audioLanguage=V),r},ih=(t,e)=>aa(t,e,"mp4"),oh=t=>!t.type,nh=t=>!!t.type,rh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Cc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Ep,safeStorage as So}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var sh="vk_player_prefer_traffic_saving_enabled",ah="vk_player_preferred_volume",lh="vk_player_prefer_volume_mute",kp="vk_player_preferred_quality",Tp="vk_player_preferred_default_quality_settings",Ip="vk_player_preferred_quality_settings_by_video",dh="vk_player_preferred_stream_language",ch="vk_player_preferred_rate",uh="vk_player_preferred_autoplay_next",ph=t=>t>1?1:t<0?0:t,Pp=t=>So.set(ah,ph(t).toString(10)),Ic=()=>{let t=So.get(ah);return Ep(t)?void 0:ph(parseFloat(t))},Ap=(t,e)=>So.set(kp,JSON.stringify({videoId:t,value:e})),ql=()=>So.remove(kp),Mp=t=>{let e=So.get(kp);if(Ep(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){ql();return}return o},Lp=(t,e)=>{e?So.set(t,"true"):So.remove(t)},Vp=t=>So.get(t)==="true",Rp=t=>Lp(lh,t),fh=()=>Vp(lh),Wl=t=>Lp(sh,t),Bp=()=>Vp(sh),mh=()=>So.get(dh),Np=t=>So.set(dh,t),vh=t=>So.set(ch,JSON.stringify({rate:t})),gh=()=>{let t=So.get(ch);if(Ep(t))return;let{rate:e}=JSON.parse(t);return e},hh=t=>Lp(uh,t),_h=()=>Vp(uh),g_=()=>{let t=f=>{So.set(Tp,JSON.stringify(f))},e=()=>{try{let f=So.get(Tp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=So.get(Ip);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{So.set(Ip,JSON.stringify(f))},n=f=>{u(f);let $=f?i():null;if($&&($==null?void 0:$.videoId)===f)return Ot(z({},$),{appliesTo:"to-video"});$&&a();let p=e();return p?Ot(z({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{So.remove(Ip)},r=()=>{So.remove(Tp)},d=(f,$="as-default")=>{f.type==="exact_quality"?o(f):$==="as-default"?t(f):o(f)},l=f=>{let $=n(f);if($){switch($.type){case"traffic_saving":Wl(!0);break;case"exact_quality":Ap(f,$.quality)}a(),r()}},u=f=>{let $=Mp(f);if($){o({type:"exact_quality",videoId:f,quality:$});return}Bp()&&t({type:"traffic_saving",videoId:f}),Wl(!1),ql()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:bh,migrateSettingsToLegacyWay:$h,savePreferredQualitySettings:Ec,savePreferredDefaultQualitySettings:$A,removePreferredQualitySettingsByVideo:yA,getPreferredDefaultQualitySettings:kc}=g_();import{PlaybackState as R1}from"@vkontakte/videoplayer-core/es2015";var h_=Te('<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 Kl(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=h_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i))),y(t,o)}import{isNullable as wh,InterfaceLanguage as Sh}from"@vkontakte/videoplayer-shared/es2015";var __={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:"{multiplier}",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E\xA0\u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430\xA0\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",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440",menu_chromecast:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F Chromecast",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F\xA0\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 \xAB\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435\xBB",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",mobile_unmute:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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 \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\xA0\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430\xA0\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:"\u041E\u0442\u043A\u043B.",subtitles_auto_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B \u0441\u043E\u0437\u0434\u0430\u043D\u044B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u041E\u0442\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:"\u0415\u0441\u043B\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0430, \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u043F\u043E\u043D\u0438\u0436\u0430\u0435\u0442\u0441\u044F \u0434\u043B\u044F\xA0\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\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",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\xA0\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:"\u041E\u0442\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\xA0\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\xA0\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\xA0\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\xA010\xA0\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, \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, \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. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438\xA0\u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430\xA0\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\xA0\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\xA0\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\xA0\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift\xA0+\xA0N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A\xA0\u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift\xA0+\xA0P",waiting_live_day_value:"\u0434",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0451 \u043D\u0435\xA0\u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E\xA0\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\xA0\u2014 \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\xA0\u2014 \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\u0430 \u0432\u0438\u0434\u0435\u043E",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432\xA0\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_volume:"\u0417\u0432\u0443\u043A",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",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,<br>\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\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 \u2014<br>\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"},yh=__;var b_={mobile_unmute:"Mute",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:"{multiplier}",menu_traffic_saving:"Data saving",menu_report:"Report a\xA0problem",menu_pip:"Collapse to\xA0mini player",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy timestamp link",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable replay",menu_video_loop_off:"Disable replay",menu_chromecast:"Chromecast live stream",menu_copy_debug:"Copy diagnostic info",menu_save_debug:"Save diagnostic info",menu_debug_overlay:"Video info",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:"Track {index}",pip_dummy_title:"Video playing in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Speed",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ad {timeleft}",skip_ads_after:"Skip ad in {time}\xA0s",skip_ads_now:"Skip ad",visit_advertiser:"Go to\xA0website",aria_timeline:"Time slider",aria_timeline_value:"{position} (total duration {duration})",doubletap_seek_step:"{seconds}\xA0seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"panoramic video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto-generated subtitles",subtitles_turn_on:"Enable subtitles",subtitles_turn_off:"Disable subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"If enabled, the\xA0video quality will be reduced to\xA0save data",tooltip_button_disabled:"Button unavailable",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to\xA0previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the\xA0first 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\xA0interactive part",tooltip_interactive_graph_off:"Show story map",tooltip_interactive_graph_on:"Hide story map",tooltip_live:"Skip to\xA0current live",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Mute",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Enable subtitles",tooltip_subtitles_on:"Disable subtitles",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Full screen",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Enable Chromecast",tooltip_chromecast_on:"Disable Chromecast",tooltip_episode_finished:"You already made a\xA0choice",tooltip_episode_unfinished:"Not viewed",tooltip_disabled_when_interactive:"Interactive video in\xA0progress",tooltip_disabled_when_graph_on:"Button unavailable when\xA0viewing map",tooltip_interactive_interaction_time_indicator:"Press the\xA0interactive element",tooltip_vk_logo:"Open on\xA0VK\xA0Video",tooltip_vk_video_logo:"Go to\xA0VK\xA0Video",tooltip_autoplay_off:"Enable autoplay",tooltip_autoplay_on:"Disable autoplay",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:"General",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Mute or unmute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Volume up",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Volume down",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Minimize or expand mini player",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Enable or disable fullscreen mode",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or\xA0show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of\xA0hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Pause or\xA0resume playback",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:"Fast-forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Accelerated rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Accelerated fast-forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Reduce playback speed",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback speed",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Go to previous frame when playback is paused",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Go to next frame when playback is paused",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Go to a\xA0specific moment in\xA0the\xA0video, for\xA0example, by\xA0pressing 7, you\xA0can skip to\xA0the\xA0timestamp corresponding to\xA070% of\xA0the\xA0video's duration.",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Enable or disable subtitles",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Go 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:"Go 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:"Skip to the\xA0next video",hotkey_map_item_next_video_value:"Shift\xA0+\xA0N",hotkey_map_item_prev_video_description:"Go to the\xA0previous video",hotkey_map_item_prev_video_value:"Shift\xA0+\xA0P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"s",waiting_live_colon:":",waiting_live_upcoming_title:"The live stream is starting soon",waiting_live_timer_title:"Live stream will begin in",waiting_live_recover_title:"Live stream paused. It'll continue when the\xA0creator returns.",waiting_record_title:"Live stream ended. The\xA0recording will be available later.",aria_label_video_player:"Video player",aria_label_spherical_control:"Controller for\xA0360-degree videos. Use arrow keys to\xA0pan across videos.",aria_label_debug_panel:"Area with technical information. Take a\xA0screenshot for\xA0tech support.",aria_label_new_tab_alert:"Opens in new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Speed: {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:"Switch video replay mode",aria_label_submenu_back:"Back to\xA0settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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,<br>so\xA0the\xA0quality was changed to\xA0Auto",slow_video_notification_suggest_description:"The video is loading too slowly.<br>Try switching the\xA0quality to\xA0Auto."},xh=b_;var ms=new Map;ms.set(Sh.EN,xh);ms.set(Sh.RU,yh);var Ch=new Map,Dp=({language:t,pack:e,fallback:i})=>{if(ms.has(t)){let o=ms.get(t);ms.set(t,z(z({},o),e))}else ms.set(t,e);Ch.set(t,i)},Op=t=>ms.has(t),Hp=(t,e,i,o)=>{var r;let n=ms.get(t),a=n==null?void 0:n[e];if(wh(a)){let d=(r=Ch.get(t))!=null?r:o,l=d?ms.get(d):void 0;a=l==null?void 0:l[e]}return wh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=we(i),n=Wt();return Hp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var el;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(el||(el={}));var $_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,y_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,x_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Pc="?",w_="X-Sentry-Auth",S_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,n;for(let a=0;a<i.length;++a){if(o=$_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Pc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=x_.exec(i[a]))n={filename:o[2],function:o[1]||Pc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=y_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Pc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Pc),e.push(n)}return e.length?{value:Th(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Th(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function T_(t){try{let e=C_(t);if(e)return e}catch(e){}return{value:Th(t),type:t&&t.name,stacktrace:{frames:[]}}}function I_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Ac=class{constructor(e){if(e&&e.dsn){let i=S_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.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 Ot(z({},this.getRequestBlank()),{exception:{values:[T_(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(w_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:I_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ih(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function E_(){return window}var Mc=class t extends Ac{constructor(e,i=E_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:r=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=r,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",z({},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",z({},e)),this}setUser(e){return this.setKeyState("user",z({},e)),this}clone(){let e=new t(Ot(z({},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:[z({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ot(z({},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=>Ih(i,o))):!1}getRequestBlank(){return z(Ot(z({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(z({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Ih(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,r=e[o],d=Array.isArray(r)?r:null;return Ot(z({},i),{[o]:a||d?[...a||[],...d||[]]:z(z({},typeof n!="string"?n:{}),typeof r!="string"?r:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Lc,Subscription as k_}from"@vkontakte/videoplayer-shared/es2015";var Vc=null,la=class{constructor(e,i,o={}){!Vc&&e.dsn&&(this.sentryClient=new Mc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new k_,this.options=e,this.context=o,Vc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Vc=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:n,context:a,options:r}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:$}=r,{errorType:p,category:_}=i;if(Lc(_)&&$.includes(_)||Lc(p)&&f.includes(p))return;if(Math.random()<=d||Lc(_)&&u.includes(_)||Lc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(z({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(z(z({},a),o));try{p&&n.captureMessage(p,i.fatal?el.fatal:el.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Vc}};var vs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(vs||{});var Rc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Bc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Eh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ql=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},As=()=>!!Ql(),Nc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Dc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},kh=t=>{let e=window.screen;return(n=>xt(void 0,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Ph}from"@vkontakte/videoplayer-core/es2015";var Ah=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Ph.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Ph.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as P_,ValueSubject as Fp}from"@vkontakte/videoplayer-shared/es2015";var da=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:P_(this.onResize.bind(this),300)};this.info={isActive$:new Fp(!1),isEnabled$:new Fp(!1),type:0};this.info.isEnabled$=new Fp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return xt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return xt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return xt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=z({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return xt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(r=this.playerDummyElement)==null||r.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ca(t){return t instanceof da}import{devNull as Mh,now as Lh}from"@vkontakte/videoplayer-shared/es2015";kv();function Wp(t,e){O(e,!1);let i=Ee();Ht(()=>{i.getAdmanWrapper().startPostroll()}),Mr(),H()}import{noop as A_}from"@vkontakte/videoplayer-shared/es2015";var M_=(t,e)=>{t.stopPropagation(),e()()},L_=L('<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>'),V_=L("<div><!></div>"),R_={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 qp(t,e){O(e,!0),q(t,R_);let[i,o]=He(),n=()=>S(u,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,A_),u=Ee().ui.isMobile,f=v(()=>a()>0&&a()>=r());var $=V_();let p;var _=h($);{var w=C=>{var T=L_();T.__click=[M_,d];var I=h(T);Ce(),g(T),k(M=>he(I,`${M!=null?M:""} `),[()=>F("skip_ads_now")]),y(C,T)},b=C=>{var T=jr();k(I=>he(T,I),[()=>F("skip_ads_after",{time:Math.ceil(r()-a()).toFixed(0)})]),y(C,T)};R(_,C=>{s(f)?C(w):C(b,!1)})}g($),k(C=>p=te($,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:s(f)})]),y(t,$),H(),o()}dt(["click"]);var B_=L('<button class="svelte-1wy3dql"> </button>'),N_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {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 Kp(t,e){O(e,!1),q(t,N_),Mr();var i=B_(),o=h(i,!0);g(i),k(n=>he(o,n),[()=>F("visit_advertiser")],kr),y(t,i),H()}var D_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),O_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),H_={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(
|
|
61
57
|
360deg,
|
|
62
58
|
rgba(0, 0, 0, 0) 0%,
|
|
63
59
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -67,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
67
63
|
rgba(0, 0, 0, 0.5) 77%,
|
|
68
64
|
rgba(0, 0, 0, 0.55) 88%,
|
|
69
65
|
rgba(0, 0, 0, 0.65) 100%
|
|
70
|
-
);}`};function
|
|
66
|
+
);}`};function Gl(t,e){O(e,!0),q(t,H_);let[i,o]=He(),n=()=>S(K,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),r=()=>S(I,"$isMobile",i),d=()=>S(U,"$adPosition",i),l=()=>S(j,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),$=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),_=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),b=Ee(),C=Wt(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=J(void 0),E=J(void 0),V=!1,W=b.ads.playbackState,K=b.ads.canSkip,U=b.ads.position,j=b.ads.secondsToWatchBeforeSkip,ae=v(()=>n()&&a()!=="inactive"),Y=v(()=>r()&&a()!=="inactive"&&M);Ht(()=>{var ie;let $e=b.getAdmanWrapper();if(Mh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Lh(),f()]}),!f()){$e.onAdmanLoadingError();return}let Ke=Ve=>{$e.initAdman(Ve),V=!0},ne=new AbortController,pe=()=>{ne.abort()},{width:ye,height:Z}=we(b.ui.playerSize),qe=we(b.ui.isFullscreen),et=(ie=_())!=null?ie:we(b.ui.isAutoplay),Ie={width:ye,height:Z,isFullscreen:qe,isAutoplay:et,adsContainer:s(P),adsVideoElement:s(E),slotId:f(),params:$(),previewParam:p(),duration:w()};return window.AdmanHTML?Ke(Ie):$e.loadAdman(ne.signal).then(()=>{Ke(Ie)}).catch(()=>{$e.onAdmanLoadingError()}),()=>{Mh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Lh(),f()]}),!V&&pe()}});var de=O_(),le=h(de);{var Me=$e=>{var Ke=D_();y($e,Ke)};R(le,$e=>{r()&&$e(Me)})}var Ne=A(le,2);it(Ne,$e=>D(E,$e),()=>s(E));var _e=A(Ne,2);{var ce=$e=>{qp($e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};R(_e,$e=>{s(ae)&&$e(ce)})}var Le=A(_e,2);{var se=$e=>{Wp($e,{})};R(Le,$e=>{u()&&$e(se)})}var N=A(Le,2);{var Se=$e=>{Kp($e,{})};R(N,$e=>{s(Y)&&$e(Se)})}g(de),it(de,$e=>D(P,$e),()=>s(P)),y(t,de),H(),o()}var gn=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 n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var F_=Te('<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 Qp(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=F_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i))),y(t,o)}var U_=Te('<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 Gp(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=U_();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),y(t,o)}function Yl(t,e){let i=m(e,"isActive",3,!1);var o=Fe(),n=ge(o);{var a=d=>{Gp(d,{})},r=d=>{Qp(d,{})};R(n,d=>{i()?d(a):d(r,!1)})}y(t,o)}var z_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),W_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),q_=L('<span class="text svelte-1s15d2i"> </span>'),K_=L("<div><!> <!></div>"),Q_={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),
|
|
71
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%;
|
|
72
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;
|
|
73
69
|
animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
|
|
@@ -138,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
138
134
|
100% {
|
|
139
135
|
transform: scaleY(0.6);
|
|
140
136
|
}
|
|
141
|
-
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function
|
|
142
|
-
opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Kl(t,e){U(e,!0),K(t,q_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>on(e.duration-e.position));var s=z_();let d;var l=h(s);Wl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(u=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),y(t,s),z()}var Ya=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)}}};import{ChromecastState as tb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as Eh}from"@vkontakte/videoplayer-core/es2015";var ir=t=>{t.stopPropagation(),t.preventDefault()},K_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Q_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},G_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},j_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Ph=t=>t.code==="Escape",Y_=t=>t.code==="ArrowLeft",Ql=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Ah=t=>{if(G_(t)){ir(t),Q_(t.target);return}j_(t)&&(ir(t),K_(t.target))},xs=t=>!Eh.device.isAndroid&&(t==null?void 0:t.detail)===0||Eh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Za=(t,e,i)=>xt(void 0,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&Te(i)&&(yield bo(),i.set(!1),t.focus())}),Mh=(t,e,i)=>xt(void 0,null,function*(){yield bo(),t&&!e&&Te(i)&&(i.set(!1),t.focus())}),Xa=(t,e,i)=>xt(void 0,null,function*(){var n;yield bo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Lh=(t,e)=>xt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Nc=(t,e)=>{Ah(t),Ph(t)&&(ir(t),e())},Bc=(t,e)=>xt(void 0,null,function*(){Ql(t,["ArrowRight"])&&(ir(t),e())}),Vh=(t,e,i)=>xt(void 0,null,function*(){if(Ah(t),Y_(t)){ir(t),e();return}Ph(t)&&(ir(t),i())}),Ja=(t,e)=>{Ql(t)&&(ir(t),e())},Rh=(t,e,i)=>{if(Ql(t))ir(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ir(t);return}o==="ArrowRight"&&!e&&(i(!0),ir(t))}},Nh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Bh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Dc,isValidURL as ib}from"@vkontakte/videoplayer-shared/es2015";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};import{noop as Dh}from"@vkontakte/videoplayer-shared/es2015";var X_=(t,e)=>{Ja(t,()=>e())},J_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),eb={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 zp(t,e){U(e,!0),K(t,eb);let i=m(e,"onClick",3,Dh),o=m(e,"closeContextMenu",3,Dh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=J_();a.__click=n,a.__keydown=[X_,n];var s=h(a,!0);g(a),E(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ge(s,e.label)}),y(t,a),z()}at(["click","keydown"]);var ia=(t,e)=>t.weight-e.weight;var Gl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Gl||{});var ob=(t,e)=>{Nc(t,e)},nb=t=>{t.preventDefault()},rb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),sb={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 qp(t,e){U(e,!0),K(t,sb);let[i,o]=Ne(),n=()=>S(X,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),s=()=>S(re,"$chromecastState$",i),d=()=>S(_e,"$pictureInPictureApiIsActive$",i),l=()=>S(Ve,"$isLooped$",i),u=()=>S(ce,"$positionExact$",i),f=()=>S(q,"$debugPanelVisible",i),b=()=>S(G,"$additionalContextMenuItems$",i),p=m(e,"visible",3,!1),$=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),_=m(e,"controlsContainerRef",3,void 0),C=m(e,"menuElementRef",15,void 0),T=J(0),k=J(0),P=Ie(),{pictureInPicture$:A}=fo(),I=Kt(),V=P.ui.contextMenu.visible$,q=P.ui.debugPanelVisible,G=P.ui.additionalContextMenuItems$,H=P.ui.t,Z=P.actions.internal.togglePictureInPicture,re=P.state.chromecastState$,X=P.state.isLive$,ce=P.state.positionExact$,ue=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:_e}=A,ae=v(()=>{var Ze;return I.features.copyVideoLink&&((Ze=P.callbacks)==null?void 0:Ze.onCopyVideoLink)}),Le=v(()=>r(ae)&&!n()&&!ue),ne=v(()=>{var Ze;return!!((Ze=P.callbacks)!=null&&Ze.onCopyEmbedCodeClicked)}),B=v(()=>a()&&s()!==tb.CONNECTED&&!ue),$e=v(()=>I.features.videoRotate&&!ue),de=v(()=>I.showSupport&&!d()),Ke=v(()=>I.features.saveTraceInfoToFile),te=()=>{var Ze;V.set(!1),(Ze=e.returnFocus)==null||Ze.call(e)},ve=(Ze,tt)=>{if(!C()||!x()||!_())return;let it=C().getBoundingClientRect(),We=x().getBoundingClientRect();D(T,Ze-We.left),D(k,tt-We.top),r(T)+it.width>We.width&&D(T,We.width-it.width),r(k)+it.height>We.height&&D(k,We.height-it.height),D(T,me(Math.max(r(T),0))),D(k,me(Math.max(r(k),0)))};Fe(()=>{xt(this,null,function*(){if(C()&&x()&&_()){yield bo();let{top:tt,left:it,bottom:We,right:ht}=$(),Ut=it!=null?it:0,Je=tt!=null?tt:0,Yt=C().getBoundingClientRect();Dc(it)&&!Dc(ht)&&(Ut=ht-Yt.width),Dc(tt)&&!Dc(We)&&(Je=We-Yt.height),Ut=Math.max(Ut,0),Je=Math.max(Je,0),ve(Ut,Je)}})});let Y=()=>{P.actions.internal.videoRotate()},ie=()=>{ib(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},He=()=>{let Ze=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let tt=new Blob([...Ze],{type:"plain/text"}),it=window.URL.createObjectURL(tt);Zs(it,"vk_player_debug_info","txt")}else Ya(P.actions.internal.getDebugTextData())},je=()=>{let Ze=P.actions.internal.getTraceTextData(),tt=new Blob([...Ze],{type:"application/json"}),it=window.URL.createObjectURL(tt);Zs(it,"vk_player_trace_info","json")},ye=()=>{q.set(!0)},Se=()=>xt(this,null,function*(){var Ze;try{Z()}finally{(Ze=e.returnFocus)==null||Ze.call(e)}}),Re=()=>{P.actions.internal.setLooped(!l())},Ye=()=>{var Ze,tt;if(r(ne)){let it=(tt=(Ze=P.callbacks)==null?void 0:Ze.onCopyEmbedCodeClicked)==null?void 0:tt.call(Ze);it&&Ya(it)}},ct=(Ze=!1)=>{var tt,it;if((tt=P.callbacks)!=null&&tt.onCopyVideoLink){let We=(it=P.callbacks)==null?void 0:it.onCopyVideoLink(Ze,u());We&&Ya(We)}},ut=v(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),st=v(()=>r(ae)?{id:"copy-link",weight:wr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>ct()}:void 0),It=v(()=>r(Le)?{id:"copy-link-timestamp",weight:wr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>ct(!0)}:void 0),bt=v(()=>r(ne)?{id:"copy-embed-code",weight:wr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Ye}:void 0),Zt=v(()=>r(B)?{id:"pip",weight:wr.pip,label:H("menu_pip"),onClick:Se}:void 0),li=v(()=>({id:"video-loop",weight:wr["video-loop"],label:l()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Re})),Et=v(()=>r($e)?{id:"rotate",weight:wr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:Y}:void 0),Nt=v(()=>r(de)?{id:"report",weight:wr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ie}:void 0),O=v(()=>({id:"save-debug",weight:wr["save-debug"],label:r(ut),onClick:He})),be=v(()=>r(Ke)?{id:"save-trace",weight:wr["save-trace"],label:H("menu_save_debug"),onClick:je}:void 0),se=v(()=>({id:"debug-info",weight:wr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:f()?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),onClick:ye})),Be=v(()=>[r(st),r(It),r(bt),r(Zt),r(li),r(Et),r(Nt),r(O),r(be),r(se),...b()].filter(Ze=>!!Ze).sort(ia));var qe=Oe(),Ge=fe(qe);{var pt=Ze=>{var tt=rb();tt.__contextmenu=[nb],tt.__keydown=[ob,te],Ei(tt,21,()=>r(Be),it=>it.id,(it,We)=>{zp(it,{get id(){return r(We).id},get label(){return r(We).label},get ariaLabel(){return r(We).ariaLabel},get onClick(){return r(We).onClick},closeContextMenu:te})}),g(tt),ft(tt,it=>C(it),()=>C()),E(()=>{var it,We;return rt(tt,`top: ${(it=r(k))!=null?it:""}px; left: ${(We=r(T))!=null?We:""}px;`)}),y(Ze,tt)};R(Ge,Ze=>{p()&&Ze(pt)})}y(t,qe),z(),o()}at(["contextmenu","keydown"]);var Oc=class{constructor(e){this.value=e,this.next=null}};var el=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Oc(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 ab=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),lb={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 jl(t,e){U(e,!0),K(t,lb);let i=m(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Wt(()=>{r(o).width=s,r(o).height=a,D(n,me(r(o).getContext("2d")))});function u(p,$,x,_,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect($,x,_,C)}Fe(()=>{let p="";if(r(n)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);r(n).clearRect(0,0,s,a);let x=d-1;for(let _=i().length-1;_>=0;_--){let C=x*l,T=$>0?a*(i()[_]/$):0;u(r(n),C,0,l,T),p=T+" "+p,x--}}});var f=ab(),b=h(f);ft(b,p=>D(o,p),()=>r(o)),g(f),y(t,f),z()}import{safeStorage as Oh}from"@vkontakte/videoplayer-shared/es2015";var db=(t,e)=>{t.stopPropagation(),Oh.remove(Nl),e.set(!1)},cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),ub=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),pb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),fb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),mb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),wb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Sb={hash:"svelte-4deykz",code:".container.svelte-4deykz {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-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Yl(t,e){U(e,!0),K(t,Sb);let[i,o]=Ne(),n=()=>S(d,"$isMobile",i),a=Ie(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(me(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=J(0),b=J(0),p=J(0),$=new el(60),x=new el(60),_=new el(60),C=J(me([])),T=J(me([])),k=J(me([])),P=F("aria_label_debug_panel");Wt(()=>{Oh.set(Nl,"true"),a.actions.internal.startLogging(),u&&(D(b,me(u.getVideoPlaybackQuality().droppedVideoFrames)),D(f,me(u.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,me(a.actions.internal.getDebugPanelData()))},500),be;return u&&(be=window.setInterval(()=>{if(u){D(b,me(u.getVideoPlaybackQuality().droppedVideoFrames));let se=u.getVideoPlaybackQuality().totalVideoFrames;D(p,se-r(f)),D(f,me(se)),$.push(r(p)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&_.push(r(l).bitrate),D(C,me($.getValuesFromBottom())),D(T,me(x.getValuesFromBottom())),D(k,me(_.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var A=wb();let I;De(A,"aria-label",P);var V=h(A);V.__click=[db,s];var q=M(V,2),G=h(q),H=M(h(G),2),Z=h(H,!0);g(H),g(G);var re=M(G,2);{var X=O=>{var be=cb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).id)),y(O,be)};R(re,O=>{r(l).id&&O(X)})}var ce=M(re,2);{var ue=O=>{var be=ub(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).vsid)),y(O,be)};R(ce,O=>{r(l).vsid&&O(ue)})}var Ve=M(ce,2);{var Me=O=>{var be=pb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).provider)),y(O,be)};R(Ve,O=>{r(l).provider&&O(Me)})}var _e=M(Ve,2);{var ae=O=>{var be=fb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(()=>{var qe,Ge;return ge(Be,`Video: ${r(l).videoCodec||""} ${(qe=r(l).hdr?"(HDR)":"")!=null?qe:""}
|
|
137
|
+
}.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function jl(t,e){q(t,Q_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=K_();let r;var d=h(a);{var l=p=>{var _=z_();y(p,_)};R(d,p=>{i()&&p(l)})}var u=A(d,2);{var f=p=>{var _=W_(),w=h(_);Yl(w,{isActive:!0}),g(_),y(p,_)},$=p=>{var _=q_(),w=h(_,!0);g(_),k(()=>he(w,e.time)),y(p,_)};R(u,p=>{o()?p(f):p($,!1)})}g(a),k(p=>r=te(a,1,"wrapper svelte-1s15d2i",null,r,p),[()=>({live:o(),playing:n()})]),y(t,a)}var G_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Y_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {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);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Zl(t,e){O(e,!0),q(t,Y_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=v(()=>gn(e.duration-e.position));var r=G_();let d;var l=h(r);jl(l,{get time(){return s(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(r),k(u=>d=te(r,1,"thumb-timer svelte-1b40w20",null,d,u),[()=>({hidden:i()})]),y(t,r),H()}var tl=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)}}};import{ChromecastState as sb}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as Vh}from"@vkontakte/videoplayer-core/es2015";var fr=t=>{t.stopPropagation(),t.preventDefault()},Z_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},X_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},J_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},eb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Rh=t=>t.code==="Escape",tb=t=>t.code==="ArrowLeft",Xl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Bh=t=>{if(J_(t)){fr(t),X_(t.target);return}eb(t)&&(fr(t),Z_(t.target))},Vs=t=>!Vh.device.isAndroid&&(t==null?void 0:t.detail)===0||Vh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",il=(t,e,i)=>xt(void 0,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield yo(),i.set(!1),t.focus())}),Nh=(t,e,i)=>xt(void 0,null,function*(){yield yo(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),ol=(t,e,i)=>xt(void 0,null,function*(){var n;yield yo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Dh=(t,e)=>xt(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Oc=(t,e)=>{Bh(t),Rh(t)&&(fr(t),e())},Hc=(t,e)=>xt(void 0,null,function*(){Xl(t,["ArrowRight"])&&(fr(t),e())}),Oh=(t,e,i)=>xt(void 0,null,function*(){if(Bh(t),tb(t)){fr(t),e();return}Rh(t)&&(fr(t),i())}),nl=(t,e)=>{Xl(t)&&(fr(t),e())},Hh=(t,e,i)=>{if(Xl(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))}},Fh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Uh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Fc,isValidURL as ab}from"@vkontakte/videoplayer-shared/es2015";var Lr={"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};import{noop as zh}from"@vkontakte/videoplayer-shared/es2015";var ob=(t,e)=>{nl(t,()=>e())},nb=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),rb={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 Yp(t,e){O(e,!0),q(t,rb);let i=m(e,"onClick",3,zh),o=m(e,"closeContextMenu",3,zh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=nb();a.__click=n,a.__keydown=[ob,n];var r=h(a,!0);g(a),k(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),he(r,e.label)}),y(t,a),H()}dt(["click","keydown"]);var pa=(t,e)=>t.weight-e.weight;var Jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Jl||{});var lb=(t,e)=>{Oc(t,e)},db=t=>{t.preventDefault()},cb=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),ub={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 jp(t,e){O(e,!0),q(t,ub);let[i,o]=He(),n=()=>S(ae,"$isLive$",i),a=()=>S(Me,"$isPiPEnabled$",i),r=()=>S(j,"$chromecastState$",i),d=()=>S(Ne,"$pictureInPictureApiIsActive$",i),l=()=>S(le,"$isLooped$",i),u=()=>S(Y,"$positionExact$",i),f=()=>S(W,"$additionalContextMenuItems$",i),$=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),_=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),b=m(e,"menuElementRef",15,void 0),C=J(0),T=J(0),I=Ee(),{pictureInPicture$:M}=uo(),P=Wt(),E=I.ui.contextMenu.visible$,V=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,K=I.ui.t,U=I.actions.internal.togglePictureInPicture,j=I.state.chromecastState$,ae=I.state.isLive$,Y=I.state.positionExact$,de=I.state.isInteractive,le=I.state.looped$,{isEnabled$:Me,isActive$:Ne}=M,_e=v(()=>{var fe;return P.features.copyVideoLink&&((fe=I.callbacks)==null?void 0:fe.onCopyVideoLink)}),ce=v(()=>s(_e)&&!n()&&!de),Le=v(()=>{var fe;return!!((fe=I.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),se=v(()=>a()&&r()!==sb.CONNECTED&&!de),N=v(()=>P.features.videoRotate&&!de),Se=v(()=>P.showSupport&&!d()),$e=v(()=>P.features.saveTraceInfoToFile),Ke=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ne=(fe,Ye)=>{if(!b()||!_()||!w())return;let Je=b().getBoundingClientRect(),je=_().getBoundingClientRect();D(C,fe-je.left),D(T,Ye-je.top),s(C)+Je.width>je.width&&D(C,je.width-Je.width),s(T)+Je.height>je.height&&D(T,je.height-Je.height),D(C,ve(Math.max(s(C),0))),D(T,ve(Math.max(s(T),0)))};We(()=>{xt(this,null,function*(){if(b()&&_()&&w()){yield yo();let{top:Ye,left:Je,bottom:je,right:Nt}=p(),ut=Je!=null?Je:0,ri=Ye!=null?Ye:0,ot=b().getBoundingClientRect();Fc(Je)&&!Fc(Nt)&&(ut=Nt-ot.width),Fc(Ye)&&!Fc(je)&&(ri=je-ot.height),ut=Math.max(ut,0),ri=Math.max(ri,0),ne(ut,ri)}})});let pe=()=>{I.actions.internal.videoRotate()},ye=()=>{ab(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Z=()=>{let fe=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let Ye=new Blob([...fe],{type:"plain/text"}),Je=window.URL.createObjectURL(Ye);aa(Je,"vk_player_debug_info","txt")}else tl(I.actions.internal.getDebugTextData())},qe=()=>{let fe=I.actions.internal.getTraceTextData(),Ye=new Blob([...fe],{type:"application/json"}),Je=window.URL.createObjectURL(Ye);aa(Je,"vk_player_trace_info","json")},et=()=>{V.set(!0)},Ie=()=>xt(this,null,function*(){var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}}),ie=()=>{I.actions.internal.setLooped(!l())},Ve=()=>{var fe,Ye;if(s(Le)){let Je=(Ye=(fe=I.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ye.call(fe);Je&&tl(Je)}},Qe=(fe=!1)=>{var Ye,Je;if((Ye=I.callbacks)!=null&&Ye.onCopyVideoLink){let je=(Je=I.callbacks)==null?void 0:Je.onCopyVideoLink(fe,u());je&&tl(je)}},at=v(()=>P.features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug")),lt=v(()=>s(_e)?{id:"copy-link",weight:Lr["copy-link"],label:K("menu_copy_video_link"),onClick:()=>Qe()}:void 0),nt=v(()=>s(ce)?{id:"copy-link-timestamp",weight:Lr["copy-link-timestamp"],label:K("menu_copy_video_link_with_timestamp"),onClick:()=>Qe(!0)}:void 0),Tt=v(()=>s(Le)?{id:"copy-embed-code",weight:Lr["copy-embed-code"],label:K("menu_copy_embed_code"),onClick:Ve}:void 0),pt=v(()=>s(se)?{id:"pip",weight:Lr.pip,label:K("menu_pip"),onClick:Ie}:void 0),Qt=v(()=>({id:"video-loop",weight:Lr["video-loop"],label:l()?K("menu_video_loop_off"):K("menu_video_loop_on"),ariaLabel:K("aria_label_menu_loop"),onClick:ie})),ni=v(()=>s(N)?{id:"rotate",weight:Lr.rotate,label:K("menu_video_rotate"),ariaLabel:K("aria_label_menu_rotate"),onClick:pe}:void 0),At=v(()=>s(Se)?{id:"report",weight:Lr.report,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,onClick:ye}:void 0),Mt=v(()=>({id:"save-debug",weight:Lr["save-debug"],label:s(at),onClick:Z})),ee=v(()=>s($e)?{id:"save-trace",weight:Lr["save-trace"],label:K("menu_save_debug"),onClick:qe}:void 0),It=v(()=>({id:"debug-info",weight:Lr["debug-info"],label:K("menu_debug_overlay"),ariaLabel:K("aria_label_menu_debug_overlay"),onClick:et})),X=v(()=>[s(lt),s(nt),s(Tt),s(pt),s(Qt),s(ni),s(At),s(Mt),s(ee),s(It),...f()].filter(fe=>!!fe).sort(pa));var ue=Fe(),Ae=ge(ue);{var De=fe=>{var Ye=cb();Ye.__contextmenu=[db],Ye.__keydown=[lb,Ke],Si(Ye,21,()=>s(X),Je=>Je.id,(Je,je)=>{Yp(Je,{get id(){return s(je).id},get label(){return s(je).label},get ariaLabel(){return s(je).ariaLabel},get onClick(){return s(je).onClick},closeContextMenu:Ke})}),g(Ye),it(Ye,Je=>b(Je),()=>b()),k(()=>{var Je,je;return st(Ye,`top: ${(Je=s(T))!=null?Je:""}px; left: ${(je=s(C))!=null?je:""}px;`)}),y(fe,Ye)};R(Ae,fe=>{$()&&fe(De)})}y(t,ue),H(),o()}dt(["contextmenu","keydown"]);var Uc=class{constructor(e){this.value=e,this.next=null}};var rl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Uc(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 pb=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),fb={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 ed(t,e){O(e,!0),q(t,fb);let i=m(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,r=120,d=60,l=r/d;Ht(()=>{s(o).width=r,s(o).height=a,D(n,ve(s(o).getContext("2d")))});function u(p,_,w,b,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(_,w,b,C)}We(()=>{let p="";if(s(n)){let _=i()[0];for(let b=1;b<i().length;b++)i()[b]>_&&(_=i()[b]);s(n).clearRect(0,0,r,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=_>0?a*(i()[b]/_):0;u(s(n),C,0,l,T),p=T+" "+p,w--}}});var f=pb(),$=h(f);it($,p=>D(o,p),()=>s(o)),g(f),y(t,f),H()}import{safeStorage as Wh}from"@vkontakte/videoplayer-shared/es2015";var mb=(t,e)=>{t.stopPropagation(),Wh.remove(Fl),e.set(!1)},vb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),gb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),hb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),_b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),bb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),$b=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),yb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),xb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),wb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),kb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Pb={hash:"svelte-4deykz",code:".container.svelte-4deykz {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-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function td(t,e){O(e,!0),q(t,Pb);let[i,o]=He(),n=()=>S(d,"$isMobile",i),a=Ee(),r=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(ve(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=J(0),$=J(0),p=J(0),_=new rl(60),w=new rl(60),b=new rl(60),C=J(ve([])),T=J(ve([])),I=J(ve([])),M=F("aria_label_debug_panel");Ht(()=>{Wh.set(Fl,"true"),a.actions.internal.startLogging(),u&&(D($,ve(u.getVideoPlaybackQuality().droppedVideoFrames)),D(f,ve(u.getVideoPlaybackQuality().totalVideoFrames)));let X=window.setInterval(()=>{D(l,ve(a.actions.internal.getDebugPanelData()))},500),ue;return u&&(ue=window.setInterval(()=>{if(u){D($,ve(u.getVideoPlaybackQuality().droppedVideoFrames));let Ae=u.getVideoPlaybackQuality().totalVideoFrames;D(p,Ae-s(f)),D(f,ve(Ae)),_.push(s(p)),s(l).speed&&w.push(s(l).speed),s(l).bitrate&&b.push(s(l).bitrate),D(C,ve(_.getValuesFromBottom())),D(T,ve(w.getValuesFromBottom())),D(I,ve(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(X),ue&&clearInterval(ue)}});var P=kb();let E;Oe(P,"aria-label",M);var V=h(P);V.__click=[mb,r];var W=A(V,2),K=h(W),U=A(h(K),2),j=h(U,!0);g(U),g(K);var ae=A(K,2);{var Y=X=>{var ue=vb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).id)),y(X,ue)};R(ae,X=>{s(l).id&&X(Y)})}var de=A(ae,2);{var le=X=>{var ue=gb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).vsid)),y(X,ue)};R(de,X=>{s(l).vsid&&X(le)})}var Me=A(de,2);{var Ne=X=>{var ue=hb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).provider)),y(X,ue)};R(Me,X=>{s(l).provider&&X(Ne)})}var _e=A(Me,2);{var ce=X=>{var ue=_b(),Ae=A(h(ue),2),De=h(Ae);g(Ae),g(ue),k(()=>{var fe,Ye;return he(De,`Video: ${s(l).videoCodec||""} ${(fe=s(l).hdr?"(HDR)":"")!=null?fe:""}
|
|
143
139
|
&
|
|
144
|
-
Audio: ${r(l).audioCodec||""} ${(Ge=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ge:""}`)}),y(O,be)};R(_e,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(ae)})}var Le=M(_e,2);{var ne=O=>{var be=mb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).viewport)),y(O,be)};R(Le,O=>{r(l).viewport&&O(ne)})}var B=M(Le,2);{var $e=O=>{var be=vb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).videoSize)),y(O,be)};R(B,O=>{r(l).videoSize&&O($e)})}var de=M(B,2);{var Ke=O=>{var be=gb(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(()=>ge(Be,r(l).cdn)),y(O,be)};R(de,O=>{r(l).cdn&&O(Ke)})}var te=M(de,2);{var ve=O=>{var be=hb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(()=>{var qe;return ge(Be,`${(qe=r(l).volume)!=null?qe:""} %`)}),y(O,be)};R(te,O=>{r(l).volume&&O(ve)})}var Y=M(te,2);{var ie=O=>{var be=_b(),se=M(h(be),2),Be=h(se);g(se),g(be),E(qe=>ge(Be,`${qe!=null?qe:""} s`),[()=>r(l).buffer.toFixed(2)]),y(O,be)};R(Y,O=>{r(l).buffer&&O(ie)})}var He=M(Y,2);{var je=O=>{var be=bb(),se=M(h(be),2),Be=h(se);g(se),g(be),E(qe=>ge(Be,`${qe!=null?qe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),y(O,be)};R(He,O=>{r(l).liveLatency&&O(je)})}var ye=M(He,2);{var Se=O=>{var be=$b(),se=M(h(be),2),Be=h(se,!0);g(se),g(be),E(qe=>ge(Be,qe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:Ge})=>`${Ge} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),y(O,be)};R(ye,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Se)})}var Re=M(ye,2),Ye=M(h(Re),2),ct=h(Ye);g(Ye),g(Re);var ut=M(Re,2);{var st=O=>{var be=yb(),se=M(h(be),2);jl(se,{get values(){return r(T)}});var Be=M(se,2),qe=h(Be);g(Be),g(be),E(Ge=>ge(qe,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).speed.toFixed(2)]),y(O,be)};R(ut,O=>{r(l).speed&&O(st)})}var It=M(ut,2);{var bt=O=>{var be=xb(),se=M(h(be),2);jl(se,{get values(){return r(k)}});var Be=M(se,2),qe=h(Be);g(Be),g(be),E(Ge=>ge(qe,`${Ge!=null?Ge:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),y(O,be)};R(It,O=>{r(l).bitrate&&O(bt)})}var Zt=M(It,2),li=M(h(Zt),2);jl(li,{get values(){return r(C)}});var Et=M(li,2),Nt=h(Et,!0);g(Et),g(Zt),g(q),g(A),E(O=>{var be,se;I=ee(A,1,"container svelte-4deykz",null,I,O),ge(Z,r(l).version),ge(ct,`${(be=r(b))!=null?be:""} / ${(se=r(f))!=null?se:""} frames`),ge(Nt,r(p))},[()=>({"container-mobile":n()})]),y(t,A),z(),o()}at(["click"]);import{noop as Cb}from"@vkontakte/videoplayer-shared/es2015";var Tb=(t,e)=>{t.stopPropagation(),e()()},Ib=L('<div class="close svelte-1ome55p"></div>'),kb={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 oa(t,e){U(e,!0),K(t,kb);let i=m(e,"onClick",3,Cb);var o=Ib();o.__click=[Tb,i],y(t,o),z()}at(["click"]);import{noop as Eb}from"@vkontakte/videoplayer-shared/es2015";var Pb=L('<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>'),Ab={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 Zl(t,e){U(e,!0),K(t,Ab);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Eb),n=5e3,a=J(void 0),s,d,l=J(0),u;Fe(()=>{i()&&(d=Date.now(),D(l,me(requestAnimationFrame(b))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},b=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),s==null||s.stroke(),D(l,me(requestAnimationFrame(b)))):o()()};Wt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),_n(()=>{f()});var p=Pb(),$=h(p);ft($,x=>D(a,x),()=>r(a)),xe(2),g(p),y(t,p),z()}var Mb=(t,e,i)=>{e(!1),i()},Lb=L('<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),Vb={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 Wp(t,e){U(e,!0),K(t,Vb);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},_=()=>{e.clickCloseIcon(),$()};Wt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Oe(),T=fe(C);{var k=P=>{var A=Lb(),I=M(fe(A),2),V=h(I),q=h(V),G=h(q,!0);g(q);var H=M(q,2);oa(H,{onClick:_}),g(V);var Z=M(V,2);Z.__click=[Mb,u,b];var re=h(Z),X=h(re),ce=h(X);let ue;var Ve=M(ce,2);{var Me=ne=>{let B=v(()=>a()&&n());Zl(ne,{get isRunning(){return r(B)},onTimerEnded:x})};R(Ve,ne=>{n()&&ne(Me)})}g(X),g(re);var _e=M(re,2),ae=h(_e),Le=h(ae,!0);g(ae),g(_e),g(Z),g(I),E((ne,B)=>{ge(G,ne),rt(X,`background-image: url('${e.thumb}')`),ue=ee(ce,1,"thumb-overlay svelte-jfbaax",null,ue,B),ge(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),y(P,A)};R(T,P=>{e.isHide||P(k)})}y(t,C),z(),o()}at(["click"]);import{PlaybackState as na}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Nb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as bn}from"@vkontakte/videoplayer-statistics/es2015";var Kp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Hc=(t,e,i)=>{let o=Kp(e,i);e<1&&t.actions.internal.setVolume(o)},Fc=(t,e,i)=>{let o=Qp(e,i);e>0&&t.actions.internal.setVolume(o)};var ws=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Bb=(t,e)=>{e(t)},Db=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Ob={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Gp(t,e){var Et,Nt;U(e,!0),K(t,Ob);let[i,o]=Ne(),n=()=>S(G,"$playbackState$",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(ce,"$disabledControls$",i),d=()=>S(Z,"$positionExact$",i),l=()=>S(re,"$duration$",i),u=()=>S(ve,"$isAudioAvailable$",i),f=()=>S(X,"$volume$",i),b=()=>S(_e,"$availablePlaybackRates$",i),p=()=>S(Me,"$currentPlaybackRate$",i),$=()=>S(ie,"$isInteractiveTime$",i),x=()=>S(He,"$showInteractiveTimeIndicatorTooltip$",i),_=()=>S($e,"$isEnded$",i),C=()=>S(ue,"$muted$",i),T=()=>S(Ve,"$currentSubtitle$",i),k=()=>S(de,"$overlayContainer$",i),P=m(e,"nextButtonActive",3,!1),A=m(e,"prevButtonActive",3,!1),I=Ie(),V=Kt(),q=I.getLogger().createComponentLog("KeyboardControls component"),G=I.state.playbackState$,H=I.ads.playbackState,Z=I.state.positionExact$,re=I.state.duration$,X=I.state.volume$,ce=I.ui.controls.disabledControls$,ue=I.state.muted$,Ve=I.state.currentSubtitle$,Me=I.state.currentPlaybackRate$,_e=I.state.availablePlaybackRates$,ae=I.ui.contextMenu.openedByHotKey$,Le=I.ui.contextMenu.lastActiveElem$,ne=I.ui.contextMenu.visible$,B=I.ui.contextMenu.position$,$e=I.state.isEnded$,de=I.ui.overlayContainer$,Ke=(Et=I.callbacks)==null?void 0:Et.onAudioDoesNotExistHint,te=(Nt=I.callbacks)==null?void 0:Nt.onAudioDisabledHint,ve=I.state.isAudioAvailable$,Y=I.state.isAudioDisabled,ie=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:He}=fo(),je=0,ye=!0,Se=J(void 0),Re=O=>(O!==ye&&(ye=O,je=0),je+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*je)/1e3),Ye=(O,be=!1)=>{var Yt,ni;let se=O.target,Be=(Yt=se==null?void 0:se.getAttribute("role"))==null?void 0:Yt.includes("menuitem"),qe=se.classList.contains("btn"),Ge=O.code;if(qe&&Ge==="Space")return!1;let pt=Ug.has(Ge);if(Be&&pt)return!1;let Ze=!Fg.has(Ge);if(O.ctrlKey&&Ze||O.altKey&&Ze||O.metaKey)return!1;let tt=Be&&Ge==="Escape";zg.has(Ge)||tt||e.hideContextMenu();let it=n()===na.PLAYING||n()===na.PAUSED,We=e.isAds&&(a()==="paused"||a()==="playing"),ht=!We&&!s().has("TIMELINE");if(!(it||We))return!1;q({message:`key down, code: ${Ge}, isExternal = ${be}`});let Ut=!1,Je=()=>{Ut=!0,be||O.preventDefault()};switch(Ge){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(O.ctrlKey||O.altKey){let et=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:et.text}),Je()}else{let et=O.shiftKey?Re(!1):V.controls.seekStepKeyboard/1e3,ei=Math.max(d()-et,0);d()>0&&(I.actions.internal.seekTime(ei,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:et.toString()}),Je())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(O.ctrlKey||O.altKey){let et=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(et),et&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:et.text}),Je()}else{let et=O.shiftKey?Re(!0):V.controls.seekStepKeyboard/1e3,ei=Math.min(d()+et,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(ei,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:et.toString()}),Je())}break}case"ArrowUp":{if(ws({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke})){let et=f(),ei=V.controls.volumeStepKeyboard,Di=et<=1;if(Hc(I,et,ei),Di){let qi=Math.round(Kp(et,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}Je();break}case"ArrowDown":{if(ws({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke})){let et=f(),ei=V.controls.volumeStepKeyboard,Di=et>=0;if(Fc(I,et,ei),Di){let qi=Math.round(Qp(et,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qi}})}}Je();break}case"Comma":{if(O.shiftKey){I.actions.internal.decrementPlaybackRate();let et=b().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:et==null?void 0:et.displayValue}),Je()}else{if(We||n()!==na.PAUSED)break;let et=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(et,bn.DOUBLE_TAP),Je())}break}case"Period":{if(O.shiftKey){I.actions.internal.incrementPlaybackRate();let et=b().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:et==null?void 0:et.displayValue}),Je()}else{if(We||n()!==na.PAUSED)break;let et=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(et,bn.DOUBLE_TAP),Je())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&x()&&He.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let et="PLAY";n()===na.PAUSED?et="PAUSE":_()&&(et="REPLAY"),e.showHotKeyHelpers({type:et})}Je();break;case"KeyM":{ws({isAudioDisabled:Y,audioDisabledHintCallback:te,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),Je();break}case"KeyF":e.toggleFullscreen(),Je();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ni=T())==null?void 0:ni.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Je();break;case"KeyI":I.actions.internal.togglePictureInPicture(),Je();break;case"Digit1":case"Numpad1":if(O.shiftKey){let et=Bh(k());B.set(et),Le.set(se),ae.set(!0),ne.set(!0),Je();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,bn.DOUBLE_TAP),Je();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,bn.DOUBLE_TAP),Je();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,bn.DOUBLE_TAP),Je();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,bn.DOUBLE_TAP),Je();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,bn.DOUBLE_TAP),Je();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,bn.DOUBLE_TAP),Je();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,bn.DOUBLE_TAP),Je();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,bn.DOUBLE_TAP),Je();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,bn.DOUBLE_TAP),Je();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,bn.DOUBLE_TAP),Je();break;case"Slash":{O.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Je());break}case"KeyN":O.shiftKey&&P()&&(I.actions.internal.nextVideoClick(),Je());break;case"KeyP":O.shiftKey&&A()&&(I.actions.internal.prevVideoClick(),Je());break;case"ShiftLeft":case"ShiftRight":Je();break;case"Tab":case"Escape":case"Enter":break;default:Nb(Ge);break}return Ut},ct=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let se=n()===na.PLAYING||n()===na.PAUSED,Be=e.isAds&&(a()==="paused"||a()==="playing");if(se||Be)switch(be){case"ShiftLeft":case"ShiftRight":je=0;break}},ut=F("aria_label_video_player"),st=()=>{var O;return(O=r(Se))==null?void 0:O.focus()},It=O=>O.type==="keydown"?Ye(O,!0):(O.type==="keyup"&&ct(O),!1);var bt=Db();bt.__keyup=ct,bt.__keydown=[Bb,Ye],De(bt,"aria-label",ut);var Zt=h(bt);he(Zt,()=>{var O;return(O=e.children)!=null?O:oe}),g(bt),ft(bt,O=>D(Se,O),()=>r(Se)),y(t,bt);var li=z({focus:st,handleExternalKeyboardEvent:It});return o(),li}at(["keyup","keydown"]);var Hb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Fb={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);}
|
|
140
|
+
Audio: ${s(l).audioCodec||""} ${(Ye=s(l).audioLanguage?`(${s(l).audioLanguage})`:"")!=null?Ye:""}`)}),y(X,ue)};R(_e,X=>{(s(l).videoCodec||s(l).audioCodec)&&X(ce)})}var Le=A(_e,2);{var se=X=>{var ue=bb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).viewport)),y(X,ue)};R(Le,X=>{s(l).viewport&&X(se)})}var N=A(Le,2);{var Se=X=>{var ue=$b(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).videoSize)),y(X,ue)};R(N,X=>{s(l).videoSize&&X(Se)})}var $e=A(N,2);{var Ke=X=>{var ue=yb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(()=>he(De,s(l).cdn)),y(X,ue)};R($e,X=>{s(l).cdn&&X(Ke)})}var ne=A($e,2);{var pe=X=>{var ue=xb(),Ae=A(h(ue),2),De=h(Ae);g(Ae),g(ue),k(()=>{var fe;return he(De,`${(fe=s(l).volume)!=null?fe:""} %`)}),y(X,ue)};R(ne,X=>{s(l).volume&&X(pe)})}var ye=A(ne,2);{var Z=X=>{var ue=wb(),Ae=A(h(ue),2),De=h(Ae);g(Ae),g(ue),k(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(l).position.toFixed(2)]),y(X,ue)};R(ye,X=>{s(l).position&&X(Z)})}var qe=A(ye,2);{var et=X=>{var ue=Sb(),Ae=A(h(ue),2),De=h(Ae);g(Ae),g(ue),k(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(l).buffer.toFixed(2)]),y(X,ue)};R(qe,X=>{s(l).buffer&&X(et)})}var Ie=A(qe,2);{var ie=X=>{var ue=Cb(),Ae=A(h(ue),2),De=h(Ae);g(Ae),g(ue),k(fe=>he(De,`${fe!=null?fe:""} s`),[()=>s(l).liveLatency.toFixed(2)]),y(X,ue)};R(Ie,X=>{s(l).liveLatency&&X(ie)})}var Ve=A(Ie,2);{var Qe=X=>{var ue=Tb(),Ae=A(h(ue),2),De=h(Ae,!0);g(Ae),g(ue),k(fe=>he(De,fe),[()=>[{value:s(l).currentVideoSegmentLength,title:"Video:"},{value:s(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Ye})=>`${Ye} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),y(X,ue)};R(Ve,X=>{(s(l).currentVideoSegmentLength||s(l).currentAudioSegmentLength)&&X(Qe)})}var at=A(Ve,2),lt=A(h(at),2),nt=h(lt);g(lt),g(at);var Tt=A(at,2);{var pt=X=>{var ue=Ib(),Ae=A(h(ue),2);ed(Ae,{get values(){return s(T)}});var De=A(Ae,2),fe=h(De);g(De),g(ue),k(Ye=>he(fe,`${Ye!=null?Ye:""} Kbps`),[()=>s(l).speed.toFixed(2)]),y(X,ue)};R(Tt,X=>{s(l).speed&&X(pt)})}var Qt=A(Tt,2);{var ni=X=>{var ue=Eb(),Ae=A(h(ue),2);ed(Ae,{get values(){return s(I)}});var De=A(Ae,2),fe=h(De);g(De),g(ue),k(Ye=>he(fe,`${Ye!=null?Ye:""} Kbps`),[()=>s(l).bitrate.toFixed(2)]),y(X,ue)};R(Qt,X=>{s(l).bitrate&&X(ni)})}var At=A(Qt,2),Mt=A(h(At),2);ed(Mt,{get values(){return s(C)}});var ee=A(Mt,2),It=h(ee,!0);g(ee),g(At),g(W),g(P),k(X=>{var ue,Ae;E=te(P,1,"container svelte-4deykz",null,E,X),he(j,s(l).version),he(nt,`${(ue=s($))!=null?ue:""} / ${(Ae=s(f))!=null?Ae:""} frames`),he(It,s(p))},[()=>({"container-mobile":n()})]),y(t,P),H(),o()}dt(["click"]);import{noop as Ab}from"@vkontakte/videoplayer-shared/es2015";var Mb=(t,e)=>{t.stopPropagation(),e()()},Lb=L('<div class="close svelte-1ome55p"></div>'),Vb={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 fa(t,e){O(e,!0),q(t,Vb);let i=m(e,"onClick",3,Ab);var o=Lb();o.__click=[Mb,i],y(t,o),H()}dt(["click"]);import{noop as Rb}from"@vkontakte/videoplayer-shared/es2015";var Bb=L('<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>'),Nb={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 id(t,e){O(e,!0),q(t,Nb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Rb),n=5e3,a=J(void 0),r,d,l=J(0),u;We(()=>{i()&&(d=Date.now(),D(l,ve(requestAnimationFrame($))))});let f=()=>{s(l)&&(cancelAnimationFrame(s(l)),D(l,0))},$=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<1?(r==null||r.clearRect(0,0,100,100),r==null||r.beginPath(),r==null||r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),r==null||r.stroke(),D(l,ve(requestAnimationFrame($)))):o()()};Ht(()=>{if(r=s(a).getContext("2d"),!!r)return r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff",()=>{f()}}),En(()=>{f()});var p=Bb(),_=h(p);it(_,w=>D(a,w),()=>s(a)),Ce(2),g(p),y(t,p),H()}var Db=(t,e,i)=>{e(!1),i()},Ob=L('<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),Hb={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 Zp(t,e){O(e,!0),q(t,Hb);let[i,o]=He(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,u=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,$=r.actions.internal.nextVideoAnnouncementClick,p=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},b=()=>{e.clickCloseIcon(),_()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=ge(C);{var I=M=>{var P=Ob(),E=A(ge(P),2),V=h(E),W=h(V),K=h(W,!0);g(W);var U=A(W,2);fa(U,{onClick:b}),g(V);var j=A(V,2);j.__click=[Db,u,$];var ae=h(j),Y=h(ae),de=h(Y);let le;var Me=A(de,2);{var Ne=se=>{let N=v(()=>a()&&n());id(se,{get isRunning(){return s(N)},onTimerEnded:w})};R(Me,se=>{n()&&se(Ne)})}g(Y),g(ae);var _e=A(ae,2),ce=h(_e),Le=h(ce,!0);g(ce),g(_e),g(j),g(E),k((se,N)=>{he(K,se),st(Y,`background-image: url('${e.thumb}')`),le=te(de,1,"thumb-overlay svelte-jfbaax",null,le,N),he(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),y(M,P)};R(T,M=>{e.isHide||M(I)})}y(t,C),H(),o()}dt(["click"]);import{PlaybackState as ma}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Ub}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as kn}from"@vkontakte/videoplayer-statistics/es2015";var Xp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Jp=(t,e)=>Math.max(+(t-e).toFixed(2),0),zc=(t,e,i)=>{let o=Xp(e,i);e<1?t.actions.internal.setVolume(o):we(t.state.muted$)&&t.actions.external.setMuted(!1)},Wc=(t,e,i)=>{let o=Jp(e,i);e>0&&t.actions.internal.setVolume(o)};var Rs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var zb=(t,e)=>{e(t)},Wb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),qb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function ef(t,e){var At,Mt;O(e,!0),q(t,qb);let[i,o]=He(),n=()=>S(K,"$playbackState$",i),a=()=>S(U,"$adPlaybackState",i),r=()=>S(de,"$disabledControls$",i),d=()=>S(j,"$positionExact$",i),l=()=>S(ae,"$duration$",i),u=()=>S(pe,"$isAudioAvailable$",i),f=()=>S(Y,"$volume$",i),$=()=>S(_e,"$availablePlaybackRates$",i),p=()=>S(Ne,"$currentPlaybackRate$",i),_=()=>S(Z,"$isInteractiveTime$",i),w=()=>S(qe,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(Se,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),I=()=>S($e,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),P=m(e,"prevButtonActive",3,!1),E=Ee(),V=Wt(),W=E.getLogger().createComponentLog("KeyboardControls component"),K=E.state.playbackState$,U=E.ads.playbackState,j=E.state.positionExact$,ae=E.state.duration$,Y=E.state.volume$,de=E.ui.controls.disabledControls$,le=E.state.muted$,Me=E.state.currentSubtitle$,Ne=E.state.currentPlaybackRate$,_e=E.state.availablePlaybackRates$,ce=E.ui.contextMenu.openedByHotKey$,Le=E.ui.contextMenu.lastActiveElem$,se=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Se=E.state.isEnded$,$e=E.ui.overlayContainer$,Ke=(At=E.callbacks)==null?void 0:At.onAudioDoesNotExistHint,ne=(Mt=E.callbacks)==null?void 0:Mt.onAudioDisabledHint,pe=E.state.isAudioAvailable$,ye=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=uo(),et=0,Ie=!0,ie=J(void 0),Ve=ee=>(ee!==Ie&&(Ie=ee,et=0),et+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*et)/1e3),Qe=(ee,It=!1)=>{var oi,di;let X=ee.target,ue=(oi=X==null?void 0:X.getAttribute("role"))==null?void 0:oi.includes("menuitem"),Ae=X.classList.contains("btn"),De=ee.code;if(Ae&&De==="Space")return!1;let fe=Qg.has(De);if(ue&&fe)return!1;let Ye=!Kg.has(De);if(ee.ctrlKey&&Ye||ee.altKey&&Ye||ee.metaKey)return!1;let Je=ue&&De==="Escape";Gg.has(De)||Je||e.hideContextMenu();let je=n()===ma.PLAYING||n()===ma.PAUSED,Nt=e.isAds&&(a()==="paused"||a()==="playing"),ut=!Nt&&!r().has("TIMELINE");if(!(je||Nt))return!1;W({message:`key down, code: ${De}, isExternal = ${It}`});let ri=!1,ot=()=>{ri=!0,It||ee.preventDefault()};switch(De){case"KeyJ":case"ArrowLeft":{if(!ut)break;if(ee.ctrlKey||ee.altKey){let rt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(rt),rt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:rt.text}),ot()}else{let rt=ee.shiftKey?Ve(!1):V.controls.seekStepKeyboard/1e3,ei=Math.max(d()-rt,0);d()>0&&(E.actions.internal.seekTime(ei,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:rt.toString()}),ot())}break}case"KeyL":case"ArrowRight":{if(!ut)break;if(ee.ctrlKey||ee.altKey){let rt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(rt),rt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:rt.text}),ot()}else{let rt=ee.shiftKey?Ve(!0):V.controls.seekStepKeyboard/1e3,ei=Math.min(d()+rt,l());Math.round(d())<Math.round(l())&&(E.actions.internal.seekTime(ei,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:rt.toString()}),ot())}break}case"ArrowUp":{if(Rs({isAudioDisabled:ye,audioDisabledHintCallback:ne,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let rt=f(),ei=V.controls.volumeStepKeyboard,Ki=rt<=1;if(zc(E,rt,ei),Ki){let Qi=Math.round(Xp(rt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}ot();break}case"ArrowDown":{if(Rs({isAudioDisabled:ye,audioDisabledHintCallback:ne,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})){let rt=f(),ei=V.controls.volumeStepKeyboard,Ki=rt>=0;if(Wc(E,rt,ei),Ki){let Qi=Math.round(Jp(rt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Qi}})}}ot();break}case"Comma":{if(ee.shiftKey){E.actions.internal.decrementPlaybackRate();let rt=$().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:rt==null?void 0:rt.displayValue}),ot()}else{if(Nt||n()!==ma.PAUSED)break;let rt=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(rt,kn.DOUBLE_TAP),ot())}break}case"Period":{if(ee.shiftKey){E.actions.internal.incrementPlaybackRate();let rt=$().find(ei=>ei.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:rt==null?void 0:rt.displayValue}),ot()}else{if(Nt||n()!==ma.PAUSED)break;let rt=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(rt,kn.DOUBLE_TAP),ot())}break}case"KeyK":case"Space":if(!r().has("PLAY_BUTTON"))if(_()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let rt="PLAY";n()===ma.PAUSED?rt="PAUSE":b()&&(rt="REPLAY"),e.showHotKeyHelpers({type:rt})}ot();break;case"KeyM":{Rs({isAudioDisabled:ye,audioDisabledHintCallback:ne,isAudioAvailable:u(),audioIsNotExistHintCallback:Ke,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ot();break}case"KeyF":e.toggleFullscreen(),ot();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(di=T())==null?void 0:di.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ot();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ot();break;case"Digit1":case"Numpad1":if(ee.shiftKey){let rt=Uh(I());N.set(rt),Le.set(X),ce.set(!0),se.set(!0),ot();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,kn.DOUBLE_TAP),ot();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,kn.DOUBLE_TAP),ot();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,kn.DOUBLE_TAP),ot();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,kn.DOUBLE_TAP),ot();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,kn.DOUBLE_TAP),ot();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,kn.DOUBLE_TAP),ot();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,kn.DOUBLE_TAP),ot();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,kn.DOUBLE_TAP),ot();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,kn.DOUBLE_TAP),ot();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,kn.DOUBLE_TAP),ot();break;case"Slash":{ee.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ot());break}case"KeyN":ee.shiftKey&&M()&&(E.actions.internal.nextVideoClick(),ot());break;case"KeyP":ee.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),ot());break;case"ShiftLeft":case"ShiftRight":ot();break;case"Tab":case"Escape":case"Enter":break;default:Ub(De);break}return ri},at=ee=>{let It=ee.code;if(ee.ctrlKey||ee.altKey||ee.metaKey)return;let X=n()===ma.PLAYING||n()===ma.PAUSED,ue=e.isAds&&(a()==="paused"||a()==="playing");if(X||ue)switch(It){case"ShiftLeft":case"ShiftRight":et=0;break}},lt=F("aria_label_video_player"),nt=()=>{var ee;return(ee=s(ie))==null?void 0:ee.focus()},Tt=ee=>ee.type==="keydown"?Qe(ee,!0):(ee.type==="keyup"&&at(ee),!1);var pt=Wb();pt.__keyup=at,pt.__keydown=[zb,Qe],Oe(pt,"aria-label",lt);var Qt=h(pt);be(Qt,()=>{var ee;return(ee=e.children)!=null?ee:oe}),g(pt),it(pt,ee=>D(ie,ee),()=>s(ie)),y(t,pt);var ni=H({focus:nt,handleExternalKeyboardEvent:Tt});return o(),ni}dt(["keyup","keydown"]);var Kb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Qb={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);}
|
|
145
141
|
|
|
146
142
|
@keyframes svelte-1dbnjb1-dot_animation {
|
|
147
143
|
0% {
|
|
@@ -154,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
154
150
|
opacity: 0.2;
|
|
155
151
|
}
|
|
156
152
|
}.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
|
|
157
|
-
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function
|
|
153
|
+
animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function va(t,e){q(t,Qb);let i=m(e,"style",3,"");var o=Kb();k(()=>st(o,i())),y(t,o)}var Gb=Te('<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 tf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),y(t,o)}import{noop as sl}from"@vkontakte/videoplayer-shared/es2015";var Yb=t=>{t.stopPropagation()},jb=L("<button><!></button>"),Zb={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
|
|
158
154
|
|
|
159
155
|
/* \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 */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
|
|
160
156
|
|
|
@@ -162,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
162
158
|
/* mobile */
|
|
163
159
|
/* container mobile */.btn-m.svelte-wr0kwr {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;}.btn-m--play.svelte-wr0kwr {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-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
|
|
164
160
|
.btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr: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;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function
|
|
161
|
+
/* \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;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Bt(t,e){O(e,!0),q(t,Zb);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),r=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),$=m(e,"tabIndex",3,0),p=m(e,"click",3,sl),_=m(e,"focus",3,sl),w=m(e,"blur",3,sl),b=v(()=>p()===sl?null:P=>{P.stopPropagation(),p()(P)}),C=v(()=>_()===sl?null:P=>{P.preventDefault(),_()()}),T=v(()=>w()===sl?null:P=>{P.preventDefault(),w()()});var I=jb();I.__pointerdown=[Yb],I.__click=function(...P){var E;(E=s(b))==null||E.apply(this,P)};var M=h(I);be(M,()=>{var P;return(P=e.children)!=null?P:oe}),g(I),it(I,P=>l(P),()=>l()),k(()=>{var P,E,V,W,K,U,j;te(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),st(I,o()||null),I.disabled=(E=n())!=null?E:null,Oe(I,"aria-hidden",(V=r())!=null?V:null),Oe(I,"aria-label",(W=d())!=null?W:null),Oe(I,"aria-keyshortcuts",(K=u())!=null?K:null),Oe(I,"aria-expanded",(U=f())!=null?U:null),Oe(I,"data-testid",(j=a())!=null?j:null),Oe(I,"tabindex",$()),Oe(I,"role",e.role)}),Ct("focus",I,function(...P){var E;(E=s(C))==null||E.apply(this,P)}),Ct("blur",I,function(...P){var E;(E=s(T))==null||E.apply(this,P)}),y(t,I),H()}dt(["pointerdown","click"]);var Xb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Jb=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),e$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {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-1witlsj {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-1witlsj {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-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function of(t,e){O(e,!0),q(t,e$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Jb(),r=h(a),d=h(r);{var l=p=>{var _=Xb(),w=h(_),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Bt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{tf(M,{})},$$slots:{default:!0}})};R(C,I=>{o()&&I(T)})}g(_),k(()=>he(b,e.title)),y(p,_)};R(d,p=>{i()&&p(l)})}var u=A(d,2),f=h(u),$=h(f);be($,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),g(u),g(r),g(a),y(t,a),H()}var t$=new Set(["BR"]),qh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],r=a.tagName;t$.has(r)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var i$=L('<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>'),o$=L('<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>'),n$=L('<div class="hot-key-map svelte-quklnq"></div>'),r$={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
162
|
.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 Zp(t,e){U(e,!1),K(t,Jb);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ie(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};xr(),Yp(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var b=Xb();Ei(b,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let x=()=>r($).title,_=()=>r($).items;var C=Zb(),T=h(C),k=h(T,!0);g(T);var P=M(T,2);Ei(P,5,_,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,q=()=>r(I).value;var G=Yb(),H=h(G),Z=h(H);Ml(Z,()=>Hh(V()),!1,!1),g(H);var re=M(H,2),X=h(re,!0);g(re),g(G),E(()=>ge(X,q())),y(A,G)}),g(P),g(C),E(()=>ge(k,x())),y(p,C)}),g(b),y(u,b)},$$slots:{default:!0}}),z(),o()}import{noop as d1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as r1,PlaybackState as Bf}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var e$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),t$={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 Xp(t,e){K(t,t$);var i=e$(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),y(t,i)}import{VideoQuality as ed}from"@vkontakte/videoplayer-shared/es2015";var i$=we('<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 Jp(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var o$=we('<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 ef(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=o$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var n$=we('<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 tf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=n$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var r$=we('<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 Xl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=r$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),y(t,o)}var s$=we('<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 Jl(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=s$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),y(t,o)}var Uc=t=>{switch(t){case ed.Q_720P:return tf;case ed.Q_1080P:return Xl;case ed.Q_1440P:return Jl;case ed.Q_2160P:return Jp;case ed.Q_4320P:return ef}};var a$=we('<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 of(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=a$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),y(t,o)}var l$=we('<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 nf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),y(t,o)}var d$=L('<div aria-hidden="true"><!> <!></div>'),c$={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 td(t,e){U(e,!0),K(t,c$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>Uc(o())),a=v(()=>!!r(n)&&[Xl,Jl].includes(r(n)));var s=Oe(),d=fe(s);{var l=f=>{of(f,{})},u=f=>{var b=d$();let p;var $=h(b);{var x=T=>{Xp(T,{children:(k,P)=>{var A=Oe(),I=fe(A);Pi(I,()=>r(n),(V,q)=>{q(V,{})}),y(k,A)},$$slots:{default:!0}})};R($,T=>{r(n)&&T(x)})}var _=M($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");nf(_,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(b),E(T=>p=ee(b,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(a)})]),y(f,b)};R(d,f=>{i()?f(l):f(u,!1)})}y(t,s),z()}var u$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),p$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function il(t,e){U(e,!0),K(t,p$);let[i,o]=Ne(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),s=()=>S($,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ie(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,b=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,x=l.ui.t,_=J(void 0);Fe(()=>{n()&&wt(()=>{e.ref$.set(r(_))})});let C=v(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));function T(P){return xt(this,null,function*(){let A=xs(P);a()?p():b(A,bo)})}let k=v(()=>a()?"opened":"");Rt(t,{get className(){return r(k)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(_)},set ref(P){D(_,me(P))},children:(P,A)=>{var I=u$(),V=h(I);td(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),y(P,I)},$$slots:{default:!0}}),z(),o()}var f$=we('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function rf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),y(t,o)}var m$=we('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function id(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),y(t,o)}function sf(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Rt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyC},children:(s,d)=>{var l=Oe(),u=fe(l);{var f=p=>{rf(p,{})},b=p=>{id(p,{})};R(u,p=>{i()?p(f):p(b,!1)})}y(s,l)},$$slots:{default:!0}}),z()}var v$=L('<span class="duration svelte-sz9er7"> </span>'),g$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),h$={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 od(t,e){U(e,!0),K(t,h$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>on(e.duration)),s=v(()=>on(e.position));var d=g$();let l;var u=h(d),f=h(u,!0);g(u);var b=M(u,2);{var p=$=>{var x=v$(),_=h(x,!0);g(x),E(()=>ge(_,r(a))),y($,x)};R(b,$=>{o()&&$(p)})}g(d),ft(d,$=>n($),()=>n()),E($=>{l=ee(d,1,"time svelte-sz9er7",null,l,$),ge(f,r(s))},[()=>({mobile:i()})]),y(t,d),z()}import{noop as zc}from"@vkontakte/videoplayer-shared/es2015";var _$=we('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),b$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
163
|
+
.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 nf(t,e){O(e,!1),q(t,r$);let[i,o]=He(),n=()=>S(r,"$data",i),a=Ee(),{data:r,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Mr(),of(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var $=n$();Si($,5,()=>n().groups,({title:p,items:_})=>p,(p,_)=>{let w=()=>s(_).title,b=()=>s(_).items;var C=o$(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);Si(M,5,b,({description:P,value:E})=>E,(P,E)=>{let V=()=>s(E).description,W=()=>s(E).value;var K=i$(),U=h(K),j=h(U);Nl(j,()=>qh(V()),!1,!1),g(U);var ae=A(U,2),Y=h(ae,!0);g(ae),g(K),k(()=>he(Y,W())),y(P,K)}),g(M),g(C),k(()=>he(I,w())),y(p,C)}),g($),y(u,$)},$$slots:{default:!0}}),H(),o()}import{noop as g1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as c1,PlaybackState as zf}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var s$=L('<div class="pillow svelte-1oe0j8n"><!></div>'),a$={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 rf(t,e){q(t,a$);var i=s$(),o=h(i);be(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),y(t,i)}import{VideoQuality as rd}from"@vkontakte/videoplayer-shared/es2015";var l$=Te('<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 sf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=l$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var d$=Te('<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 af(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=d$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var c$=Te('<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 lf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=c$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),y(t,o)}var u$=Te('<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 od(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=u$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),y(t,o)}var p$=Te('<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 nd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=p$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),y(t,o)}var qc=t=>{switch(t){case rd.Q_720P:return lf;case rd.Q_1080P:return od;case rd.Q_1440P:return nd;case rd.Q_2160P:return sf;case rd.Q_4320P:return af}};var f$=Te('<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 df(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i))),y(t,o)}var m$=Te('<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 cf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),y(t,o)}var v$=L('<div aria-hidden="true"><!> <!></div>'),g$={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 sd(t,e){O(e,!0),q(t,g$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>qc(o())),a=v(()=>!!s(n)&&[od,nd].includes(s(n)));var r=Fe(),d=ge(r);{var l=f=>{df(f,{})},u=f=>{var $=v$();let p;var _=h($);{var w=T=>{rf(T,{children:(I,M)=>{var P=Fe(),E=ge(P);Ci(E,()=>s(n),(V,W)=>{W(V,{})}),y(I,P)},$$slots:{default:!0}})};R(_,T=>{s(n)&&T(w)})}var b=A(_,2);let C=v(()=>s(n)?"settings-icon--labeled":"settings-icon");cf(b,{get"data-testid"(){return s(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>p=te($,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:s(a)})]),y(f,$)};R(d,f=>{i()?f(l):f(u,!1)})}y(t,r),H()}var h$=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),_$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function al(t,e){O(e,!0),q(t,_$);let[i,o]=He(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(f,"$settingsMenuVisible",i),r=()=>S(_,"$isMobile",i),d=()=>S(u,"$currentQuality",i),l=Ee(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,b=J(void 0);We(()=>{n()&&wt(()=>{e.ref$.set(s(b))})});let C=w("aria_label_settings");function T(M){return xt(this,null,function*(){let P=Vs(M);a()?p():$(P,yo)})}let I=v(()=>a()?"opened":"");Bt(t,{get className(){return s(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},role:"button",get ref(){return s(b)},set ref(M){D(b,ve(M))},children:(M,P)=>{var E=h$(),V=h(E);sd(V,{get isMobile(){return r()},get currentQuality(){return d()}}),g(E),y(M,E)},$$slots:{default:!0}}),H(),o()}var b$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function uf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img"},i))),y(t,o)}var $$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function ad(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img"},i))),y(t,o)}function pf(t,e){O(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(a)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyC},role:"button",children:(r,d)=>{var l=Fe(),u=ge(l);{var f=p=>{uf(p,{})},$=p=>{ad(p,{})};R(u,p=>{i()?p(f):p($,!1)})}y(r,l)},$$slots:{default:!0}}),H()}var y$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),x$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),w$={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 ld(t,e){O(e,!0),q(t,w$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>gn(e.duration)),r=v(()=>gn(e.position));var d=x$();let l;var u=h(d),f=h(u,!0);g(u);var $=A(u,2);{var p=_=>{var w=y$(),b=h(w,!0);g(w),k(()=>he(b,s(a))),y(_,w)};R($,_=>{o()&&_(p)})}g(d),it(d,_=>n(_),()=>n()),k(_=>{l=te(d,1,"time svelte-sz9er7",null,l,_),he(f,s(r))},[()=>({mobile:i()})]),y(t,d),H()}import{noop as Kc}from"@vkontakte/videoplayer-shared/es2015";var S$=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),C$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
|
|
168
164
|
.icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
|
|
169
|
-
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function
|
|
165
|
+
.icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Bs(t,e){q(t,C$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var r=S$();k(()=>{var d;Oe(r,"data-value",s(a)),Oe(r,"data-testid",`volume-${(d=s(a))!=null?d:""}-icon`)}),y(t,r)}import{isNonNullable as Qh,noop as jn}from"@vkontakte/videoplayer-shared/es2015";import{noop as mf}from"@vkontakte/videoplayer-shared/es2015";import{noop as I$}from"@vkontakte/videoplayer-shared/es2015";var T$=L('<div class="overlay"><!></div>');function ff(t,e){O(e,!0);let[i,o]=He(),n=()=>S(r,"$overlayContainer$",i),r=Ee().ui.overlayContainer$,d=J(void 0),l=p=>{!p||!s(d)||!p.contains(s(d))||p.removeChild(s(d))},u=p=>{!p||!s(d)||p.contains(s(d))||p.appendChild(s(d))};We(()=>{u(n())}),Ht(()=>(u(n()),()=>l(n())));var f=T$(),$=h(f);be($,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),it(f,p=>D(d,p),()=>s(d)),y(t,f),H(),o()}var E$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),k$=L("<div><!></div> <!>",1),P$={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 ga(t,e){O(e,!0),q(t,P$);let[i,o]=He(),n=()=>S(j,"$overlayContainer$",i),a=()=>S(U,"$containerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),$=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),_=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,I$),b=5,C=J(void 0),T=J(void 0),I,M=J(0),P=J(0),E=J(0),V=J(0),W=Wt(),K=Ee(),U=K.ui.playerSize,j=K.ui.overlayContainer$;We(()=>{wt(()=>{w()(l())})});let ae=K.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!s(T)||!s(C))return;D(P,b);let Ie=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ve=ie.width,Qe=s(T).clientWidth,at=a().width,lt=(Ve-Qe)/2,nt=ie.left+u()-Ie.left,Tt=nt+lt,pt=ie.top+f()-Ie.top,Qt=Qe/2-b,ni=Tt<8,At=Tt+Qe>at-8;ni&&(Tt=8,Qt=nt+ie.width/2-2.5*b),At&&(Tt=at-8-Qe,Qt=ie.left-Ie.left+ie.width/2-Tt-b),D(E,ve(Tt)),D(V,pt),D(M,ve(Qt))},de=()=>{!n()||!s(T)||!s(C)||D(P,-b)},le=()=>{if(!n()||!s(T)||!s(C))return;D(M,b);let Ie=n().getBoundingClientRect(),ie=s(C).getBoundingClientRect(),Ve=ie.height,Qe=s(T).clientHeight,at=(Ve-Qe)/2+Qe,lt=ie.left+u()-Ie.left-s(T).clientWidth,nt=2,Tt=lt-b;Tt<8&&(Tt=8);let Qt=ie.top+f()-Ie.top+at,ni=nt-at/2,At=nt-b;D(E,ve(Tt)),D(V,Qt),D(P,ni),D(M,At)},Me=()=>{!n()||!s(T)||!s(C)||D(M,-b)},Ne=()=>{switch(_()){case"top":Y();break;case"bottom":de();break;case"left":le();break;default:Me()}},_e=()=>{try{if(!n()||!s(C))return;Ne(),l(!0)}catch(Ie){ae({message:String(Ie)})}},ce=()=>{l(!1)},Le=()=>{s(T)&&(I||(I=window.setTimeout(_e,W.controls.hideTimeoutTooltips)),l()&&_e())},se=()=>{ce(),window.clearTimeout(I),I=void 0},N=(Ie,ie,Ve)=>{let Qe="";switch(_()){case"top":Qe=`transform: translate(${Ie}px, ${ie}px);`;break;case"bottom":Qe=`transform: translate(${Ie}px, ${ie}px); top: auto; bottom: 100%;`;break;case"left":Qe=`transform: translate(${Ie}px, ${ie}px); left: 0; right: auto;`;break;default:Qe=`transform: translate(${Ie}px, ${ie}px);`}return Qe+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Qe+=` opacity: ${Ve?1:0}; visibility: ${Ve?"visible":"hidden"}`,Qe},Se=(Ie,ie)=>{let Ve="";switch(_()){case"top":Ve=`transform: translate(${Ie}px, ${ie}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ve=`transform: translate(${Ie}px, ${ie}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ve=`transform: translate(${Ie}px, ${ie}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ve=`transform: translate(${Ie}px, ${ie}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ve},$e=v(()=>N(s(E),s(V),l())),Ke=v(()=>Se(s(M),s(P)));Ht(Ne),En(()=>window.clearTimeout(I));var ne=k$(),pe=ge(ne);let ye;pe.__mousemove=Le,pe.__mousedown=se,pe.__mouseup=Le;var Z=h(pe);be(Z,()=>{var Ie;return(Ie=e.children)!=null?Ie:oe}),g(pe),it(pe,Ie=>D(C,Ie),()=>s(C));var qe=A(pe,2);{var et=Ie=>{ff(Ie,{children:(ie,Ve)=>{var Qe=E$(),at=h(Qe),lt=h(at,!0);g(at);var nt=A(at,2);g(Qe),it(Qe,Tt=>D(T,Tt),()=>s(T)),k(()=>{st(Qe,s($e)),he(lt,d()),st(nt,s(Ke))}),y(ie,Qe)},$$slots:{default:!0}})};R(qe,Ie=>{d()&&!r()&&Ie(et)})}k(Ie=>ye=te(pe,1,"tooltip-wrapper svelte-hxlyne",null,ye,Ie),[()=>({"full-width":$()})]),Ct("mouseenter",pe,Le),Ct("mouseleave",pe,se),y(t,ne),H(),o()}dt(["mousemove","mousedown","mouseup"]);var Kh=t=>{t.stopPropagation()},A$=L("<div><!></div>"),M$={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 No(t,e){O(e,!0),q(t,M$);let[i,o]=He(),n=()=>S(u,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),r=Ee(),d=uo(),l=r.ui.isMobile,u=d.graphIsOpened$,f=r.ui.t,$=m(e,"className",3,""),p=m(e,"disabled",3,!1),_=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),b=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),P=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,mf),W=m(e,"initialTranslateXPx",3,0),K=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,mf),j=m(e,"mouseLeave",3,mf),ae=v(()=>p()?n()?f("tooltip_disabled_when_graph_on"):P():T());var Y=A$();Y.__pointerdown=[Kh],Y.__click=[Kh];var de=h(Y);{var le=Ne=>{ga(Ne,{get content(){return s(ae)},get translateX(){return W()},get translateY(){return K()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return V()},children:(_e,ce)=>{var Le=Fe(),se=ge(Le);be(se,()=>{var N;return(N=e.children)!=null?N:oe}),y(_e,Le)},$$slots:{default:!0}})},Me=Ne=>{var _e=Fe(),ce=ge(_e);be(ce,()=>{var Le;return(Le=e.children)!=null?Le:oe}),y(Ne,_e)};R(de,Ne=>{_()&&s(ae)&&!a()?Ne(le):Ne(Me,!1)})}g(Y),it(Y,Ne=>w(Ne),()=>w()),k(()=>{var Ne;te(Y,1,`btn-container ${(Ne=$())!=null?Ne:""}`,"svelte-p9r045"),Oe(Y,"aria-hidden",E()||null)}),Ct("mouseenter",Y,function(...Ne){var _e;(_e=U())==null||_e.apply(this,Ne)}),Ct("mouseleave",Y,function(...Ne){var _e;(_e=j())==null||_e.apply(this,Ne)}),Zr(Y,"clientWidth",b),y(t,Y),H(),o()}dt(["pointerdown","click"]);var L$=Te('<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 dd(t,e){"use strict";var i=L$(),o=h(i),n=A(o);g(i),k(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),y(t,i)}var V$=L("<div><!></div>"),R$={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 vf(t,e){O(e,!0),q(t,R$);let o=Ee().ui.t,n=J(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));No(t,{get tooltipContent(){return s(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(r,d)=>{var l=V$();let u;var f=h(l);let $=v(()=>!!e.videoEpisode.completed);dd(f,{get completed(){return s($)}}),g(l),k(p=>{u=te(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Zr(l,"clientWidth",p=>D(n,p)),y(r,l)},$$slots:{default:!0}}),H()}var B$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),N$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),D$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {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-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
|
|
170
166
|
.video-episode-loaded.svelte-1u6kv8l,
|
|
171
|
-
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {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-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function
|
|
167
|
+
.video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {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-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function gf(t,e){q(t,D$);let i=m(e,"videoEpisodes",19,()=>[]);var o=N$();Si(o,21,i,n=>n.from,(n,a)=>{var r=B$();let d;var l=h(r),u=h(l),f=A(u,2);let $;g(l),g(r),k((p,_)=>{d=te(r,1,"video-episode svelte-1u6kv8l",null,d,p),st(r,`left: ${s(a).from}%; width: ${s(a).width}%`),st(u,`transform: translateX(${s(a).loadedWidth/s(a).width*100}%)`),$=te(f,1,"video-episode-filled svelte-1u6kv8l",null,$,_),st(f,`transform: translateX(${s(a).filledWidth/s(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),y(n,r)}),g(o),y(t,o)}function O$(t,e,i,o,n,a,r){if(t.preventDefault(),e()&&D(i,ve(e().getBoundingClientRect())),o()||s(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);r()(d),e().setPointerCapture(t.pointerId)}function H$(t,e,i,o,n,a,r,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,s(a).width),s(r)&&d()(l)}function F$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function U$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var z$=L("<div></div>"),W$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),q$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),K$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
|
|
172
168
|
/* 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-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {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-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
|
|
173
169
|
.slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
|
|
174
170
|
.slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
|
|
175
171
|
.slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {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, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
|
|
176
|
-
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function
|
|
177
|
-
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function
|
|
172
|
+
.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ha(t,e){O(e,!0),q(t,K$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),r=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),$=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),_=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),b=m(e,"onPointerDown",3,jn),C=m(e,"onHandleMove",3,jn),T=m(e,"onPointerUp",3,jn),I=m(e,"onPointerEnter",3,jn),M=m(e,"onPointerMove",3,jn),P=m(e,"onPointerLeave",3,jn),E=m(e,"onMouseEnter",3,jn),V=m(e,"onMouseLeave",3,jn),W=m(e,"onWheelUp",3,jn),K=m(e,"onWheelDown",3,jn),U=m(e,"onWheelLeft",3,jn),j=m(e,"onWheelRight",3,jn),ae=m(e,"onDisabledClick",3,jn),Y=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),Me=m(e,"ariaLabel",3,""),Ne=m(e,"ariaValueMin",3,void 0),_e=m(e,"ariaValueMax",3,void 0),ce=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),se=Wt(),N=J(void 0),Se=J(!1),$e=v(()=>{var X;return(X=_e())!=null?X:0}),Ke=v(()=>{var X;return Qh(f())&&((X=f()[f().length-1])==null?void 0:X.time)<s($e)}),ne=v(()=>Qh(f())&&f().length&&s(Ke)&&s($e)?Ve(Y()*100,de()*100):[]);function pe(X){if(X.preventDefault(),i()&&D(N,ve(i().getBoundingClientRect())),_())return;let ue=Ie(X.clientX,X.clientY),Ae=ie(X.clientX);I()(ue,Ae,s(N).width)}function ye(X){X.preventDefault(),!_()&&P()()}function Z(){E()()}function qe(){V()()}function et(X){_()||$()&&(X.preventDefault(),X.deltaY<0?W()():X.deltaY>0?K()():X.deltaX>0?j()():U()())}function Ie(X,ue){return r()?Math.max(0,Math.min(1,(s(N).height-(ue-s(N).top))/s(N).height)):Math.min(Math.max(X-s(N).x,0),s(N).width)/s(N).width}function ie(X){return Math.min(Math.max(X-s(N).x,0),s(N).width)}function Ve(X,ue){let Ae=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,De=[],fe=f()[0].time/s($e)*100,Ye=0,Je=0;for(let ut=1;ut<f().length;ut++)Ye=f()[ut].time/s($e)*100,Ye-fe>Ae&&(De.push({from:fe,width:Math.max(0,Ye-fe),loadedWidth:Math.max(0,Math.min(Ye,X)-fe),filledWidth:Math.max(0,Math.min(Ye,ue)-fe),interactive:f()[ut-1].interactive,completed:f()[ut-1].completed}),fe=f()[ut].time/s($e)*100,Je++);let je={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(X,100)-fe),filledWidth:Math.max(0,Math.min(ue,100)-fe),interactive:f()[Je].interactive,completed:f()[Je].completed};100-fe<Ae?(Je-=1,De[Je].width+=100-fe,De[Je].loadedWidth+=Math.max(0,Math.min(X,100)-fe),De[Je].filledWidth+=Math.max(0,Math.min(ue,100)-fe)):De[Je]=je;let Nt=f()[0].time;if(Nt!==0){let ut=Nt/s($e)*100;De.unshift({from:0,width:ut,loadedWidth:Math.min(ut,X),filledWidth:Math.min(ut,ue)})}return De}var Qe=q$(),at=ge(Qe);{var lt=X=>{var ue=z$();let Ae;Si(ue,21,()=>s(ne),De=>De.from,(De,fe)=>{var Ye=Fe(),Je=ge(Ye);{var je=Nt=>{vf(Nt,{get videoEpisode(){return s(fe)},get disabled(){return _()}})};R(Je,Nt=>{s(fe).interactive&&Nt(je)})}y(De,Ye)}),g(ue),k(De=>Ae=te(ue,1,"interactive-icons svelte-1tpemng",null,Ae,De),[()=>({mobile:l(),hidden:l()&&!s(Se)})]),y(X,ue)};R(at,X=>{p()&&X(lt)})}var nt=A(at,2);let Tt;nt.__pointerdown=[O$,i,N,_,Se,Ie,b],nt.__pointermove=[H$,_,Ie,ie,M,N,Se,C],nt.__pointerup=[F$,_,Se,Ie,T],nt.__click=[U$,_,ae,Ie];var pt=h(nt);{var Qt=X=>{gf(X,{get videoEpisodes(){return s(ne)},get disabled(){return _()},get isMobile(){return l()}})},ni=X=>{var ue=W$(),Ae=h(ue),De=A(Ae,2);let fe;g(ue),k(Ye=>{st(Ae,`transform: translateX(${Y()*100}%);`),fe=te(De,1,"filled svelte-1tpemng",null,fe,Ye),st(De,`transform: translateX(${de()*100}%);`)},[()=>({"active-live":d()})]),y(X,ue)};R(pt,X=>{s(ne).length?X(Qt):X(ni,!1)})}var At=A(pt,2);let Mt;var ee=h(At);let It;g(At),g(nt),it(nt,X=>i(X),()=>i()),k((X,ue,Ae)=>{var De,fe;Tt=te(nt,1,`slider ${(De=o())!=null?De:""}`,"svelte-1tpemng",Tt,X),Oe(nt,"aria-label",Me()),Oe(nt,"aria-valuemin",Ne()),Oe(nt,"aria-valuemax",_e()),Oe(nt,"aria-valuenow",ce()),Oe(nt,"aria-valuetext",Le()),Oe(nt,"data-testid",(fe=n())!=null?fe:null),Mt=te(At,1,"handleWrap svelte-1tpemng",null,Mt,ue),st(At,`transform: translateX(${le()*100}%);`),It=te(ee,1,"handle svelte-1tpemng",null,It,Ae)},[()=>({disabled:_(),"slider-dragging":s(Se),hidden:a(),"slider-vertical":r(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Ct("pointerenter",nt,pe),Ct("pointerleave",nt,ye),Ct("mouseenter",nt,Z),Ct("mouseleave",nt,qe),Ct("wheel",nt,et),y(t,Qe),H()}dt(["pointerdown","pointermove","pointerup","click"]);var qi=(t,e)=>sa[t]>=sa[e],Gh=(t,e)=>sa[t]<sa[e],Ns=(t,e)=>sa[t]<=sa[e],Yh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Q$=L("<div><!></div>"),G$=L("<div><!> <!></div>"),Y$={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 hf(t,e){var Ie,ie;O(e,!0),q(t,Y$);let[i,o]=He(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),r=()=>S(f,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ee(),u=Wt(),f=l.state.volume$,$=l.state.muted$,{setVolume:p,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(Ie=l.callbacks)==null?void 0:Ie.onAudioDoesNotExistHint,T=(ie=l.callbacks)==null?void 0:ie.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,E=J(!1),V,W=v(()=>e.isAds||n()),K=v(()=>!s(W)||a()||r()===0),U=v(()=>Ns(d(),"s")),j=v(()=>s(U)?"":s(K)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),ae=v(()=>s(K)?P("tooltip_volume"):P("tooltip_volume_muted")),Y=v(()=>s(K)?0:r()),de=!1,le=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Me(Ve){_(),p(Ve)}function Ne(){zc(l,r(),u.controls.volumeStepWheel)}function _e(){Wc(l,r(),u.controls.volumeStepWheel)}function ce(Ve){p(Ve)}function Le(Ve){p(Ve),w()}function se(){de=!0}function N(){de=!1,Ke()}function Se(){clearTimeout(V),D(E,!0)}function $e(){Ke()}function Ke(){V=window.setTimeout(()=>{de||D(E,!1)},u.controls.volumeBarTimeout)}function ne(Ve){Ve.preventDefault(),Ve.deltaY<0?Ne():Ve.deltaY>0&&_e()}var pe=G$();let ye;var Z=h(pe);ga(Z,{get content(){return s(j)},translateY:-18,children:(Ve,Qe)=>{let at=v(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Bt(Ve,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(at)},get ariaLabel(){return s(ae)},get click(){return e.click},get ariaKeyShortCut(){return Xr.KeyM},role:"button",children:(lt,nt)=>{Bs(lt,{get volume(){return r()},get muted(){return s(K)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=A(Z,2);{var et=Ve=>{var Qe=Q$();let at;var lt=h(Qe);let nt=v(()=>s(U)?"volumeBar-slider-vertical":""),Tt=v(()=>s(U)&&!s(E)),pt=v(()=>s(U)?se:Kc),Qt=v(()=>s(U)?N:Kc),ni=v(()=>Math.round(s(Y)*100)),At=v(()=>`${Math.round(s(Y)*100)}%`),Mt=v(()=>s(U)?"volume-slider-vertical":"volume-slider");ha(lt,{get className(){return s(nt)},get isHidden(){return s(Tt)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ne,onWheelDown:_e,onPointerDown:Me,onHandleMove:ce,onPointerUp:Le,get onPointerEnter(){return s(pt)},get onPointerLeave(){return s(Qt)},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 s(ni)},get ariaValueText(){return s(At)},get filledProgress(){return s(Y)},get handleProgress(){return s(Y)},get testId(){return s(Mt)}}),g(Qe),k(ee=>at=te(Qe,1,"volumeBar svelte-1auih1j",null,at,ee),[()=>({"volumeBar-vertical":s(U)})]),y(Ve,Qe)};R(qe,Ve=>{s(W)&&Ve(et)})}g(pe),k(Ve=>ye=te(pe,1,"volumeBar-container svelte-1auih1j",null,ye,Ve),[()=>({vertical:s(U)})]),Ct("mouseenter",pe,function(...Ve){var Qe;(Qe=s(U)?Se:Kc)==null||Qe.apply(this,Ve)}),Ct("mouseleave",pe,function(...Ve){var Qe;(Qe=s(U)?$e:Kc)==null||Qe.apply(this,Ve)}),Ct("wheel",pe,ne),y(t,pe),H(),o()}import{noop as X$}from"@vkontakte/videoplayer-shared/es2015";var j$=Te('<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 _f(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=j$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img"},i))),y(t,o)}var Z$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
|
|
173
|
+
svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function bf(t,e){q(t,Z$);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");_f(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function cd(t,e){O(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,X$),n=Ee(),a=n.ui.isFullscreenOpenedByKeyboard,r=n.ui.t,d=v(()=>i()?r("tooltip_fullscreen_on"):r("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:u=>{let f=Vs(u);a.set(f),o()()},get ariaKeyShortCut(){return Xr.KeyF},role:"button",children:(u,f)=>{bf(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var J$=Te('<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 $f(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i))),y(t,o)}var e2=Te('<svg><!><path fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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><path fill="var(--btn-color, #fff)" fill-rule="evenodd" 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" clip-rule="evenodd"></path></svg>');function yf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var t2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
|
|
178
174
|
svg[data-testid="vk-video-logo-icon--short"] ._en,
|
|
179
175
|
svg[data-testid="vk-video-logo-icon"] ._en,
|
|
180
|
-
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function gf(t,e){K(t,j$);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);vf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function sd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S($,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),s=()=>S(_,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Kt(),b=Ie(),p=b.ui.currentGridType$,$=b.ui.isMobile,x=b.ui.t,_=b.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=v(()=>(n()||Cs(a(),"l"))&&r(T)),P=()=>{var V,q;e.click(),(V=b.callbacks)!=null&&V.onLogoClicked?(q=b.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Rt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var G=Oe(),H=fe(G);{var Z=X=>{gf(X,{get short(){return r(k)},get isCyrillic(){return s()}})},re=X=>{mf(X,{})};R(H,X=>{r(T)?X(Z):X(re,!1)})}y(V,G)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as e2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as Wh}from"@vkontakte/videoplayer-core/es2015";var Z$=we('<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>'),X$=we('<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>'),J$={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) {
|
|
176
|
+
svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function xf(t,e){q(t,t2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,r=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${s(r)+1} 24`);yf(t,{get width(){return s(r)},height:"24",get viewBox(){return s(l)},get"data-testid"(){return s(d)}})}function ud(t,e){O(e,!0);let[i,o]=He(),n=()=>S(_,"$isMobile",i),a=()=>S(p,"$currentGridType$",i),r=()=>S(b,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=Wt(),$=Ee(),p=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,b=$.isCyrillicRelatedInterface$,C=v(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=v(()=>(n()||Ns(a(),"l"))&&s(T)),M=()=>{var V,W;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(W=$.callbacks)==null||W.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!l()),E=v(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return s(P)},click:M,get testId(){return s(E)},get ariaLabel(){return s(C)},get ref(){return d()},set ref(V){d(V)},children:(V,W)=>{var K=Fe(),U=ge(K);{var j=Y=>{xf(Y,{get short(){return s(I)},get isCyrillic(){return r()}})},ae=Y=>{$f(Y,{})};R(U,Y=>{s(T)?Y(j):Y(ae,!1)})}y(V,K)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as s2}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as jh}from"@vkontakte/videoplayer-core/es2015";var o2=Te('<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>'),n2=Te('<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>'),r2={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) {
|
|
181
177
|
animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
|
|
182
178
|
animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
|
|
183
179
|
animation-name: svelte-8z1bf5-wave3;}
|
|
@@ -225,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
225
221
|
100% {
|
|
226
222
|
opacity: 1;
|
|
227
223
|
}
|
|
228
|
-
}`};function
|
|
229
|
-
transform: rotate(${n()}deg) ${
|
|
230
|
-
`)),y(ve,Y)};R(Le,ve=>{r(k)&&ve(ne)})}var B=M(Le,2),$e=h(B);{var de=ve=>{var Y=Oe(),ie=fe(Y);{var He=ye=>{var Se=Or();E(Re=>ge(Se,Re),[()=>F("tooltip_episode_unfinished")]),y(ye,Se)},je=ye=>{var Se=Or();E(()=>ge(Se,r(q).text||"")),y(ye,Se)};R(ie,ye=>{p()&&r(q).completed===!1?ye(He):ye(je,!1)})}y(ve,Y)};R($e,ve=>{r(q)&&ve(de)})}g(B);var Ke=M(B,2);{var te=ve=>{var Y=r2(),ie=h(Y,!0);g(Y),E(()=>ge(ie,d())),y(ve,Y)};R(Ke,ve=>{p()||ve(te)})}g(_e),E(ve=>{ae=ee(_e,1,"timeline-preview svelte-1wqg760",null,ae,ve),rt(_e,`width: ${r(G)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),y(t,_e),z(),o()}var l2=L('<span class="time svelte-1jr6obn"> </span>'),d2=L("<!> <!>",1),c2={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 $f(t,e){var Ge,pt,Ze,tt,it;U(e,!0),K(t,c2);let[i,o]=Ne(),n=()=>S(re,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ue,"$isInteractiveExpectation$",i),l=()=>S(ce,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),f=()=>S(G,"$isMobile",i),b=()=>S(q,"$isActiveLive$",i),p=()=>S(P,"$bufferedProgress$",i),$=()=>S(_e,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),_=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),k=Kt(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,q=T.state.isActiveLive$,G=T.ui.isMobile,H=k.features.episodes&&_()?T.actions.internal.getVideoEpisodes():void 0,Z=T.actions.internal.getPreviewThumbsData(),re=T.state.interactiveEpisodes$,X=T.state.isInteractive,ce=T.state.isInteractiveTime$,ue=T.state.isInteractiveExpectation$,Ve=T.actions.internal.correctSeekTimeToInteractive,Me=(Ge=T.callbacks)==null?void 0:Ge.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,ae=(Ze=(pt=T.callbacks)==null?void 0:pt.uiInfo)==null?void 0:Ze.onTimelineMouseEnter,Le=(it=(tt=T.callbacks)==null?void 0:tt.uiInfo)==null?void 0:it.onTimelineMouseLeave,ne=T.ui.t,B=k.features.interactiveResponsiveUi,$e=v(()=>X?n():H),de=v(()=>on(a())),Ke=v(()=>on(s())),te=v(()=>s()/a()),ve=v(()=>d()||l()),Y=J(!1),ie=J(""),He=J(0),je=J(0),ye=J(0),Se=v(()=>({containerWidth:r(je),translateXPx:r(He),translateYPx:X&&Z?-36:-16,active:r(Y)&&x()&&!r(ve)&&!B,pointer:!k.features.timelinePreview||!Z||u()})),Re=ne("aria_timeline"),Ye=v(()=>ne("aria_timeline_value",{position:r(Ke),duration:r(de)}));function ct(We){return!Ve||!X?We:Ve(We*a())/a()}function ut(We){T.actions.internal.startScrubbing(ct(We))}function st(We){l()||T.actions.internal.progressScrubbing(ct(We))}function It(We){T.actions.internal.completeScrubbing(ct(We)),D(Y,!1)}function bt(We,ht,Ut){Et(We,ht,Ut),D(Y,!0)}function Zt(We,ht,Ut){Et(We,ht,Ut),D(Y,!0)}function li(){D(Y,!1)}function Et(We,ht,Ut){D(ye,me(ct(We))),D(He,me(ht)),Ut&&D(je,me(Ut)),D(ie,me(Nt(We)))}function Nt(We){let ht=on((u()?1-We:We)*a());return u()?`-${ht}`:ht}var O=d2(),be=fe(O);_f(be,is(()=>r(Se),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(We,ht)=>{var Ut=Oe(),Je=fe(Ut);{var Yt=et=>{bf(et,{get time(){return r(ie)},get isMobile(){return f()},get videoEpisodes(){return r($e)},previewThumbsData:Z,get progress(){return r(ye)},get duration(){return a()},isInteractive:X})},ni=et=>{var ei=l2(),Di=h(ei,!0);g(ei),E(()=>ge(Di,r(ie))),y(et,ei)};R(Je,et=>{k.features.timelinePreview&&Z&&!u()?et(Yt):et(ni,!1)})}y(We,Ut)},$$slots:{default:!0}}));var se=M(be,2);let Be=v(()=>Math.round(r(te)*100)),qe=v(()=>$().has("TIMELINE"));aa(se,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},ariaLabel:Re,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Be)},get ariaValueText(){return r(Ye)},get loadedProgress(){return p()},get filledProgress(){return r(te)},get handleProgress(){return r(te)},get videoEpisodes(){return r($e)},onPointerDown:ut,onHandleMove:st,onPointerMove:Zt,onPointerUp:It,onPointerEnter:bt,onPointerLeave:li,onMouseEnter:ae,onMouseLeave:Le,onDisabledClick:Me,isInteractive:X,get disabled(){return r(qe)},get hideHandel(){return l()},get ref(){return C()},set ref(We){C(We)}}),y(t,O),z(),o()}var u2={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 ld(t,e){U(e,!0),K(t,u2);let[i,o]=Ne(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>on(s())),b=v(()=>on(a())),p=v(()=>a()/s()),$=v(()=>u("aria_timeline_value",{position:r(b),duration:r(f)})),x=v(()=>Math.round(r(p)*100));aa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var p2=L("<div><!></div>"),f2=L("<div></div>"),m2={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function la(t,e){U(e,!0),K(t,m2);let[i,o]=Ne(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(_,"$adPosition",i),d=()=>S(x,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),b=m(e,"ref",15,void 0),p=Ie(),$=p.state.isLive$,x=p.ads.duration,_=p.ads.position,C=p.ui.isMobile,T=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var k=Oe(),P=fe(k);{var A=V=>{var q=p2();let G;var H=h(q);{var Z=X=>{ld(X,{get position(){return s()},get duration(){return d()}})},re=X=>{$f(X,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return b()},set ref(ce){b(ce)}})};R(H,X=>{l()?X(Z):X(re,!1)})}g(q),E(X=>G=ee(q,1,"timeline svelte-1h5wsmk",null,G,X),[()=>({withoutPadding:!f(),mobile:a()})]),y(V,q)},I=V=>{var q=f2();let G;E(H=>G=ee(q,1,"timeline-stub svelte-1h5wsmk",null,G,H),[()=>({mobile:a()})]),y(V,q)};R(P,V=>{r(T)?V(A):V(I,!1)})}y(t,k),z(),o()}import{noop as h2}from"@vkontakte/videoplayer-shared/es2015";var v2=we('<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 yf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=v2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(3),g(o),E(()=>n=ke(o,n,W({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))),y(t,o)}var g2=we('<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 xf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=g2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),y(t,o)}var _2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),b2=L('<span class="text svelte-1yhs2ga"> </span>'),$2=L('<span class="text count svelte-1yhs2ga"> </span>'),y2=L("<!> <!>",1),x2={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 dd(t,e){var ue,Ve,Me;U(e,!0),K(t,x2);let[i,o]=Ne(),n=()=>S(x,"$currentGridType$",i),a=()=>S(_,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),b=Ie(),p=(Ve=(ue=b.callbacks)==null?void 0:ue.onEpisodeChanged)!=null?Ve:h2,$=!!((Me=b.callbacks)!=null&&Me.onEpisodeClicked),x=b.ui.currentGridType$,_=b.ui.episodes.openedByKeyboard$,C=b.ui.episodes.panelOpened$,T=b.ui.isMobile,k=b.ui.t,P=J(void 0),A=_e=>{var Le,ne,B;if(!!((Le=b.callbacks)!=null&&Le.onEpisodeClicked)){let $e=xs(_e);_.set($e),C.set(!0),(B=(ne=b.callbacks)==null?void 0:ne.onEpisodeClicked)==null||B.call(ne,$e)}},I=J(null),V=v(()=>l()/u());Fe(()=>{var ae;let _e=qc(r(V),u(),f());_e?((ae=r(I))==null?void 0:ae.time)!==_e.time&&(p(_e),D(I,me(_e))):D(I,null)});let q=v(()=>{var _e;return((_e=r(I))==null?void 0:_e.text)||""}),G=v(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&zh(n(),"xl")?"COUNT":"SHORT"),H=v(()=>`${k("tooltip_episodes")}: ${r(q)}`),Z=(_e,ae,Le)=>xt(this,null,function*(){yield bo(),(_e==null?void 0:_e.getAttribute("aria-expanded"))==="false"&&ae&&!Le&&wt(()=>{_.set(!1),_e.focus()})});Fe(()=>{Z(r(P),a(),s())});var re=Oe(),X=fe(re);{var ce=_e=>{let ae=v(()=>d()?"px-0":"");Rt(_e,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=r(ae))!=null?Le:""}`},testId:"btn-episodes",click:A,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(H)},get ref(){return r(P)},set ref(Le){D(P,me(Le))},children:(Le,ne)=>{var B=Oe(),$e=fe(B);{var de=te=>{var ve=_2(),Y=fe(ve),ie=h(Y,!0);g(Y);var He=M(Y,2),je=h(He);xf(je,{}),g(He),E(()=>ge(ie,r(q))),y(te,ve)},Ke=te=>{var ve=y2(),Y=fe(ve);yf(Y,{});var ie=M(Y,2);{var He=ye=>{var Se=b2(),Re=h(Se,!0);g(Se),E(()=>ge(Re,r(q))),y(ye,Se)},je=(ye,Se)=>{{var Re=Ye=>{var ct=$2(),ut=h(ct,!0);g(ct),E(()=>ge(ut,f().length)),y(Ye,ct)};R(ye,Ye=>{r(G)==="COUNT"&&Ye(Re)},Se)}};R(ie,ye=>{r(G)==="FULL"?ye(He):ye(je,!1)})}y(te,ve)};R($e,te=>{d()?te(de):te(Ke,!1)})}y(Le,B)},$$slots:{default:!0}})};R(X,_e=>{r(I)&&_e(ce)})}y(t,re),z(),o()}import{debounceFn as xy}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as P2,PlaybackState as cd,Player as A2,PredefinedQualityLimits as qr,VideoFormat as ud,clientChecker as M2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as Nn,getHighestQuality as L2,InterfaceLanguage as V2,isInvariantQuality as R2,isNonNullable as N2,loadVKLangPack as B2,Logger as D2,map as e1,merge as O2,Observable as H2,Subject as Xc,Subscription as kf,TracerFactory as F2,ValueSubject as U2,VideoQuality as z2,devNull as q2,now as W2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as ss}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as w2,devNull as Xt,now as Jt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as S2,Subject as Fo,clearVideoElement as C2}from"@vkontakte/videoplayer-shared/es2015";var Gh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var T2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Wc=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 Fo,loadStarted$:new Fo,loadEnded$:new Fo,loadError$:new Fo,ready$:new Fo,slotRequested$:new Fo,started$:new Fo,timeRemained$:new Fo,paused$:new Fo,resumed$:new Fo,ended$:new Fo,empty$:new Fo,skipped$:new Fo,clicked$:new Fo,closed$:new Fo,error$:new Fo};this.loadAdman=e=>(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Jt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Jt()]}),o())};S2(T2,e,this.loadTimeout).then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Jt()]}),window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Jt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Jt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Jt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Jt()]}),!d&&(window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Jt(),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"}),Te(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),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.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Jt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Jt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var P;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:b}=e,p,$=this.playerState&&Te(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:x,immediateOrigin:_}=w2(),C=(P=x?_:window.location.href)!=null?P:window.location.href,T=Dt(W(Dt(W({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:b}),p?{request_id:p}:{}),{duration:f,puid10:Gh(i,o),puid11:n?0:1});b||delete T.preview;let k={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(k),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(A){Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Jt()]}),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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adsState){this.log({message:"toggle play"});let i=Te(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Jt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,b,p;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Jt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(b=this.adman)==null||b.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&C2(this.videoElement),this.isDestroyed=!0}};var jh=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 wf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let u=new Kc,{startTime:f,endTime:b}=u.parse(l);s.startTime=f,s.endTime=b}else if(l.trim()!==""){let u=new Sf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Kc=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",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Sf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let u=["<",">"].reduce((f,b)=>{let p=s.indexOf(b,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Kc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Yh=wf;import{isNonNullable as Cf}from"@vkontakte/videoplayer-shared/es2015";var da,Ai,Tf=0,If=!1,Zh="",Xh=(t,e=0,i=0)=>t<e&&t<i,Qc=(t,e=0,i=0)=>t>=e&&t<=i,I2=(t,e=0,i=0)=>t>e&&t>i,Jh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Qc(t,u,f));let a=t>=Tf,s=t<Tf;if(Tf=t,s&&(If=!1),Cf(da)&&Qc(t,da.startTime,da.endTime)&&Zh===e.value)return da;if(!Cf(Ai)&&(n!=null&&n.length)&&!If){Ai=n.find(({startTime:u,endTime:f})=>Qc(t,u,f)||a&&Xh(t,u,f)),da=void 0,!Cf(Ai)&&n[n.length-1].endTime<t&&(If=!0);return}else{if(Qc(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))return da=Ai,Ai=void 0,Zh=e.value,da;(a&&I2(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime)||s&&Xh(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))&&(Ai=void 0)}};var Gc={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"},k2={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"},jc=t=>{var e,i;return(i=(e=Gc[t])!=null?e:Gc[k2[t]])!=null?i:void 0};import{Subscription as E2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var Yc=class{constructor(e,i=new E2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Zc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zc||{});var zr=t=>t!=null?t:0,rs=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(zr(i==null?void 0:i.top)-zr(o==null?void 0:o.top)),left:Math.round(zr(i==null?void 0:i.left)-zr(o==null?void 0:o.left)),bottom:Math.round(zr(i==null?void 0:i.bottom)-zr(o==null?void 0:o.top)),right:Math.round(zr(i==null?void 0:i.right)-zr(o==null?void 0:o.left))}},ol=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:zr(e==null?void 0:e.width),height:zr(e==null?void 0:e.height)}};var t1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:b,uiConfig:p,coreConfig:$,player:x,disabledControls:_,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:G,additionalContextMenuItems:H,playPrevVideo:Z,playNextVideo:re,looped:X=!1,statistics:ce,saveRate:ue,internalsExposure:Ve,playerView:Me})=>{var Qm,Gm,jm;let _e=Dt(W({},$),{configName:[...(Qm=$.configName)!=null?Qm:[],"ui"],isAudioDisabled:s,live:Dt(W({},(Gm=$.live)!=null?Gm:{}),{isLiveCatchUpMode:!!n})}),ae=p,Le=F2.createRootTracer(ae.features.tracer),ne=Le.createComponentTracer("Store"),B=x||new A2(_e,Le);Ve==null||Ve.expose({corePlayer:B});let $e=new D2,de=new Wc($e,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),Ke=Xs.getInstance(),te=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,Y=u==null?void 0:u.slotsApi,ie=$e.createComponentLog("Store"),He,je,ye={},Se=new xc,Re=ce?oi(ce.oneStat.vsid$):tr(void 0),Ye=le(bs()),ct=le(!1),ut=(jm=te==null?void 0:te.info.isActive$)!=null?jm:new U2(!1),st=le(0),It=le([]),bt=O2(B.events.fatalError$,B.events.managedError$).subscribe(c=>It.update(w=>[...w,c])),Zt=tr(!1,c=>{let w=B.events.fatalError$.subscribe(()=>c(!0));return()=>w.unsubscribe()}),li=c=>xt(void 0,null,function*(){var pe;let w=Object.values(V2).includes(c);if(ae.downloadVKLanguages&&(w&&ae.updateBuiltinLanguages||!Lp(c))){let ze;try{ze=yield B2(c,Og,Hg)}catch(Ct){(pe=ce==null?void 0:ce.oneStat)==null||pe.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(Ct,{errorType:"VKLangPack",fatal:!1})}ze&&(Mp({language:c,pack:ze,fallback:ae.defaultLanguage}),Et.set(c))}Lp(c)&&Et.set(c)}),Et=le(t),Nt=le(e);li(t);let O=(c,w)=>{let N=Te(Et);return Vp(N,c,w,ae.defaultLanguage)},be=le("thumb"),se=(()=>{let c=Si([Zt,be],([w,N])=>w?"crashed":N);return Dt(W({},c),{is:w=>Te(c)===w})})(),Be=(()=>{let c=le(new Set(_));return Dt(W({},c),{add:w=>{c.update(N=>new Set([...N].concat(w)))},remove:w=>{c.update(N=>{let pe=[...N];return new Set(Array.isArray(w)?pe.filter(ze=>!w.includes(ze)):pe.filter(ze=>ze!==w))})},includes:w=>{let N=Te(c);return Array.isArray(w)?w.every(pe=>N.has(pe)):N.has(w)}})})();ne.log("create store"),ie({message:"create store"});let qe=c=>{let w=c.container;w.append(B.experimental.element$.getValue()),ht=new MutationObserver(N=>{let{removedNodes:pe}=N[0];pe.length&&w.append(B.experimental.element$.getValue())}),ht.observe(w,{childList:!0})},Ge=c=>{ie({message:`init video, config: ${JSON.stringify(c)}`}),C?qe(c):(q2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[W2()]}),B.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&B.setExternalTextTracks(c.subtitles),He=c},pt=new Xc,Ze=c=>pt.next(c),tt=new Xc,it=new Xc,We=new Xc,ht=null,Ut={actionRewind$:tt,actionSeek$:it,inPiP$:ut,inFullscreen$:new H2(c=>Ye.subscribe(w=>c.next(w))),actionSetSubtitle$:We,nextMovie$:pt};if(ce){let{oneStat:c,statSubscription:w}=ce;C||w.add(c.attachTo(B)),w.add(c.attachToUi(Ut)),w.add(c.attachToAds(de.events)),c.authorize(a).catch(N=>{ie({message:`onestat auth error ${String(N)}`})})}if(Ke){let c=new kf,w=(N,pe)=>c.add(N.subscribe(pe));if(w(B.events.managedError$,N=>{Ke.logIError(N)}),w(B.events.fatalError$,N=>{Ke.logIError(N,!0)}),ce){let{oneStat:N}=ce;w(N.experimental.error$,pe=>{Ke.logIError(pe)})}Ke.sentrySubscription.add(c)}let Je=()=>{M2.device.isIOS&&je&&wh(je).catch(c=>{ie({message:`exitIosSafariFullscreen failed: ${c}`})})},Yt=new kf().add(B.experimental.element$.subscribe(c=>{c&&(je=c,c.classList.add("player-media"),ea(te)&&(te.updateVideoElement(),te.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;Je(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(B.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(B.events.started$.subscribe(()=>xt(void 0,null,function*(){var w,N;ea(te)&&(yield te==null?void 0:te.revealPictureInPicture());let c=B.info.muted$.getValue();(w=l==null?void 0:l.onStarted)==null||w.call(l),(N=ye.onStarted)==null||N.call(ye,c)}))).add(B.events.willSeek$.subscribe(({from:c,to:w})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,w)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(B.info.position$.subscribe(c=>{var N;let w=B.info.duration$.getValue();isFinite(w)&&w>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,w,c),de.setPosition(c,w))})).add(B.events.fatalError$.subscribe(c=>{var w;(w=l==null?void 0:l.onCrashed)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var w;(w=l==null?void 0:l.onRecoverableError)==null||w.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{Pt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{C&&(c?(k!=null&&k.getValue()&&Be.add(Dl),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var w;(w=l==null?void 0:l.onLiveTime)==null||w.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var w;(w=l==null?void 0:l.onStalledChanged)==null||w.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var w;return c&&((w=l==null?void 0:l.onLiveEnded)==null?void 0:w.call(l))})).add(de.events.loadStarted$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:w.call(c)})).add(de.events.loadEnded$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:w.call(c)})).add(de.events.loadError$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:w.call(c)})).add(de.events.init$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:w.call(c)})).add(de.events.ready$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:w.call(c)})).add(de.events.started$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onStarted)==null?void 0:N.call(w,c)})).add(de.events.timeRemained$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onTimeRemained)==null?void 0:N.call(w,c)})).add(de.events.ended$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onCompleted)==null?void 0:N.call(w,c)})).add(de.events.empty$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:w.call(c)})).add(de.events.clicked$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClicked)==null?void 0:N.call(w,c)})).add(de.events.closed$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onClosed)==null?void 0:N.call(w,c)})).add(de.events.error$.subscribe(c=>{var w,N;return(N=(w=l==null?void 0:l.adsInfo)==null?void 0:w.onError)==null?void 0:N.call(w,c)})).add(de.events.paused$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:w.call(c)})).add(de.events.resumed$.subscribe(()=>{var c,w;return(w=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:w.call(c)})),ni=new kf,et=()=>{var Ct,Ot,Qt;let{debugLog:c}=ae,w,N="#9df7b7",pe="#efd169";if(c&&c!==!0){let{colors:Ht}=c;w=c.tag,N=(Ct=Ht==null?void 0:Ht[0])!=null?Ct:N,pe=(Qt=(Ot=Ht==null?void 0:Ht[1])!=null?Ot:Ht==null?void 0:Ht[0])!=null?Qt:pe}let ze=w?`: ${w}`:"";ni.add(B.events.log$.subscribe(Ht=>{console.debug(`%c sdk${ze} `,`background:${N};`,`sdk component: ${Ht.component}`,Ht.message)})).add($e.log$.subscribe(Ht=>{console.debug(`%c ui${ze} `,`background:${pe};`,`ui component: ${Ht.component}.`,Ht.message)}))},ei=()=>{ni.unsubscribe()},Di=(c,w)=>{ne.log("start camera manual rotation",{mx:c,my:w}),B.startCameraManualRotation(c,w)},qi=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Lt=(c,w,N)=>{ne.log("move camera focus px",{xpx:c,ypx:w,dt:N}),B.moveCameraFocusPX(c,w,N)},_t=()=>{B.holdCamera()},Bt=()=>{B.releaseCamera()},mo=tr(B.info.position$.getValue(),c=>{let w,N,pe=()=>{let ze=B.info.playbackState$.getValue(),Ct=B.info.isLive$.getValue(),Ot=B.info.duration$.getValue(),Qt=B.info.position$.getValue();if(ze&&[cd.PLAYING,cd.PAUSED].includes(ze)){let Ht=Ct?Qt-Ot:B.getExactTime();Ht!==N&&c(Ht),N=Ht}w=requestAnimationFrame(pe)};return pe(),()=>cancelAnimationFrame(w)}),nn=oi(B.info.playbackState$),yn=oi(B.info.currentBuffer$),wo=oi(B.info.isEnded$),j=oi(B.info.isLive$),ti=ae.features.playbackRate?oi(B.info.canChangePlaybackSpeed$):tr(!1),di=oi(B.info.liveBufferTime$),Oi=oi(B.info.volume$),pi=oi(B.info.muted$),mt=wc(B.info.predefinedQualityLimitType$.pipe(e1(c=>c===qr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===qr.TRAFFIC_SAVING),vi=wc(B.info.predefinedQualityLimitType$.pipe(e1(c=>c===qr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===qr.HIGH_QUALITY),Xe=oi(B.info.autoQualityLimitingAvailable$),Vt=oi(B.info.availableQualities$),no=oi(B.info.availableQualitiesFps$),ri=oi(B.info.chromecastState$),or=oi(B.info.chromecastDeviceName$),So=oi(B.info.currentFormat$),zo=oi(B.info.throughputEstimation$),fi=oi(B.info.videoBitrate$),St=oi(B.info.intrinsicVideoSize$),Ii=oi(B.info.duration$),Mo=oi(B.info.isAudioAvailable$),gi=null,Lo=B.info.isBuffering$,Wi=tr(Lo.getValue(),c=>{let w=Lo.subscribe(N=>{N&&gi===null?gi=window.setTimeout(()=>{c(Lo.getValue()),gi=null},ae.loaderDelay):c(N)});return()=>{w.unsubscribe(),gi&&clearTimeout(gi)}}),Co=()=>{gi&&clearTimeout(gi),gi=null},To=Si([Ii,j],([c,w])=>w?-c:c),Dn=Si([nn],([c])=>c===cd.PLAYING),Io=oi(B.info.atLiveEdge$),xn=oi(B.info.atLiveDurationEdge$),Zi=oi(B.info.position$),Vo=Si([Zi,Ii],([c,w])=>isFinite(c)&&isFinite(w)&&!!w),rn=Si([ri],([c])=>c===P2.CONNECTED),Tr=oi(B.info.availableVideoStreams$),nr=ae.features.audioLanguages?oi(B.info.availableAudioStreams$):tr([]),On=oi(B.info.currentVideoStream$),wn=oi(B.info.currentAudioStream$),Hn=c=>{c.language&&Ap(c.language),B.setVideoStream(c)},rr=c=>{c.language&&Ap(c.language),B.setAudioStream(c)},ro=c=>{let w;if(c.length===1&&(w=c.at(0)),w!=null||(w=c.find(pe=>"isDefault"in pe&&pe.isDefault)),w)return w;let N=dh();return N&&(w=c.find(({language:pe})=>N===pe)),w!=null||(w=c.at(0)),w},Ro=!1;Yt.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Ro&&c.length){let w=ro(c);w&&(B.setAudioStream(w),Ro=!0)}}));let Sn=!1;Yt.add(B.info.availableVideoStreams$.subscribe(c=>{if(!Sn&&c.length){let w=ro(c);w&&(B.setVideoStream(w),Sn=!0)}}));let ot=le(void 0),Cn=oi(B.info.isAutoQualityEnabled$,c=>c&&ot.set(void 0)),Fn=oi(B.info.currentQuality$,()=>ot.set(void 0)),sn=Si([ot,Fn],([c,w])=>c!=null?c:w),sr=Si(So,c=>c!==ud.MPEG),an=Si([Vt,no,Cn,sn,sr],([c,w,N,pe,ze])=>{let Ct=[];ze&&Ct.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Ot=c.filter(Qt=>!R2(Qt));for(let Qt of Ot){let Ht=w[Qt];Ct.push({value:Qt,displayValue:`${Qt}${Ht?jh(Ht):""}`,selected:N?!1:Qt===pe})}return Ct}),ln=oi(B.info.currentPlaybackRate$),dn=Si([ln,Io,xn],([c,w,N])=>{let pe=N||C?1:ae.controls.playbackRateMin,ze=w?1:ae.controls.playbackRateMax,Ct=ae.controls.playbackRateStep,Ot=[];for(let Qt=pe;Qt<=ze;Qt+=Ct)Ot.push({value:Qt,displayValue:Qt===1?O("playback_rate_1"):O("playback_rate",{multiplier:Qt.toString(10)}),selected:c===Qt});return Ot}),Xi={displayValue:O("subtitles_off"),value:"off"},Ki=le(W({},Xi)),cn=ae.features.subtitles?oi(B.info.availableTextTracks$):tr([]),Un=eh(),qo=Si([cn,Ki],([c,w],N)=>{var Ct;let pe=[],ze=c.find(({id:Ot})=>Ot===w.value);if(ze!=null&&ze.url){let[,Ot]=(Ct=Un.find(ze.url))!=null?Ct:[];if(Ot){N(Ot);return}Se.download(ze.url).then(Qt=>{if(!Qt||Se.isDestroyed())return;let Ht=new Yh,cs=ze.language;if(cs){let q1=!!ze.isAuto,W1=Ht.parse(Qt,cs);pe.push({lang:cs,subtitles:W1,isAuto:q1,id:ze.id})}Un.add(ze.url,pe),Te(Ki).value===w.value&&N(pe)}).catch(Qt=>{var Ht;(Ht=ce==null?void 0:ce.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(Qt,{errorType:"Subtitles download",fatal:!1})})}N(pe)}),un=Si([ln,Dn,Ki],([c,w,N],pe)=>{let Ot;if(B.info.isLive$.getValue()&&w&&N.value!==Xi.value){let Ht=()=>{let cs=1e3/(3*c);Ot=setTimeout(Ht,cs),pe(Date.now())};return Ht(),()=>clearTimeout(Ot)}}),No=Si([cn,Ki],([c,w])=>{if(!c.length)return[];let N=[];for(let{language:pe,isAuto:ze,id:Ct}of c){let Ot=pe&&jc(pe);pe&&Ot&&N.push({displayValue:ze?O("subtitles_auto",{language:Ot}):Ot,value:Ct,selected:(w==null?void 0:w.value)===Ct,isAuto:ze})}return N.length?(N.unshift(Dt(W({},Xi),{selected:(w==null?void 0:w.value)===Xi.value})),N):[]}),vo={available:[],prev:[]},Hi=()=>{var w,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(w=c==null?void 0:c())!=null?w:je==null?void 0:je.currentTime)!=null?N:0},zn=Si([mo,Ki,qo,un],([c,w,N,pe])=>{var Ct;let ze=B.info.isLive$.getValue();if(ze&&vo.prev!==N){let Ot=N.find(({id:Ht})=>Ht===w.value),Qt=vo.prev.find(({id:Ht})=>Ht===w.value);if(Ot){let Ht=Dt(W({},Ot),{subtitles:[...(Ct=Qt==null?void 0:Qt.subtitles)!=null?Ct:[],...Ot.subtitles]});vo.available=[Ht],vo.prev=N}}if(w&&w.value!==Xi.value){let Ot=ze?Hi():c,Qt=ze?vo.available:N;return Jh(Ot,w,Qt,ze)}}),so=Si([zn],([c])=>c!=null&&c.texts?c.texts:[]);Yt.add(Ki.subscribe(c=>{var w,N;if(c.value===Xi.value)(w=l==null?void 0:l.onSubtitleOff)==null||w.call(l);else{let pe=Object.entries(Gc).find(([ze,Ct])=>Ct===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,pe?pe[0]:"")}}));let Tn=le(!0),qn=Si([yn,To,Zi,di],([c,w,N,pe])=>{var Qt;let ze=(Qt=c==null?void 0:c.end)!=null?Qt:0;if(!pe)return ze/w;let Ot=-N+pe-w;return(ze-Ot)/w}),pn=oi(B.info.availableSources$),Ir=Si([pn],([c])=>Object.keys((c==null?void 0:c[ud.MPEG])||{}).length>0),Wo=()=>{var N,pe,ze;let c=Object.keys(((pe=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:pe[ud.MPEG])||{}),w=L2(c)||z2.Q_144P;return(ze=He.sources[ud.MPEG])==null?void 0:ze[w]},kr=()=>{var w;let c=Wo();if(c)ne.log("download video",{url:c}),Zg(c,((w=He==null?void 0:He.meta)==null?void 0:w.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),ie({message:N})}},Wn=()=>{ie({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?lr(ii()):Pr(!c)},Kn=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!Te(Pt.ui.settingsSubMenu.visible$)){let w=Te(Pt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&w){let pe=ol(w),ze={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:pe,position:ze,name:"settings"})}}ne.log("close settings menu")},ar=(c,w=()=>Promise.resolve())=>xt(void 0,null,function*(){var ze;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),yield w();let N=Te(Pt.ui.settingsMenu.ref$),pe=Ms();if((ze=l==null?void 0:l.uiInfo)!=null&&ze.onSettingsMenu&&N&&pe){let Ot=ol(N),Qt=rs(N,pe);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Qt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})}),Er=(c,w=!1)=>{var Ct;Pt.ui.settingsSubMenu.visible$.set(!1);let N=Te(Pt.ui.settingsMenu.ref$),pe=Ms(),ze=Te(Pt.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&N&&pe)if(ze&&!w){let Qt=ol(N),Ht=rs(N,pe);l.uiInfo.onSettingsMenu({visible:!0,size:Qt,position:Ht,name:"settings"})}else{let Qt=ol(c),Ht={top:0,left:0,bottom:0,right:0},cs=Te(Pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Qt,position:Ht,name:cs})}ne.log("close settings sub menu")},In=(c,w)=>{var pe;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(w),Pt.ui.settingsSubMenu.name$.set(c);let N=Ms();if((pe=l==null?void 0:l.uiInfo)!=null&&pe.onSettingsMenu&&w&&N){let Ct=ol(w),Ot=rs(w,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Ot})}ne.log("open settings sub menu",{name:c})},ii=()=>{var w;let c=Math.max(ae.volumeMinRestore,(w=Sc())!=null?w:0);return c===0?ae.volumeDefault:c},lr=c=>{let w=c===0?ii():c,N=B.info.muted$.getValue();ie({message:`set volume, volume: ${c}, preferredVolume: ${w}`}),N&&c>0&&!s&&(N=!1,Ep(!1)),B.setVolume(c,N),de.setVolume(c),Sp(w)},Pr=c=>{let w=B.info.volume$.getValue();if(ie({message:`set muted, currentVolume: ${w}, mute: ${c}`}),B.setMuted(c),de.setVolume(c?0:w),Ep(c),!c&&w===0){let N=ii();B.setVolume(N),Sp(N),de.setVolume(N)}},Bo=le(!1),ki=c=>{var w,N;ne.log("set looped",{isLooped:c}),Bo.set(c),B.setLooped(c),(N=(w=l==null?void 0:l.uiInfo)==null?void 0:w.onLoopedChanged)==null||N.call(w,c)};ki(X);let dr=()=>{var c,w;(w=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||w.call(c)},vt=(c,w=!1)=>{var N;ie({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),ph(c),w&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},zt=c=>{ie({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},Mi=(c=!0)=>{var pe;let w=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{w=(pe=l==null?void 0:l.onPrevVideoClick)==null?void 0:pe.call(l)}catch(ze){ie({message:"onPrevVideoClick callback failed to execute"})}if(!w)return;c&&nt("prev")||Z()},ko=(c=!0)=>{var pe;let w=!0;if(c&&(l!=null&&l.onNextVideoClick))try{w=(pe=l==null?void 0:l.onNextVideoClick)==null?void 0:pe.call(l)}catch(ze){ie({message:"onNextVideoClick callback failed to execute"})}if(!w)return;c&&nt("next")||re()},nt=c=>{let{isMobile:w,features:{playbackStatusNextVideoShow:N,playbackStatusShow:pe}}=ae;return N&&pe&&!w?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Gt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},hi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Ji=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},eo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Li=()=>{B.prepare()},Ci=()=>{Nn(Pt);let c=Te(Pt.ui.controls.disabledControls$),w=Te(Pt.playerPhase),N={playerPhase:w,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ie({message:"toggle play"}),w==="ads"){N.action="play",ne.log("toggle adman play",N),de.togglePlay();return}let pe=()=>{var Ct;ie({message:"toggle play, call player.play"}),N.action="play",B.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},ze=()=>{var Ct;ie({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(Ct=l==null?void 0:l.onPause)==null||Ct.call(l)};if(B.info.isEnded$.getValue()){if(ie({message:"toggle play, video ended, seek to 0"}),tt.next(),it.next(ss.REWIND),C){P==null||P();return}B.seekTime(0),pe()}else B.info.playbackState$.getValue()!==cd.PLAYING?pe():ze();ne.log("toggle play",N)},Qi=(c,{changeReason:w="default",appliesTo:N="to-video"}={})=>{ie({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(Cc({type:"exact_quality",quality:c,videoId:i},N),Hl(),B.setPredefinedQualityLimits(qr.UNKNOWN)):Cp(i,c),ot.set(c),B.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?w==="default"&&(cr("auto_quality",N),Te(mt)&&si(!1),Te(vi)&&Fi(!1)):Hl()},si=(c,w="as-default")=>{ie({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?qr.TRAFFIC_SAVING:qr.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(fn(N,w),Ol(!1)):(B.setPredefinedQualityLimits(N),Ol(c))},Fi=(c,w="as-default")=>{ie({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),fn(c?qr.HIGH_QUALITY:qr.UNKNOWN,w)},fn=(c,w)=>{c!==qr.UNKNOWN&&(Te(Xe)&&!Te(Cn)&&Qi("auto",{appliesTo:w,changeReason:"limit-changed"}),cr(c,w)),B.setPredefinedQualityLimits(c)},cr=(c,w)=>{Cc({type:c,videoId:i},w),w==="as-default"&&Cc({type:c,videoId:i},"to-video")},Qn=c=>{ne.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ae.features.saveRate&&ue&&!B.info.isLive$.getValue()&&ch(c)},ur=()=>{let c=Te(dn),w=c.findIndex(({selected:pe})=>pe);if(w===c.length-1)return;let N=c[w+1];Qn(N.value)},pr=()=>{let c=Te(dn),w=c.findIndex(({selected:pe})=>pe);if(w===0)return;let N=c[w-1];Qn(N.value)},fr=(c=Dt(W({},Xi),{selected:!1}))=>{ne.log("set subtitles",W({},c)),c&&c.value!==Xi.value&&We.next(c.isAuto?c.value+"_auto":c.value),Ki.set(c)},mr=()=>{ne.log("toggle subtitles");let c=Te(No),w=Te(Ki),N=Te(Et);if((w==null?void 0:w.value)===Xi.value){let pe=c.filter(ze=>ze.value!==Xi.value).find(ze=>ze.value===N)||c[1];fr(pe)}else fr()},Gn=le(!0),jn=c=>{Gn.set(c)},Do=(c,w,N=!0)=>{var pe;if(ie({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:w,forcePrecise:N}),it.next(w),B.info.isLive$.getValue()){let ze=B.info.duration$.getValue(),Ct=Math.min(0,ze+c);B.seekTime(Ct,N)}else{if(k!=null&&k.getValue())return;B.info.isEnded$.getValue()&&(ie({message:"seek after ended, call callbacks.onPlay"}),(pe=l==null?void 0:l.onPlay)==null||pe.call(l)),B.seekTime(Km(c),N)}},Ar=c=>{ie({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Do(c,ss.EPISODE,!0)},Oo=(c,w)=>{ie({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:w});let N=Te(To)*c;Do(N,w,!1)},vr=c=>{ie({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),it.next(ss.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Mr=c=>{var pe,ze;let w=(pe=c.max)!=null?pe:"none",N=(ze=c.min)!=null?ze:"none";ie({message:`set auto quality limitation. Max: ${w}. Min: ${N}`}),ne.log("set auto quality limits",{max:w,min:N}),B.setAutoQualityLimits(c)},Lr=c=>{ie({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Do(c,ss.EPISODE,!0)},Vr=c=>{ie({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},to=le(void 0),kn=le(!1),Rr=c=>{ie({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),kn.set(!0),lt(c)},lt=c=>{to.set(c)},qt,Vi,Eo=()=>{to.set(void 0),kn.set(!1)},Ce=()=>{clearTimeout(Vi),clearTimeout(qt),qt=window.setTimeout(()=>{Eo()},500),je==null||je.removeEventListener("seeked",Ce)},Mt=c=>{ie({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Oo(c,ss.SLIDER),Te(Pt.ui.isMobile)&&Te(Pt.state.currentFormat$)===ud.HLS?(je==null||je.addEventListener("seeked",Ce),Vi=window.setTimeout(()=>{Ce()},300)):Eo()},bi=Si([mo,To,to],([c,w,N],pe)=>{pe(N2(N)?N*w:c)}),$i=le(!1),_i=()=>{$i.set(!0)},Ee=()=>{$i.set(!1)},$t=le({width:0,height:0}),jt=Si([$t],([{width:c}],w)=>{let N=qh(c);w(N)}),Ti=le(!1),ci=q.filter(c=>Xg(c)),Wr=Si([jt,Ti],([c,w])=>w?ci.filter(N=>!N.hideOnMobile):ci.filter(N=>{var pe;return!((pe=N.hideOnDesktopGridTypes)!=null&&pe.includes(c))})),Ui=le(q.filter(c=>Jg(c))),Yn=Si([Ui,jt],([c,w])=>c.filter(N=>{var pe;return!((pe=N.hideOnDesktopGridTypes)!=null&&pe.includes(w))})),Es=Si([Yn,Wr],([c,w])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?w.map((N,pe)=>{var ze;return{id:pe,weight:pe,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(ze=N.ariaLabel)!=null?ze:N.tooltip,tooltipText:N.tooltip}}):[]]),Zn=le(G),ba=Si([Zn],([c])=>ae.features.additionalSettingsMenuItems?c.map(w=>w.type==="SWITCH"?Dt(W({},w),{onClick:w.onChangeEnabled}):w):[]),cl=(c,w)=>{let N=Te(Ui).map(pe=>pe.id!==c?pe:W(W({},pe),w));Ui.set(N)},$a=c=>{let w=Te(Ui);if(w.some(N=>N.id===c.id)){ie({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Ui.set(w)},ya=c=>{let w=Te(Ui);if(!w.some(N=>N.id===c)){ie({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),Ui.set(w)},xa=c=>{it.next(ss.LIVE),ie({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),B.setLiveLowLatency(c)},ul=(c,w)=>{let N=Te(Zn).map(pe=>pe.id!==c?pe:W(W({},pe),w));Zn.set(N)},Ps=c=>{let w=Te(Zn);if(w.some(N=>N.id===c.id)){ie({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),Zn.set(w)},wa=c=>{let w=Te(Zn);if(!w.some(N=>N.id===c)){ie({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),Zn.set(w)},dt=le(H),yt=Si([dt],([c])=>ae.features.additionalContextMenuItems?c:[]),io=(c,w)=>{let N=Te(dt).map(pe=>pe.id!==c?pe:W(W({},pe),w));dt.set(N)},Ko=c=>{let w=Te(dt);if(w.some(N=>N.id===c.id)){ie({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}w.push(c),dt.set(w)},oo=c=>{let w=Te(dt);if(!w.some(N=>N.id===c)){ie({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}w=w.filter(N=>N.id!==c),dt.set(w)},mi=Si([Ti,Zt],([c,w],N)=>{N(c&&w)}),Ri=()=>{it.next(ss.LIVE),ie({message:"switch to active live"}),ne.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==cd.PLAYING&&Pt.actions.internal.togglePlay()},As=()=>{ne.log("skip adman"),de.skip()},Sa=(c=!0)=>{Nn(Pt),ie({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&B.play()},bu=()=>{Nn(Pt),ie({message:"switch from video to ads"}),ne.log("switch from video to ads"),Pt.actions.internal.pause(),Je(),be.set("ads")},Hd=c=>{Nn(Pt);let w=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:w}),be.set(w)},$u=c=>{Nn(Pt);let w=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:w}),be.set(w)},Fd=c=>{Nn(Pt);let w=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:w}),be.set(w)},yu=()=>(Nn(Pt),ne.log("get debug text data"),jg(B,He,Pt,Le.getTraceId())),Ud=()=>(Nn(Pt),JSON.stringify(Le.getFinishedSpans())),xu=()=>(Nn(Pt),Yg(B,He,Pt)),Ms=()=>je,zd=()=>{ie({message:"toggle chromecast"}),ne.log("toggle chromecast"),B.toggleChromecast()},pl=c=>{var N;if(Nn(Pt),B.info.isEnded$.getValue())return;let w=!c;if(Te(Pt.playerPhase)==="ads"){ie({message:`pause ads, internalCall: ${w}`}),ne.log("pause ads",{internalCall:w}),de.pause();return}ie({message:`pause video, internalCall: ${w}`}),ne.log("pause video",{internalCall:w}),w&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},qd=c=>{var N;Nn(Pt);let w=!c;if(Te(Pt.playerPhase)==="ads"){ie({message:`play ads, internalCall: ${w}`}),ne.log("play ads",{internalCall:w}),de.play();return}ie({message:`play video, internalCall: ${w}`}),ne.log("play video",{internalCall:w}),w&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Wd=c=>{Nn(Pt);let w=!c;if(Te(Pt.playerPhase)==="ads"){ie({message:"player cannot be stopped during ads via external method"});return}ie({message:`player will be stopped, internalCall: ${w}`}),A==null||A()},Kd=(c,w)=>{Nn(Pt),ie({message:`first start, show ads: ${c}, internalCall: ${!w}`}),ne.log("first start",{showAds:c,external:w}),c?be.set("ads"):(be.set("video"),w?B.play():Pt.actions.internal.togglePlay())},Ca=()=>(ie({message:"getting time codes"}),f),Qd=()=>{let c=Ca();if(!c||[0,1].includes(c.length))return;let w=B.info.position$.getValue();return c.find(N=>N.time>w)},wu=c=>{let w=c;w||(w=Qd());let N=B.info.position$.getValue();ne.log("seek to next episode",W({currentTime:N},w)),w&&(ie({message:"seek to next episode"}),Do(w.time,ss.EPISODE,!0))},Gd=()=>{let c=Ca();if(!c||[0,1].includes(c.length))return;let w=B.info.position$.getValue(),N=c.findIndex(ze=>ze.time>w),pe=N===-1?c.length-2:N-2;if(!(pe<0))return c[pe]},Ue=c=>{let w=c;w||(w=Gd());let N=B.info.position$.getValue();ne.log("seek to prev episode",W({currentTime:N},w)),w&&(ie({message:"seek to prev episode"}),Do(w.time,ss.EPISODE,!0))},ui=()=>(ie({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",W({},b)),b),Qo=()=>xt(void 0,null,function*(){let c=te==null?void 0:te.isActive(),w="none";te!=null&&te.isActive()?(w="remove",yield te==null?void 0:te.remove()):(w="request",yield te==null?void 0:te.request()),ne.log("toggle picture in picture",{isActive:c,action:w})}),Ls=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),st.update(w=>w+c)},go=le([]);T==null||T.subscribe(c=>{let w=[];for(let N=0;N<c.length;N++){let{range:[pe,ze],subjects:Ct}=c[N];N===0&&pe!==0&&w.push({time:0,text:"",interactive:!1,completed:!0}),w.push({time:pe/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!Ct.length||Ct.every(Ot=>Ot.isRemoved):!Ct.length}),ze!==1/0&&w.push({time:ze/1e3,text:"",interactive:!1,completed:!0})}go.set(w)});let F1=le(!1);k==null||k.subscribe(c=>{c&&Te(kn)&&Eo()});let Km=c=>{if(!C)return c;let w=Te(go),N=Te(To),ze=Te(Zi)/N,Ct=w.find(Ot=>Ot.interactive&&!Ot.completed&&Ot.time>ze);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},U1=()=>{Pt.ui.episodes.panelOpened$.set(!1)},z1=()=>{ne.log("destroy store"),clearTimeout(Vi),clearTimeout(qt),Yt.unsubscribe(),ni.unsubscribe(),B.destroy(),de.destroy(),ce==null||ce.destroy(),Ke==null||Ke.destroy(),bt.unsubscribe(),ht==null||ht.disconnect(),ht=null,Se.destroy()},Pt={interfaceLanguage$:Et,isCyrillicRelatedInterface$:Nt,initVideo:Ge,videoId:i,isClip:o,playerPhase:se,vsid:Re,state:{positionExact$:mo,positionWithScrubbing$:bi,duration$:To,playbackState$:nn,isPlaying$:Dn,isLoaderVisible:Wi,bufferedProgress$:qn,isLive$:j,canChangePlaybackSpeed$:ti,isActiveLive$:Io,isOldestAvailableLive$:xn,isRewindableLive$:Vo,isEnded$:wo,muted$:pi,volume$:Oi,trafficSavingEnabled$:mt,highQualityEnabled$:vi,autoQualityLimitingAvailable$:Xe,availableVideoStreams$:Tr,availableAudioStreams$:nr,videoStream$:On,audioStream$:wn,currentQuality$:sn,isAutoQualityEnabled$:Cn,availableQualities$:an,currentPlaybackRate$:ln,availablePlaybackRates$:dn,currentSubtitle$:Ki,availableTextTracks$:cn,availableSubtitlesList$:No,currentSubtitleCaptions$:so,isAutoSubtitleCaptionVisible$:Tn,chromecastState$:ri,chromecastDeviceName$:or,chromecastConnected$:rn,currentFormat$:So,throughputEstimation$:zo,videoBitrate$:fi,videoSize$:St,errorLog$:It,crashed$:Zt,isAudioAvailable$:Mo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:pn,hasMpegSources$:Ir,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!Te(go).length,interactiveEpisodes$:go,isInteractiveTime$:k?oi(k):le(!1),isInteractiveExpectation$:F1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Bo,loadedMetadata$:le(!1),isAutoQualityAvailable$:sr},ui:{t:O,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:q.length?q.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ye,isFullscreenOpenedByKeyboard:ct,rotateAlpha:st,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:$t,isMobile:Ti,mobileNotReportControlHidden$:mi,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:kn,volumeChangingInProgress:$i,is3DVideo:le(!1),currentGridType$:jt,additionalButtonsDeprecated$:Wr,additionalDesktopControlPanelRightButtons$:Es,additionalSettingsMenuItems$:ba,additionalContextMenuItems$:yt,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1),hiddenControls:{volume:le(!1)},isControlsAvailable:le(!0)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:te,annotationsApi:ve,slotsApi:Y},actions:{internal:{preload:Li,firstStart:c=>Kd(c,!1),play:()=>qd(!1),pause:()=>pl(!1),togglePlay:Ci,toggleMuted:Wn,openSettingsMenu:ar,closeSettingsMenu:Kn,openSettingsSubMenu:In,closeSettingsSubMenu:Er,setVolume:lr,startVolumeChanging:_i,stopVolumeChanging:Ee,setVideoStream:Hn,setAudioStream:rr,setQuality:Qi,setTrafficSavingEnabled:si,setHighQualityEnabled:Fi,setPlaybackRate:Qn,incrementPlaybackRate:ur,decrementPlaybackRate:pr,setSubtitle:fr,toggleSubtitle:mr,togglePictureInPicture:Qo,startScrubbing:Rr,progressScrubbing:lt,completeScrubbing:Mt,toggleChromecast:zd,switchToActiveLive:Ri,switchFromAdsToVideo:Sa,switchFromVideoToAds:bu,skipAd:As,setLiveWaitingStart:Hd,setLiveWaitingRecover:$u,setLiveWaitingRecord:Fd,getDebugTextData:yu,getTraceTextData:Ud,getDebugPanelData:xu,getVideoElement:Ms,seekTime:(c,w,N)=>Do(c,w,N),clearDelayedBufferingCheckTimeout:Co,seekEpisodeStartTime:Ar,seekToPercent:Oo,getNextEpisode:Qd,seekToNextEpisode:wu,getPrevEpisode:Gd,seekToPrevEpisode:Ue,startLogging:et,stopLogging:ei,startCameraManualRotation:Di,stopCameraManualRotation:qi,moveCameraFocusPX:Lt,holdCamera:_t,releaseCamera:Bt,getVideoEpisodes:Ca,getPreviewThumbsData:ui,downloadVideo:kr,addLanguage:Mp,setLanguage:li,nextMovie:Ze,videoRotate:Ls,correctSeekTimeToInteractive:Km,replayInteractive:P,setLooped:ki,reportProblem:dr,setAutoplayNextEnabled:vt,setTimerNextVideoRunning:zt,prevVideoClick:Mi,nextVideoClick:ko,nextVideoAnnouncementShow:Gt,nextVideoAnnouncementClick:hi,nextVideoAnnouncementAuto:Ji,nextVideoAnnouncementCancel:eo},external:{firstStart:c=>Kd(c,!0),play:()=>qd(!0),pause:()=>pl(!0),stop:()=>Wd(!0),seekTime:c=>vr(c),seekEpisodeStartTime:c=>Lr(c),setPlaybackRate:c=>Vr(c),setAutoQualityLimits:c=>Mr(c),setMuted:Pr,toggleSubtitle:mr,setVolume:lr,returnFocusToEpisodes:U1,updateAdditionalSettingsItem:ul,addAdditionalSettingsItem:Ps,removeAdditionalSettingsItem:wa,updateAdditionalContextItem:io,addAdditionalContextItem:Ko,removeAdditionalContextItem:oo,updateAdditionalButton:cl,addAdditionalButton:$a,removeAdditionalButton:ya,setLiveLowLatency:xa,hideControls:()=>jn(!1),showControls:()=>jn(!0)}},callbacks:l,setUiCallbacks:c=>{ye=W({},c)},getAdmanWrapper:()=>de,getLogger:()=>$e,getPlayer:()=>B,destroy:z1};return Pt};function ca(t,e,i,o){var b;let n=["interactiveTimeIndicator"],a=(b=e[i])==null?void 0:b.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:u,right:f}=rs(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var nl=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ca(t,i,n,o))};var Jc=(t,e,i)=>xt(void 0,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var K2=we('<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 Ef(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=K2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),y(t,o)}function Pf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,b=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=J(void 0);Fe(()=>{r($)&&wt(()=>{p.set(r($))})});let x=k=>{let P=xs(k),A=Nh(r($));b.set(A),u.set(P),l.set(!n())},_=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Rt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:x,focus:_,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(k){D($,me(k))},children:(k,P)=>{Ef(k,{})},$$slots:{default:!0}}),z(),o()}var Q2=t=>{t.stopPropagation()},G2=L("<div><!> <div></div> <div></div></div>"),j2={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;}
|
|
224
|
+
}`};function wf(t,e){O(e,!0),q(t,r2);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===jh.CONNECTED),n=v(()=>e.iconState===jh.CONNECTING);var a=Fe(),r=ge(a);{var d=u=>{var f=o2(),$=h(f),p=h($),_=h(p);Ce(),g(p);var w=A(p);Ce(),g($);var b=A($),C=h(b),T=h(C);g(C),Ce(),g(b),g(f),k(()=>{Oe(_,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),y(u,f)},l=u=>{var f=n2();let $;var p=h(f),_=A(h(p),5);let w;g(p),g(f),k((b,C)=>{$=te(f,0,"svelte-8z1bf5",null,$,b),w=te(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),y(u,f)};R(r,u=>{i()?u(d):u(l,!1)})}y(t,a),H()}import{noop as a2}from"@vkontakte/videoplayer-shared/es2015";function pd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,a2),r=Ee().ui.t,d=v(()=>e.state===s2.CONNECTED?r("tooltip_chromecast_on"):r("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{wf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var l2=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),d2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2: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-5ygsa2 {opacity:1;visibility:visible;}'};function Sf(t,e){q(t,d2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),r=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),l=J(void 0),u=J(void 0);function f(C){if(!s(u))return 0;let{width:T}=s(u).getBoundingClientRect(),I=T/2;return C<I?I+r():C>e.containerWidth-I?e.containerWidth-I-d():C}let $=v(()=>f(n()));var p=l2(),_=h(p);let w;var b=h(_);be(b,()=>{var C;return(C=e.children)!=null?C:oe}),g(_),it(_,C=>D(u,C),()=>s(u)),g(p),it(p,C=>D(l,C),()=>s(l)),k(C=>{st(p,`transform: translate(${s($)}px, ${a()}px);`),w=te(_,1,"tooltip svelte-5ygsa2",null,w,C),st(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),y(t,p)}var Qc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Zh=t=>!!(Math.round(Math.abs(t)/90)%2),Xh=t=>Math.abs(t)/90%4===1;var c2=L('<div class="preview svelte-1wqg760"></div>'),u2=L('<div class="time svelte-1wqg760"> </div>'),p2=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),f2={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 Cf(t,e){O(e,!0),q(t,f2);let[i,o]=He(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),r={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),$=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),_=Ee(),w=_.ui.rotateAlpha,b=_.ui.playerSize,C=J(0),T=J(0),I=J(""),M=J(0),P=J(0),E=J(0),V=J(0),W=v(()=>Qc(f(),$(),u())),K=v(()=>Zh(n())),U=v(()=>Xh(n())),j=v(de),ae=v(()=>(s(U)?1:-1)*(s(C)/2-s(T)/2)),Y=v(()=>s(ae)*-1);We(()=>{(pe=>(D(C,ve(pe.width)),D(T,ve(pe.height))))(Me())}),We(()=>{(pe=>(D(I,ve(pe.imgSrc)),D(M,ve(pe.imgWidth)),D(P,ve(pe.imgHeight)),D(E,ve(pe.imgOffsetX)),D(V,ve(pe.imgOffsetY))))(Ne(f()))});function de(){var qe;let pe=l()?r.MOBILE:r.DESKTOP,{isVertical:ye}=le(),Z=30;return(qe=s(W))!=null&&qe.text&&(Z+=16),(ye||s(K))&&(Z+=18,Z+=50),Math.min(Math.max(a().height-Z,0),pe)}function le(){let pe=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,Z=ye>pe;return{width:pe,height:ye,isHorizontal:!Z,isVertical:Z}}function Me(){let{height:pe,isHorizontal:ye,isVertical:Z,width:qe}=le();return ye&&(pe=pe/qe*s(j),qe=s(j)),Z&&(qe=qe/pe*s(j),pe=s(j)),{width:qe,height:pe}}function Ne(pe){let ye;e.previewThumbsData.isUV?ye=Math.floor($()*pe/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*pe)));let Z=Math.floor(ye/e.previewThumbsData.countPerImage),qe=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=ye%e.previewThumbsData.countPerRow,Ie=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ie=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ie++);let ie=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ie=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ve=s(C)*ie,Qe=s(T)*Ie,at=-et*s(C),lt=-qe*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Ve,imgHeight:Qe,imgOffsetX:at,imgOffsetY:lt}}var _e=p2();let ce;var Le=h(_e);{var se=pe=>{var ye=c2();k(()=>st(ye,`width: ${s(C)}px; height: ${s(T)}px; background-image: url(${s(I)}); background-size: ${s(M)}px ${s(P)}px; background-position: ${s(E)}px ${s(V)}px;
|
|
225
|
+
transform: rotate(${n()}deg) ${s(K)?`translate(${s(ae)}px, ${s(Y)}px)`:""};
|
|
226
|
+
`)),y(pe,ye)};R(Le,pe=>{s(I)&&pe(se)})}var N=A(Le,2),Se=h(N);{var $e=pe=>{var ye=Fe(),Z=ge(ye);{var qe=Ie=>{var ie=jr();k(Ve=>he(ie,Ve),[()=>F("tooltip_episode_unfinished")]),y(Ie,ie)},et=Ie=>{var ie=jr();k(()=>he(ie,s(W).text||"")),y(Ie,ie)};R(Z,Ie=>{p()&&s(W).completed===!1?Ie(qe):Ie(et,!1)})}y(pe,ye)};R(Se,pe=>{s(W)&&pe($e)})}g(N);var Ke=A(N,2);{var ne=pe=>{var ye=u2(),Z=h(ye,!0);g(ye),k(()=>he(Z,d())),y(pe,ye)};R(Ke,pe=>{p()||pe(ne)})}g(_e),k(pe=>{ce=te(_e,1,"timeline-preview svelte-1wqg760",null,ce,pe),st(_e,`width: ${s(K)?s(T):s(C)}px;`)},[()=>({mobile:l()})]),y(t,_e),H(),o()}var m2=L('<span class="time svelte-1jr6obn"> </span>'),v2=L("<!> <!>",1),g2={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 Tf(t,e){var Ae,De,fe,Ye,Je;O(e,!0),q(t,g2);let[i,o]=He(),n=()=>S(ae,"$interactiveEpisodes$",i),a=()=>S(E,"$duration$",i),r=()=>S(P,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(de,"$isInteractiveTime$",i),u=()=>S(V,"$isLive$",i),f=()=>S(K,"$isMobile",i),$=()=>S(W,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),_=()=>S(_e,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),b=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ee(),I=Wt(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,V=T.state.isLive$,W=T.state.isActiveLive$,K=T.ui.isMobile,U=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,j=T.actions.internal.getPreviewThumbsData(),ae=T.state.interactiveEpisodes$,Y=T.state.isInteractive,de=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Ne=(Ae=T.callbacks)==null?void 0:Ae.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,ce=(fe=(De=T.callbacks)==null?void 0:De.uiInfo)==null?void 0:fe.onTimelineMouseEnter,Le=(Je=(Ye=T.callbacks)==null?void 0:Ye.uiInfo)==null?void 0:Je.onTimelineMouseLeave,se=T.ui.t,N=I.features.interactiveResponsiveUi,Se=v(()=>Y?n():U),$e=v(()=>gn(a())),Ke=v(()=>gn(r())),ne=v(()=>r()/a()),pe=v(()=>d()||l()),ye=J(!1),Z=J(""),qe=J(0),et=J(0),Ie=J(0),ie=v(()=>({containerWidth:s(et),translateXPx:s(qe),translateYPx:Y&&j?-36:-16,active:s(ye)&&w()&&!s(pe)&&!N,pointer:!I.features.timelinePreview||!j||u()})),Ve=se("aria_timeline"),Qe=v(()=>se("aria_timeline_value",{position:s(Ke),duration:s($e)}));function at(je){return!Me||!Y?je:Me(je*a())/a()}function lt(je){T.actions.internal.startScrubbing(at(je))}function nt(je){l()||T.actions.internal.progressScrubbing(at(je))}function Tt(je){T.actions.internal.completeScrubbing(at(je)),D(ye,!1)}function pt(je,Nt,ut){At(je,Nt,ut),D(ye,!0)}function Qt(je,Nt,ut){At(je,Nt,ut),D(ye,!0)}function ni(){D(ye,!1)}function At(je,Nt,ut){D(Ie,ve(at(je))),D(qe,ve(Nt)),ut&&D(et,ve(ut)),D(Z,ve(Mt(je)))}function Mt(je){let Nt=gn((u()?1-je:je)*a());return u()?`-${Nt}`:Nt}var ee=v2(),It=ge(ee);Sf(It,fs(()=>s(ie),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(je,Nt)=>{var ut=Fe(),ri=ge(ut);{var ot=di=>{Cf(di,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Se)},previewThumbsData:j,get progress(){return s(Ie)},get duration(){return a()},isInteractive:Y})},oi=di=>{var rt=m2(),ei=h(rt,!0);g(rt),k(()=>he(ei,s(Z))),y(di,rt)};R(ri,di=>{I.features.timelinePreview&&j&&!u()?di(ot):di(oi,!1)})}y(je,ut)},$$slots:{default:!0}}));var X=A(It,2);let ue=v(()=>_().has("TIMELINE"));ha(X,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return f()},ariaLabel:Ve,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r()},get ariaValueText(){return s(Qe)},get loadedProgress(){return p()},get filledProgress(){return s(ne)},get handleProgress(){return s(ne)},get videoEpisodes(){return s(Se)},onPointerDown:lt,onHandleMove:nt,onPointerMove:Qt,onPointerUp:Tt,onPointerEnter:pt,onPointerLeave:ni,onMouseEnter:ce,onMouseLeave:Le,onDisabledClick:Ne,isInteractive:Y,get disabled(){return s(ue)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(je){C(je)}}),y(t,ee),H(),o()}var h2={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 fd(t,e){O(e,!0),q(t,h2);let[i,o]=He(),n=()=>S(l,"$isMobile",i),a=m(e,"position",3,0),r=m(e,"duration",3,0),d=Ee(),l=d.ui.isMobile,u=d.ui.t,f=v(()=>gn(r())),$=v(()=>gn(a())),p=v(()=>a()/r()),_=v(()=>u("aria_timeline_value",{position:s($),duration:s(f)})),w=v(()=>Math.round(s(p)*100));ha(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return s(w)},get ariaValueText(){return s(_)},get filledProgress(){return s(p)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var _2=L("<div><!></div>"),b2=L("<div></div>"),$2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function _a(t,e){O(e,!0),q(t,$2);let[i,o]=He(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),r=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=m(e,"isAds",3,!1),u=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),$=m(e,"ref",15,void 0),p=Ee(),_=p.state.isLive$,w=p.ads.duration,b=p.ads.position,C=p.ui.isMobile,T=v(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Fe(),M=ge(I);{var P=V=>{var W=_2();let K;var U=h(W);{var j=Y=>{fd(Y,{get position(){return r()},get duration(){return d()}})},ae=Y=>{Tf(Y,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(de){$(de)}})};R(U,Y=>{l()?Y(j):Y(ae,!1)})}g(W),k(Y=>K=te(W,1,"timeline svelte-41cp6d",null,K,Y),[()=>({withoutPadding:!f(),mobile:a()})]),y(V,W)},E=V=>{var W=b2();let K;k(U=>K=te(W,1,"timeline-stub svelte-41cp6d",null,K,U),[()=>({mobile:a()})]),y(V,W)};R(M,V=>{s(T)?V(P):V(E,!1)})}y(t,I),H(),o()}import{noop as w2}from"@vkontakte/videoplayer-shared/es2015";var y2=Te('<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 If(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=y2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var x2=Te('<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 Ef(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=x2();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i))),y(t,o)}var S2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),C2=L('<span class="text svelte-1yhs2ga"> </span>'),T2=L('<span class="text count svelte-1yhs2ga"> </span>'),I2=L("<!> <!>",1),E2={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 md(t,e){var le,Me,Ne;O(e,!0),q(t,E2);let[i,o]=He(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),r=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),$=Ee(),p=(Me=(le=$.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:w2,_=!!((Ne=$.callbacks)!=null&&Ne.onEpisodeClicked),w=$.ui.currentGridType$,b=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,I=$.ui.t,M=J(void 0),P=_e=>{var Le,se,N;if(!!((Le=$.callbacks)!=null&&Le.onEpisodeClicked)){let Se=Vs(_e);b.set(Se),C.set(!0),(N=(se=$.callbacks)==null?void 0:se.onEpisodeClicked)==null||N.call(se,Se)}},E=J(null),V=v(()=>l()/u());We(()=>{var ce;let _e=Qc(s(V),u(),f());_e?((ce=s(E))==null?void 0:ce.time)!==_e.time&&(p(_e),D(E,ve(_e))):D(E,null)});let W=v(()=>{var _e;return((_e=s(E))==null?void 0:_e.text)||""}),K=v(()=>qi(n(),"xl")?"FULL":qi(n(),"m")&&Gh(n(),"xl")?"COUNT":"SHORT"),U=v(()=>`${I("tooltip_episodes")}: ${s(W)}`),j=(_e,ce,Le)=>xt(this,null,function*(){yield yo(),(_e==null?void 0:_e.getAttribute("aria-expanded"))==="false"&&ce&&!Le&&wt(()=>{b.set(!1),_e.focus()})});We(()=>{j(s(M),a(),r())});var ae=Fe(),Y=ge(ae);{var de=_e=>{let ce=v(()=>d()?"px-0":"");Bt(_e,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=s(ce))!=null?Le:""}`},testId:"btn-episodes",click:P,disabled:!_,get ariaExpanded(){return r()},get ariaLabel(){return s(U)},get ref(){return s(M)},set ref(Le){D(M,ve(Le))},children:(Le,se)=>{var N=Fe(),Se=ge(N);{var $e=ne=>{var pe=S2(),ye=ge(pe),Z=h(ye,!0);g(ye);var qe=A(ye,2),et=h(qe);Ef(et,{}),g(qe),k(()=>he(Z,s(W))),y(ne,pe)},Ke=ne=>{var pe=I2(),ye=ge(pe);If(ye,{});var Z=A(ye,2);{var qe=Ie=>{var ie=C2(),Ve=h(ie,!0);g(ie),k(()=>he(Ve,s(W))),y(Ie,ie)},et=(Ie,ie)=>{{var Ve=Qe=>{var at=T2(),lt=h(at,!0);g(at),k(()=>he(lt,f().length)),y(Qe,at)};R(Ie,Qe=>{s(K)==="COUNT"&&Qe(Ve)},ie)}};R(Z,Ie=>{s(K)==="FULL"?Ie(qe):Ie(et,!1)})}y(ne,pe)};R(Se,ne=>{d()?ne($e):ne(Ke,!1)})}y(Le,N)},$$slots:{default:!0}})};R(Y,_e=>{s(E)&&_e(de)})}y(t,ae),H(),o()}import{debounceFn as u1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as B2,PlaybackState as vd,Player as N2,PredefinedQualityLimits as ts,VideoFormat as gd,clientChecker as D2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as Zn,getHighestQuality as O2,InterfaceLanguage as H2,isInvariantQuality as F2,isNonNullable as U2,loadVKLangPack as z2,Logger as W2,map as r1,merge as q2,Observable as K2,Subject as iu,Subscription as Vf,TracerFactory as Q2,ValueSubject as G2,VideoQuality as Y2,devNull as j2,now as Z2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as hs}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as k2,devNull as Yt,now as jt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as P2,Subject as jo,clearVideoElement as A2}from"@vkontakte/videoplayer-shared/es2015";var Jh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var M2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Gc=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 jo,loadStarted$:new jo,loadEnded$:new jo,loadError$:new jo,ready$:new jo,slotRequested$:new jo,started$:new jo,timeRemained$:new jo,paused$:new jo,resumed$:new jo,ended$:new jo,empty$:new jo,skipped$:new jo,clicked$:new jo,closed$:new jo,error$:new jo};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[jt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[jt()]}),o())};P2(M2,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[jt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(r=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(r)],numbers:[jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[jt()]}),o())},r=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),r()},this.loadTimeout);e.addEventListener("abort",r),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[jt()]}),r()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[jt()]}),!d&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},r).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",r)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[jt(),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"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),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.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),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(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[jt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[jt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:r,adsVideoElement:d,slotId:l,params:u={},duration:f,previewParam:$}=e,p,_=this.playerState&&we(this.playerState.vsid);_&&(this.isVsidOriginal?p=_:p=parseInt(_,36));let{isEmbed:w,immediateOrigin:b}=k2(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T=Ot(z(Ot(z({},u),{dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$}),p?{request_id:p}:{}),{duration:f,puid10:Jh(i,o),puid11:n?0:1});$||delete T.preview;let I={slot:l,wrapper:r,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[jt()]}),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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let r="Switch to video: Adman state was not updated correctly";this.log({message:r}),this.events.error$.next(r)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[jt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,r,d,l,u,f,$,p;Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[jt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(r=this.adman)==null||r.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&A2(this.videoElement),this.isDestroyed=!0}};var e1=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 kf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let r={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!r.startTime&&!r.endTime){let u=new Yc,{startTime:f,endTime:$}=u.parse(l);r.startTime=f,r.endTime=$}else if(l.trim()!==""){let u=new Pf,{texts:f}=u.parse(l);r.texts=[...r.texts,...f]}(r.startTime||r.endTime)&&r.texts.length>0&&o.push(r)}return o}},Yc=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",n="0"){let a=Number(e)*60*60,r=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+r+d+l}},Pf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let d=0,l=[];for(;d<r.length;){let u=["<",">"].reduce((f,$)=>{let p=r.indexOf($,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(r.substring(d));break}l.push(r.substring(d,u)),d=u+1}return l}}),a=new Yc;for(let r of n)a.isTime(r)?i.texts.push({type:"timestamp",value:a.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},t1=kf;import{isNonNullable as Af}from"@vkontakte/videoplayer-shared/es2015";var ba,Ti,Mf=0,Lf=!1,i1="",o1=(t,e=0,i=0)=>t<e&&t<i,jc=(t,e=0,i=0)=>t>=e&&t<=i,L2=(t,e=0,i=0)=>t>e&&t>i,n1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>jc(t,u,f));let a=t>=Mf,r=t<Mf;if(Mf=t,r&&(Lf=!1),Af(ba)&&jc(t,ba.startTime,ba.endTime)&&i1===e.value)return ba;if(!Af(Ti)&&(n!=null&&n.length)&&!Lf){Ti=n.find(({startTime:u,endTime:f})=>jc(t,u,f)||a&&o1(t,u,f)),ba=void 0,!Af(Ti)&&n[n.length-1].endTime<t&&(Lf=!0);return}else{if(jc(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return ba=Ti,Ti=void 0,i1=e.value,ba;(a&&L2(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||r&&o1(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var Zc={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"},V2={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"},Xc=t=>{var e,i;return(i=(e=Zc[t])!=null?e:Zc[V2[t]])!=null?i:void 0};import{Subscription as R2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var Jc=class{constructor(e,i=new R2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var eu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(eu||{});var es=t=>t!=null?t:0,gs=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(es(i==null?void 0:i.top)-es(o==null?void 0:o.top)),left:Math.round(es(i==null?void 0:i.left)-es(o==null?void 0:o.left)),bottom:Math.round(es(i==null?void 0:i.bottom)-es(o==null?void 0:o.top)),right:Math.round(es(i==null?void 0:i.right)-es(o==null?void 0:o.left))}},ll=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:es(e==null?void 0:e.width),height:es(e==null?void 0:e.height)}};var tu="off";var s1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:r,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:$,uiConfig:p,coreConfig:_,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:W,additionalSettingsMenuItems:K,additionalContextMenuItems:U,playPrevVideo:j,playNextVideo:ae,looped:Y=!1,statistics:de,saveRate:le,internalsExposure:Me,playerView:Ne})=>{var Xm,Jm,ev;let _e=Ot(z({},_),{configName:[...(Xm=_.configName)!=null?Xm:[],"ui"],isAudioDisabled:r,live:Ot(z({},(Jm=_.live)!=null?Jm:{}),{isLiveCatchUpMode:!!n})}),ce=p,Le=Q2.createRootTracer(ce.features.tracer),se=Le.createComponentTracer("Store"),N=w||new N2(_e,Le);Me==null||Me.expose({corePlayer:N});let Se=new W2,$e=new Gc(Se,{loadTimeout:ce.ads.loadTimeout,initTimeout:ce.ads.initTimeout,runtimeTimeout:ce.ads.runtimeTimeout,useAdmanFromNPM:ce.ads.useAdmanFromNPM,volumeMultiplier:ce.ads.volumeMultiplier,isVsidOriginal:ce.ads.isVsidOriginal}),Ke=la.getInstance(),ne=u==null?void 0:u.pictureInPictureApi,pe=u==null?void 0:u.annotationsApi,ye=u==null?void 0:u.slotsApi,Z=Se.createComponentLog("Store"),qe,et,Ie={},ie=new Cc,Ve=de?Jt(de.oneStat.vsid$):pr(void 0),Qe=re(As()),at=re(!1),lt=(ev=ne==null?void 0:ne.info.isActive$)!=null?ev:new G2(!1),nt=re(0),Tt=re([]),pt=q2(N.events.fatalError$,N.events.managedError$).subscribe(c=>Tt.update(x=>[...x,c])),Qt=pr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ni=c=>xt(void 0,null,function*(){var me;let x=Object.values(H2).includes(c);if(ce.downloadVKLanguages&&(x&&ce.updateBuiltinLanguages||!Op(c))){let Ge;try{Ge=yield z2(c,Wg,qg)}catch(St){(me=de==null?void 0:de.oneStat)==null||me.logError({errorType:"VKLangPack",fatal:!1}),Ke==null||Ke.report(St,{errorType:"VKLangPack",fatal:!1})}Ge&&(Dp({language:c,pack:Ge,fallback:ce.defaultLanguage}),At.set(c))}Op(c)&&At.set(c)}),At=re(t),Mt=re(e);ni(t);let ee=(c,x)=>{let B=we(At);return Hp(B,c,x,ce.defaultLanguage)},It=re("thumb"),X=(()=>{let c=_i([Qt,It],([x,B])=>x?"crashed":B);return Ot(z({},c),{is:x=>we(c)===x})})(),ue=(()=>{let c=re(new Set(b));return Ot(z({},c),{add:x=>{c.update(B=>new Set([...B].concat(x)))},remove:x=>{c.update(B=>{let me=[...B];return new Set(Array.isArray(x)?me.filter(Ge=>!x.includes(Ge)):me.filter(Ge=>Ge!==x))})},includes:x=>{let B=we(c);return Array.isArray(x)?x.every(me=>B.has(me)):B.has(x)}})})();se.log("create store"),Z({message:"create store"});let Ae=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),ut=new MutationObserver(B=>{let{removedNodes:me}=B[0];me.length&&x.append(N.experimental.element$.getValue())}),ut.observe(x,{childList:!0})},De=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),C?Ae(c):(j2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Z2()]}),N.initVideo(c)),se.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},fe=new iu,Ye=c=>fe.next(c),Je=new iu,je=new iu,Nt=new iu,ut=null,ri={actionRewind$:Je,actionSeek$:je,inPiP$:lt,inFullscreen$:new K2(c=>Qe.subscribe(x=>c.next(x))),actionSetSubtitle$:Nt,nextMovie$:fe};if(de){let{oneStat:c,statSubscription:x}=de;C||x.add(c.attachTo(N)),x.add(c.attachToUi(ri)),x.add(c.attachToAds($e.events)),c.authorize(a).catch(B=>{Z({message:`onestat auth error ${String(B)}`})})}if(Ke){let c=new Vf,x=(B,me)=>c.add(B.subscribe(me));if(x(N.events.managedError$,B=>{Ke.logIError(B)}),x(N.events.fatalError$,B=>{Ke.logIError(B,!0)}),de){let{oneStat:B}=de;x(B.experimental.error$,me=>{Ke.logIError(me)})}Ke.sentrySubscription.add(c)}let ot=()=>{D2.device.isIOS&&et&&Eh(et).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})},oi=new Vf().add(N.experimental.element$.subscribe(c=>{c&&(et=c,c.classList.add("player-media"),ca(ne)&&(ne.updateVideoElement(),ne.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;ot(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(()=>xt(void 0,null,function*(){var x,B;ca(ne)&&(yield ne==null?void 0:ne.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(B=Ie.onStarted)==null||B.call(Ie,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var B;(B=l==null?void 0:l.onSeek)==null||B.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var B;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((B=l==null?void 0:l.onTimeupdate)==null||B.call(l,x,c),$e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&ue.add(zl),ue.add("PLAY_BUTTON")):ue.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add($e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add($e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add($e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add($e.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add($e.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add($e.events.started$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:B.call(x,c)})).add($e.events.timeRemained$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:B.call(x,c)})).add($e.events.ended$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:B.call(x,c)})).add($e.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add($e.events.clicked$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:B.call(x,c)})).add($e.events.closed$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:B.call(x,c)})).add($e.events.error$.subscribe(c=>{var x,B;return(B=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:B.call(x,c)})).add($e.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add($e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),di=new Vf,rt=()=>{var St,Ft,Kt;let{debugLog:c}=ce,x,B="#9df7b7",me="#efd169";if(c&&c!==!0){let{colors:Ut}=c;x=c.tag,B=(St=Ut==null?void 0:Ut[0])!=null?St:B,me=(Kt=(Ft=Ut==null?void 0:Ut[1])!=null?Ft:Ut==null?void 0:Ut[0])!=null?Kt:me}let Ge=x?`: ${x}`:"";di.add(N.events.log$.subscribe(Ut=>{console.debug(`%c sdk${Ge} `,`background:${B};`,`sdk component: ${Ut.component}`,Ut.message)})).add(Se.log$.subscribe(Ut=>{console.debug(`%c ui${Ge} `,`background:${me};`,`ui component: ${Ut.component}.`,Ut.message)}))},ei=()=>{di.unsubscribe()},Ki=(c,x)=>{se.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Qi=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Lt=(c,x,B)=>{se.log("move camera focus px",{xpx:c,ypx:x,dt:B}),N.moveCameraFocusPX(c,x,B)},gt=()=>{N.holdCamera()},Dt=()=>{N.releaseCamera()},fo=pr(N.info.position$.getValue(),c=>{let x,B,me=()=>{let Ge=N.info.playbackState$.getValue(),St=N.info.isLive$.getValue(),Ft=N.info.duration$.getValue(),Kt=N.info.position$.getValue();if(Ge&&[vd.PLAYING,vd.PAUSED].includes(Ge)){let Ut=St?Kt-Ft:N.getExactTime();Ut!==B&&c(Ut),B=Ut}x=requestAnimationFrame(me)};return me(),()=>cancelAnimationFrame(x)}),Co=Jt(N.info.playbackState$),Vi=Jt(N.info.currentBuffer$),To=Jt(N.info.isEnded$),G=Jt(N.info.isLive$),Zt=ce.features.playbackRate?Jt(N.info.canChangePlaybackSpeed$):pr(!1),fi=Jt(N.info.liveBufferTime$),Ri=Jt(N.info.volume$),ci=Jt(N.info.muted$),ui=Tc(N.info.predefinedQualityLimitType$.pipe(r1(c=>c===ts.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ts.TRAFFIC_SAVING),ft=Tc(N.info.predefinedQualityLimitType$.pipe(r1(c=>c===ts.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ts.HIGH_QUALITY),tt=Jt(N.info.autoQualityLimitingAvailable$),Vt=Jt(N.info.availableQualities$),mo=Jt(N.info.availableQualitiesFps$),Xt=Jt(N.info.chromecastState$),mr=Jt(N.info.chromecastDeviceName$),Ii=Jt(N.info.currentFormat$),Xo=Jt(N.info.throughputEstimation$),$i=Jt(N.info.videoBitrate$),ht=Jt(N.info.intrinsicVideoSize$),Ei=Jt(N.info.duration$),Jo=Jt(N.info.isAudioAvailable$),Gi=null,yi=N.info.isBuffering$,Oi=pr(yi.getValue(),c=>{let x=yi.subscribe(B=>{B&&Gi===null?Gi=window.setTimeout(()=>{c(yi.getValue()),Gi=null},ce.loaderDelay):c(B)});return()=>{x.unsubscribe(),Gi&&clearTimeout(Gi)}}),Do=()=>{Gi&&clearTimeout(Gi),Gi=null},Io=_i([Ei,G],([c,x])=>x?-c:c),An=_i([Co],([c])=>c===vd.PLAYING),Eo=Jt(N.info.atLiveEdge$),hn=Jt(N.info.atLiveDurationEdge$),Oo=Jt(N.info.position$),Ho=_i([Oo,Ei],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),ko=_i([Xt],([c])=>c===B2.CONNECTED),Nr=Jt(N.info.availableVideoStreams$),vr=ce.features.audioLanguages?Jt(N.info.availableAudioStreams$):pr([]),Xn=Jt(N.info.currentVideoStream$),Jn=Jt(N.info.currentAudioStream$),er=c=>{c.language&&Np(c.language),N.setVideoStream(c)},Mn=c=>{c.language&&Np(c.language),N.setAudioStream(c)},Dr=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(me=>"isDefault"in me&&me.isDefault)),x)return x;let B=mh();return B&&(x=c.find(({language:me})=>B===me)),x!=null||(x=c.at(0)),x},Ln=!1;oi.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Ln&&c.length){let x=Dr(c);x&&(N.setAudioStream(x),Ln=!0)}}));let Bi=!1;oi.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Bi&&c.length){let x=Dr(c);x&&(N.setVideoStream(x),Bi=!0)}}));let en=re(void 0),_n=Jt(N.info.isAutoQualityEnabled$,c=>c&&en.set(void 0)),Vn=Jt(N.info.currentQuality$,()=>en.set(void 0)),bn=_i([en,Vn],([c,x])=>c!=null?c:x),Rn=_i(Ii,c=>c!==gd.MPEG),tn=_i([Vt,mo,_n,bn,Rn],([c,x,B,me,Ge])=>{let St=[];Ge&&St.push({value:"auto",displayValue:ee("auto_quality_option"),selected:B});let Ft=c.filter(Kt=>!F2(Kt));for(let Kt of Ft){let Ut=x[Kt];St.push({value:Kt,displayValue:`${Kt}${Ut?e1(Ut):""}`,selected:B?!1:Kt===me})}return St}),tr=Jt(N.info.currentPlaybackRate$),Bn=_i([tr,Eo,hn],([c,x,B])=>{let me=B||C?1:ce.controls.playbackRateMin,Ge=x?1:ce.controls.playbackRateMax,St=ce.controls.playbackRateStep,Ft=[];for(let Kt=me;Kt<=Ge;Kt+=St)Ft.push({value:Kt,displayValue:Kt===1?ee("playback_rate_1"):ee("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Ft}),eo={displayValue:ee("subtitles_off"),value:tu},Yi=re(z({},eo)),gr=ce.features.subtitles?Jt(N.info.availableTextTracks$):pr([]),ct=rh(),ti=_i([gr,Yi],([c,x],B)=>{var St;let me=[],Ge=c.find(({id:Ft})=>Ft===x.value);if(Ge!=null&&Ge.url){let[,Ft]=(St=ct.find(Ge.url))!=null?St:[];if(Ft){B(Ft);return}ie.download(Ge.url).then(Kt=>{if(!Kt||ie.isDestroyed())return;let Ut=new t1,xs=Ge.language;if(xs){let Y1=!!Ge.isAuto,j1=Ut.parse(Kt,xs);me.push({lang:xs,subtitles:j1,isAuto:Y1,id:Ge.id})}ct.add(Ge.url,me),we(Yi).value===x.value&&B(me)}).catch(Kt=>{var Ut;(Ut=de==null?void 0:de.oneStat)==null||Ut.logError({errorType:"Subtitles download",fatal:!1}),Ke==null||Ke.report(Kt,{errorType:"Subtitles download",fatal:!1})})}B(me)}),hr=_i([tr,An,Yi],([c,x,B],me)=>{let Ft;if(N.info.isLive$.getValue()&&x&&B.value!==eo.value){let Ut=()=>{let xs=1e3/(3*c);Ft=setTimeout(Ut,xs),me(Date.now())};return Ut(),()=>clearTimeout(Ft)}}),$n=_i([gr,Yi],([c,x])=>{if(!c.length)return[];let B=[];for(let{language:me,isAuto:Ge,id:St}of c){let Ft=me&&Xc(me);me&&Ft&&B.push({displayValue:Ge?ee("subtitles_auto",{language:Ft}):Ft,value:St,selected:(x==null?void 0:x.value)===St,isAuto:Ge})}return B.length?(B.unshift(Ot(z({},eo),{selected:(x==null?void 0:x.value)===eo.value})),B):[]}),Po={available:[],prev:[]},vo=()=>{var x,B;let c=N.experimental.getCurrentTime$.getValue();return(B=(x=c==null?void 0:c())!=null?x:et==null?void 0:et.currentTime)!=null?B:0},Nn=_i([fo,Yi,ti,hr],([c,x,B,me])=>{var St;let Ge=N.info.isLive$.getValue();if(Ge&&Po.prev!==B){let Ft=B.find(({id:Ut})=>Ut===x.value),Kt=Po.prev.find(({id:Ut})=>Ut===x.value);if(Ft){let Ut=Ot(z({},Ft),{subtitles:[...(St=Kt==null?void 0:Kt.subtitles)!=null?St:[],...Ft.subtitles]});Po.available=[Ut],Po.prev=B}}if(x&&x.value!==eo.value){let Ft=Ge?vo():c,Kt=Ge?Po.available:B;return n1(Ft,x,Kt,Ge)}}),Ao=_i([Nn],([c])=>c!=null&&c.texts?c.texts:[]);oi.add(Yi.subscribe(c=>{var x,B;if(c.value===eo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let me=Object.entries(Zc).find(([Ge,St])=>St===c.displayValue);(B=l==null?void 0:l.onSubtitleOn)==null||B.call(l,me?me[0]:"")}}));let Dn=re(!0),Mo=_i([Vi,Io,Oo,fi],([c,x,B,me])=>{var Kt;let Ge=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!me)return Ge/x;let Ft=-B+me-x;return(Ge-Ft)/x}),yn=Jt(N.info.availableSources$),ir=_i([yn],([c])=>Object.keys((c==null?void 0:c[gd.MPEG])||{}).length>0),or=()=>{var B,me,Ge;let c=Object.keys(((me=(B=N.info.availableSources$)==null?void 0:B.getValue())==null?void 0:me[gd.MPEG])||{}),x=O2(c)||Y2.Q_144P;return(Ge=qe.sources[gd.MPEG])==null?void 0:Ge[x]},_r=()=>{var x;let c=or();if(c)se.log("download video",{url:c}),ih(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let B="There is no URL for download video";se.log("download video",{message:B}),Z({message:B})}},nr=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Gt(Lo()):go(!c)},Fo=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!we(kt.ui.settingsSubMenu.visible$)){let x=we(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let me=ll(x),Ge={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:me,position:Ge,name:"settings"})}}se.log("close settings menu")},Or=(c,x=()=>Promise.resolve())=>xt(void 0,null,function*(){var Ge;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),yield x();let B=we(kt.ui.settingsMenu.ref$),me=Us();if((Ge=l==null?void 0:l.uiInfo)!=null&&Ge.onSettingsMenu&&B&&me){let Ft=ll(B),Kt=gs(B,me);l.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Kt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),rr=(c,x=!1)=>{var St;kt.ui.settingsSubMenu.visible$.set(!1);let B=we(kt.ui.settingsMenu.ref$),me=Us(),Ge=we(kt.ui.settingsMenu.visible$);if((St=l==null?void 0:l.uiInfo)!=null&&St.onSettingsMenu&&B&&me)if(Ge&&!x){let Kt=ll(B),Ut=gs(B,me);l.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Ut,name:"settings"})}else{let Kt=ll(c),Ut={top:0,left:0,bottom:0,right:0},xs=we(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Ut,name:xs})}se.log("close settings sub menu")},br=(c,x)=>{var me;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let B=Us();if((me=l==null?void 0:l.uiInfo)!=null&&me.onSettingsMenu&&x&&B){let St=ll(x),Ft=gs(x,B);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:St,position:Ft})}se.log("open settings sub menu",{name:c})},Lo=()=>{var x;let c=Math.max(ce.volumeMinRestore,(x=Ic())!=null?x:0);return c===0?ce.volumeDefault:c},Gt=c=>{let x=c===0?Lo():c,B=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let me=!r||X.is("ads");B&&c>0&&me&&(B=!1,Rp(!1)),N.setVolume(c,B),$e.setVolume(c),Pp(x)},go=c=>{let x=N.info.volume$.getValue();if(Z({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c,X.is("ads")),$e.setVolume(c?0:x),Rp(c),!c&&x===0){let B=Lo();N.setVolume(B),Pp(B),$e.setVolume(B)}},Uo=re(!1),sr=c=>{var x,B;se.log("set looped",{isLooped:c}),Uo.set(c),N.setLooped(c),(B=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||B.call(x,c)};sr(Y);let Hr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ki=(c,x=!1)=>{var B;Z({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),hh(c),x&&((B=l==null?void 0:l.onSetAutoplayNextEnabled)==null||B.call(l,c))},is=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Fr=(c=!0)=>{var me;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(me=l==null?void 0:l.onPrevVideoClick)==null?void 0:me.call(l)}catch(Ge){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&_t("prev")||j()},$r=(c=!0)=>{var me;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(me=l==null?void 0:l.onNextVideoClick)==null?void 0:me.call(l)}catch(Ge){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&_t("next")||ae()},_t=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:B,playbackStatusShow:me}}=ce;return B&&me&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},si=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},zo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Wo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Hi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},On=()=>{N.prepare()},on=()=>{Zn(kt);let c=we(kt.ui.controls.disabledControls$),x=we(kt.playerPhase),B={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){B.action="play",se.log("toggle adman play",B),$e.togglePlay();return}let me=()=>{var St;Z({message:"toggle play, call player.play"}),B.action="play",N.play(),(St=l==null?void 0:l.onPlay)==null||St.call(l)},Ge=()=>{var St;Z({message:"toggle play, call player.pause"}),B.action="pause",N.pause(),(St=l==null?void 0:l.onPause)==null||St.call(l)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Je.next(),je.next(hs.REWIND),C){M==null||M();return}N.seekTime(0),me()}else N.info.playbackState$.getValue()!==vd.PLAYING?me():Ge();se.log("toggle play",B)},Hn=(c,{changeReason:x="default",appliesTo:B="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ce.features.qualityDetailsSubMenuEnabled?(Ec({type:"exact_quality",quality:c,videoId:i},B),ql(),N.setPredefinedQualityLimits(ts.UNKNOWN)):Ap(i,c),en.set(c),N.setQuality(c)):ce.features.qualityDetailsSubMenuEnabled?x==="default"&&(Rt("auto_quality",B),we(ui)&&Fi(!1),we(ft)&&nn(!1)):ql()},Fi=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let B=c?ts.TRAFFIC_SAVING:ts.UNKNOWN;ce.features.qualityDetailsSubMenuEnabled?(Ze(B,x),Wl(!1)):(N.setPredefinedQualityLimits(B),Wl(c))},nn=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Ze(c?ts.HIGH_QUALITY:ts.UNKNOWN,x)},Ze=(c,x)=>{c!==ts.UNKNOWN&&(we(tt)&&!we(_n)&&Hn("auto",{appliesTo:x,changeReason:"limit-changed"}),Rt(c,x)),N.setPredefinedQualityLimits(c)},Rt=(c,x)=>{Ec({type:c,videoId:i},x),x==="as-default"&&Ec({type:c,videoId:i},"to-video")},mi=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ce.features.saveRate&&le&&!N.info.isLive$.getValue()&&vh(c)},qo=()=>{let c=we(Bn),x=c.findIndex(({selected:me})=>me);if(x===c.length-1)return;let B=c[x+1];mi(B.value)},to=()=>{let c=we(Bn),x=c.findIndex(({selected:me})=>me);if(x===0)return;let B=c[x-1];mi(B.value)},ho=(c=Ot(z({},eo),{selected:!1}))=>{se.log("set subtitles",z({},c)),c&&c.value!==eo.value&&Nt.next(c.isAuto?c.value+"_auto":c.value),Yi.set(c)},io=()=>{se.log("toggle subtitles");let c=we($n),x=we(Yi),B=we(At);if((x==null?void 0:x.value)===eo.value){let me=c.filter(Ge=>Ge.value!==eo.value).find(Ge=>Ge.value===B)||c[1];ho(me)}else ho()},Ko=re(!0),Vo=c=>{Ko.set(c)},bi=(c,x,B=!0)=>{var me;if(Z({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:x,forcePrecise:B}),je.next(x),N.info.isLive$.getValue()){let Ge=N.info.duration$.getValue(),St=Math.min(0,Ge+c);N.seekTime(St,B)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(me=l==null?void 0:l.onPlay)==null||me.call(l)),N.seekTime(_o(c),B)}},ji=c=>{Z({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),bi(c,hs.EPISODE,!0)},Ro=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:x});let B=we(Io)*c;bi(B,x,!1)},xn=c=>{Z({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),je.next(hs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Ui=c=>{var me,Ge;let x=(me=c.max)!=null?me:"none",B=(Ge=c.min)!=null?Ge:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${B}`}),se.log("set auto quality limits",{max:x,min:B}),N.setAutoQualityLimits(c)},yr=c=>{Z({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),bi(c,hs.EPISODE,!0)},Ur=c=>{Z({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},ar=re(void 0),rn=re(!1),zr=c=>{Z({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),rn.set(!0),xr(c)},xr=c=>{ar.set(c)},Zi,Qo,Fn=()=>{ar.set(void 0),rn.set(!1)},lr=()=>{clearTimeout(Qo),clearTimeout(Zi),Zi=window.setTimeout(()=>{Fn()},500),et==null||et.removeEventListener("seeked",lr)},Wr=c=>{Z({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),Ro(c,hs.SLIDER),we(kt.ui.isMobile)&&we(kt.state.currentFormat$)===gd.HLS?(et==null||et.addEventListener("seeked",lr),Qo=window.setTimeout(()=>{lr()},300)):Fn()},qr=_i([fo,Io,ar],([c,x,B],me)=>{me(U2(B)?B*x:c)}),wr=re(!1),ke=()=>{wr.set(!0)},xe=()=>{wr.set(!1)},$t=re({width:0,height:0}),qt=_i([$t],([{width:c}],x)=>{let B=Yh(c);x(B)}),Pi=re(!1),xi=W.filter(c=>oh(c)),Ue=_i([qt,Pi],([c,x])=>x?xi.filter(B=>!B.hideOnMobile):xi.filter(B=>{var me;return!((me=B.hideOnDesktopGridTypes)!=null&&me.includes(c))})),mt=re(W.filter(c=>nh(c))),pi=_i([mt,qt],([c,x])=>c.filter(B=>{var me;return!((me=B.hideOnDesktopGridTypes)!=null&&me.includes(x))})),sn=_i([pi,Ue],([c,x])=>[...ce.features.additionalButtonsDesktopControlPanelRight?c.filter(B=>B.type==="desktop-control-panel-right"):[],...ce.features.additionalButtons?x.map((B,me)=>{var Ge;return{id:me,weight:me,type:"desktop-control-panel-right",testId:B.testId,icon:B.iconUrl,onClick:B.onClick,ariaLabel:(Ge=B.ariaLabel)!=null?Ge:B.tooltip,tooltipText:B.tooltip}}):[]]),Xi=re(K),Un=_i([Xi],([c])=>ce.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Ot(z({},x),{onClick:x.onChangeEnabled}):x):[]),Kr=(c,x)=>{let B=we(mt).map(me=>me.id!==c?me:z(z({},me),x));mt.set(B)},Sr=c=>{let x=we(mt);if(x.some(B=>B.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),mt.set(x)},Ji=c=>{let x=we(mt);if(!x.some(B=>B.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),mt.set(x)},Ai=c=>{je.next(hs.LIVE),Z({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},wn=(c,x)=>{let B=we(Xi).map(me=>me.id!==c?me:z(z({},me),x));Xi.set(B)},zn=c=>{let x=we(Xi);if(x.some(B=>B.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Xi.set(x)},Cr=c=>{let x=we(Xi);if(!x.some(B=>B.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),Xi.set(x)},wi=re(U),ka=_i([wi],([c])=>ce.features.additionalContextMenuItems?c:[]),Fs=(c,x)=>{let B=we(wi).map(me=>me.id!==c?me:z(z({},me),x));wi.set(B)},yt=c=>{let x=we(wi);if(x.some(B=>B.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),wi.set(x)},bt=c=>{let x=we(wi);if(!x.some(B=>B.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(B=>B.id!==c),wi.set(x)},oo=_i([Pi,Qt],([c,x],B)=>{B(c&&x)}),Go=()=>{je.next(hs.LIVE),Z({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==vd.PLAYING&&kt.actions.internal.togglePlay()},no=()=>{se.log("skip adman"),$e.skip()},ai=(c=!0)=>{Zn(kt),Z({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),It.set("video"),c&&N.play(),r&&go(!0)},Ni=()=>{Zn(kt),Z({message:"switch from video to ads"}),se.log("switch from video to ads"),kt.actions.internal.pause(),ot(),It.set("ads")},ys=c=>{Zn(kt);let x=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:x}),It.set(x)},vl=c=>{Zn(kt);let x=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:x}),It.set(x)},Wd=c=>{Zn(kt);let x=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:x}),It.set(x)},Su=()=>(Zn(kt),se.log("get debug text data"),eh(N,qe,kt,Le.getTraceId())),qd=()=>(Zn(kt),JSON.stringify(Le.getFinishedSpans())),Cu=()=>(Zn(kt),th(N,qe,kt)),Us=()=>et,Tu=()=>{Z({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},gl=c=>{var B;if(Zn(kt),N.info.isEnded$.getValue())return;let x=!c;if(we(kt.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),se.log("pause ads",{internalCall:x}),$e.pause();return}Z({message:`pause video, internalCall: ${x}`}),se.log("pause video",{internalCall:x}),x&&((B=l==null?void 0:l.onPause)==null||B.call(l)),N.pause()},Kd=c=>{var B;Zn(kt);let x=!c;if(we(kt.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),se.log("play ads",{internalCall:x}),$e.play();return}Z({message:`play video, internalCall: ${x}`}),se.log("play video",{internalCall:x}),x&&((B=l==null?void 0:l.onPlay)==null||B.call(l)),N.play()},Qd=c=>{Zn(kt);let x=!c;if(we(kt.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},hl=(c,x)=>{Zn(kt),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),se.log("first start",{showAds:c,external:x}),c?It.set("ads"):(It.set("video"),x?N.play():kt.actions.internal.togglePlay())},Pa=()=>(Z({message:"getting time codes"}),f),Gd=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(B=>B.time>x)},Yd=c=>{let x=c;x||(x=Gd());let B=N.info.position$.getValue();se.log("seek to next episode",z({currentTime:B},x)),x&&(Z({message:"seek to next episode"}),bi(x.time,hs.EPISODE,!0))},jd=()=>{let c=Pa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),B=c.findIndex(Ge=>Ge.time>x),me=B===-1?c.length-2:B-2;if(!(me<0))return c[me]},Zd=c=>{let x=c;x||(x=jd());let B=N.info.position$.getValue();se.log("seek to prev episode",z({currentTime:B},x)),x&&(Z({message:"seek to prev episode"}),bi(x.time,hs.EPISODE,!0))},Iu=()=>(Z({message:"getting preview thumbs data"}),se.log("get preview thumbs data",z({},$)),$),Eu=()=>xt(void 0,null,function*(){let c=ne==null?void 0:ne.isActive(),x="none";ne!=null&&ne.isActive()?(x="remove",yield ne==null?void 0:ne.remove()):(x="request",yield ne==null?void 0:ne.request()),se.log("toggle picture in picture",{isActive:c,action:x})}),ku=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),nt.update(x=>x+c)},ze=re([]);T==null||T.subscribe(c=>{let x=[];for(let B=0;B<c.length;B++){let{range:[me,Ge],subjects:St}=c[B];B===0&&me!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:me/1e3,text:"",interactive:!0,completed:ce.features.interactiveTimeOpenUri?!St.length||St.every(Ft=>Ft.isRemoved):!St.length}),Ge!==1/0&&x.push({time:Ge/1e3,text:"",interactive:!1,completed:!0})}ze.set(x)});let li=re(!1);I==null||I.subscribe(c=>{c&&we(rn)&&Fn()});let _o=c=>{if(!C)return c;let x=we(ze),B=we(Io),Ge=we(Oo)/B,St=x.find(Ft=>Ft.interactive&&!Ft.completed&&Ft.time>Ge);return typeof(St==null?void 0:St.time)=="number"?Math.min(c,St.time-.05):c},zs=()=>{kt.ui.episodes.panelOpened$.set(!1)},an=()=>{se.log("destroy store"),clearTimeout(Qo),clearTimeout(Zi),oi.unsubscribe(),di.unsubscribe(),N.destroy(),$e.destroy(),de==null||de.destroy(),Ke==null||Ke.destroy(),pt.unsubscribe(),ut==null||ut.disconnect(),ut=null,ie.destroy()},kt={interfaceLanguage$:At,isCyrillicRelatedInterface$:Mt,initVideo:De,videoId:i,isClip:o,playerPhase:X,vsid:Ve,state:{positionExact$:fo,positionWithScrubbing$:qr,duration$:Io,playbackState$:Co,isPlaying$:An,isLoaderVisible:Oi,bufferedProgress$:Mo,isLive$:G,canChangePlaybackSpeed$:Zt,isActiveLive$:Eo,isOldestAvailableLive$:hn,isRewindableLive$:Ho,isEnded$:To,muted$:ci,volume$:Ri,trafficSavingEnabled$:ui,highQualityEnabled$:ft,autoQualityLimitingAvailable$:tt,availableVideoStreams$:Nr,availableAudioStreams$:vr,videoStream$:Xn,audioStream$:Jn,currentQuality$:bn,isAutoQualityEnabled$:_n,availableQualities$:tn,currentPlaybackRate$:tr,availablePlaybackRates$:Bn,currentSubtitle$:Yi,availableTextTracks$:gr,availableSubtitlesList$:$n,currentSubtitleCaptions$:Ao,isAutoSubtitleCaptionVisible$:Dn,chromecastState$:Xt,chromecastDeviceName$:mr,chromecastConnected$:ko,currentFormat$:Ii,throughputEstimation$:Xo,videoBitrate$:$i,videoSize$:ht,errorLog$:Tt,crashed$:Qt,isAudioAvailable$:Jo,isAudioDisabled:!!r,canDownload:ce.features.download&&!!d,availableSources$:yn,hasMpegSources$:ir,isInteractive:C,showInteractiveGraph:ce.features.interactiveGraph,showSeekToInteractive:ce.features.seekToInteractive,showPlayPrevChapter:ce.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ce.features.interactiveTimeIndicator&&!!we(ze).length,interactiveEpisodes$:ze,isInteractiveTime$:I?Jt(I):re(!1),isInteractiveExpectation$:li,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:Uo,loadedMetadata$:re(!1),isAutoQualityAvailable$:Rn},ui:{t:ee,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:W.length?W.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:ue},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Qe,isFullscreenOpenedByKeyboard:at,rotateAlpha:nt,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:$t,isMobile:Pi,mobileNotReportControlHidden$:oo,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:rn,volumeChangingInProgress:wr,is3DVideo:re(!1),currentGridType$:qt,additionalButtonsDeprecated$:Ue,additionalDesktopControlPanelRightButtons$:sn,additionalSettingsMenuItems$:Un,additionalContextMenuItems$:ka,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)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Ko,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)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:ne,annotationsApi:pe,slotsApi:ye},actions:{internal:{preload:On,firstStart:c=>hl(c,!1),play:()=>Kd(!1),pause:()=>gl(!1),togglePlay:on,toggleMuted:nr,openSettingsMenu:Or,closeSettingsMenu:Fo,openSettingsSubMenu:br,closeSettingsSubMenu:rr,setVolume:Gt,startVolumeChanging:ke,stopVolumeChanging:xe,setVideoStream:er,setAudioStream:Mn,setQuality:Hn,setTrafficSavingEnabled:Fi,setHighQualityEnabled:nn,setPlaybackRate:mi,incrementPlaybackRate:qo,decrementPlaybackRate:to,setSubtitle:ho,toggleSubtitle:io,togglePictureInPicture:Eu,startScrubbing:zr,progressScrubbing:xr,completeScrubbing:Wr,toggleChromecast:Tu,switchToActiveLive:Go,switchFromAdsToVideo:ai,switchFromVideoToAds:Ni,skipAd:no,setLiveWaitingStart:ys,setLiveWaitingRecover:vl,setLiveWaitingRecord:Wd,getDebugTextData:Su,getTraceTextData:qd,getDebugPanelData:Cu,getVideoElement:Us,seekTime:(c,x,B)=>bi(c,x,B),clearDelayedBufferingCheckTimeout:Do,seekEpisodeStartTime:ji,seekToPercent:Ro,getNextEpisode:Gd,seekToNextEpisode:Yd,getPrevEpisode:jd,seekToPrevEpisode:Zd,startLogging:rt,stopLogging:ei,startCameraManualRotation:Ki,stopCameraManualRotation:Qi,moveCameraFocusPX:Lt,holdCamera:gt,releaseCamera:Dt,getVideoEpisodes:Pa,getPreviewThumbsData:Iu,downloadVideo:_r,addLanguage:Dp,setLanguage:ni,nextMovie:Ye,videoRotate:ku,correctSeekTimeToInteractive:_o,replayInteractive:M,setLooped:sr,reportProblem:Hr,setAutoplayNextEnabled:ki,setTimerNextVideoRunning:is,prevVideoClick:Fr,nextVideoClick:$r,nextVideoAnnouncementShow:si,nextVideoAnnouncementClick:zo,nextVideoAnnouncementAuto:Wo,nextVideoAnnouncementCancel:Hi},external:{firstStart:c=>hl(c,!0),play:()=>Kd(!0),pause:()=>gl(!0),stop:()=>Qd(!0),seekTime:c=>xn(c),seekEpisodeStartTime:c=>yr(c),setPlaybackRate:c=>Ur(c),setAutoQualityLimits:c=>Ui(c),setMuted:go,toggleSubtitle:io,setVolume:Gt,returnFocusToEpisodes:zs,updateAdditionalSettingsItem:wn,addAdditionalSettingsItem:zn,removeAdditionalSettingsItem:Cr,updateAdditionalContextItem:Fs,addAdditionalContextItem:yt,removeAdditionalContextItem:bt,updateAdditionalButton:Kr,addAdditionalButton:Sr,removeAdditionalButton:Ji,setLiveLowLatency:Ai,hideControls:()=>Vo(!1),showControls:()=>Vo(!0)}},callbacks:l,setUiCallbacks:c=>{Ie=z({},c)},getAdmanWrapper:()=>$e,getLogger:()=>Se,getPlayer:()=>N,destroy:an};return kt};function Vr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!n&&!!(n.right-n.left),{top:r,left:d,bottom:l,right:u}=gs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?r:0,bottom:a?l:0,isDisplayed:a}}var X2=["disabledControls$","additionalButtons"],J2=["interactiveTimeIndicator"],dl=(t,e,i,o)=>{if(t){for(let[n,a]of Object.entries(e))if(!X2.includes(n)){let r=o||J2.includes(n);a.set(Vr(t,i,n,r))}}};var ou=(t,e,i)=>xt(void 0,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var ey=Te('<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 Rf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i))),y(t,o)}function Bf(t,e){O(e,!0);let[i,o]=He(),n=()=>S(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),r=m(e,"ariaLabel",3,""),d=Ee(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,_=J(void 0);We(()=>{s(_)&&wt(()=>{p.set(s(_))})});let w=I=>{let M=Vs(I),P=Fh(s(_));$.set(P),u.set(M),l.set(!n())},b=()=>{f.set(!0)},C=()=>{f.set(!1)},T=v(()=>n()?"opened":"");Bt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return r()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},role:"button",get ref(){return s(_)},set ref(I){D(_,ve(I))},children:(I,M)=>{Rf(I,{})},$$slots:{default:!0}}),H(),o()}var ty=t=>{t.stopPropagation()},iy=L("<div><!> <div></div> <div></div></div>"),oy={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;}
|
|
231
227
|
|
|
232
228
|
@media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
|
|
233
229
|
}
|
|
@@ -252,16 +248,17 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
252
248
|
opacity: 0;
|
|
253
249
|
}
|
|
254
250
|
}.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);
|
|
255
|
-
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 fd(t,e){var ve;U(e,!0),K(t,j2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(k,"$isInteractiveTime$",i),l=()=>S(_,"$interactiveControlsOpacity$",i),u=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),b=m(e,"ref",15,void 0),p=J(void 0),$=Ie(),x=fo(),{interactiveControlsOpacity$:_}=x,C=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,P=x.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,I=(ve=$.callbacks)==null?void 0:ve.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,q=v(()=>!n()&&a()),G=v(()=>Cs(s(),"s")),H=v(()=>!d()||!!l()||r(q)),Z=J(!1);Fe(()=>{D(Z,me(r(H)))});let re=()=>{D(Z,!0)},X=()=>{var Y;ce(),(Y=r(p))==null||Y.addEventListener("animationiteration",re,{once:!0})},ce=()=>{var Y;D(Z,!1),(Y=r(p))==null||Y.removeEventListener("animationiteration",re)},ue=Y=>{P.set(Y)},Ve=v(()=>u()&&!r(H));Fe(()=>{u()?X():ce()});let Me=()=>{r(H)||(P.set(!0),I==null||I())};_n(()=>{P.clearTimeout(),ce()});let _e=()=>{P.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Le=G2();let ne;Le.__mousemove=[Q2],Le.__click=Me;var B=h(Le);Ao(B,{tooltipContent:ae,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ue,get ref(){return b()},set ref(Y){b(Y)},children:(Y,ie)=>{nd(Y,{completed:!0})},$$slots:{default:!0}});var $e=M(B,2);let de;ft($e,Y=>b(Y),()=>b());var Ke=M($e,2);let te;ft(Ke,Y=>D(p,Y),()=>r(p)),g(Le),E((Y,ie,He)=>{ne=ee(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,Y),de=ee($e,1,"ref-block svelte-od3veb",null,de,ie),te=ee(Ke,1,"pulse svelte-od3veb",null,te,He)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(G)}),()=>({hidden:r(H)}),()=>({paused:r(Z)})]),Tt("mouseleave",Le,_e),y(t,Le),z(),o()}at(["mousemove","click"]);function eu(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);Ao(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 n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Oe();let u=v(()=>e.buttonComponent);var f=fe(l);Pi(f,()=>r(u),(b,p)=>{p(b,is(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),y(s,l)},$$slots:{default:!0}}),z()}var as={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Z2=we('<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 Af(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}function Ts(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Af(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var X2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),J2=L("<!> <!>",1),ey={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 ua(t,e){U(e,!0),K(t,ey);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=Ie().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Rt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{var p=J2(),$=fe(p);{var x=T=>{var k=X2();y(T,k)};R($,T=>{o()&&T(x)})}var _=M($,2);let C=v(()=>e.type==="prev");Ts(_,{get isMobile(){return o()},get isPrev(){return r(C)}}),y(f,p)},$$slots:{default:!0}}),z()}var ty=we('<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 md(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),y(t,o)}import{noop as iy}from"@vkontakte/videoplayer-shared/es2015";var oy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ny=L("<!> <div><!></div>",1),ry={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 rl(t,e){U(e,!0),K(t,ry);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,iy),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Rt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var b=ny(),p=fe(b);{var $=T=>{var k=oy();y(T,k)};R(p,T=>{o()&&T($)})}var x=M(p,2);let _;var C=h(x);md(C,{}),g(x),E(T=>_=ee(x,1,"svelte-1ot3duq",null,_,T),[()=>({mobile:o()})]),y(u,b)},$$slots:{default:!0}}),z()}var sy=we('<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 Sr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=sy(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),y(t,s)}var ay=we('<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 ls(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=ay(),d=h(s);g(s),E(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),y(t,s)}import{noop as ly}from"@vkontakte/videoplayer-shared/es2015";var dy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),cy=L("<!> <div><!></div>",1),uy={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 sl(t,e){U(e,!0),K(t,uy);let[i,o]=Ne(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=fo(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),b=m(e,"click",3,ly),$=Ie().ui.t,{toggle:x}=a,_=v(()=>x),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),k=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),P=v(()=>r(T)?ls:Sr),A=v(()=>`${d()?"btn-m--play":""} ${f()}`),I=v(()=>r(C)?r(_):b());Rt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(k)},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,q)=>{var G=cy();let H=v(()=>r(P));var Z=fe(G);{var re=Ve=>{var Me=dy();y(Ve,Me)};R(Z,Ve=>{d()&&Ve(re)})}var X=M(Z,2);let ce;var ue=h(X);Pi(ue,()=>r(H),(Ve,Me)=>{Me(Ve,{})}),g(X),E(Ve=>ce=ee(X,1,"svelte-1ot3duq",null,ce,Ve),[()=>({mobile:d()})]),y(V,G)},$$slots:{default:!0}}),z(),o()}var py=we('<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 Mf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),y(t,o)}function vd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Rt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Mf(d,{})},$$slots:{default:!0}}),z()}var fy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),my={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 gd(t,e){U(e,!0),K(t,my);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Rt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,b)=>{var p=fy(),$=h(p);let x;var _=h($);{var C=k=>{Sr(k,{width:"14",height:"14",fill:"#000"})},T=k=>{ls(k,{width:"14",height:"14",fill:"#000"})};R(_,k=>{n()?k(C):k(T,!1)})}g($),g(p),E(k=>x=ee($,1,"toggler svelte-et3q1q",null,x,k),[()=>({enabled:n()})]),y(f,p)},$$slots:{default:!0}}),z(),o()}var vy=we('<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 Lf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({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))),y(t,o)}function hd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Rt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Lf(d,{})},$$slots:{default:!0}}),z()}var gy=we('<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 Vf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var hy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Rf(t,e){K(t,hy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Vf(t,{get"data-testid"(){return r(o)}})}function _d(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Rt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,b)=>{let p=v(()=>!!a());Rf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}import{PlaybackState as i1}from"@vkontakte/videoplayer-core/es2015";function bd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ie(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,b=l.actions.internal.togglePlay,p=v(()=>()=>{if(!s()){f();return}n()===i1.PAUSED&&b()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),x=v(()=>s()?"btn-live":"btn-live-offset"),_=v(()=>s()&&n()===i1.PLAYING);Rt(t,{get className(){return r($)},get testId(){return r(x)},get disabled(){return r(_)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{ql(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as o1}from"@vkontakte/videoplayer-shared/es2015";var _y=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),by=L('<img class="icon" aria-hidden="true">');function pa(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=Oe(),a=fe(n);{var s=l=>{var u=_y();y(l,u)},d=l=>{var u=by();E(()=>De(u,"src",e.icon)),Tt("error",u,o),Ws(u),y(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}y(t,n)}function Nf(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,o1),n=m(e,"ref",15),a=v(()=>o()===o1),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Ao(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=v(()=>{var b;return(b=e.testId)!=null?b:e.id});Rt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(b,p)=>{pa(b,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var n1=t=>!!t.buttonComponent;var ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var wy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),Sy={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;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 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Df(t,e){var Ps,wa;U(e,!0),K(t,Sy);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Vt,"$adPlaybackState",i),s=()=>S(ht,"$playbackState$",i),d=()=>S(wo,"$currentSubtitle$",i),l=()=>S(Yt,"$isEnded$",i),u=()=>S(or,"$currentGridType$",i),f=()=>S(ni,"$isLive$",i),b=()=>S(nn,"$chromecastState$",i),p=()=>S(Di,"$isPictureInPictureActive",i),$=()=>S(qi,"$pictureInPictureType$",i),x=()=>S(yn,"$availableSubtitlesList$",i),_=()=>S(Oi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(di,"$showContextMenuBtn$",i),T=()=>S(ri,"$playerSize",i),k=()=>S(ei,"$isRewindableLive$",i),P=()=>S(et,"$isActiveLive$",i),A=()=>S(Zi,"$graphIsOpened$",i),I=()=>S(ti,"$contextMenuVisible$",i),V=()=>S(no,"$isFullscreen",i),q=()=>S(zo,"$autoplayNextEnabled",i),G=()=>S(r(lr),"$prevButton",i),H=()=>S(r(Pr),"$replayButton",i),Z=()=>S(r(Bo),"$playButton",i),re=()=>S(r(ki),"$nextButton",i),X=()=>S(r(dr),"$playPrevChapterButton",i),ce=()=>S(r(vt),"$seekToInteractiveButton",i),ue=()=>S(r(zt),"$interactiveGraphButton",i),Ve=()=>S(r(Mi),"$liveButton",i),Me=()=>S(r(ko),"$time",i),_e=()=>S(r(nt),"$episodes",i),ae=()=>S(r(Gt),"$vkLogo",i),Le=()=>S(r(hi),"$volume",i),ne=()=>S(r(Ji),"$subtitles",i),B=()=>S(r(eo),"$settings",i),$e=()=>S(r(Li),"$context",i),de=()=>S(r(Ci),"$fullscreen",i),Ke=()=>S(r(Qi),"$chromecast",i),te=()=>S(So,"$additionalDesktopControlPanelRightButtons$",i),ve=()=>S(Lo,"$isInteractiveTime$",i),Y=()=>S(Lt,"$settingsMenuVisible",i),ie=()=>S(ur,"$settingButtonRef$",i),He=()=>S(pi,"$startedByKeyboard$",i),je=()=>S(Ut,"$isAudioAvailable$",i),ye=()=>S(Nt,"$fakeIsPlaying$",i),Se=()=>S(xn,"$seekToInteractiveDisabledTooltip$",i),Re=()=>S(Xe,"$adPosition",i),Ye=()=>S(We,"$position$",i),ct=()=>S(vi,"$adDuration",i),ut=()=>S(it,"$duration$",i),st=m(e,"playerControlsWrapperRef",15,void 0),It=m(e,"playerControlsRef",15,void 0),bt=m(e,"isAds",3,!1),Zt=m(e,"logoTargetUrl",3,""),li=m(e,"isOneVideoPlaylist",3,!1),Et=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=fo(),O=Ie(),be=fo(),se=Kt(),Be=O.actions.internal.toggleMuted,qe=O.actions.internal.togglePlay,Ge=O.actions.internal.pause,pt=O.actions.internal.toggleSubtitle,Ze=(Ps=O.callbacks)==null?void 0:Ps.onAudioDoesNotExistHint,tt=(wa=O.callbacks)==null?void 0:wa.onAudioDisabledHint,it=O.state.duration$,We=O.state.positionWithScrubbing$,ht=O.state.playbackState$,Ut=O.state.isAudioAvailable$,Je=O.state.isAudioDisabled,Yt=O.state.isEnded$,ni=O.state.isLive$,et=O.state.isActiveLive$,ei=O.state.isRewindableLive$,{isActive$:Di,type$:qi}=be.pictureInPicture$,Lt=O.ui.settingsMenu.visible$,_t=O.ui.settingsMenu.openedByBtnKeyboard$,Bt=O.ui.controls,mo=O.actions.internal.getVideoEpisodes(),nn=O.state.chromecastState$,yn=O.state.availableSubtitlesList$,wo=O.state.currentSubtitle$,j=Bt.disabledControls$,ti=O.ui.contextMenu.visible$,di=O.ui.contextMenu.showContextMenuBtn$,Oi=O.ui.contextMenu.openedByBtnKeyboard$,pi=O.ui.startedByKeyboard$,mt=O.ui.t,vi=O.ads.duration,Xe=O.ads.position,Vt=O.ads.playbackState,no=O.ui.isFullscreen,ri=O.ui.playerSize,or=O.ui.currentGridType$,So=O.ui.additionalDesktopControlPanelRightButtons$,zo=O.ui.autoplayNextEnabled$,fi=O.actions.internal.getVideoElement,St=O.actions.internal.replayInteractive,Ii=O.actions.internal.prevVideoClick,Mo=O.actions.internal.nextVideoClick,gi=O.state.isInteractive,Lo=O.state.isInteractiveTime$,Wi=O.state.showInteractiveGraph,Co=O.state.showSeekToInteractive,To=O.state.showPlayPrevChapter,Dn=O.state.showInteractiveTimeIndicator,Io=O.state.playPrevChapterDisabledTooltip,xn=be.seekToInteractiveDisabledTooltip$,Zi=be.graphIsOpened$,Vo=se.features.interactiveResponsiveUi,rn=v(()=>n().has("EPISODE_BUTTON")),Tr=v(()=>n().has("GRAPH_BUTTON")),nr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),On=v(()=>n().has("PLAY_BUTTON")),wn=v(()=>n().has("REPLAY_BUTTON")),Hn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),rr=()=>O.actions.internal.toggleChromecast(),ro=v(()=>bt()?a()==="playing":s()===Bf.PLAYING),Ro=v(()=>d().value!=="off"),Sn=v(()=>l()&&!bt()||gi),ot=v(()=>Vo?r(Sn)&&Yi(u(),"m"):r(Sn)),Cn=v(()=>!l()||gi||bt()),Fn=v(()=>Yi(u(),"m")),sn=v(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!bt()&&e.nextButtonActive),sr=v(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!bt()&&e.prevButtonActive),an=v(()=>!bt()&&!!f()),ln=v(()=>b()!==r1.NOT_AVAILABLE&&!(p()&&$()===1)&&Yi(u(),"m")&&!gi),dn=v(()=>e.showAutoplayNext&&!li()&&Yi(u(),"s")),Xi=v(()=>x().length>0&&Yi(u(),"m")),Ki=v(()=>_()||C()),cn=v(()=>Yi(u(),"s")&&!bt()),Un=v(()=>!e.logoHidden&&!bt()),qo=v(()=>se.features.fullscreen&&(e.logoHidden||Yi(u(),Vo?"xs":"s"))&&!(p()&&$()===1)&&(gi?Et():!0)),un=v(()=>(!f()||bt())&&!(se.features.interactiveHideTime&&gi)),No=v(()=>T().width>100),vo=v(()=>Wi&&Yi(u(),"m")),Hi=v(()=>Vo?Co&&Yi(u(),"s"):Co),zn=v(()=>Vo?To&&Yi(u(),"s"):To),so=v(()=>!bt()&&!f()&&!!(mo!=null&&mo.length)&&r(Fn)&&!r(rn)),Tn=v(()=>!k()||!!P()),qn=v(()=>A()?mt("tooltip_interactive_graph_on"):mt("tooltip_interactive_graph_off")),pn=v(()=>I()?mt("aria_label_context_menu_close"):mt("aria_label_context_menu_open")),Ir=(dt,yt)=>dt?yt&&yt===Bf.PAUSED?mt("tooltip_play"):"":mt("tooltip_live"),Wo=v(()=>Ir(r(Tn),s())),kr=v(()=>se.logoType==="vk_video"?mt("tooltip_vk_video_logo"):mt("tooltip_vk_logo")),Wn=v(()=>r(Ro)?mt("tooltip_subtitles_on"):mt("tooltip_subtitles_off")),Kn=v(()=>V()?mt("tooltip_fullscreen_on"):mt("tooltip_fullscreen_off")),ar=v(()=>b()===r1.CONNECTED?mt("tooltip_chromecast_on"):mt("tooltip_chromecast_off")),Er=v(()=>q()?mt("tooltip_autoplay_on"):mt("tooltip_autoplay_off")),In=J(0),ii=me({}),lr=v(()=>Bt.prevButton),Pr=v(()=>Bt.replayButton),Bo=v(()=>Bt.playButton),ki=v(()=>Bt.nextButton),dr=v(()=>Bt.playPrevChapterButton),vt=v(()=>Bt.seekToInteractiveButton),zt=v(()=>Bt.interactiveGraphButton),Mi=v(()=>Bt.liveButton),ko=v(()=>Bt.time),nt=v(()=>Bt.episodes),Gt=v(()=>Bt.vkLogo),hi=v(()=>Bt.volume),Ji=v(()=>Bt.subtitles),eo=v(()=>Bt.settings),Li=v(()=>Bt.context),Ci=v(()=>Bt.fullscreen),Qi=v(()=>Bt.chromecast),si=v(()=>({prevButton:G()?G().right-G().left:0,replayButton:H()?H().right-H().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:re()?re().right-re().left:0,playPrevChapterButton:X()?X().right-X().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ue()?ue().right-ue().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:_e()?_e().right-_e().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Le()?Le().right-Le().left:0,subtitles:ne()?ne().right-ne().left:0,settings:B()?B().right-B().left:0,context:$e()?$e().right-$e().left:0,fullscreen:de()?de().right-de().left:0,chromecast:Ke()?Ke().right-Ke().left:0,additionalButtons:te().length?te().reduce(dt=>[...dt,40],[]):[]})),Fi=J(0);Fe(()=>{(!r(Fi)||r(Fi)<r(si).time)&&wt(()=>D(Fi,me(r(si).time)))});let fn=J(!1);Fe(()=>{let dt=0;r(so)&&(Yi(u(),"xl")?dt=r(si).time:dt=60);let yt=r(si).prevButton+r(si).playButton+r(si).nextButton+r(si).seekToInteractiveButton+r(si).interactiveGraphButton+r(si).liveButton+r(Fi)+dt;D(fn,me(r(un)&&r(In)>=yt))});let cr=v(()=>r(fn)&&Yi(u(),"m")),Qn=xy(nl,260);Fe(()=>{T(),ve(),Qn(fi(),Bt,ii,e.showControls)});let ur=le();Fe(()=>{Y(),ie()&&wt(()=>Za(ie(),Y(),_t))});let pr;Fe(()=>{He(),wt(()=>Jc(pi,He(),pr))});function fr(){ws({isAudioDisabled:Je,audioDisabledHintCallback:tt,isAudioAvailable:je(),audioIsNotExistHintCallback:Ze})&&Be()}let mr=gi?St:qe,Gn=v(()=>ye()!==null),jn=v(()=>r(Gn)?ye():r(ro)),Do=v(()=>r(jn)?mt("tooltip_pause"):mt("tooltip_play")),Ar=mt("tooltip_episodes"),Oo=v(()=>{var dt,yt,io,Ko;return r(sr)?{id:"prevButton",type:"desktop-control-panel-left",weight:as.prevButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Ii.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((Ko=(io=O.callbacks)==null?void 0:io.uiInfo)!=null&&Ko.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,mi,Ri;(Ri=(mi=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||Ri.call(mi,ca(fi(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var oo,mi,Ri;(Ri=(mi=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||Ri.call(mi,ca(fi(),ii,"prevButton",e.showControls))},tooltipText:mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),vr=v(()=>r(ot)?{id:"replayButton",type:"desktop-control-panel-left",weight:as.replayButton,buttonComponent:rl,buttonComponentProps:{disabled:r(wn),click:mr},tooltipText:mt("tooltip_restart"),disabled:r(wn)}:void 0),Mr=v(()=>r(Cn)?{id:"playButton",type:"desktop-control-panel-left",weight:as.playButton,buttonComponent:sl,buttonComponentProps:{disabled:r(On),isPlaying:r(ro),click:qe},tooltipText:r(Do),disabled:r(On)}:void 0),Lr=v(()=>{var dt,yt,io,Ko;return r(sn)?{id:"nextButton",type:"desktop-control-panel-left",weight:as.nextButton,buttonComponent:ua,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Mo.bind(null,!0)},tooltipEnabled:!((yt=(dt=O.callbacks)==null?void 0:dt.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((Ko=(io=O.callbacks)==null?void 0:io.uiInfo)!=null&&Ko.onNextButtonMouseLeave),mouseEnter:()=>{var oo,mi,Ri;(Ri=(mi=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||Ri.call(mi,ca(fi(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var oo,mi,Ri;(Ri=(mi=(oo=O.callbacks)==null?void 0:oo.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||Ri.call(mi,ca(fi(),ii,"nextButton",e.showControls))},tooltipText:mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Vr=v(()=>gi&&r(zn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:as.playPrevChapterButton,buttonComponent:vd,buttonComponentProps:{disabled:r(Hn),click:e.playPrevChapter},tooltipText:mt("tooltip_interactive_go_back"),disabledTooltipContent:mt(Io),disabled:r(Hn)}:void 0),to=v(()=>gi&&r(Hi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:as.seekToInteractiveButton,buttonComponent:hd,buttonComponentProps:{disabled:r(nr),click:e.seekToInteractive},tooltipText:mt("tooltip_interactive_seek"),disabled:r(nr),disabledTooltipContent:mt(Se())}:void 0),kn=v(()=>gi&&r(vo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:as.interactiveGraphButton,buttonComponent:_d,buttonComponentProps:{disabled:r(Tr),click:Zi.toggle,graphIsOpened:A()},tooltipText:r(qn)}:void 0),Rr=v(()=>r(an)?{id:"liveButton",type:"desktop-control-panel-left",weight:as.liveButton,buttonComponent:bd,buttonComponentProps:{isLiveActive:r(Tn),ariaLabel:r(Wo)},tooltipText:r(Wo),disabled:r(Tn)&&s()===Bf.PLAYING}:void 0),lt=v(()=>[r(Oo),r(vr),r(Mr),r(Lr),r(Vr),r(to),r(kn),r(Rr)].filter(dt=>!!dt).sort(ia)),qt=v(()=>r(Un)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ds.vkLogo,buttonComponent:sd,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:Ge},tooltipText:r(kr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Vi=v(()=>r(dn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ds.autoplayNext,buttonComponent:gd,tooltipText:r(Er)}:void 0),Eo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ds.volume,buttonComponent:uf,buttonComponentProps:{click:fr}})),Ce=v(()=>r(Xi)?{id:"subtitles",type:"desktop-control-panel-right",weight:ds.subtitles,buttonComponent:sf,buttonComponentProps:{isSubtitlesEnabled:r(Ro),click:pt},tooltipText:r(Wn)}:void 0),Mt=v(()=>r(cn)?{id:"settings",type:"desktop-control-panel-right",weight:ds.settings,buttonComponent:il,buttonComponentProps:{ref$:ur},tooltipText:Y()?void 0:mt("tooltip_settings_off")}:void 0),bi=v(()=>se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ds.context,buttonComponent:Pf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(pn)},className:r(Ki)?"":"out-of-view",tooltipText:r(pn)}:void 0),$i=v(()=>r(qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ds.fullscreen,buttonComponent:rd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Kn)}:void 0),_i=v(()=>r(ln)?{id:"chromecast",type:"desktop-control-panel-right",weight:ds.chromecast,buttonComponent:ad,buttonComponentProps:{state:b(),click:rr},tooltipText:r(ar)}:void 0),Ee=v(()=>[r(qt),r(Vi),r(Eo),r(Ce),r(Mt),r(bi),r($i),r(_i),...te()].filter(dt=>!!dt).sort(ia));var $t=wy(),jt=fe($t);let Ti;var ci=h(jt);let Wr=v(()=>!r(No));la(ci,{get isHidden(){return r(Wr)},get isAds(){return bt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return ii.timeline},set ref(dt){ii.timeline=dt}});var Ui=M(ci,2),Yn=h(Ui),Es=h(Yn);Ei(Es,17,()=>r(lt),dt=>dt.id,(dt,yt)=>{eu(dt,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get tooltipEnabled(){return r(yt).tooltipEnabled},get mouseEnter(){return r(yt).mouseEnter},get mouseLeave(){return r(yt).mouseLeave},get ref(){return ii[r(yt).id]},set ref(io){ii[r(yt).id]=io}})});var Zn=M(Es,2);{var ba=dt=>{let yt=v(()=>bt()?Re():Ye()),io=v(()=>bt()?ct():ut());od(dt,{isMobile:!1,get showDuration(){return r(cr)},get position(){return r(yt)},get duration(){return r(io)},get ref(){return ii.time},set ref(Ko){ii.time=Ko}})};R(Zn,dt=>{r(un)&&dt(ba)})}var cl=M(Zn,2);let $a=v(()=>!r(so));Ao(cl,{className:"w-max",get disabled(){return r($a)},tooltipContent:Ar,get ref(){return ii.episodes},set ref(dt){ii.episodes=dt},children:(dt,yt)=>{var io=Oe(),Ko=fe(io);{var oo=mi=>{dd(mi,{get position(){return Ye()},get duration(){return ut()},timeCodes:mo})};R(Ko,mi=>{r(so)&&mi(oo)})}y(dt,io)},$$slots:{default:!0}}),g(Yn);var ya=M(Yn,2);Ei(ya,21,()=>r(Ee),dt=>dt.id,(dt,yt)=>{var io=Oe(),Ko=fe(io);{var oo=Ri=>{eu(Ri,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get ref(){return ii[r(yt).id]},set ref(As){ii[r(yt).id]=As}})},mi=Ri=>{let As=v(()=>!!r(yt).disabled);Nf(Ri,{get id(){return r(yt).id},get testId(){return r(yt).testId},get icon(){return r(yt).icon},get ariaLabel(){return r(yt).ariaLabel},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(As)},get onClick(){return r(yt).onClick},get ref(){return ii[r(yt).id]},set ref(Sa){ii[r(yt).id]=Sa}})};R(Ko,Ri=>{n1(r(yt))?Ri(oo):Ri(mi,!1)})}y(dt,io)}),g(ya),g(Ui),ft(Ui,dt=>It(dt),()=>It()),g(jt),ft(jt,dt=>st(dt),()=>st());var xa=M(jt,2);{var ul=dt=>{fd(dt,{get ref(){return ii.interactiveTimeIndicator},set ref(yt){ii.interactiveTimeIndicator=yt}})};R(xa,dt=>{Dn&&dt(ul)})}E(dt=>Ti=ee(jt,1,"wrapper-bottom svelte-1iedtj3",null,Ti,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Hr(Yn,"clientWidth",dt=>D(In,dt)),y(t,$t),z(),o()}import{ChromecastState as a1,PlaybackState as l1}from"@vkontakte/videoplayer-core/es2015";import{noop as s1}from"@vkontakte/videoplayer-shared/es2015";var Cy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Ty=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Iy={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 Of(t,e){K(t,Iy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,s1),n=v(()=>o()===s1),a=v(()=>r(n)||i()),s=J(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Rt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,f)=>{var b=Oe(),p=fe(b);{var $=_=>{var C=Cy();y(_,C)},x=_=>{var C=Ty();E(()=>De(C,"src",e.iconUrl)),Tt("error",C,d),Ws(C),y(_,C)};R(p,_=>{r(s)?_($):_(x,!1)})}y(u,b)},$$slots:{default:!0}})}var ky=we('<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 Hf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),y(t,o)}import{noop as Ey}from"@vkontakte/videoplayer-shared/es2015";var Py=L('<span class="text svelte-6gmlbk"> </span>'),Ay=L('<div aria-hidden="true"><!> <!></div>'),My={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function tu(t,e){U(e,!0),K(t,My);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Ey),a=m(e,"ref",15,void 0),d=Ie().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=v(()=>o()?Ss:Hf),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Rt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(b){a(b)},children:(b,p)=>{var $=Ay();let x=v(()=>r(u)),_;var C=h($);Pi(C,()=>r(x),(P,A)=>{A(P,{})});var T=M(C,2);{var k=P=>{var A=Py(),I=h(A,!0);g(A),E(V=>ge(I,V),[()=>d("mobile_unmute")]),y(P,A)};R(T,P=>{o()&&P(k)})}g($),E(P=>_=ee($,1,"container svelte-6gmlbk",null,_,P),[()=>({expanded:o()})]),y(b,$)},$$slots:{default:!0}}),z()}var Ly=we('<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 Ff(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(3),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),y(t,o)}var Vy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
256
|
-
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function
|
|
257
|
-
.wrapper-middle-left-second.svelte-
|
|
258
|
-
.wrapper-middle-right.svelte-
|
|
251
|
+
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 _d(t,e){var pe;O(e,!0),q(t,oy);let[i,o]=He(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),r=()=>S(V,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),$=m(e,"ref",15,void 0),p=J(void 0),_=Ee(),w=uo(),{interactiveControlsOpacity$:b}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,I=_.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=_.ui.controlsVisible,E=(pe=_.callbacks)==null?void 0:pe.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,W=v(()=>!n()&&a()),K=v(()=>Ns(r(),"s")),U=v(()=>!d()||!!l()||s(W)),j=J(!1);We(()=>{D(j,ve(s(U)))});let ae=()=>{D(j,!0)},Y=()=>{var ye;de(),(ye=s(p))==null||ye.addEventListener("animationiteration",ae,{once:!0})},de=()=>{var ye;D(j,!1),(ye=s(p))==null||ye.removeEventListener("animationiteration",ae)},le=ye=>{M.set(ye)},Me=v(()=>u()&&!s(U));We(()=>{u()?Y():de()});let Ne=()=>{s(U)||(M.set(!0),E==null||E())};En(()=>{M.clearTimeout(),de()});let _e=()=>{M.set(!1)},ce=F("tooltip_interactive_interaction_time_indicator");var Le=iy();let se;Le.__mousemove=[ty],Le.__click=Ne;var N=h(Le);No(N,{tooltipContent:ce,get tooltipActive(){return s(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return $()},set ref(ye){$(ye)},children:(ye,Z)=>{dd(ye,{completed:!0})},$$slots:{default:!0}});var Se=A(N,2);let $e;it(Se,ye=>$(ye),()=>$());var Ke=A(Se,2);let ne;it(Ke,ye=>D(p,ye),()=>s(p)),g(Le),k((ye,Z,qe)=>{se=te(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,se,ye),$e=te(Se,1,"ref-block svelte-od3veb",null,$e,Z),ne=te(Ke,1,"pulse svelte-od3veb",null,ne,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(K)}),()=>({hidden:s(U)}),()=>({paused:s(j)})]),Ct("mouseleave",Le,_e),y(t,Le),H(),o()}dt(["mousemove","click"]);function nu(t,e){O(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);No(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(r){a(r)},children:(r,d)=>{var l=Fe();let u=v(()=>e.buttonComponent);var f=ge(l);Ci(f,()=>s(u),($,p)=>{p($,fs(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),y(r,l)},$$slots:{default:!0}}),H()}var _s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var ry=Te('<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 Nf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=ry();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}function Ds(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),r=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Nf(t,{get style(){return s(r)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var sy=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),ay=L("<!> <!>",1),ly={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 $a(t,e){O(e,!0),q(t,ly);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=Ee().ui.t,d=v(()=>e.type==="prev"?r("tooltip_previous"):r("tooltip_next")),l=v(()=>e.type==="prev"?r("hotkey_map_item_prev_video_value"):r("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return s(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(l)},get ref(){return i()},set ref(f){i(f)},children:(f,$)=>{var p=ay(),_=ge(p);{var w=T=>{var I=sy();y(T,I)};R(_,T=>{o()&&T(w)})}var b=A(_,2);let C=v(()=>e.type==="prev");Ds(b,{get isMobile(){return o()},get isPrev(){return s(C)}}),y(f,p)},$$slots:{default:!0}}),H()}var dy=Te('<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 bd(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=dy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i))),y(t,o)}import{noop as cy}from"@vkontakte/videoplayer-shared/es2015";var uy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),py=L("<!> <div><!></div>",1),fy={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 cl(t,e){O(e,!0),q(t,fy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),r=m(e,"click",3,cy),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Bt(t,{get className(){return s(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return r()},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var $=py(),p=ge($);{var _=T=>{var I=uy();y(T,I)};R(p,T=>{o()&&T(_)})}var w=A(p,2);let b;var C=h(w);bd(C,{}),g(w),k(T=>b=te(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),y(u,$)},$$slots:{default:!0}}),H()}var my=Te('<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 Rr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=my(),d=h(r);g(r),k(()=>{Oe(r,"width",i()),Oe(r,"height",o()),Oe(r,"viewBox",n()),Oe(d,"fill",a())}),y(t,r)}var vy=Te('<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 bs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var r=vy(),d=h(r);g(r),k(()=>{Oe(r,"width",i()),Oe(r,"height",o()),Oe(r,"viewBox",n()),Oe(d,"fill",a())}),y(t,r)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2015";var hy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_y=L("<!> <div><!></div>",1),by={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 ul(t,e){O(e,!0),q(t,by);let[i,o]=He(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=uo(),r=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),$=m(e,"click",3,gy),_=Ee().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>s(C)?n():l()),I=v(()=>s(T)?_("tooltip_pause"):_("tooltip_play")),M=v(()=>s(T)?bs:Rr),P=v(()=>`${d()?"btn-m--play":""} ${f()}`),E=v(()=>s(C)?s(b):$());Bt(t,{get className(){return s(P)},testId:"btn-play",get click(){return s(E)},get disabled(){return u()},get ariaLabel(){return s(I)},get ariaKeyShortCut(){return Xr.KeyK},get ref(){return r()},set ref(V){r(V)},children:(V,W)=>{var K=_y();let U=v(()=>s(M));var j=ge(K);{var ae=Me=>{var Ne=hy();y(Me,Ne)};R(j,Me=>{d()&&Me(ae)})}var Y=A(j,2);let de;var le=h(Y);Ci(le,()=>s(U),(Me,Ne)=>{Ne(Me,{})}),g(Y),k(Me=>de=te(Y,1,"svelte-1ot3duq",null,de,Me),[()=>({mobile:d()})]),y(V,K)},$$slots:{default:!0}}),H(),o()}var $y=Te('<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 Df(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=$y();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),y(t,o)}function $d(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),r=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(r)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Df(d,{})},$$slots:{default:!0}}),H()}var yy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),xy={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 yd(t,e){O(e,!0),q(t,xy);let[i,o]=He(),n=()=>S(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.actions.internal.setAutoplayNextEnabled;Bt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,$)=>{var p=yy(),_=h(p);let w;var b=h(_);{var C=I=>{Rr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{bs(I,{width:"14",height:"14",fill:"#000"})};R(b,I=>{n()?I(C):I(T,!1)})}g(_),g(p),k(I=>w=te(_,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),y(f,p)},$$slots:{default:!0}}),H(),o()}var wy=Te('<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 Of(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}function xd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),r=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(r)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Of(d,{})},$$slots:{default:!0}}),H()}var Sy=Te('<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 Hf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),y(t,o)}var Cy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Ff(t,e){q(t,Cy);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Hf(t,{get"data-testid"(){return s(o)}})}function wd(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Bt(t,{get className(){return s(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(l)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,$)=>{let p=v(()=>!!a());Ff(f,{get isOpened(){return s(p)}})},$$slots:{default:!0}}),H()}import{PlaybackState as a1}from"@vkontakte/videoplayer-core/es2015";function Sd(t,e){O(e,!0);let[i,o]=He(),n=()=>S(u,"$playbackState$",i),a=m(e,"isMobile",3,!1),r=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=Ee(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,p=v(()=>()=>{if(!r()){f();return}n()===a1.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>r()?"btn-live":"btn-live-offset"),b=v(()=>r()&&n()===a1.PLAYING);Bt(t,{get className(){return s(_)},get testId(){return s(w)},get disabled(){return s(b)},get ariaLabel(){return d()},get click(){return s(p)},children:(C,T)=>{Yl(C,{get isActive(){return r()}})},$$slots:{default:!0}}),H(),o()}import{noop as l1}from"@vkontakte/videoplayer-shared/es2015";var Ty=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Iy=L('<img class="icon" aria-hidden="true">');function ya(t,e){"use strict";let i=J(!1),o=()=>{D(i,!0)};var n=Fe(),a=ge(n);{var r=l=>{var u=Ty();y(l,u)},d=l=>{var u=Iy();k(()=>Oe(u,"src",e.icon)),Ct("error",u,o),ta(u),y(l,u)};R(a,l=>{s(i)?l(r):l(d,!1)})}y(t,n)}function Uf(t,e){O(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,l1),n=m(e,"ref",15),a=v(()=>o()===l1),r=v(()=>s(a)||i()),d=v(()=>s(a)?"btn-full-opacity":"");No(t,{get disabled(){return s(r)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,u)=>{let f=v(()=>{var $;return($=e.testId)!=null?$:e.id});Bt(l,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return s(f)},children:($,p)=>{ya($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var d1=t=>!!t.buttonComponent;var $s={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ru=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))a.set(Vr(t,i,n,o))};var Py=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Ay={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;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 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Wf(t,e){var ka,Fs;O(e,!0),q(t,Ay);let[i,o]=He(),n=()=>S(G,"$disabledControls$",i),a=()=>S(mo,"$adPlaybackState",i),r=()=>S(ut,"$playbackState$",i),d=()=>S(To,"$currentSubtitle$",i),l=()=>S(oi,"$isEnded$",i),u=()=>S(Ii,"$currentGridType$",i),f=()=>S(di,"$isLive$",i),$=()=>S(Co,"$chromecastState$",i),p=()=>S(Ki,"$isPictureInPictureActive",i),_=()=>S(Qi,"$pictureInPictureType$",i),w=()=>S(Vi,"$availableSubtitlesList$",i),b=()=>S(Ri,"$contextMenuOpenedByKeyboard$",i),C=()=>S(fi,"$showContextMenuBtn$",i),T=()=>S(mr,"$playerSize",i),I=()=>S(ei,"$isRewindableLive$",i),M=()=>S(rt,"$isActiveLive$",i),P=()=>S(Ho,"$graphIsOpened$",i),E=()=>S(Zt,"$contextMenuVisible$",i),V=()=>S(Xt,"$isFullscreen",i),W=()=>S($i,"$autoplayNextEnabled",i),K=()=>S(s(Uo),"$prevButton",i),U=()=>S(s(sr),"$replayButton",i),j=()=>S(s(Hr),"$playButton",i),ae=()=>S(s(ki),"$nextButton",i),Y=()=>S(s(is),"$playPrevChapterButton",i),de=()=>S(s(Fr),"$seekToInteractiveButton",i),le=()=>S(s($r),"$interactiveGraphButton",i),Me=()=>S(s(_t),"$liveButton",i),Ne=()=>S(s(si),"$time",i),_e=()=>S(s(zo),"$episodes",i),ce=()=>S(s(Wo),"$vkLogo",i),Le=()=>S(s(Hi),"$volume",i),se=()=>S(s(On),"$subtitles",i),N=()=>S(s(on),"$settings",i),Se=()=>S(s(Hn),"$context",i),$e=()=>S(s(Fi),"$fullscreen",i),Ke=()=>S(s(nn),"$chromecast",i),ne=()=>S(Xo,"$additionalDesktopControlPanelRightButtons$",i),pe=()=>S(Oi,"$isInteractiveTime$",i),ye=()=>S(Lt,"$settingsMenuVisible",i),Z=()=>S(io,"$settingButtonRef$",i),qe=()=>S(ci,"$startedByKeyboard$",i),et=()=>S(ri,"$isAudioAvailable$",i),Ie=()=>S(Mt,"$fakeIsPlaying$",i),ie=()=>S(Oo,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>S(Vt,"$adPosition",i),Qe=()=>S(Nt,"$position$",i),at=()=>S(tt,"$adDuration",i),lt=()=>S(je,"$duration$",i),nt=m(e,"playerControlsWrapperRef",15,void 0),Tt=m(e,"playerControlsRef",15,void 0),pt=m(e,"isAds",3,!1),Qt=m(e,"logoTargetUrl",3,""),ni=m(e,"isOneVideoPlaylist",3,!1),At=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Mt}=uo(),ee=Ee(),It=uo(),X=Wt(),ue=ee.actions.internal.toggleMuted,Ae=ee.actions.internal.togglePlay,De=ee.actions.internal.pause,fe=ee.actions.internal.toggleSubtitle,Ye=(ka=ee.callbacks)==null?void 0:ka.onAudioDoesNotExistHint,Je=(Fs=ee.callbacks)==null?void 0:Fs.onAudioDisabledHint,je=ee.state.duration$,Nt=ee.state.positionWithScrubbing$,ut=ee.state.playbackState$,ri=ee.state.isAudioAvailable$,ot=ee.state.isAudioDisabled,oi=ee.state.isEnded$,di=ee.state.isLive$,rt=ee.state.isActiveLive$,ei=ee.state.isRewindableLive$,{isActive$:Ki,type$:Qi}=It.pictureInPicture$,Lt=ee.ui.settingsMenu.visible$,gt=ee.ui.settingsMenu.openedByBtnKeyboard$,Dt=ee.ui.controls,fo=ee.actions.internal.getVideoEpisodes(),Co=ee.state.chromecastState$,Vi=ee.state.availableSubtitlesList$,To=ee.state.currentSubtitle$,G=Dt.disabledControls$,Zt=ee.ui.contextMenu.visible$,fi=ee.ui.contextMenu.showContextMenuBtn$,Ri=ee.ui.contextMenu.openedByBtnKeyboard$,ci=ee.ui.startedByKeyboard$,ui=ee.ui.controlBlocks,ft=ee.ui.t,tt=ee.ads.duration,Vt=ee.ads.position,mo=ee.ads.playbackState,Xt=ee.ui.isFullscreen,mr=ee.ui.playerSize,Ii=ee.ui.currentGridType$,Xo=ee.ui.additionalDesktopControlPanelRightButtons$,$i=ee.ui.autoplayNextEnabled$,ht=ee.actions.internal.getVideoElement,Ei=ee.actions.internal.replayInteractive,Jo=ee.actions.internal.prevVideoClick,Gi=ee.actions.internal.nextVideoClick,yi=ee.state.isInteractive,Oi=ee.state.isInteractiveTime$,Do=ee.state.showInteractiveGraph,Io=ee.state.showSeekToInteractive,An=ee.state.showPlayPrevChapter,Eo=ee.state.showInteractiveTimeIndicator,hn=ee.state.playPrevChapterDisabledTooltip,Oo=It.seekToInteractiveDisabledTooltip$,Ho=It.graphIsOpened$,ko=X.features.interactiveResponsiveUi,Nr=v(()=>n().has("EPISODE_BUTTON")),vr=v(()=>n().has("GRAPH_BUTTON")),Xn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Jn=v(()=>n().has("PLAY_BUTTON")),er=v(()=>n().has("REPLAY_BUTTON")),Mn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Dr=()=>ee.actions.internal.toggleChromecast(),Ln=v(()=>pt()?a()==="playing":r()===zf.PLAYING),Bi=v(()=>d().value!=="off"),en=v(()=>l()&&!pt()||yi),_n=v(()=>ko?s(en)&&qi(u(),"m"):s(en)),Vn=v(()=>!l()||yi||pt()),bn=v(()=>qi(u(),"m")),Rn=v(()=>e.showNextPrevButtons&&qi(u(),"m")&&!pt()&&e.nextButtonActive),tn=v(()=>e.showNextPrevButtons&&qi(u(),"m")&&!pt()&&e.prevButtonActive),tr=v(()=>!pt()&&!!f()),Bn=v(()=>$()!==c1.NOT_AVAILABLE&&!(p()&&_()===1)&&qi(u(),"m")&&!yi),eo=v(()=>e.showAutoplayNext&&!ni()&&qi(u(),"s")),Yi=v(()=>w().length>0&&qi(u(),"m")),gr=v(()=>b()||C()),ct=v(()=>qi(u(),"s")&&!pt()),ti=v(()=>!e.logoHidden&&!pt()),hr=v(()=>X.features.fullscreen&&(e.logoHidden||qi(u(),ko?"xs":"s"))&&!(p()&&_()===1)&&(yi?At():!0)),$n=v(()=>(!f()||pt())&&!(X.features.interactiveHideTime&&yi)),Po=v(()=>T().width>100),vo=v(()=>Do&&qi(u(),"m")),Nn=v(()=>ko?Io&&qi(u(),"s"):Io),Ao=v(()=>ko?An&&qi(u(),"s"):An),Dn=v(()=>!pt()&&!f()&&!!(fo!=null&&fo.length)&&s(bn)&&!s(Nr)),Mo=v(()=>!I()||!!M()),yn=v(()=>P()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),ir=v(()=>E()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),or=(yt,bt)=>yt?bt&&bt===zf.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),_r=v(()=>or(s(Mo),r())),nr=v(()=>X.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),Fo=v(()=>s(Bi)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Or=v(()=>V()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),rr=v(()=>$()===c1.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),br=v(()=>W()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),Lo=J(0),Gt=ve({}),go=ve({}),Uo=v(()=>Dt.prevButton),sr=v(()=>Dt.replayButton),Hr=v(()=>Dt.playButton),ki=v(()=>Dt.nextButton),is=v(()=>Dt.playPrevChapterButton),Fr=v(()=>Dt.seekToInteractiveButton),$r=v(()=>Dt.interactiveGraphButton),_t=v(()=>Dt.liveButton),si=v(()=>Dt.time),zo=v(()=>Dt.episodes),Wo=v(()=>Dt.vkLogo),Hi=v(()=>Dt.volume),On=v(()=>Dt.subtitles),on=v(()=>Dt.settings),Hn=v(()=>Dt.context),Fi=v(()=>Dt.fullscreen),nn=v(()=>Dt.chromecast),Ze=v(()=>({prevButton:K()?K().right-K().left:0,replayButton:U()?U().right-U().left:0,playButton:j()?j().right-j().left:0,nextButton:ae()?ae().right-ae().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Ne()?Ne().right-Ne().left:0,episodes:_e()?_e().right-_e().left:0,vkLogo:ce()?ce().right-ce().left:0,volume:Le()?Le().right-Le().left:0,subtitles:se()?se().right-se().left:0,settings:N()?N().right-N().left:0,context:Se()?Se().right-Se().left:0,fullscreen:$e()?$e().right-$e().left:0,chromecast:Ke()?Ke().right-Ke().left:0,additionalButtons:ne().length?ne().reduce(yt=>[...yt,40],[]):[]})),Rt=J(0);We(()=>{(!s(Rt)||s(Rt)<s(Ze).time)&&wt(()=>D(Rt,ve(s(Ze).time)))});let mi=J(!1);We(()=>{let yt=0;s(Dn)&&(qi(u(),"xl")?yt=s(Ze).time:yt=60);let bt=s(Ze).prevButton+s(Ze).playButton+s(Ze).nextButton+s(Ze).seekToInteractiveButton+s(Ze).interactiveGraphButton+s(Ze).liveButton+s(Rt)+yt;D(mi,ve(s($n)&&s(Lo)>=bt))});let qo=v(()=>s(mi)&&qi(u(),"m")),to=u1(dl,260),ho=u1(ru,260);We(()=>{T(),pe(),to(ht(),Dt,Gt,e.showControls),ho(ht(),ui,go,e.showControls)}),We(()=>{go.bottom=nt()});let io=re();We(()=>{ye(),Z()&&wt(()=>il(Z(),ye(),gt))});let Ko;We(()=>{qe(),wt(()=>ou(ci,qe(),Ko))});function Vo(){Rs({isAudioDisabled:ot,isAudioAvailable:et(),isAds:pt(),audioIsNotExistHintCallback:Ye,audioDisabledHintCallback:Je})&&ue()}let bi=yi?Ei:Ae,ji=v(()=>Ie()!==null),Ro=v(()=>s(ji)?Ie():s(Ln)),xn=v(()=>s(Ro)?ft("tooltip_pause"):ft("tooltip_play")),Ui=ft("tooltip_episodes"),yr=v(()=>{var yt,bt,oo,Go;return s(tn)?{id:"prevButton",type:"desktop-control-panel-left",weight:_s.prevButton,buttonComponent:$a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Jo.bind(null,!0)},tooltipEnabled:!((bt=(yt=ee.callbacks)==null?void 0:yt.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((Go=(oo=ee.callbacks)==null?void 0:oo.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var no,ai,Ni;(Ni=(ai=(no=ee.callbacks)==null?void 0:no.uiInfo)==null?void 0:ai.onPrevButtonMouseEnter)==null||Ni.call(ai,Vr(ht(),Gt,"prevButton",e.showControls))},mouseLeave:()=>{var no,ai,Ni;(Ni=(ai=(no=ee.callbacks)==null?void 0:no.uiInfo)==null?void 0:ai.onPrevButtonMouseLeave)==null||Ni.call(ai,Vr(ht(),Gt,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ur=v(()=>s(_n)?{id:"replayButton",type:"desktop-control-panel-left",weight:_s.replayButton,buttonComponent:cl,buttonComponentProps:{disabled:s(er),click:bi},tooltipText:ft("tooltip_restart"),disabled:s(er)}:void 0),ar=v(()=>s(Vn)?{id:"playButton",type:"desktop-control-panel-left",weight:_s.playButton,buttonComponent:ul,buttonComponentProps:{disabled:s(Jn),isPlaying:s(Ln),click:Ae},tooltipText:s(xn),disabled:s(Jn)}:void 0),rn=v(()=>{var yt,bt,oo,Go;return s(Rn)?{id:"nextButton",type:"desktop-control-panel-left",weight:_s.nextButton,buttonComponent:$a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Gi.bind(null,!0)},tooltipEnabled:!((bt=(yt=ee.callbacks)==null?void 0:yt.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((Go=(oo=ee.callbacks)==null?void 0:oo.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var no,ai,Ni;(Ni=(ai=(no=ee.callbacks)==null?void 0:no.uiInfo)==null?void 0:ai.onNextButtonMouseEnter)==null||Ni.call(ai,Vr(ht(),Gt,"nextButton",e.showControls))},mouseLeave:()=>{var no,ai,Ni;(Ni=(ai=(no=ee.callbacks)==null?void 0:no.uiInfo)==null?void 0:ai.onNextButtonMouseLeave)==null||Ni.call(ai,Vr(ht(),Gt,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),zr=v(()=>yi&&s(Ao)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:_s.playPrevChapterButton,buttonComponent:$d,buttonComponentProps:{disabled:s(Mn),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(hn),disabled:s(Mn)}:void 0),xr=v(()=>yi&&s(Nn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:_s.seekToInteractiveButton,buttonComponent:xd,buttonComponentProps:{disabled:s(Xn),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:s(Xn),disabledTooltipContent:ft(ie())}:void 0),Zi=v(()=>yi&&s(vo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:_s.interactiveGraphButton,buttonComponent:wd,buttonComponentProps:{disabled:s(vr),click:Ho.toggle,graphIsOpened:P()},tooltipText:s(yn)}:void 0),Qo=v(()=>s(tr)?{id:"liveButton",type:"desktop-control-panel-left",weight:_s.liveButton,buttonComponent:Sd,buttonComponentProps:{isLiveActive:s(Mo),ariaLabel:s(_r)},tooltipText:s(_r),disabled:s(Mo)&&r()===zf.PLAYING}:void 0),Fn=v(()=>[s(yr),s(Ur),s(ar),s(rn),s(zr),s(xr),s(Zi),s(Qo)].filter(yt=>!!yt).sort(pa)),lr=v(()=>s(ti)?{id:"vkLogo",type:"desktop-control-panel-right",weight:$s.vkLogo,buttonComponent:ud,buttonComponentProps:{targetUrl:Qt(),logoClickable:e.logoClickable,click:De},tooltipText:s(nr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Wr=v(()=>s(eo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:$s.autoplayNext,buttonComponent:yd,tooltipText:s(br)}:void 0),qr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:$s.volume,buttonComponent:hf,buttonComponentProps:{click:Vo,isAds:pt()}})),wr=v(()=>s(Yi)?{id:"subtitles",type:"desktop-control-panel-right",weight:$s.subtitles,buttonComponent:pf,buttonComponentProps:{isSubtitlesEnabled:s(Bi),click:fe},tooltipText:s(Fo)}:void 0),ke=v(()=>s(ct)?{id:"settings",type:"desktop-control-panel-right",weight:$s.settings,buttonComponent:al,buttonComponentProps:{ref$:io},tooltipText:ye()?void 0:ft("tooltip_settings_off")}:void 0),xe=v(()=>X.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:$s.context,buttonComponent:Bf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:ft("aria_label_context_menu")},className:s(gr)?"":"out-of-view",tooltipText:s(ir)}:void 0),$t=v(()=>s(hr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:$s.fullscreen,buttonComponent:cd,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:s(Or)}:void 0),qt=v(()=>s(Bn)?{id:"chromecast",type:"desktop-control-panel-right",weight:$s.chromecast,buttonComponent:pd,buttonComponentProps:{state:$(),click:Dr},tooltipText:s(rr)}:void 0),Pi=v(()=>[s(lr),s(Wr),s(qr),s(wr),s(ke),s(xe),s($t),s(qt),...ne()].filter(yt=>!!yt).sort(pa));var xi=Py(),Ue=ge(xi);let mt;var pi=h(Ue);let sn=v(()=>!s(Po));_a(pi,{get isHidden(){return s(sn)},get isAds(){return pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Gt.timeline},set ref(yt){Gt.timeline=yt}});var Xi=A(pi,2),Un=h(Xi),Kr=h(Un);Si(Kr,17,()=>s(Fn),yt=>yt.id,(yt,bt)=>{nu(yt,{get buttonComponent(){return s(bt).buttonComponent},get buttonComponentProps(){return s(bt).buttonComponentProps},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(bt).disabled},get className(){return s(bt).className},get tooltipEnabled(){return s(bt).tooltipEnabled},get mouseEnter(){return s(bt).mouseEnter},get mouseLeave(){return s(bt).mouseLeave},get ref(){return Gt[s(bt).id]},set ref(oo){Gt[s(bt).id]=oo}})});var Sr=A(Kr,2);{var Ji=yt=>{let bt=v(()=>pt()?Ve():Qe()),oo=v(()=>pt()?at():lt());ld(yt,{isMobile:!1,get showDuration(){return s(qo)},get position(){return s(bt)},get duration(){return s(oo)},get ref(){return Gt.time},set ref(Go){Gt.time=Go}})};R(Sr,yt=>{s($n)&&yt(Ji)})}var Ai=A(Sr,2);let wn=v(()=>!s(Dn));No(Ai,{className:"w-max",get disabled(){return s(wn)},tooltipContent:Ui,get ref(){return Gt.episodes},set ref(yt){Gt.episodes=yt},children:(yt,bt)=>{var oo=Fe(),Go=ge(oo);{var no=ai=>{md(ai,{get position(){return Qe()},get duration(){return lt()},timeCodes:fo})};R(Go,ai=>{s(Dn)&&ai(no)})}y(yt,oo)},$$slots:{default:!0}}),g(Un);var zn=A(Un,2);Si(zn,21,()=>s(Pi),yt=>yt.id,(yt,bt)=>{var oo=Fe(),Go=ge(oo);{var no=Ni=>{nu(Ni,{get buttonComponent(){return s(bt).buttonComponent},get buttonComponentProps(){return s(bt).buttonComponentProps},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(bt).disabled},get className(){return s(bt).className},get ref(){return Gt[s(bt).id]},set ref(ys){Gt[s(bt).id]=ys}})},ai=Ni=>{let ys=v(()=>!!s(bt).disabled);Uf(Ni,{get id(){return s(bt).id},get testId(){return s(bt).testId},get icon(){return s(bt).icon},get ariaLabel(){return s(bt).ariaLabel},get tooltipText(){return s(bt).tooltipText},get disabledTooltipContent(){return s(bt).disabledTooltipContent},get disabled(){return s(ys)},get onClick(){return s(bt).onClick},get ref(){return Gt[s(bt).id]},set ref(vl){Gt[s(bt).id]=vl}})};R(Go,Ni=>{d1(s(bt))?Ni(no):Ni(ai,!1)})}y(yt,oo)}),g(zn),g(Xi),it(Xi,yt=>Tt(yt),()=>Tt()),g(Ue),it(Ue,yt=>nt(yt),()=>nt());var Cr=A(Ue,2);{var wi=yt=>{_d(yt,{get ref(){return Gt.interactiveTimeIndicator},set ref(bt){Gt.interactiveTimeIndicator=bt}})};R(Cr,yt=>{Eo&&yt(wi)})}k(yt=>mt=te(Ue,1,"wrapper-bottom svelte-f6e8ix",null,mt,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Zr(Un,"clientWidth",yt=>D(Lo,yt)),y(t,xi),H(),o()}import{ChromecastState as f1,PlaybackState as m1}from"@vkontakte/videoplayer-core/es2015";import{noop as p1}from"@vkontakte/videoplayer-shared/es2015";var My=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Ly=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Vy={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 qf(t,e){q(t,Vy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,p1),n=v(()=>o()===p1),a=v(()=>s(n)||i()),r=J(!1),d=()=>{D(r,!0)},l=v(()=>s(n)?"btn-full-opacity":"");Bt(t,{get className(){return s(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(a)},get testId(){return e.testId},children:(u,f)=>{var $=Fe(),p=ge($);{var _=b=>{var C=My();y(b,C)},w=b=>{var C=Ly();k(()=>Oe(C,"src",e.iconUrl)),Ct("error",C,d),ta(C),y(b,C)};R(p,b=>{s(r)?b(_):b(w,!1)})}y(u,$)},$$slots:{default:!0}})}var Ry=Te('<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 Kf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i))),y(t,o)}import{noop as By}from"@vkontakte/videoplayer-shared/es2015";var Ny=L('<span class="text svelte-6gmlbk"> </span>'),Dy=L('<div aria-hidden="true"><!> <!></div>'),Oy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function su(t,e){O(e,!0),q(t,Oy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,By),a=m(e,"ref",15,void 0),d=Ee().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=v(()=>o()?Bs:Kf),f=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Bt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(l)},role:"button",get ref(){return a()},set ref($){a($)},children:($,p)=>{var _=Dy();let w=v(()=>s(u)),b;var C=h(_);Ci(C,()=>s(w),(M,P)=>{P(M,{})});var T=A(C,2);{var I=M=>{var P=Ny(),E=h(P,!0);g(P),k(V=>he(E,V),[()=>d("mobile_unmute")]),y(M,P)};R(T,M=>{o()&&M(I)})}g(_),k(M=>b=te(_,1,"container svelte-6gmlbk",null,b,M),[()=>({expanded:o()})]),y($,_)},$$slots:{default:!0}}),H()}var Hy=Te('<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 Qf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),y(t,o)}var Fy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
|
|
252
|
+
svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Gf(t,e){q(t,Fy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Qf(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Uy}from"@vkontakte/videoplayer-shared/es2015";function Yf(t,e){O(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Uy),a=F("menu_pip");Bt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(r){i(r)},children:(r,d)=>{Gf(r,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as v1}from"@vkontakte/videoplayer-shared/es2015";var zy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},Wy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},qy=L("<div><!></div>"),Ky=L("<div><!></div>"),Qy=L("<div><!></div>"),Gy=L("<!> <!> <!>",1),Yy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),jy=L("<div><!></div>"),Zy=L('<div class="wrapper-middle svelte-9w6h1i"><!></div>'),Xy=L("<!> <!> <div><!></div>",1),Jy=L('<div aria-hidden="true">\xB7</div> <!>',1),e4=L('<!> <!> <div><div><div><div class="controls-group svelte-9w6h1i"><!> <!> <!> <!></div> <div class="controls-group svelte-9w6h1i"><!> <!></div></div> <!></div></div> <!>',1),t4={hash:"svelte-9w6h1i",code:`.wrapper-bottom.svelte-9w6h1i {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);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-9w6h1i > :where(.svelte-9w6h1i) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9w6h1i {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9w6h1i {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-9w6h1i {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-9w6h1i {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9w6h1i,
|
|
253
|
+
.wrapper-middle-left-second.svelte-9w6h1i,
|
|
254
|
+
.wrapper-middle-right.svelte-9w6h1i {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-9w6h1i {left:12px;}.wrapper-middle-left-second.svelte-9w6h1i {left:64px;}.wrapper-middle-right.svelte-9w6h1i {right:12px;}.controls.svelte-9w6h1i {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-9w6h1i {display:flex;}.controls-group.svelte-9w6h1i > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9w6h1i {visibility:hidden;opacity:0;}.controls-hidden.svelte-9w6h1i {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9w6h1i {transition:none;}.overlay-mobile.svelte-9w6h1i {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);}
|
|
259
255
|
|
|
260
|
-
|
|
256
|
+
|
|
257
|
+
@media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-9w6h1i {top:16px;}.wrapper-top-left.fullscreen.svelte-9w6h1i {top:16px;}.controls-wrapper.fullscreen.svelte-9w6h1i {position:absolute;bottom:30px;width:calc(100% - 8px);}
|
|
261
258
|
}
|
|
262
259
|
|
|
263
|
-
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-
|
|
264
|
-
}`};function qf(t,e){var ki,dr;U(e,!0),K(t,jy);let[i,o]=Ne(),n=()=>S(Vt,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Di,"$disabledControls$",i),s=()=>S(Zt,"$playbackState$",i),d=()=>S(mo,"$adPlaybackState",i),l=()=>S(Nt,"$isEnded$",i),u=()=>S(yn,"$playerSize",i),f=()=>S(qe,"$scrubbingInProgress",i),b=()=>S(et,"$chromecastState$",i),p=()=>S(pt,"$isPictureInPictureActive",i),$=()=>S(Ze,"$pictureInPictureType$",i),x=()=>S(Ge,"$mobileNotReportControlHidden$",i),_=()=>S(st,"$playerPhase",i),C=()=>S(Lt,"$currentGridType$",i),T=()=>S(O,"$isLive$",i),k=()=>S(We,"$settingsMenuVisible",i),P=()=>S(Be,"$isRewindableLive$",i),A=()=>S(se,"$isActiveLive$",i),I=()=>S(Oi,"$isInteractiveTime$",i),V=()=>S(li,"$isAudioAvailable$",i),q=()=>S(Xi,"$settingButtonRef$",i),G=()=>S(qi,"$startedByKeyboard$",i),H=()=>S(nn,"$isFullscreen",i),Z=()=>S(it,"$mobileUnmuteButtonVisible",i),re=()=>S(Je,"$volumeHidden",i),X=()=>S(be,"$muted$",i),ce=()=>S(tt,"$mobileUnmuteButtonExpanded",i),ue=()=>S(wo,"$additionalButtons$",i),Ve=()=>S(ei,"$crashed$",i),Me=()=>S(no,"$graphIsOpened$",i),_e=()=>S(Bt,"$adPosition",i),ae=()=>S(_t,"$adDuration",i),Le=()=>S(bt,"$position$",i),ne=()=>S(It,"$duration$",i),B=m(e,"playerControlsWrapperRef",15,void 0),$e=m(e,"playerControlsRef",15,void 0),de=m(e,"isAds",3,!1),Ke=m(e,"logoTargetUrl",3,""),te=m(e,"isOneVideoPlaylist",3,!1),ve=m(e,"customFullscreenSupported",3,!0),Y=Ie(),ie=fo(),He=Kt(),je=Y.actions.internal.toggleMuted,ye=Y.actions.internal.togglePlay,Se=Y.actions.internal.pause,Re=Y.actions.internal.prevVideoClick,Ye=Y.actions.internal.nextVideoClick,ct=(ki=Y.callbacks)==null?void 0:ki.onAudioDoesNotExistHint,ut=(dr=Y.callbacks)==null?void 0:dr.onAudioDisabledHint,st=Y.playerPhase,It=Y.state.duration$,bt=Y.state.positionWithScrubbing$,Zt=Y.state.playbackState$,li=Y.state.isAudioAvailable$,Et=Y.state.isAudioDisabled,Nt=Y.state.isEnded$,O=Y.state.isLive$,be=Y.state.muted$,se=Y.state.isActiveLive$,Be=Y.state.isRewindableLive$,qe=Y.ui.scrubbingInProgress,Ge=Y.ui.mobileNotReportControlHidden$,{isActive$:pt,type$:Ze}=ie.pictureInPicture$,tt=Y.ui.mobileUnmuteButtonExpanded,it=Y.ui.mobileUnmuteButtonVisible,We=Y.ui.settingsMenu.visible$,ht=Y.ui.settingsMenu.openedByBtnKeyboard$,Ut=Y.ui.controls,{volume:Je}=Y.ui.hiddenControls,Yt=Y.actions.internal.getVideoEpisodes(),ni=Y.webApi.pictureInPictureApi,et=Y.state.chromecastState$,ei=Y.state.crashed$,Di=Ut.disabledControls$,qi=Y.ui.startedByKeyboard$,Lt=Y.ui.currentGridType$,_t=Y.ads.duration,Bt=Y.ads.position,mo=Y.ads.playbackState,nn=Y.ui.isFullscreen,yn=Y.ui.playerSize,wo=Y.ui.additionalButtonsDeprecated$,j=Y.actions.internal.getVideoElement,ti=Y.actions.internal.replayInteractive,di=Y.state.isInteractive,Oi=Y.state.isInteractiveTime$,pi=Y.state.showInteractiveGraph,mt=Y.state.showSeekToInteractive,vi=Y.state.showPlayPrevChapter,Xe=Y.state.showInteractiveTimeIndicator,Vt=ie.seekToInteractiveDisabledTooltip$,no=ie.graphIsOpened$,ri=v(()=>F(Y.state.playPrevChapterDisabledTooltip)),or=v(()=>F(n())),So=v(()=>a().has("EPISODE_BUTTON")),zo=v(()=>a().has("GRAPH_BUTTON")),fi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),St=v(()=>a().has("PLAY_BUTTON")),Ii=v(()=>a().has("REPLAY_BUTTON")),Mo=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),gi=v(()=>s()===l1.PLAYING),Lo=v(()=>d()==="paused"),Wi=v(()=>l()&&!de()&&!di),Co=v(()=>!l()||de()),To=v(()=>e.showNextPrevButtons&&!de()&&e.prevButtonActive),Dn=v(()=>e.showNextPrevButtons&&!de()&&e.nextButtonActive),Io=v(()=>u().width>300),xn=v(()=>u().width>400),Zi=v(f),Vo=v(()=>b()!==a1.NOT_AVAILABLE&&!(p()&&$()===1)&&!x()&&!di),rn=v(()=>_()==="LiveWaitingStart"),Tr=v(()=>!!ni&&b()!==a1.CONNECTED&&!x()&&($()===1&&r(rn)||!r(rn))&&!r(Zi)&&!di),nr=v(()=>!r(Zi)&&Yi(C(),"s")),On=v(()=>!e.logoHidden&&u().width>350),wn=v(()=>He.features.fullscreen&&!(p()&&$()===1)&&(di?ve():!0)&&!r(Zi)),Hn=v(()=>(!T()||de())&&u().width>260&&!r(Zi)&&!(He.features.interactiveHideTime&&di)),rr=v(()=>k()||e.showControls),ro=v(()=>!de()&&!T()&&!!(Yt!=null&&Yt.length)&&r(Io)&&!r(So)&&!r(Zi)),Ro=v(()=>!P()||!!A()),Sn=v(()=>pi&&Yi(C(),"m")),ot=me({}),Cn=Ny(nl,260);Fe(()=>{u(),I(),Cn(j(),Ut,ot,e.showControls)});let Fn=()=>Y.actions.internal.toggleChromecast();function sn(){ws({isAudioDisabled:Et,audioDisabledHintCallback:ut,isAudioAvailable:V(),audioIsNotExistHintCallback:ct})&&je()}function sr(){return xt(this,null,function*(){ni!=null&&ni.isActive()?yield ni==null?void 0:ni.remove():yield ni==null?void 0:ni.request()})}function an(){!Et&&V()&&it.set(!1),sn()}let ln=J(""),dn=(vt,zt)=>{if(!vt){D(ln,me(F("tooltip_live")));return}zt&&zt===l1.PAUSED&&D(ln,me(F("tooltip_play")))};Fe(()=>{dn(r(Ro),s())});let Xi=le();Fe(()=>{q()&&Za(q(),k(),ht)}),Fe(()=>{Jc(qi,G(),ot.playButton)});var Ki=Gy(),cn=fe(Ki);{var Un=vt=>{var zt=zy(),Mi=fe(zt);let ko;var nt=M(Mi,2);let Gt;var hi=h(nt);{var Ji=lt=>{let qt=v(()=>V()&&!Et&&ce());tu(lt,{get muted(){return X()},get expanded(){return r(qt)},click:an,get ref(){return ot.volume},set ref(Vi){ot.volume=Vi}})};R(hi,lt=>{(!V()||Z())&&!re()&<(Ji)})}g(nt);var eo=M(nt,2);let Li;var Ci=h(eo);Ei(Ci,1,ue,({iconUrl:lt,ariaLabel:qt,testId:Vi,onClick:Eo,tooltip:Ce})=>lt,(lt,qt)=>{let Vi=()=>r(qt).iconUrl,Eo=()=>r(qt).ariaLabel,Ce=()=>r(qt).testId,Mt=()=>r(qt).onClick,bi=()=>r(qt).tooltip,$i=v(()=>{var _i;return(_i=Eo())!=null?_i:bi()});Of(lt,{get iconUrl(){return Vi()},get ariaLabel(){return r($i)},get testId(){return Ce()},get onClick(){return Mt()}})});var Qi=M(Ci,2);{var si=lt=>{gd(lt,{get ref(){return ot.autoplayNextToggle},set ref(qt){ot.autoplayNextToggle=qt}})};R(Qi,lt=>{e.showAutoplayNext&&!te()&<(si)})}var Fi=M(Qi,2);{var fn=lt=>{ad(lt,{isMobile:!0,click:Fn,get state(){return b()},get ref(){return ot.chromecast},set ref(qt){ot.chromecast=qt}})};R(Fi,lt=>{r(Vo)&<(fn)})}var cr=M(Fi,2);{var Qn=lt=>{zf(lt,{click:sr,get isPictureInPictureActive(){return p()},get ref(){return ot.pip},set ref(qt){ot.pip=qt}})};R(cr,lt=>{r(Tr)&<(Qn)})}var ur=M(cr,2);{var pr=lt=>{il(lt,{ref$:Xi})};R(ur,lt=>{Ve()&<(pr)})}var fr=M(ur,2);{var mr=lt=>{sd(lt,{click:Se,get targetUrl(){return Ke()},get logoClickable(){return e.logoClickable},get ref(){return ot.vkLogo},set ref(qt){ot.vkLogo=qt}})};R(fr,lt=>{r(On)&<(mr)})}g(eo);var Gn=M(eo,2);let jn;var Do=h(Gn);{var Ar=lt=>{let qt=v(()=>Re.bind(null,!0));ua(lt,{get click(){return r(qt)},type:"prev",isMobile:!0,get ref(){return ot.prevButton},set ref(Vi){ot.prevButton=Vi}})};R(Do,lt=>{r(To)&<(Ar)})}var Oo=M(Do,2);{var vr=lt=>{sl(lt,{get disabled(){return r(St)},click:ye,isMobile:!0,get isPlaying(){return r(gi)},get ref(){return ot.playButton},set ref(qt){ot.playButton=qt}})};R(Oo,lt=>{r(Co)&<(vr)})}var Mr=M(Oo,2);{var Lr=lt=>{rl(lt,{get disabled(){return r(Ii)},click:ye,isMobile:!0,get ref(){return ot.replayButton},set ref(qt){ot.replayButton=qt}})};R(Mr,lt=>{r(Wi)&<(Lr)})}var Vr=M(Mr,2);{var to=lt=>{let qt=v(()=>Ye.bind(null,!0));ua(lt,{get click(){return r(qt)},type:"next",isMobile:!0,get ref(){return ot.nextButton},set ref(Vi){ot.nextButton=Vi}})};R(Vr,lt=>{r(Dn)&<(to)})}g(Gn);var kn=M(Gn,2);{var Rr=lt=>{var qt=Uy(),Vi=fe(qt);{var Eo=_i=>{var Ee=Oy();let $t;Ee.__click=[By,Mo,e,ri];var jt=h(Ee);let Ti=v(()=>!e.showControls);vd(jt,{get hidden(){return r(Ti)},get disabled(){return r(Mo)},get click(){return e.playPrevChapter},get ref(){return ot.playPrevChapterButton},set ref(ci){ot.playPrevChapterButton=ci}}),g(Ee),E(ci=>$t=ee(Ee,1,"wrapper-middle-left svelte-1afsgkw",null,$t,ci),[()=>({fullscreen:H(),hidden:!e.showControls})]),y(_i,Ee)};R(Vi,_i=>{vi&&_i(Eo)})}var Ce=M(Vi,2);{var Mt=_i=>{var Ee=Hy();let $t;var jt=h(Ee);let Ti=v(()=>!e.showControls&&!Me());_d(jt,{get hidden(){return r(Ti)},get disabled(){return r(zo)},get click(){return no.toggle},get graphIsOpened(){return Me()},get ref(){return ot.interactiveGraphButton},set ref(ci){ot.interactiveGraphButton=ci}}),g(Ee),E(ci=>$t=ee(Ee,1,Ll(vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",$t,ci),[()=>({fullscreen:H(),hidden:!e.showControls&&!Me()})]),y(_i,Ee)};R(Ce,_i=>{r(Sn)&&_i(Mt)})}var bi=M(Ce,2);{var $i=_i=>{var Ee=Fy();let $t;Ee.__click=[Dy,fi,e,or];var jt=h(Ee);let Ti=v(()=>!e.showControls);hd(jt,{get hidden(){return r(Ti)},get disabled(){return r(fi)},get click(){return e.seekToInteractive},get ref(){return ot.seekToInteractiveButton},set ref(ci){ot.seekToInteractiveButton=ci}}),g(Ee),E(ci=>$t=ee(Ee,1,"wrapper-middle-right svelte-1afsgkw",null,$t,ci),[()=>({fullscreen:H(),hidden:!e.showControls})]),y(_i,Ee)};R(bi,_i=>{mt&&_i($i)})}y(lt,qt)};R(kn,lt=>{di&&!f()&<(Rr)})}E((lt,qt,Vi,Eo)=>{ko=ee(Mi,1,"overlay-mobile svelte-1afsgkw",null,ko,lt),Gt=ee(nt,1,"wrapper-top-left svelte-1afsgkw",null,Gt,qt),Li=ee(eo,1,"wrapper-top-right svelte-1afsgkw",null,Li,Vi),jn=ee(Gn,1,"wrapper-middle svelte-1afsgkw",null,jn,Eo)},[()=>({hidden:!r(rr)}),()=>({hidden:!e.showControls,fullscreen:H()}),()=>({hidden:!e.showControls&&!x(),fullscreen:H()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),y(vt,zt)};R(cn,vt=>{de()||vt(Un)})}var qo=M(cn,2);{var un=vt=>{var zt=Ky(),Mi=fe(zt);{var ko=Li=>{var Ci=qy();let Qi;var si=h(Ci);tu(si,{get muted(){return X()},expanded:!1,click:an,get ref(){return ot.volume},set ref(Fi){ot.volume=Fi}}),g(Ci),E(Fi=>Qi=ee(Ci,1,"wrapper-top-right svelte-1afsgkw",null,Qi,Fi),[()=>({fullscreen:H()})]),y(Li,Ci)};R(Mi,Li=>{Z()&&Li(ko)})}var nt=M(Mi,2);{var Gt=Li=>{var Ci=Wy(),Qi=h(Ci);let si=v(()=>!r(Lo));sl(Qi,{get disabled(){return r(St)},click:ye,isMobile:!0,get isPlaying(){return r(si)},get ref(){return ot.playButton},set ref(Fi){ot.playButton=Fi}}),g(Ci),y(Li,Ci)};R(nt,Li=>{r(Lo)&&Li(Gt)})}var hi=M(nt,2);let Ji;var eo=h(hi);ld(eo,{get position(){return _e()},get duration(){return ae()}}),g(hi),E(Li=>Ji=ee(hi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ji,Li),[()=>({fullscreen:H()})]),y(vt,zt)};R(qo,vt=>{de()&&d()!=="inactive"&&vt(un)})}var No=M(qo,2);let vo;var Hi=h(No);let zn;var so=h(Hi);ee(so,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Tn=h(so);{var qn=vt=>{Ao(vt,{get disabled(){return r(Ii)},get ref(){return ot.replayButton},set ref(zt){ot.replayButton=zt},children:(zt,Mi)=>{rl(zt,{get disabled(){return r(Ii)},click:ti})},$$slots:{default:!0}})};R(Tn,vt=>{di&&vt(qn)})}var pn=M(Tn,2);{var Ir=vt=>{Ao(vt,{get ref(){return ot.liveButton},set ref(zt){ot.liveButton=zt},children:(zt,Mi)=>{bd(zt,{get isLiveActive(){return r(Ro)},isMobile:!0,get ariaLabel(){return r(ln)}})},$$slots:{default:!0}})};R(pn,vt=>{!de()&&T()&&vt(Ir)})}var Wo=M(pn,2);{var kr=vt=>{let zt=v(()=>de()?_e():Le()),Mi=v(()=>de()?ae():ne());od(vt,{get showDuration(){return r(xn)},get position(){return r(zt)},get duration(){return r(Mi)},isMobile:!0,get ref(){return ot.time},set ref(ko){ot.time=ko}})};R(Wo,vt=>{r(Hn)&&vt(kr)})}var Wn=M(Wo,2);let Kn=v(()=>!r(ro));Ao(Wn,{className:"w-max",get disabled(){return r(Kn)},get ref(){return ot.episodes},set ref(vt){ot.episodes=vt},children:(vt,zt)=>{var Mi=Oe(),ko=fe(Mi);{var nt=Gt=>{var hi=Qy(),Ji=M(fe(hi),2);dd(Ji,{get position(){return Le()},get duration(){return ne()},timeCodes:Yt}),y(Gt,hi)};R(ko,Gt=>{r(ro)&&Gt(nt)})}y(vt,Mi)},$$slots:{default:!0}});var ar=M(Wn,2);{var Er=vt=>{Ao(vt,{get ref(){return ot.settings},set ref(zt){ot.settings=zt},children:(zt,Mi)=>{il(zt,{ref$:Xi})},$$slots:{default:!0}})};R(ar,vt=>{r(nr)&&vt(Er)})}var In=M(ar,2);{var ii=vt=>{Ao(vt,{get ref(){return ot.fullscreen},set ref(zt){ot.fullscreen=zt},children:(zt,Mi)=>{rd(zt,{get click(){return e.toggleFullscreen},get isFullscreen(){return H()}})},$$slots:{default:!0}})};R(In,vt=>{r(wn)&&vt(ii)})}g(so),ft(so,vt=>$e(vt),()=>$e());var lr=M(so,2);la(lr,{get isAds(){return de()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return ot.timeline},set ref(vt){ot.timeline=vt}}),g(Hi),g(No),ft(No,vt=>B(vt),()=>B());var Pr=M(No,2);{var Bo=vt=>{fd(vt,{get ref(){return ot.interactiveTimeIndicator},set ref(zt){ot.interactiveTimeIndicator=zt}})};R(Pr,vt=>{Xe&&vt(Bo)})}E((vt,zt)=>{vo=ee(No,1,"wrapper-bottom svelte-1afsgkw",null,vo,vt),zn=ee(Hi,1,"controls-wrapper svelte-1afsgkw",null,zn,zt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:H()})]),y(t,Ki),z(),o()}at(["click"]);function yd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),b=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,d1),_=m(e,"onDisabledSeekToInteractiveClick",3,d1),T=Ie().ui.isMobile,k=J(!1);Wt(()=>{let V=setTimeout(()=>D(k,!0),0);return()=>clearTimeout(V)});var P=Oe(),A=fe(P);{var I=V=>{var q=Oe(),G=fe(q);{var H=re=>{qf(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},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 u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return b()},get customFullscreenSupported(){return p()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},Z=re=>{Df(re,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},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 u()},get isOneVideoPlaylist(){return b()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(X){s(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};R(G,re=>{n()?re(H):re(Z,!1)})}y(V,q)};R(A,V=>{r(k)&&V(I)})}y(t,P),z(),o()}var Yy=we('<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 Wf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),y(t,o)}function Kf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Zy=we('<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 Qf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),y(t,o)}var Xy=we('<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 Gf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),y(t,o)}function iu(t,e){let i=m(e,"isOff",3,!1);var o=Oe(),n=fe(o);{var a=d=>{Gf(d,{})},s=d=>{Qf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}y(t,o)}var Jy=we('<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 jf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),y(t,o)}function Yf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);jf(t,{get style(){return r(o)}})}var e4=we('<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 Zf(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=e4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(2),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),y(t,o)}function Xf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Zf(t,{get style(){return r(o)}})}var t4=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),i4=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),o4=L("<div><!></div>"),n4={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;
|
|
260
|
+
@media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9w6h1i {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9w6h1i {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9w6h1i {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9w6h1i {left:96px;}.wrapper-middle-right.fullscreen.svelte-9w6h1i {right:44px;}.controls-wrapper.fullscreen.svelte-9w6h1i {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
|
|
261
|
+
}`};function jf(t,e){var Fi,nn;O(e,!0),q(t,t4);let[i,o]=He(),n=()=>S(Gi,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Zt,"$disabledControls$",i),r=()=>S(It,"$playbackState$",i),d=()=>S(ft,"$adPlaybackState",i),l=()=>S(Ae,"$isEnded$",i),u=()=>S(Vt,"$playerSize",i),f=()=>S(je,"$scrubbingInProgress",i),$=()=>S(To,"$chromecastState$",i),p=()=>S(ut,"$isPictureInPictureActive",i),_=()=>S(ri,"$pictureInPictureType$",i),w=()=>S(Nt,"$mobileNotReportControlHidden$",i),b=()=>S(fo,"$chromecastHidden",i),C=()=>S(At,"$playerPhase",i),T=()=>S(gt,"$pipHidden",i),I=()=>S(Ri,"$currentGridType$",i),M=()=>S(Qi,"$vkLogoHidden",i),P=()=>S(De,"$isLive$",i),E=()=>S(di,"$settingsMenuVisible",i),V=()=>S(Je,"$isRewindableLive$",i),W=()=>S(Ye,"$isActiveLive$",i),K=()=>S(Xo,"$isInteractiveTime$",i),U=()=>S(X,"$isAudioAvailable$",i),j=()=>S(Mo,"$settingButtonRef$",i),ae=()=>S(fi,"$startedByKeyboard$",i),Y=()=>S(tt,"$isFullscreen",i),de=()=>S(oi,"$mobileUnmuteButtonVisible",i),le=()=>S(Ki,"$volumeHidden",i),Me=()=>S(fe,"$muted$",i),Ne=()=>S(ot,"$mobileUnmuteButtonExpanded",i),_e=()=>S(mo,"$additionalButtons$",i),ce=()=>S(Lt,"$autoplayNextToggleHidden",i),Le=()=>S(G,"$crashed$",i),se=()=>S(Dt,"$settingsHidden",i),N=()=>S(yi,"$graphIsOpened$",i),Se=()=>S(ui,"$adPosition",i),$e=()=>S(ci,"$adDuration",i),Ke=()=>S(ee,"$position$",i),ne=()=>S(Mt,"$duration$",i),pe=m(e,"playerControlsWrapperRef",15,void 0),ye=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),et=m(e,"isOneVideoPlaylist",3,!1),Ie=m(e,"customFullscreenSupported",3,!0),ie=Ee(),Ve=uo(),Qe=Wt(),at=ie.actions.internal.toggleMuted,lt=ie.actions.internal.togglePlay,nt=ie.actions.internal.pause,Tt=ie.actions.internal.prevVideoClick,pt=ie.actions.internal.nextVideoClick,Qt=(Fi=ie.callbacks)==null?void 0:Fi.onAudioDoesNotExistHint,ni=(nn=ie.callbacks)==null?void 0:nn.onAudioDisabledHint,At=ie.playerPhase,Mt=ie.state.duration$,ee=ie.state.positionWithScrubbing$,It=ie.state.playbackState$,X=ie.state.isAudioAvailable$,ue=ie.state.isAudioDisabled,Ae=ie.state.isEnded$,De=ie.state.isLive$,fe=ie.state.muted$,Ye=ie.state.isActiveLive$,Je=ie.state.isRewindableLive$,je=ie.ui.scrubbingInProgress,Nt=ie.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:ri}=Ve.pictureInPicture$,ot=ie.ui.mobileUnmuteButtonExpanded,oi=ie.ui.mobileUnmuteButtonVisible,di=ie.ui.settingsMenu.visible$,rt=ie.ui.settingsMenu.openedByBtnKeyboard$,ei=ie.ui.controls,{volume:Ki,vkLogo:Qi,autoplayNextToggle:Lt,pip:gt,settings:Dt,chromecast:fo}=ie.ui.hiddenControls,Co=ie.actions.internal.getVideoEpisodes(),Vi=ie.webApi.pictureInPictureApi,To=ie.state.chromecastState$,G=ie.state.crashed$,Zt=ei.disabledControls$,fi=ie.ui.startedByKeyboard$,Ri=ie.ui.currentGridType$,ci=ie.ads.duration,ui=ie.ads.position,ft=ie.ads.playbackState,tt=ie.ui.isFullscreen,Vt=ie.ui.playerSize,mo=ie.ui.additionalButtonsDeprecated$,Xt=ie.actions.internal.getVideoElement,mr=ie.actions.internal.replayInteractive,Ii=ie.state.isInteractive,Xo=ie.state.isInteractiveTime$,$i=ie.state.showInteractiveGraph,ht=ie.state.showSeekToInteractive,Ei=ie.state.showPlayPrevChapter,Jo=ie.state.showInteractiveTimeIndicator,Gi=Ve.seekToInteractiveDisabledTooltip$,yi=Ve.graphIsOpened$,Oi=ie.ui.controlBlocks,Do=v(()=>F(ie.state.playPrevChapterDisabledTooltip)),Io=v(()=>F(n())),An=v(()=>a().has("EPISODE_BUTTON")),Eo=v(()=>a().has("GRAPH_BUTTON")),hn=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Oo=v(()=>a().has("PLAY_BUTTON")),Ho=v(()=>a().has("REPLAY_BUTTON")),ko=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Nr=v(()=>r()===m1.PLAYING),vr=v(()=>d()==="paused"),Xn=v(()=>l()&&!Z()&&!Ii),Jn=v(()=>!l()||Z()),er=v(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Mn=v(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),Dr=v(()=>u().width>300),Ln=v(()=>u().width>400),Bi=v(f),en=v(()=>$()!==f1.NOT_AVAILABLE&&!(p()&&_()===1)&&!w()&&!Ii&&!b()),_n=v(()=>C()==="LiveWaitingStart"),Vn=v(()=>!!Vi&&$()!==f1.CONNECTED&&!w()&&(_()===1&&s(_n)||!s(_n))&&!s(Bi)&&!Ii&&!T()),bn=v(()=>!s(Bi)&&qi(I(),"s")),Rn=v(()=>!e.logoHidden&&u().width>350&&!M()),tn=v(()=>Qe.features.fullscreen&&!(p()&&_()===1)&&(Ii?Ie():!0)&&!s(Bi)),tr=v(()=>(!P()||Z())&&u().width>260&&!s(Bi)&&!(Qe.features.interactiveHideTime&&Ii)),Bn=v(()=>E()||e.showControls),eo=v(()=>!Z()&&!P()&&!!(Co!=null&&Co.length)&&s(Dr)&&!s(An)&&!s(Bi)),Yi=v(()=>!V()||!!W()),gr=v(()=>$i&&qi(I(),"m")),ct=ve({}),ti=ve({}),hr=v1(dl,260),$n=v1(ru,260);We(()=>{u(),K(),hr(Xt(),ei,ct,e.showControls),$n(Xt(),Oi,ti,e.showControls)});let Po=()=>ie.actions.internal.toggleChromecast();function vo(){return xt(this,null,function*(){Vi!=null&&Vi.isActive()?yield Vi==null?void 0:Vi.remove():yield Vi==null?void 0:Vi.request()})}function Nn(){(!ue&&U()||Z())&&oi.set(!1),Rs({isAudioDisabled:ue,audioDisabledHintCallback:ni,isAudioAvailable:U(),audioIsNotExistHintCallback:Qt,isAds:Z()})&&at()}let Ao=J(""),Dn=(Ze,Rt)=>{if(!Ze){D(Ao,ve(F("tooltip_live")));return}Rt&&Rt===m1.PAUSED&&D(Ao,ve(F("tooltip_play")))};We(()=>{Dn(s(Yi),r())});let Mo=re();We(()=>{j()&&il(j(),E(),rt)}),We(()=>{ou(fi,ae(),ct.playButton)});var yn=e4(),ir=ge(yn);{var or=Ze=>{var Rt=Yy(),mi=ge(Rt);let qo;var to=A(mi,2);let ho;var io=h(to);{var Ko=Ue=>{let mt=v(()=>U()&&!ue&&Ne());su(Ue,{get muted(){return Me()},get expanded(){return s(mt)},click:Nn,get ref(){return ct.volume},set ref(pi){ct.volume=pi}})};R(io,Ue=>{(!U()||de())&&!le()&&Ue(Ko)})}g(to),it(to,Ue=>ti.topLeft=Ue,()=>ti==null?void 0:ti.topLeft);var Vo=A(to,2);let bi;var ji=h(Vo);Si(ji,1,_e,({iconUrl:Ue,ariaLabel:mt,testId:pi,onClick:sn,tooltip:Xi})=>Ue,(Ue,mt)=>{let pi=()=>s(mt).iconUrl,sn=()=>s(mt).ariaLabel,Xi=()=>s(mt).testId,Un=()=>s(mt).onClick,Kr=()=>s(mt).tooltip,Sr=v(()=>{var Ji;return(Ji=sn())!=null?Ji:Kr()});qf(Ue,{get iconUrl(){return pi()},get ariaLabel(){return s(Sr)},get testId(){return Xi()},get onClick(){return Un()}})});var Ro=A(ji,2);{var xn=Ue=>{yd(Ue,{get ref(){return ct.autoplayNextToggle},set ref(mt){ct.autoplayNextToggle=mt}})};R(Ro,Ue=>{e.showAutoplayNext&&!et()&&!ce()&&Ue(xn)})}var Ui=A(Ro,2);{var yr=Ue=>{pd(Ue,{isMobile:!0,click:Po,get state(){return $()},get ref(){return ct.chromecast},set ref(mt){ct.chromecast=mt}})};R(Ui,Ue=>{s(en)&&Ue(yr)})}var Ur=A(Ui,2);{var ar=Ue=>{Yf(Ue,{click:vo,get isPictureInPictureActive(){return p()},get ref(){return ct.pip},set ref(mt){ct.pip=mt}})};R(Ur,Ue=>{s(Vn)&&Ue(ar)})}var rn=A(Ur,2);{var zr=Ue=>{al(Ue,{ref$:Mo})};R(rn,Ue=>{Le()&&!se()&&Ue(zr)})}var xr=A(rn,2);{var Zi=Ue=>{ud(Ue,{click:nt,get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return ct.vkLogo},set ref(mt){ct.vkLogo=mt}})};R(xr,Ue=>{s(Rn)&&Ue(Zi)})}g(Vo),it(Vo,Ue=>ti.topRight=Ue,()=>ti==null?void 0:ti.topRight);var Qo=A(Vo,2);let Fn;var lr=h(Qo);{var Wr=Ue=>{let mt=v(()=>Tt.bind(null,!0));$a(Ue,{get click(){return s(mt)},type:"prev",isMobile:!0,get ref(){return ct.prevButton},set ref(pi){ct.prevButton=pi}})};R(lr,Ue=>{s(er)&&Ue(Wr)})}var qr=A(lr,2);{var wr=Ue=>{ul(Ue,{get disabled(){return s(Oo)},click:lt,isMobile:!0,get isPlaying(){return s(Nr)},get ref(){return ct.playButton},set ref(mt){ct.playButton=mt}})};R(qr,Ue=>{s(Jn)&&Ue(wr)})}var ke=A(qr,2);{var xe=Ue=>{cl(Ue,{get disabled(){return s(Ho)},click:lt,isMobile:!0,get ref(){return ct.replayButton},set ref(mt){ct.replayButton=mt}})};R(ke,Ue=>{s(Xn)&&Ue(xe)})}var $t=A(ke,2);{var qt=Ue=>{let mt=v(()=>pt.bind(null,!0));$a(Ue,{get click(){return s(mt)},type:"next",isMobile:!0,get ref(){return ct.nextButton},set ref(pi){ct.nextButton=pi}})};R($t,Ue=>{s(Mn)&&Ue(qt)})}g(Qo),it(Qo,Ue=>ti.middle=Ue,()=>ti==null?void 0:ti.middle);var Pi=A(Qo,2);{var xi=Ue=>{var mt=Gy(),pi=ge(mt);{var sn=Ji=>{var Ai=qy();let wn;Ai.__click=[zy,ko,e,Do];var zn=h(Ai);let Cr=v(()=>!e.showControls);$d(zn,{get hidden(){return s(Cr)},get disabled(){return s(ko)},get click(){return e.playPrevChapter},get ref(){return ct.playPrevChapterButton},set ref(wi){ct.playPrevChapterButton=wi}}),g(Ai),k(wi=>wn=te(Ai,1,"wrapper-middle-left svelte-9w6h1i",null,wn,wi),[()=>({fullscreen:Y(),hidden:!e.showControls})]),y(Ji,Ai)};R(pi,Ji=>{Ei&&Ji(sn)})}var Xi=A(pi,2);{var Un=Ji=>{var Ai=Ky();let wn;var zn=h(Ai);let Cr=v(()=>!e.showControls&&!N());wd(zn,{get hidden(){return s(Cr)},get disabled(){return s(Eo)},get click(){return yi.toggle},get graphIsOpened(){return N()},get ref(){return ct.interactiveGraphButton},set ref(wi){ct.interactiveGraphButton=wi}}),g(Ai),k(wi=>wn=te(Ai,1,Dl(Ei?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9w6h1i",wn,wi),[()=>({fullscreen:Y(),hidden:!e.showControls&&!N()})]),y(Ji,Ai)};R(Xi,Ji=>{s(gr)&&Ji(Un)})}var Kr=A(Xi,2);{var Sr=Ji=>{var Ai=Qy();let wn;Ai.__click=[Wy,hn,e,Io];var zn=h(Ai);let Cr=v(()=>!e.showControls);xd(zn,{get hidden(){return s(Cr)},get disabled(){return s(hn)},get click(){return e.seekToInteractive},get ref(){return ct.seekToInteractiveButton},set ref(wi){ct.seekToInteractiveButton=wi}}),g(Ai),k(wi=>wn=te(Ai,1,"wrapper-middle-right svelte-9w6h1i",null,wn,wi),[()=>({fullscreen:Y(),hidden:!e.showControls})]),y(Ji,Ai)};R(Kr,Ji=>{ht&&Ji(Sr)})}y(Ue,mt)};R(Pi,Ue=>{Ii&&!f()&&Ue(xi)})}k((Ue,mt,pi,sn)=>{qo=te(mi,1,"overlay-mobile svelte-9w6h1i",null,qo,Ue),ho=te(to,1,"wrapper-top-left svelte-9w6h1i",null,ho,mt),bi=te(Vo,1,"wrapper-top-right svelte-9w6h1i",null,bi,pi),Fn=te(Qo,1,"wrapper-middle svelte-9w6h1i",null,Fn,sn)},[()=>({hidden:!s(Bn)}),()=>({hidden:!e.showControls,fullscreen:Y()}),()=>({hidden:!e.showControls&&!w(),fullscreen:Y()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),y(Ze,Rt)};R(ir,Ze=>{Z()||Ze(or)})}var _r=A(ir,2);{var nr=Ze=>{var Rt=Xy(),mi=ge(Rt);{var qo=bi=>{var ji=jy();let Ro;var xn=h(ji);su(xn,{get muted(){return Me()},expanded:!1,click:Nn,get ref(){return ct.volume},set ref(Ui){ct.volume=Ui}}),g(ji),k(Ui=>Ro=te(ji,1,"wrapper-top-right svelte-9w6h1i",null,Ro,Ui),[()=>({fullscreen:Y()})]),y(bi,ji)};R(mi,bi=>{de()&&bi(qo)})}var to=A(mi,2);{var ho=bi=>{var ji=Zy(),Ro=h(ji);let xn=v(()=>!s(vr));ul(Ro,{get disabled(){return s(Oo)},click:lt,isMobile:!0,get isPlaying(){return s(xn)},get ref(){return ct.playButton},set ref(Ui){ct.playButton=Ui}}),g(ji),y(bi,ji)};R(to,bi=>{s(vr)&&bi(ho)})}var io=A(to,2);let Ko;var Vo=h(io);fd(Vo,{get position(){return Se()},get duration(){return $e()}}),g(io),k(bi=>Ko=te(io,1,"wrapper-bottom ads-timeline-mobile svelte-9w6h1i",null,Ko,bi),[()=>({fullscreen:Y()})]),y(Ze,Rt)};R(_r,Ze=>{Z()&&d()!=="inactive"&&Ze(nr)})}var Fo=A(_r,2);let Or;var rr=h(Fo);let br;var Lo=h(rr);te(Lo,1,"controls svelte-9w6h1i",null,{},{mobile:!0});var Gt=h(Lo),go=h(Gt);{var Uo=Ze=>{No(Ze,{get disabled(){return s(Ho)},get ref(){return ct.replayButton},set ref(Rt){ct.replayButton=Rt},children:(Rt,mi)=>{cl(Rt,{get disabled(){return s(Ho)},click:mr})},$$slots:{default:!0}})};R(go,Ze=>{Ii&&Ze(Uo)})}var sr=A(go,2);{var Hr=Ze=>{No(Ze,{get ref(){return ct.liveButton},set ref(Rt){ct.liveButton=Rt},children:(Rt,mi)=>{Sd(Rt,{get isLiveActive(){return s(Yi)},isMobile:!0,get ariaLabel(){return s(Ao)}})},$$slots:{default:!0}})};R(sr,Ze=>{!Z()&&P()&&Ze(Hr)})}var ki=A(sr,2);{var is=Ze=>{let Rt=v(()=>Z()?Se():Ke()),mi=v(()=>Z()?$e():ne());ld(Ze,{get showDuration(){return s(Ln)},get position(){return s(Rt)},get duration(){return s(mi)},isMobile:!0,get ref(){return ct.time},set ref(qo){ct.time=qo}})};R(ki,Ze=>{s(tr)&&Ze(is)})}var Fr=A(ki,2);let $r=v(()=>!s(eo));No(Fr,{className:"w-max",get disabled(){return s($r)},get ref(){return ct.episodes},set ref(Ze){ct.episodes=Ze},children:(Ze,Rt)=>{var mi=Fe(),qo=ge(mi);{var to=ho=>{var io=Jy(),Ko=A(ge(io),2);md(Ko,{get position(){return Ke()},get duration(){return ne()},timeCodes:Co}),y(ho,io)};R(qo,ho=>{s(eo)&&ho(to)})}y(Ze,mi)},$$slots:{default:!0}}),g(Gt),it(Gt,Ze=>ti.bottomRight=Ze,()=>ti==null?void 0:ti.bottomRight);var _t=A(Gt,2),si=h(_t);{var zo=Ze=>{No(Ze,{get ref(){return ct.settings},set ref(Rt){ct.settings=Rt},children:(Rt,mi)=>{al(Rt,{ref$:Mo})},$$slots:{default:!0}})};R(si,Ze=>{s(bn)&&Ze(zo)})}var Wo=A(si,2);{var Hi=Ze=>{No(Ze,{get ref(){return ct.fullscreen},set ref(Rt){ct.fullscreen=Rt},children:(Rt,mi)=>{cd(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Y()}})},$$slots:{default:!0}})};R(Wo,Ze=>{s(tn)&&Ze(Hi)})}g(_t),it(_t,Ze=>ti.bottomRight=Ze,()=>ti==null?void 0:ti.bottomRight),g(Lo),it(Lo,Ze=>ye(Ze),()=>ye());var On=A(Lo,2);_a(On,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return V()},get ref(){return ct.timeline},set ref(Ze){ct.timeline=Ze}}),g(rr),g(Fo),it(Fo,Ze=>pe(Ze),()=>pe());var on=A(Fo,2);{var Hn=Ze=>{_d(Ze,{get ref(){return ct.interactiveTimeIndicator},set ref(Rt){ct.interactiveTimeIndicator=Rt}})};R(on,Ze=>{Jo&&Ze(Hn)})}k((Ze,Rt)=>{Or=te(Fo,1,"wrapper-bottom svelte-9w6h1i",null,Or,Ze),br=te(rr,1,"controls-wrapper svelte-9w6h1i",null,br,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Y()})]),y(t,yn),H(),o()}dt(["click"]);function Cd(t,e){O(e,!0);let[i,o]=He(),n=()=>S(T,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),r=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),$=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),_=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,g1),b=m(e,"onDisabledSeekToInteractiveClick",3,g1),T=Ee().ui.isMobile,I=J(!1);Ht(()=>{let V=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(V)});var M=Fe(),P=ge(M);{var E=V=>{var W=Fe(),K=ge(W);{var U=ae=>{jf(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},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 u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return $()},get customFullscreenSupported(){return p()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return r()},set playerControlsWrapperRef(Y){r(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},j=ae=>{Wf(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},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 u()},get isOneVideoPlaylist(){return $()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r()},set playerControlsWrapperRef(Y){r(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};R(K,ae=>{n()?ae(U):ae(j,!1)})}y(V,W)};R(P,V=>{s(I)&&V(E)})}y(t,M),H(),o()}var i4=Te('<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 Zf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=i4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i))),y(t,o)}function Xf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Zf(t,{get style(){return s(o)}})}var o4=Te('<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 Jf(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=o4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i))),y(t,o)}var n4=Te('<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 em(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=n4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i))),y(t,o)}function au(t,e){let i=m(e,"isOff",3,!1);var o=Fe(),n=ge(o);{var a=d=>{em(d,{})},r=d=>{Jf(d,{})};R(n,d=>{i()?d(a):d(r,!1)})}y(t,o)}var r4=Te('<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 tm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=r4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i))),y(t,o)}function im(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);tm(t,{get style(){return s(o)}})}var s4=Te('<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 om(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=s4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i))),y(t,o)}function nm(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);om(t,{get style(){return s(o)}})}var a4=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),l4=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),d4=L("<div><!></div>"),c4={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;
|
|
265
262
|
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"],
|
|
266
263
|
.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"],
|
|
267
264
|
.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
|
|
@@ -276,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
276
273
|
@keyframes svelte-1ad3n06-fadeOut {
|
|
277
274
|
0% {opacity:1;}
|
|
278
275
|
100% {opacity:0;}
|
|
279
|
-
}`};function
|
|
280
|
-
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function
|
|
276
|
+
}`};function rm(t,e){O(e,!0),q(t,c4);let[i,o]=He(),n=()=>S(e.data,"$data",i),r=Ee().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=v(()=>{var C;return(C=n())==null?void 0:C.type}),$=v(()=>{var C,T;return(C=n())!=null&&C.t?r(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=d4();let _;var w=h(p);{var b=C=>{var T=l4(),I=ge(T),M=h(I);{var P=ne=>{let pe=v(()=>s(f)==="FORWARD_SEEK");Xf(ne,{get reversed(){return s(pe)}})};R(M,ne=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&ne(P)})}var E=A(M,2);{var V=ne=>{bs(ne,{})};R(E,ne=>{s(f)==="PAUSE"&&ne(V)})}var W=A(E,2);{var K=ne=>{Rr(ne,{})};R(W,ne=>{s(f)==="PLAY"&&ne(K)})}var U=A(W,2);{var j=ne=>{bd(ne,{})};R(U,ne=>{s(f)==="REPLAY"&&ne(j)})}var ae=A(U,2);{var Y=ne=>{au(ne,{isOff:!0})};R(ae,ne=>{s(f)==="SUBTITLES_OFF"&&ne(Y)})}var de=A(ae,2);{var le=ne=>{au(ne,{})};R(de,ne=>{s(f)==="SUBTITLES_ON"&&ne(le)})}var Me=A(de,2);{var Ne=ne=>{let pe=v(()=>s(f)==="RATE_UP");im(ne,{get reversed(){return s(pe)}})};R(Me,ne=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&ne(Ne)})}var _e=A(Me,2);{var ce=ne=>{let pe=v(()=>s(f)==="EPISODE_NEXT");nm(ne,{get reversed(){return s(pe)}})};R(_e,ne=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&ne(ce)})}var Le=A(_e,2);{var se=ne=>{Bs(ne,{volume:0})};R(Le,ne=>{s(f)==="MUTE"&&ne(se)})}var N=A(Le,2);{var Se=ne=>{Bs(ne,{volume:1})};R(N,ne=>{s(f)==="VOLUME"&&ne(Se)})}g(I);var $e=A(I,2);{var Ke=ne=>{var pe=a4(),ye=h(pe,!0);g(pe),k(()=>he(ye,s($))),y(ne,pe)};R($e,ne=>{s($)&&ne(Ke)})}y(C,T)};R(w,C=>{!s(d)&&s(f)&&C(b)})}g(p),k(C=>_=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(l),"hot-key-helpers-container--right":s(u)})]),y(t,p),H(),o()}var u4=Te('<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 sm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=u4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}var p4=Te('<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 am(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=p4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),y(t,o)}function Os(t,e){O(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),r=v(()=>(()=>{let $="";return s(a)&&($+="transform: rotate(180deg);"),o()&&($+="color: var(--btn-color, #fff);"),$.length?$:void 0})());var d=Fe(),l=ge(d);{var u=$=>{let p=v(()=>s(a)?"chevron-icon--down":"chevron-icon--up");sm($,{get style(){return s(r)},get"data-testid"(){return s(p)}})},f=$=>{let p=v(()=>s(a)?"chevron-icon--right":"chevron-icon--left");am($,{get style(){return s(r)},get"data-testid"(){return s(p)}})};R(l,$=>{s(n)?$(u):$(f,!1)})}y(t,d),H()}var f4=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},m4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},v4=L('<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>'),g4={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 Td(t,e){O(e,!0),q(t,g4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var $=v4();let p;$.__keydown=[f4,n,a,r,l,d],$.__keyup=[m4,n,u],Oe($,"aria-label",f);var _=h($),w=h(_),b=h(w);b.__mousedown=a,b.__mouseup=u;var C=h(b);Os(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=u;var I=h(T);Os(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=u;var E=h(P);Os(E,{direction:"up",useBtnColor:!0}),g(P);var V=A(P,2);V.__mousedown=r,V.__mouseup=u;var W=h(V);Os(W,{direction:"up",useBtnColor:!0}),g(V),g(M),g(_),g($),k(K=>p=te($,1,"immersive-controls svelte-1yzc86r",null,p,K),[()=>({"m-shifted":i()})]),Ct("mouseleave",b,u),Ct("mouseleave",T,u),Ct("mouseleave",P,u),Ct("mouseleave",V,u),y(t,$),H()}dt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as _1,Subscription as h4,filterChanged as _4,filter as b4}from"@vkontakte/videoplayer-shared/es2015";var h1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var lu=class{constructor(){this.flickeringTimeout=h1(1e3);this.subscriptions=new h4;this.isAuto=!1;this.isLive=!1;this.captions$=new _1([]);this.captionsPrepared$=new _1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(b4(()=>this.isEnabled()),_4()).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((n,{type:a,value:r},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(r),value:""}):n.length===0?n.push({value:String(r)}):n[n.length-1].value=String(r)),n),[])),this.captionsPrepared$.next(i)}};var $4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),y4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),x4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),w4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),S4=L("<div><!></div>"),C4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
|
|
277
|
+
/*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function wa(t,e){O(e,!0),q(t,C4);let[i,o]=He(),n=()=>S($,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),r=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),u=Ee(),f=Wt(),$=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,_=u.state.isLive$,w=u.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!r()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),M=J(null);We(()=>{var j,ae,Y;(j=s(M))==null||j.setIsAuto(s(b)),(ae=s(M))==null||ae.setIsLive(s(C)),(Y=s(M))==null||Y.setCaptions(e.captions)});let P=J(ve([[]]));Ht(()=>{D(M,ve(new lu().subscribe()));let j=s(M).captionsPrepared$.subscribe(ae=>{D(P,ve(ae))});return()=>{var ae;(ae=s(M))==null||ae.destroy(),j.unsubscribe()}}),Ht(()=>{if(s(b)){let j=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else p.set(!1)});let E=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=S4();let W;var K=h(V);{var U=j=>{var ae=w4();let Y;var de=h(ae),le=h(de);{var Me=_e=>{var ce=$4(),Le=h(ce),se=h(Le,!0);g(Le),g(ce),k(N=>{var Se;st(Le,`font-size: ${(Se=s(I))!=null?Se:""}px`),he(se,N)},[()=>F("subtitles_auto_caption")]),y(_e,ce)},Ne=(_e,ce)=>{{var Le=N=>{var Se=Fe(),$e=ge(Se);Si($e,17,()=>s(P),Bl,(Ke,ne)=>{var pe=y4(),ye=h(pe);Si(ye,21,()=>s(ne),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let et=()=>s(qe).value,Ie=()=>s(qe).timeAppeared;var ie=Fe(),Ve=ge(ie);{var Qe=at=>{var lt=jr();k(()=>he(lt,et())),y(at,lt)};R(Ve,at=>{(!Ie()||Ie()<=e.position)&&at(Qe)})}y(Z,ie)}),g(ye),g(pe),k(()=>{var Z;return st(ye,`font-size: ${(Z=s(I))!=null?Z:""}px`)}),y(Ke,pe)}),y(N,Se)},se=N=>{var Se=Fe(),$e=ge(Se);Si($e,17,()=>e.captions,({value:Ke})=>Ke,(Ke,ne)=>{let pe=()=>s(ne).value;var ye=x4(),Z=h(ye),qe=h(Z,!0);g(Z),g(ye),k(()=>{var et;st(Z,`font-size: ${(et=s(I))!=null?et:""}px`),he(qe,pe())}),y(Ke,ye)}),y(N,Se)};R(_e,N=>{var Se;s(b)&&((Se=s(P))!=null&&Se.length)?N(Le):N(se,!1)},ce)}};R(le,_e=>{s(b)&&d()?_e(Me):_e(Ne,!1)})}g(de),g(ae),k(_e=>{var ce;Y=te(ae,1,"subtitles-caption svelte-c2x749",null,Y,_e),st(ae,`--subtitles-caption-margin: ${(ce=s(E))!=null?ce:""}%`)},[()=>({mobile:l()})]),y(j,ae)};R(K,j=>{var ae;(e.captions.length||(ae=s(P))!=null&&ae.length)&&j(U)})}g(V),k(j=>W=te(V,1,"subtitles-container svelte-c2x749",null,W,j),[()=>({shifted:e.shifted,auto:s(b)&&!s(C)&&!d()})]),y(t,V),H(),o()}var T4=L('<div class="text svelte-raurnb"> </div>'),I4=L('<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>'),E4={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 Id(t,e){O(e,!0),q(t,E4);let i=Wt();var o=I4();let n;var a=A(h(o),2);{var r=d=>{var l=T4(),u=h(l);g(l),k(()=>{var f;return he(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),y(d,l)};R(a,d=>{e.chromecastDeviceName&&d(r)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),st(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})]),y(t,o),H()}var k4=Te('<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 lm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=k4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var P4=L('<div class="container svelte-13zpvm8"><!></div>'),A4={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 Ed(t){q(t,A4);var e=P4(),i=h(e);lm(i,{}),g(e),y(t,e)}var M4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),L4=L("<div><!></div>"),V4={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,
|
|
281
278
|
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,
|
|
282
|
-
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
|
|
279
|
+
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 Sa(t,e){O(e,!0),q(t,V4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Wt(),a=o.ui.startedByKeyboard$,r=F("tooltip_play"),d=_=>{var b;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=L4();let f;u.__click=l;var $=h(u);{var p=_=>{var w=M4();w.__keydown=d,Oe(w,"aria-label",r);var b=A(h(w),2);Rr(b,{}),g(w),y(_,w)};R($,_=>{i()&&_(p)})}return g(u),k(_=>{f=te(u,1,"container svelte-1ciju45",null,f,_),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),y(t,u),H({handlePressKey:d,handleClick:l})}dt(["click","keydown"]);var R4=L('<div data-testid="video_title"><span> </span></div>'),B4={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(
|
|
283
280
|
0deg,
|
|
284
281
|
rgba(0, 0, 0, 0) 0%,
|
|
285
282
|
rgba(0, 0, 0, 0.02) 19%,
|
|
286
|
-
rgba(0, 0, 0, 0.
|
|
287
|
-
rgba(0, 0, 0, 0.
|
|
288
|
-
rgba(0, 0, 0, 0.
|
|
289
|
-
);}.hidden.svelte-
|
|
283
|
+
rgba(0, 0, 0, 0.1) 34%,
|
|
284
|
+
rgba(0, 0, 0, 0.4) 60%,
|
|
285
|
+
rgba(0, 0, 0, 0.6) 100%
|
|
286
|
+
);}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function dm(t,e){O(e,!0),q(t,B4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),a=J(void 0);Ht(()=>{var $;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var _;p.propertyName==="transform"&&((_=e.onVisibilityChanged)==null||_.call(e,!o()))}return($=s(a))==null||$.addEventListener("transitionend",f),()=>{var p;return(p=s(a))==null?void 0:p.removeEventListener("transitionend",f)}});var r=R4();let d;var l=h(r),u=h(l,!0);g(l),it(l,f=>n(f),()=>n()),g(r),it(r,f=>D(a,f),()=>s(a)),k(f=>{d=te(r,1,"title svelte-14hk510",null,d,f),he(u,i())},[()=>({hidden:o()})]),y(t,r),H()}var N4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),D4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),O4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),H4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),F4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),U4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function cm(t,e){O(e,!0),q(t,U4);let i=J(""),o=J(""),n=J(""),a=J(""),r,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,ve(d(P))));let E=Math.floor(M/3600);D(o,ve(d(E)));let V=Math.floor(M/60)%60;D(n,ve(d(V)));let W=M%60;D(a,ve(d(W)))},u=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?r=requestAnimationFrame(u):e.onTimerOver()};Ht(()=>{r=requestAnimationFrame(u)}),En(()=>{cancelAnimationFrame(r)});var f=F4(),$=h(f);{var p=M=>{var P=N4(),E=ge(P),V=h(E),W=h(V,!0);g(V);var K=A(V,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((Y,de)=>{he(W,s(i)),he(U,Y),he(ae,de)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),y(M,P)};R($,M=>{s(i)&&M(p)})}var _=A($,2);{var w=M=>{var P=D4(),E=ge(P),V=h(E),W=h(V,!0);g(V);var K=A(V,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((Y,de)=>{he(W,s(o)),he(U,Y),he(ae,de)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),y(M,P)};R(_,M=>{s(o)&&M(w)})}var b=A(_,2);{var C=M=>{var P=O4(),E=ge(P),V=h(E),W=h(V,!0);g(V);var K=A(V,2),U=h(K,!0);g(K),g(E);var j=A(E,2),ae=h(j,!0);g(j),k((Y,de)=>{he(W,s(n)),he(U,Y),he(ae,de)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),y(M,P)};R(b,M=>{s(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=H4(),E=h(P),V=h(E,!0);g(E);var W=A(E,2),K=h(W,!0);g(W),g(P),k(U=>{he(V,s(a)),he(K,U)},[()=>F("waiting_live_second_value")]),y(M,P)};R(T,M=>{s(a)&&M(I)})}g(f),y(t,f),H()}var z4=Te('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function um(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=z4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img"},i))),y(t,o)}var W4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),q4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),K4=L('<div class="waiting-container svelte-15pewff"><!></div>'),Q4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function kd(t,e){O(e,!0),q(t,Q4);let i=J(!1);We(()=>{D(i,ve(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=K4(),n=h(o);{var a=d=>{var l=W4(),u=h(l),f=h(u);um(f,{}),g(u);var $=A(u,2),p=h($,!0);g($),g(l),k(_=>he(p,_),[()=>F("waiting_live_upcoming_title")]),y(d,l)},r=d=>{var l=q4(),u=h(l),f=h(u,!0);g(u);var $=A(u,2);let p=v(()=>e.startTime||0);cm($,{get startTime(){return s(p)},onTimerOver:()=>D(i,!0)}),g(l),k(_=>he(f,_),[()=>F("waiting_live_timer_title")]),y(d,l)};R(n,d=>{s(i)?d(a):d(r,!1)})}g(o),k(()=>st(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),y(t,o),H()}var G4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Y4={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 Ca(t,e){O(e,!0),q(t,Y4);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=G4(),r=h(a),d=h(r);va(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),u=h(l,!0);g(l),g(r),g(a),k(()=>{st(a,`background-image: url('${i()}')`),he(u,s(n))}),y(t,a),H()}var j4=Te('<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 pm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=j4();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i))),y(t,o)}var Z4=L('<div class="select-icon svelte-124aexk"><!></div>'),X4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Pd(t){q(t,X4);var e=Z4(),i=h(e);pm(i,{}),g(e),y(t,e)}var J4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},e3=(t,e)=>{nl(t,()=>e.item.selectItem(e.item.value))},t3=L("<p> </p>"),i3=L('<p class="sublabel svelte-1t7rx2m"> </p>'),o3=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),n3={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;
|
|
290
287
|
|
|
291
288
|
/**
|
|
292
289
|
* \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
|
|
293
290
|
* \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.
|
|
294
291
|
*/margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
|
|
295
|
-
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function
|
|
292
|
+
.sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function fm(t,e){O(e,!0),q(t,n3);let i=m(e,"isMobile",3,!1);var o=o3();let n;o.__click=[J4,e],o.__keydown=[e3,e];var a=h(o);{var r=w=>{Pd(w,{})};R(a,w=>{e.item.selected&&w(r)})}var d=A(a,2);let l;var u=h(d);{var f=w=>{var b=Fe(),C=ge(b);Ci(C,()=>e.item.valueComponent,(T,I)=>{I(T,fs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),y(w,b)},$=w=>{var b=t3();let C;var T=h(b,!0);g(b),k(I=>{var M;C=te(b,1,"label svelte-1t7rx2m",null,C,I),he(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),y(w,b)};R(u,w=>{e.item.valueComponent?w(f):w($,!1)})}var p=A(u,2);{var _=w=>{var b=i3(),C=h(b,!0);g(b),k(()=>he(C,e.item.sublabel)),y(w,b)};R(p,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,b,C)=>{n=te(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",b),Oe(o,"data-testid",e.item.dataTestid),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),y(t,o),H()}dt(["click","keydown"]);var r3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function mm(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>Hc(b,s(n)));var r=r3();let d;r.__click=function(...b){var C;(C=s(n))==null||C.apply(this,b)},r.__keydown=function(...b){var C;(C=s(a))==null||C.apply(this,b)};var l=h(r);{var u=b=>{Pd(b,{})};R(l,b=>{e.item.selected&&b(u)})}var f=A(l,2);let $;var p=h(f);{var _=b=>{var C=Fe();let T=v(()=>e.item.valueComponent);var I=ge(C);Ci(I,()=>s(T),(M,P)=>{P(M,fs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),y(b,C)},w=b=>{var C=jr();k(()=>he(C,e.item.label)),y(b,C)};R(p,b=>{e.item.valueComponent?b(_):b(w,!1)})}g(f),g(r),it(r,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),k((b,C)=>{var T;d=te(r,1,"item",null,d,b),Oe(r,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Oe(r,"data-testid",e.item.id),$=te(f,1,"menu-item-value",null,$,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),y(t,r),H()}dt(["click","keydown"]);var Br={"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 a3=(t,e)=>{Oh(t,e.returnFromSubMenu,e.closeSettingsMenu)},l3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},d3=(t,e)=>{Xl(t)&&(fr(t),e.returnFromSubMenu())},c3=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),u3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
|
|
296
293
|
/*\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 {
|
|
297
294
|
/**
|
|
298
295
|
* \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.
|
|
@@ -302,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
302
299
|
var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
|
|
303
300
|
1px
|
|
304
301
|
);}.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,
|
|
305
|
-
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function cm(t,e){U(e,!0),K(t,r3);let[i,o]=Ne(),n=()=>S(b,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Wt(()=>{let X=e.items.findIndex(ce=>ce.selected);u().children[X+1].focus()});let f=Ie(),b=f.ui.isFullscreen,p=f.ui.playerSize,$=J(void 0),x=J(0),_=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(_)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(x)));var k=n3();let P;var A=h(k);let I;A.__keydown=[t3,e];var V=h(A);let q;V.__click=[i3,e],V.__keydown=[o3,e];var G=h(V);Is(G,{direction:"left"});var H=M(G,2),Z=h(H,!0);g(H),g(V),ft(V,X=>D($,X),()=>r($));var re=M(V,2);Ei(re,17,()=>e.items,Al,(X,ce)=>{var ue=Oe(),Ve=fe(ue);{var Me=ae=>{am(ae,{get item(){return r(ce)},get isMobile(){return s()}})},_e=(ae,Le)=>{{var ne=B=>{lm(B,{get isMobile(){return s()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,B=>{r(ce).type==="OPEN_SUB_MENU"&&B(ne)},Le)}};R(Ve,ae=>{r(ce).type==="SELECT_VALUE"?ae(Me):ae(_e,!1)})}y(X,ue)}),g(A),ft(A,X=>u(X),()=>u()),g(k),E((X,ce,ue)=>{P=ee(k,1,"sub-menu menu svelte-7dfsuh",null,P,X),De(k,"data-testid",`sub-menu-${e.id}`),rt(k,`min-width: ${r(T)}px`),I=ee(A,1,"items svelte-7dfsuh",null,I,ce),rt(A,r(C)),q=ee(V,1,"item header back svelte-7dfsuh",null,q,ue),De(V,"aria-label",l()),ge(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Hr(V,"clientWidth",X=>D(x,X)),Hr(V,"clientHeight",X=>D(_,X)),y(t,k),z(),o()}at(["keydown","click"]);import{noop as s3}from"@vkontakte/videoplayer-shared/es2015";var a3=(t,e)=>Bc(t,e()),l3=(t,e)=>{t.stopPropagation(),e()()},d3=L('<div class="value svelte-1ikfjte"> </div>'),c3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),u3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function um(t,e){U(e,!0),K(t,u3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,s3),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=c3();let d;s.__click=[l3,o],s.__keydown=[a3,o];var l=h(s),u=h(l);{var f=T=>{pa(T,{get icon(){return e.icon}})},b=T=>{var k=Oe();let P=v(()=>e.icon);var A=fe(k);Pi(A,()=>r(P),(I,V)=>{V(I,{})}),y(T,k)};R(u,T=>{typeof e.icon=="string"?T(f):T(b,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var x=M(p,2);{var _=T=>{var k=Oe();let P=v(n);var A=fe(k);Pi(A,()=>r(P),(I,V)=>{V(I,{})}),y(T,k)},C=T=>{var k=d3(),P=h(k,!0);g(k),E(()=>ge(P,e.value)),y(T,k)};R(x,T=>{n()?T(_):T(C,!1)})}g(s),ft(s,T=>a(T),()=>a()),E(T=>{d=ee(s,1,"item",null,d,T),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),ge($,e.label)},[()=>({mobile:i()})]),y(t,s),z()}at(["click","keydown"]);import{noop as f1}from"@vkontakte/videoplayer-shared/es2015";var p3=(t,e)=>{Ja(t,()=>e())},f3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),m3=L('<img class="icon" aria-hidden="true">'),v3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),g3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function pm(t,e){U(e,!0),K(t,g3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,f1),n=m(e,"closeSettings",3,f1),a=J(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=v3();let u;l.__click=d,l.__keydown=[p3,d];var f=h(l),b=h(f);{var p=C=>{var T=Oe(),k=fe(T);{var P=I=>{var V=f3();y(I,V)},A=I=>{var V=m3();E(()=>De(V,"src",e.icon)),Tt("error",V,s),Ws(V),y(I,V)};R(k,I=>{r(a)?I(P):I(A,!1)})}y(C,T)},$=C=>{var T=Oe();let k=v(()=>e.icon);var P=fe(T);Pi(P,()=>r(k),(A,I)=>{I(A,{})}),y(C,T)};R(b,C=>{typeof e.icon=="string"?C(p):C($,!1)})}g(f);var x=M(f,2),_=h(x,!0);g(x),g(l),E(C=>{var T;u=ee(l,1,"item",null,u,C),De(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),De(l,"data-testid",e.id),ge(_,e.label)},[()=>({mobile:i()})]),y(t,l),z()}at(["click","keydown"]);import{noop as b3}from"@vkontakte/videoplayer-shared/es2015";var h3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),_3={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 fm(t,e){K(t,_3);let i=m(e,"enabled",3,!1);var o=h3(),n=h(o);let a;xe(2),g(o),E(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),y(t,o)}var $3=(t,e,i)=>{Rh(t,e(),o=>i()(o))},y3=(t,e,i)=>{t.stopPropagation(),e()(!i())},x3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),w3=L('<li role="menuitem" tabindex="0"><!></li>');function mm(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,b3),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=w3();let l;d.__click=[y3,o,n],d.__keydown=[$3,n,o];var u=h(d);sa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,b)=>{var p=x3();let $;var x=h(p),_=h(x);{var C=I=>{pa(I,{get icon(){return e.icon}})},T=I=>{var V=Oe();let q=v(()=>e.icon);var G=fe(V);Pi(G,()=>r(q),(H,Z)=>{Z(H,{})}),y(I,V)};R(_,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(x);var k=M(x,2),P=h(k,!0);g(k);var A=M(k,2);fm(A,{get enabled(){return n()}}),g(p),E(I=>{$=ee(p,1,"switch-wrapper",null,$,I),ge(P,e.label)},[()=>({mobile:i()})]),y(f,p)},$$slots:{default:!0}}),g(d),E(f=>{var b;l=ee(d,1,"item switch-item",null,l,f),De(d,"aria-label",(b=e.ariaLabel)!=null?b:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),y(t,d),z()}at(["click","keydown"]);import{isValidURL as Q3,VideoQuality as S1}from"@vkontakte/videoplayer-shared/es2015";var m1=()=>{let t=J(me([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,me([]))}}};var S3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),C3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),T3={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 ga(t,e){U(e,!0),K(t,T3);let i=m(e,"isSubCase",3,!1),o=v(()=>Uc(e.quality));var n=C3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var b=S3();let p=v(()=>r(o));var $=h(b);Pi($,()=>r(p),(x,_)=>{_(x,{})}),g(b),y(f,b)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),E(f=>{s=ee(a,1,"svelte-t2qk8t",null,s,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),y(t,n),z()}import{VideoQuality as I3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as v1}from"@vkontakte/videoplayer-core/es2015";var g1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},h1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=g1({quality:t,availableQualities:e});return i?t===v1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},_1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===v1.INVARIANT?i:`${i}${g1({quality:t,availableQualities:e})}`:"...";var k3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),E3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function al(t,e){U(e,!0),K(t,E3);let[i,o]=Ne(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),s=()=>S(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,b=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==I3.INVARIANT?b:"")),$=v(()=>_1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=k3(),_=h(x);let C=v(()=>e.selected?n():void 0);ga(_,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(x),y(t,x),z(),o()}var P3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},A3={br:!0,span:!0},vm=(t,e={})=>{var d,l,u,f,b,p,$;if(!t)return t;let i=W(W({},A3),e),o=Object.keys(i);if(!o.length)return t;let n=P3(o),a=[],s=0;for(let x of t.matchAll(n)){let _=x[0],C=((d=x.groups)==null?void 0:d.keyhtml)||((l=x.groups)==null?void 0:l.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:T}=x;if(!i[C]){a.push(t.slice(s,T)),s=T+_.length;continue}let k=(b=x.groups)!=null&&b.childrenhtml?vm(x.groups.childrenhtml,i):"",P=(p=x.groups)!=null&&p.childrenhtml?_.replace(new RegExp(($=x.groups)==null?void 0:$.childrenhtml),()=>k||""):_;a.push(t.slice(s,T),P),s=T+_.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Id(t,e){U(e,!1);let i=m(e,"message",8),o=vm(i());xr();var n=Oe(),a=fe(n);{var s=d=>{var l=Oe(),u=fe(l);Ml(u,()=>o,!1,!1),y(d,l)};R(a,d=>{o&&d(s)})}y(t,n),z()}var M3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),L3={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 gm(t,e){U(e,!1),K(t,L3),xr();var i=M3(),o=h(i);let n=br(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Id(o,{get message(){return r(n)}}),g(i),y(t,i),z()}var $1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:al,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},hm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?al:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),y1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:gm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),_m=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),bm=({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:F("traffic_saving_quality"),valueComponent:t?al:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var nu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),ru=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=jc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=nu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=nu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=nu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=nu(t,e);return F("audio_stream_display_unknown",{index:a})};var V3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:hm,selected:e&&!o&&!n||!1}),a.push({handler:bm,selected:o},{handler:_m,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[y1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),$1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ga,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:hm,selected:((i=Tc())==null?void 0:i.type)==="auto_quality"},{handler:bm,selected:((o=Tc())==null?void 0:o.type)==="traffic_saving"},{handler:_m,selected:((n=Tc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:ru(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("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:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},x1=({subMenuId:t,context:e})=>t?[V3[t](e)]:[];var R3=we('<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 $m(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=R3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),y(t,o)}var N3=we('<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 ym(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=N3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),y(t,o)}var B3=we('<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 xm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=B3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),y(t,o)}var D3=we('<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 wm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=D3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),y(t,o)}var O3=we('<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 Sm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=O3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),y(t,o)}var H3=we('<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 su(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=H3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),y(t,o)}var F3=we('<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 Cm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=F3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),y(t,o)}var U3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),z3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Tm(t,e){U(e,!0),K(t,z3);let[i,o]=Ne(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),s=()=>S(b,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ie(),u=l.state.currentQuality$,f=l.state.availableQualities$,b=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=v(()=>h1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=U3(),_=h(x);ga(_,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(x),y(t,x),z(),o()}var W3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:td,label:F("menu_quality"),value:e,valueComponent:Tm,weight:Cr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Cr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:$m,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=ru(t,e);return{id:"AUDIO_LANGUAGES",weight:Cr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:ym,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Cr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:xm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Cr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:id,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Cr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:wm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Cr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Sm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Cr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:su,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Cr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:su,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Cr["debug-info"],type:"CLICK",onClick:t,label:e?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),ariaLabel:F("menu_debug_overlay"),icon:Cm,isHiddenFor:["desktop"]})},w1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>W3[n](e)),...i.map(n=>Dt(W({},n),{isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ia)};var G3=(t,e)=>{Nc(t,e)},j3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Y3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),Z3=L("<div><!> <!></div>"),X3={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 {
|
|
302
|
+
.item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function gm(t,e){O(e,!0),q(t,u3);let[i,o]=He(),n=()=>S($,"$isFullscreen",i),a=()=>S(p,"$playerSize",i),r=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=m(e,"listRef",15);Ht(()=>{let Y=e.items.findIndex(de=>de.selected);u().children[Y+1].focus()});let f=Ee(),$=f.ui.isFullscreen,p=f.ui.playerSize,_=J(void 0),w=J(0),b=J(0),C=v(()=>r()&&n()?`max-height: ${Math.round(a().height*.6)}px`:r()?"":`max-height: ${a().height-32-s(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,s(w)));var I=c3();let M;var P=h(I);let E;P.__keydown=[a3,e];var V=h(P);let W;V.__click=[l3,e],V.__keydown=[d3,e];var K=h(V);Os(K,{direction:"left"});var U=A(K,2),j=h(U,!0);g(U),g(V),it(V,Y=>D(_,Y),()=>s(_));var ae=A(V,2);Si(ae,17,()=>e.items,Bl,(Y,de)=>{var le=Fe(),Me=ge(le);{var Ne=ce=>{fm(ce,{get item(){return s(de)},get isMobile(){return r()}})},_e=(ce,Le)=>{{var se=N=>{mm(N,{get isMobile(){return r()},get item(){return s(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ce,N=>{s(de).type==="OPEN_SUB_MENU"&&N(se)},Le)}};R(Me,ce=>{s(de).type==="SELECT_VALUE"?ce(Ne):ce(_e,!1)})}y(Y,le)}),g(P),it(P,Y=>u(Y),()=>u()),g(I),k((Y,de,le)=>{M=te(I,1,"sub-menu menu svelte-7dfsuh",null,M,Y),Oe(I,"data-testid",`sub-menu-${e.id}`),st(I,`min-width: ${s(T)}px`),E=te(P,1,"items svelte-7dfsuh",null,E,de),st(P,s(C)),W=te(V,1,"item header back svelte-7dfsuh",null,W,le),Oe(V,"aria-label",l()),he(j,e.title)},[()=>({desktop:!r(),mobile:r()}),()=>({mobile:r()}),()=>({mobile:r()})]),Zr(V,"clientWidth",Y=>D(w,Y)),Zr(V,"clientHeight",Y=>D(b,Y)),y(t,I),H(),o()}dt(["keydown","click"]);import{noop as p3}from"@vkontakte/videoplayer-shared/es2015";var f3=(t,e)=>Hc(t,e()),m3=(t,e)=>{t.stopPropagation(),e()()},v3=L('<div class="value svelte-1ikfjte"> </div>'),g3=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),h3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function hm(t,e){O(e,!0),q(t,h3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,p3),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var r=g3();let d;r.__click=[m3,o],r.__keydown=[f3,o];var l=h(r),u=h(l);{var f=T=>{ya(T,{get icon(){return e.icon}})},$=T=>{var I=Fe();let M=v(()=>e.icon);var P=ge(I);Ci(P,()=>s(M),(E,V)=>{V(E,{})}),y(T,I)};R(u,T=>{typeof e.icon=="string"?T(f):T($,!1)})}g(l);var p=A(l,2),_=h(p,!0);g(p);var w=A(p,2);{var b=T=>{var I=Fe();let M=v(n);var P=ge(I);Ci(P,()=>s(M),(E,V)=>{V(E,{})}),y(T,I)},C=T=>{var I=v3(),M=h(I,!0);g(I),k(()=>he(M,e.value)),y(T,I)};R(w,T=>{n()?T(b):T(C,!1)})}g(r),it(r,T=>a(T),()=>a()),k(T=>{d=te(r,1,"item",null,d,T),Oe(r,"aria-label",e.ariaLabel),Oe(r,"data-testid",e.id),he(_,e.label)},[()=>({mobile:i()})]),y(t,r),H()}dt(["click","keydown"]);import{noop as $1}from"@vkontakte/videoplayer-shared/es2015";var _3=(t,e)=>{nl(t,()=>e())},b3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),$3=L('<img class="icon" aria-hidden="true">'),y3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),x3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function _m(t,e){O(e,!0),q(t,x3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,$1),n=m(e,"closeSettings",3,$1),a=J(!1),r=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=y3();let u;l.__click=d,l.__keydown=[_3,d];var f=h(l),$=h(f);{var p=C=>{var T=Fe(),I=ge(T);{var M=E=>{var V=b3();y(E,V)},P=E=>{var V=$3();k(()=>Oe(V,"src",e.icon)),Ct("error",V,r),ta(V),y(E,V)};R(I,E=>{s(a)?E(M):E(P,!1)})}y(C,T)},_=C=>{var T=Fe();let I=v(()=>e.icon);var M=ge(T);Ci(M,()=>s(I),(P,E)=>{E(P,{})}),y(C,T)};R($,C=>{typeof e.icon=="string"?C(p):C(_,!1)})}g(f);var w=A(f,2),b=h(w,!0);g(w),g(l),k(C=>{var T;u=te(l,1,"item",null,u,C),Oe(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Oe(l,"data-testid",e.id),he(b,e.label)},[()=>({mobile:i()})]),y(t,l),H()}dt(["click","keydown"]);import{noop as C3}from"@vkontakte/videoplayer-shared/es2015";var w3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),S3={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 bm(t,e){q(t,S3);let i=m(e,"enabled",3,!1);var o=w3(),n=h(o);let a;Ce(2),g(o),k(r=>a=te(n,1,"toggle svelte-17wbjko",null,a,r),[()=>({on:i()})]),y(t,o)}var T3=(t,e,i)=>{Hh(t,e(),o=>i()(o))},I3=(t,e,i)=>{t.stopPropagation(),e()(!i())},E3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),k3=L('<li role="menuitem" tabindex="0"><!></li>');function $m(t,e){O(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,C3),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),r=m(e,"maxTooltipWidth",3,void 0);var d=k3();let l;d.__click=[I3,o,n],d.__keydown=[T3,n,o];var u=h(d);ga(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return r()},children:(f,$)=>{var p=E3();let _;var w=h(p),b=h(w);{var C=E=>{ya(E,{get icon(){return e.icon}})},T=E=>{var V=Fe();let W=v(()=>e.icon);var K=ge(V);Ci(K,()=>s(W),(U,j)=>{j(U,{})}),y(E,V)};R(b,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);bm(P,{get enabled(){return n()}}),g(p),k(E=>{_=te(p,1,"switch-wrapper",null,_,E),he(M,e.label)},[()=>({mobile:i()})]),y(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var $;l=te(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),y(t,d),H()}dt(["click","keydown"]);import{isValidURL as J3,VideoQuality as A1}from"@vkontakte/videoplayer-shared/es2015";var y1=()=>{let t=J(ve([])),e=v(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{D(t,ve(s(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,ve([]))}}};var P3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),A3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),M3={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 Ta(t,e){O(e,!0),q(t,M3);let i=m(e,"isSubCase",3,!1),o=v(()=>qc(e.quality));var n=A3(),a=h(n);let r;var d=h(a,!0);g(a);var l=A(a,2);{var u=f=>{var $=P3();let p=v(()=>s(o));var _=h($);Ci(_,()=>s(p),(w,b)=>{b(w,{})}),g($),y(f,$)};R(l,f=>{s(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{r=te(a,1,"svelte-t2qk8t",null,r,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),y(t,n),H()}import{VideoQuality as L3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as x1}from"@vkontakte/videoplayer-core/es2015";var w1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},S1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=w1({quality:t,availableQualities:e});return i?t===x1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},C1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===x1.INVARIANT?i:`${i}${w1({quality:t,availableQualities:e})}`:"...";var V3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),R3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function pl(t,e){O(e,!0),q(t,R3);let[i,o]=He(),n=()=>S(l,"$currentQuality$",i),a=()=>S(u,"$availableQualities$",i),r=()=>S(f,"$isMobile$",i),d=Ee(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,$=" \xB7 ",p=v(()=>e.prefix+(e.selected&&n()!==L3.INVARIANT?$:"")),_=v(()=>C1({prefix:s(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=V3(),b=h(w);let C=v(()=>e.selected?n():void 0);Ta(b,{get quality(){return s(C)},get label(){return s(_)},get isMobile(){return r()},isSubCase:!0}),g(w),y(t,w),H(),o()}var B3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},N3={br:!0,span:!0},ym=(t,e={})=>{var d,l,u,f,$,p,_;if(!t)return t;let i=z(z({},N3),e),o=Object.keys(i);if(!o.length)return t;let n=B3(o),a=[],r=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(r,T)),r=T+b.length;continue}let I=($=w.groups)!=null&&$.childrenhtml?ym(w.groups.childrenhtml,i):"",M=(p=w.groups)!=null&&p.childrenhtml?b.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>I||""):b;a.push(t.slice(r,T),M),r=T+b.length}return r===0?t:(a.push(t.slice(r)),a.join(""))};function Ad(t,e){O(e,!1);let i=m(e,"message",8),o=ym(i());Mr();var n=Fe(),a=ge(n);{var r=d=>{var l=Fe(),u=ge(l);Nl(u,()=>o,!1,!1),y(d,l)};R(a,d=>{o&&d(r)})}y(t,n),H()}var D3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),O3={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 xm(t,e){O(e,!1),q(t,O3),Mr();var i=D3(),o=h(i);let n=kr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Ad(o,{get message(){return s(n)}}),g(i),y(t,i),H()}var I1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:pl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},wm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?pl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),E1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:xm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Sm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?pl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Cm=({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:F("traffic_saving_quality"),valueComponent:t?pl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var du=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),cu=(t,e)=>{var r;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(r=Xc(i))!=null?r:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=du(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=du(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=du(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=du(t,e);return F("audio_stream_display_unknown",{index:a})};var H3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:wm,selected:e&&!o&&!n||!1}),a.push({handler:Cm,selected:o},{handler:Sm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[E1(t),...a.map(({handler:r,selected:d})=>r({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),I1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ta,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:wm,selected:((i=kc())==null?void 0:i.type)==="auto_quality"},{handler:Cm,selected:((o=kc())==null?void 0:o.type)==="traffic_saving"},{handler:Sm,selected:((n=kc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:r})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:r},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:cu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("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:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===tu?"sub_off":void 0}))})},k1=({subMenuId:t,context:e})=>t?[H3[t](e)]:[];var F3=Te('<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 Tm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=F3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i))),y(t,o)}var U3=Te('<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 Im(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=U3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img"},i))),y(t,o)}var z3=Te('<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 Em(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=z3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i))),y(t,o)}var W3=Te('<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 km(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=W3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i))),y(t,o)}var q3=Te('<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 Pm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=q3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i))),y(t,o)}var K3=Te('<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 uu(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=K3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i))),y(t,o)}var Q3=Te('<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 Am(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i))),y(t,o)}var G3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Y3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Mm(t,e){O(e,!0),q(t,Y3);let[i,o]=He(),n=()=>S(u,"$currentQuality$",i),a=()=>S(f,"$availableQualities$",i),r=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),l=Ee(),u=l.state.currentQuality$,f=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,_=v(()=>S1({quality:n(),availableQualities:a(),isAutoQualityEnabled:r()}));var w=G3(),b=h(w);Ta(b,{get quality(){return n()},get label(){return s(_)},get isMobile(){return d()}}),g(w),y(t,w),H(),o()}var Z3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:sd,label:F("menu_quality"),value:e,valueComponent:Mm,weight:Br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Br["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:F("aria_label_submenu_traffic_saving"),icon:Tm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=cu(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Im,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Em,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ad,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:km}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Pm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,label:F("aria_label_menu_debug_overlay"),ariaLabel:F("menu_debug_overlay"),icon:Am,isHiddenFor:["desktop"]})},P1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>Z3[n](e)),...i.map(n=>Ot(z({},n),{isAdditional:!0}))].filter(n=>{var a,r,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((r=n==null?void 0:n.isHiddenFor)!=null&&r.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(pa)};var ex=(t,e)=>{Oc(t,e)},tx=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),ix=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),ox=L("<div><!> <!></div>"),nx={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 {
|
|
306
303
|
/* \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),
|
|
307
304
|
.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),
|
|
308
305
|
.settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
|
|
309
|
-
.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
|
|
306
|
+
.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 Md(t,e){O(e,!0),q(t,nx);let[i,o]=He(),n=()=>S(qe,"$settingsMenuVisible",i),a=()=>S(et,"$settingsMenuOpenedByKeyboard",i),r=()=>S(Tt,"$debugPanelVisible",i),d=()=>S(ie,"$isMobile",i),l=()=>S(nt,"$playerSize",i),u=()=>S(Z,"$hasMpegSources$",i),f=()=>S(Ve,"$mobileNotReportControlHidden$",i),$=()=>S(se,"$autoQualityLimitingAvailable$",i),p=()=>S(pe,"$availableSubtitlesList$",i),_=()=>S(Qe,"$isLiveWithPlaybackSpeed",i),w=()=>S(_e,"$availableAudioStreams$",i),b=()=>S(Ke,"$availablePlaybackRates$",i),C=()=>S(Ne,"$currentAudioStream$",i),T=()=>S($e,"$currentPlaybackRate$",i),I=()=>S(at,"$trafficSavingEnabled",i),M=()=>S(ce,"$currentQuality$",i),P=()=>S(N,"$isAutoQualityEnabled$",i),E=()=>S(ne,"$currentSubtitle$",i),V=()=>S(Qt,"$additionalSettingsMenuItems$",i),W=()=>S(Se,"$isAutoQualityAvailable$",i),K=()=>S(Le,"$availableQualities$",i),U=()=>S(lt,"$highQualityEnabled",i),j=m(e,"ref",15,void 0),ae=m(e,"playerControlsHeight",3,0),Y=ve({}),de=ve({}),le=Ee(),Me=Wt(),Ne=le.state.audioStream$,_e=le.state.availableAudioStreams$,ce=le.state.currentQuality$,Le=le.state.availableQualities$,se=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Se=le.state.isAutoQualityAvailable$,$e=le.state.currentPlaybackRate$,Ke=le.state.availablePlaybackRates$,ne=le.state.currentSubtitle$,pe=le.state.availableSubtitlesList$,ye=le.state.canDownload,Z=le.state.hasMpegSources$,qe=le.ui.settingsMenu.visible$,et=le.ui.settingsMenu.openedByBtnKeyboard$,Ie=le.ui.settingsMenu.ref$,ie=le.ui.isMobile,Ve=le.ui.mobileNotReportControlHidden$,Qe=le.state.canChangePlaybackSpeed$,at=le.state.trafficSavingEnabled$,lt=le.state.highQualityEnabled$,nt=le.ui.playerSize,Tt=le.ui.debugPanelVisible,pt=le.state.isInteractiveTime$,Qt=le.ui.additionalSettingsMenuItems$,ni=le.ui.t,At=le.actions.internal.downloadVideo,Mt=le.actions.internal.closeSettingsMenu,ee=le.actions.internal.openSettingsSubMenu,It=le.actions.internal.closeSettingsSubMenu,X=J(!1),ue=J(void 0),Ae=y1();We(()=>{!n()&&Ae.current&&(It(de[Ae.current]),Ae.popAllSubMenus())}),We(()=>{n()||D(ue,void 0)}),We(()=>{!Ae.current&&s(ue)&&Dh(Y,s(ue))}),We(()=>{j()&&Ie.set(j())});function De(tt){return xt(this,null,function*(){Ae.pushSubMenu(tt),yield yo(),ee(tt,de[tt])})}function fe(tt){var Vt;tt==null||tt.stopPropagation(),a()||(Vt=e.returnFocus)==null||Vt.call(e),Mt(),D(X,!1)}function Ye(tt,Vt){le.actions.internal.setQuality(tt,{appliesTo:Vt}),fe()}function Je(tt){le.actions.internal.setAudioStream(tt),fe()}function je(tt,Vt){le.actions.internal.setTrafficSavingEnabled(tt,Vt),Me.features.qualityDetailsSubMenuEnabled&&fe()}function Nt(tt,Vt){le.actions.internal.setHighQualityEnabled(tt,Vt),fe()}function ut(tt){le.actions.internal.setPlaybackRate(tt),fe()}function ri(tt){le.actions.internal.setSubtitle(tt),fe()}function ot(){At()}function oi(){J3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function di(){tl(le.actions.internal.getDebugTextData())}let rt=()=>{let tt=le.actions.internal.getTraceTextData(),Vt=new Blob([...tt],{type:"application/json"}),mo=window.URL.createObjectURL(Vt);aa(mo,"vk_player_trace_info","json")};function ei(){Tt.set(!r())}function Ki(){D(X,!0)}function Qi(){D(X,!1)}function Lt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ae()}px; overflow: auto;`}let gt=v(()=>ye&&u()&&!f()),Dt=v(()=>Me.features.trafficSaving&&!f()&&$()&&!Me.features.qualityDetailsSubMenuEnabled),fo=v(()=>p().length>0&&!f()),Co=v(()=>!!_()&&!f()),Vi=v(()=>Me.features.audioLanguages&&w().length>=2&&!f()),To=v(()=>!f());Ht(()=>pt.subscribe(tt=>{tt&&!d()&&!s(X)&&!a()&&fe()}));let G=v(()=>{let tt=[s(To)&&"QUALITY_SETTINGS",s(Vi)&&"AUDIO_LANGUAGES",s(Co)&&"PLAYBACK_RATE",s(fo)&&"SUBTITLES",s(Dt)&&"TRAFFIC_SAVING_SWITCH",s(gt)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Vt=>!!Vt);return P1({items:tt,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ut,trafficSavingEnabled:I(),toggleTrafficSaving:je,currentQuality:M()||A1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ot,onCopyDataClick:di,onReportProblemClick:oi,onSaveTraceDataClick:rt,toggleShowDebugInfo:ei},additionalSettingsMenuItems:V()})}),Zt=v(()=>k1({subMenuId:Ae.current,context:{availablePlaybackRates:b(),selectPlaybackRate:ut,trafficSavingEnabled:I(),toggleTrafficSaving:je,currentQuality:M()||A1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:K(),highQualityEnabled:U(),toggleHighQuality:Nt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Mt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Je,selectQuality:Ye,selectSubtitle:ri}}));var fi=ox();let Ri;var ci=h(fi);{var ui=tt=>{var Vt=ix();let mo;Vt.__keydown=[ex,Mt];var Xt=h(Vt);{var mr=$i=>{var ht=tx();let Ei;var Jo=h(ht),Gi=h(Jo,!0);g(Jo);var yi=A(Jo,2);yi.__click=fe,g(ht),k((Oi,Do)=>{Ei=te(ht,1,"item header svelte-17or3al",null,Ei,Oi),he(Gi,Do)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),y($i,ht)};R(Xt,$i=>{d()&&$i(mr)})}var Ii=A(Xt,2);let Xo;Si(Ii,21,()=>s(G),$i=>$i.id,($i,ht)=>{var Ei=Fe(),Jo=ge(Ei);{var Gi=Oi=>{hm(Oi,{get isMobile(){return d()},get id(){return s(ht).id},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},get value(){return s(ht).value},get valueComponent(){return s(ht).valueComponent},onClick:()=>{De(s(ht).children),D(ue,ve(s(ht).id))},get ref(){return Y[s(ht).id]},set ref(Do){Y[s(ht).id]=Do}})},yi=(Oi,Do)=>{{var Io=Eo=>{_m(Eo,{get isMobile(){return d()},get id(){return s(ht).id},get onClick(){return s(ht).onClick},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},closeSettings:fe})},An=(Eo,hn)=>{{var Oo=Ho=>{$m(Ho,{get isMobile(){return d()},get id(){return s(ht).id},get onClick(){return s(ht).onClick},get icon(){return s(ht).icon},get label(){return s(ht).label},get ariaLabel(){return s(ht).ariaLabel},get enabled(){return s(ht).enabled},get tooltipText(){return s(ht).tooltipText},get maxTooltipWidth(){return s(ht).maxTooltipWidth}})};R(Eo,Ho=>{s(ht).type==="SWITCH"&&Ho(Oo)},hn)}};R(Oi,Eo=>{s(ht).type==="CLICK"?Eo(Io):Eo(An,!1)},Do)}};R(Jo,Oi=>{s(ht).type==="OPEN_SUB_MENU"?Oi(Gi):Oi(yi,!1)})}y($i,Ei)}),g(Ii),it(Ii,$i=>j($i),()=>j()),g(Vt),k(($i,ht,Ei)=>{mo=te(Vt,1,"settings-menu menu svelte-17or3al",null,mo,$i),Xo=te(Ii,1,"items",null,Xo,ht),st(Ii,Ei)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ae.current}),()=>({mobile:d()}),Lt]),Ct("mouseenter",Vt,Ki),Ct("mouseleave",Vt,Qi),y(tt,Vt)};R(ci,tt=>{n()&&tt(ui)})}var ft=A(ci,2);Si(ft,17,()=>s(Zt),tt=>tt.id,(tt,Vt)=>{let mo=v(()=>{var Xt;return(Xt=s(Vt).minWidth)!=null?Xt:137});gm(tt,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Ae.popSubMenu},get id(){return s(Vt).id},get title(){return s(Vt).title},closeSettingsMenu:Mt,openSubMenuList:De,get items(){return s(Vt).items},get minWidth(){return s(mo)},get refMenuItems(){return Y},get listRef(){return de[s(Vt).id]},set listRef(Xt){de[s(Vt).id]=Xt}})}),g(fi),k(tt=>Ri=te(fi,1,"settings-menu-container svelte-17or3al",null,Ri,tt),[()=>({mobile:d(),hidden:!n()})]),y(t,fi),H(),o()}dt(["keydown","click"]);var rx=t=>t;function M1(t,{delay:e=0,duration:i=400,easing:o=rx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var sx=L('<button class="button svelte-1sbbskl"> </button>'),ax={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Lm(t,e){q(t,ax);var i=sx();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>he(o,e.label)),y(t,i)}dt(["click"]);var lx=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),dx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
|
|
310
307
|
/**
|
|
311
308
|
* \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.
|
|
312
|
-
*/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
|
|
309
|
+
*/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 Ld(t,e){O(e,!0),q(t,dx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=Ee(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var r=lx(),d=h(r),l=h(d),u=h(l),f=h(u);Ad(f,{message:a}),g(u);var $=A(u,2);{var p=w=>{let b=v(()=>n("slow_video_notification_button"));Lm(w,{get label(){return s(b)},get onClick(){return e.onSelectAutoQuality}})};R($,w=>{o||w(p)})}g(l);var _=A(l,2);fa(_,{get onClick(){return e.onClose}}),g(d),g(r),$p(3,d,()=>M1,()=>({duration:i})),y(t,r),H()}import{isIntersecting as L1,Subscription as cx}from"@vkontakte/videoplayer-shared/es2015";var Ia="annotation",pu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:a,hideAllControls:r}=i;e.setAttribute("slot",Ia),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(n,a),r&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,a){return xt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let r=this.slots.get(e);if(!r)return;let d=yield this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(_=>_.forEach(()=>{let w=gs(d,this.shadowRootContainer);o.forEach(b=>{let C=l==null?void 0:l[b],T=C?we(C):null,I=u==null?void 0:u[b];T&&(I==null||I.set(L1(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),r.observer=f;let $=new cx;o.forEach(_=>{l&&$.add(l[_].subscribe(w=>{let b=u==null?void 0:u[_];w&&w.isDisplayed?b==null||b.set(L1(w,gs(d,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=$})}findSlotElement(e,i,o){return xt(this,null,function*(){return new Promise(n=>{let a=null,r=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){r.disconnect();let l=this.slots.get(o);l&&(l.observerForFindingSlotElement=void 0),n(a)}});r.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=r)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:a,subs:r,options:{controlsBehaviour:d,hideAllControls:l}}=i;o&&o.remove(),[n,a].forEach($=>$==null?void 0:$.disconnect()),r==null||r.unsubscribe(),this.slots.delete(e),l&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach($=>{var p,_;(_=(p=this.store)==null?void 0:p.ui.hiddenControls[$])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var ux=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),px={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
|
|
313
310
|
|
|
314
311
|
animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
|
|
315
312
|
|
|
@@ -340,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
340
337
|
opacity: 0;
|
|
341
338
|
scale: 0;
|
|
342
339
|
}
|
|
343
|
-
}`};function
|
|
344
|
-
.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 _a(t,e){U(e,!0),K(t,lx);let[i,o]=Ne(),n=()=>S(f,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:b},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:$}=Kt(),x=v(()=>l()&&n()%180?a().height/a().width:1);var _=ax();let C;_.__contextmenu=function(...k){var P;(P=e.onContextMenu)==null||P.apply(this,k)},_.__mousedown=function(...k){var P;(P=e.onMouseDown)==null||P.apply(this,k)},_.__mouseup=function(...k){var P;(P=e.onMouseUp)==null||P.apply(this,k)},_.__click=function(...k){var P;(P=e.onClick)==null||P.apply(this,k)},_.__dblclick=function(...k){var P;(P=e.onDblClick)==null||P.apply(this,k)};var T=h(_);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),ft(T,k=>l(k),()=>l()),g(_),E(k=>{C=ee(_,1,"video-wrapper svelte-1czns9r",null,C,k),rt(T,`transform: rotate(${n()}deg) scale(${r(x)})`),De(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),y(t,_),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var dx=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},cx=L("<div><!></div>"),ux=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),px=L("<div><!></div>"),fx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),mx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),vx=L("<!> <!> <!>",1),gx=L('<div class="blocked svelte-jtgjmv"></div>'),hx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),_x={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .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-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Em(t,e){U(e,!0),K(t,_x);let[i,o]=Ne(),n=()=>S(an,"$notificationsToShow$",i),a=()=>S(Di,"$playerPhase",i),s=()=>S(ti,"$isLoaderVisible",i),d=()=>S(ni,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),u=()=>S(Mo,"$isInteractiveTime$",i),f=()=>S(Bt,"$settingsMenuVisible",i),b=()=>S(gi,"$isInteractiveExpectation$",i),p=()=>S(_t,"$controlsVisible",i),$=()=>S(Wi,"$touched",i),x=()=>S(rr,"$graphIsOpened$",i),_=()=>S(qi,"$isFullscreen",i),C=()=>S(Tr,"$autoplayNextEnabled$",i),T=()=>S(mt,"$postrollPassed",i),k=()=>S(di,"$isEnded$",i),P=()=>S(No,"$cursorInside",i),A=()=>S(On,"$isControlsAvailable",i),I=()=>S(wn,"$fakeIsPlaying$",i),V=()=>S(cn,"$bottomNoSmooth",i),q=()=>S(Io,"$interactiveTimeIndicator",i),G=()=>S(zo,"$playerSize",i),H=()=>S(fi,"$is3DVideo",i),Z=()=>S(wo,"$contextMenuVisible$",i),re=()=>S(Yt,"$playbackState$",i),X=()=>S(Co,"$hotKeyMapData",i),ce=()=>S(nn,"$scrubbingInProgress",i),ue=()=>S(yn,"$volumeChangingInProgress",i),Ve=()=>S(Oi,"$chromecastConnected$",i),Me=()=>S(qo,"$controlsTimeoutActive",i),_e=()=>S(mo,"$settingsMenuOpenedByKeyboard",i),ae=()=>S(Do,"$contextMenuOpenedByKeyboard$",i),Le=()=>S(Ar,"$contextMenuButtonRef$",i),ne=()=>S(vr,"$contextMenuOpenedByHotKey$",i),B=()=>S(Mr,"$contextMenuLastActiveElem$",i),$e=()=>S(Lt,"$isFullscreenOpenedByKeyboard",i),de=()=>S(Je,"$language$",i),Ke=()=>S(St,"$icon3DVideoVisible",i),te=()=>S(pi,"$chromecastDeviceName$",i),ve=()=>S(or,"$currentSubtitle$",i),Y=()=>S(So,"$currentSubtitleCaptions$",i),ie=()=>S(et,"$position$",i),He=()=>S(ei,"$duration$",i),je=()=>S(vi,"$isLive$",i),ye=()=>S(Xe,"$isPlaying$",i),Se=()=>S(Zi,"$contextMenuPosition$",i),Re=()=>S(To,"$showHotKeyMap",i),Ye=()=>S(j,"$debugPanelVisible",i),ct=()=>S(nr,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),st=m(e,"adsSlotId",3,void 0),It=m(e,"adsParams",3,void 0),bt=m(e,"adsPreviewParam",3,void 0),Zt=m(e,"adsAutoplayParam",3,void 0),li=m(e,"duration",3,void 0),Et=m(e,"logoTargetUrl",3,""),Nt=m(e,"showNextPrevButtons",3,!1),O=m(e,"nextButtonActive",3,!1),be=m(e,"prevButtonActive",3,!1),se=m(e,"endScreenVideoTitle",3,void 0),Be=m(e,"endScreenVideoThumb",3,void 0),qe=m(e,"isOneVideoPlaylist",3,!1),Ge=m(e,"shadowRootContainer",3,void 0),pt=m(e,"outerContainerRef",3,void 0),Ze=m(e,"playerStarted",3,!1),tt=m(e,"fullScreenTarget",3,void 0),it=m(e,"showMiniTimer",3,!1),We=m(e,"showEndScreen",3,!0),ht=m(e,"keyboardControls",15),Ut=e.store.getLogger().createComponentLog("Root component"),Je=e.store.interfaceLanguage$,Yt=e.store.state.playbackState$,ni=e.store.ads.playbackState,et=e.store.state.positionWithScrubbing$,ei=e.store.state.duration$,Di=e.store.playerPhase,qi=e.store.ui.isFullscreen,Lt=e.store.ui.isFullscreenOpenedByKeyboard,_t=e.store.ui.controlsVisible,Bt=e.store.ui.settingsMenu.visible$,mo=e.store.ui.settingsMenu.openedByBtnKeyboard$,nn=e.store.ui.scrubbingInProgress,yn=e.store.ui.volumeChangingInProgress,wo=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,ti=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Oi=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,mt=e.store.ads.postrollPassed,vi=e.store.state.isLive$,Xe=e.store.state.isPlaying$,Vt=e.store.state.crashed$,no=e.store.webApi.annotationsApi,ri=e.store.webApi.pictureInPictureApi,or=e.store.state.currentSubtitle$,So=e.store.state.currentSubtitleCaptions$,zo=e.store.ui.playerSize,fi=e.store.ui.is3DVideo,St=e.store.ui.icon3DVideoVisible,Ii=e.store.state.isInteractive,Mo=e.store.state.isInteractiveTime$,gi=e.store.state.isInteractiveExpectation$,Lo=e.store.state.hasInteractiveBranches,Wi=e.store.ui.touched,Co=e.store.ui.modals.hotKeyMap.data,To=e.store.ui.modals.hotKeyMap.show,Dn=e.store.ui.overlayContainer$,Io=e.store.ui.controls.interactiveTimeIndicator,xn=e.store.state.showInteractiveTimeIndicator,Zi=e.store.ui.contextMenu.position$,Vo=e.store.actions.internal.setQuality,rn=e.store.actions.internal.closeSettingsMenu,Tr=e.store.ui.autoplayNextEnabled$,nr=e.store.ui.userActionsDisabled,On=e.store.ui.isControlsAvailable,{fakeIsPlaying$:wn,notifications$:Hn,graphIsOpened$:rr}=fo(),ro=J(void 0),Ro=J(void 0),Sn=J(void 0),ot=J(void 0),Cn,Fn,sn;Co.set(Th());let{closeNotification:sr,notificationsToShow$:an}=Hn,ln=v(()=>!!n().slow_video),dn=()=>sr("slow_video"),Xi=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Ki=J(void 0),cn=le(!1),Un,qo=le(!1),un=le(),No=le(!1),vo=J(!1),Hi=J(!1),zn=J(!1),so=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Tn=v(()=>u()&&!f()&&!(r(vo)||r(Hi))&&!(r(zn)&&!b())),qn=!0,pn=v(()=>e.uiConfig.features.thumbTimer&&it()&&a()==="video"&&!p()&&!l()&&!Ii&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Ir=v(()=>a()==="video"&&!x()&&_()),Wo=J(!1),kr=v(()=>(We()||e.showAutoplayNext&&C())&&!!se()&&!!Be()&&(e.showAds&&T()||!e.showAds)&&k()&&!l()&&!r(Wo)),Wn=v(()=>P()&&!(p()||r(kr))&&!u()&&A()),Kn=J(!1),ar=v(()=>I()!==null),{toggle:Er}=wn,In=!1,ii=null;ri==null||ri.setContext(kl());let lr=()=>{e.autoplay&&!Ii&&e.uiConfig.controls.showOnStartupAtAutoplay&&ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:lr});let Pr=()=>{window.clearTimeout(Cn),qo.set(!1)},Bo=()=>{window.clearTimeout(Fn),un.set(null)},ki=Ce=>{Pr(),qo.set(!0),Cn=window.setTimeout(()=>qo.set(!1),Ce);let Mt=Ce-100;Un=window.setTimeout(()=>{V()&&cn.set(!1)},Mt>0?Mt:Ce)},dr=(Ce,Mt)=>{Bo(),un.set(Mt),Fn=window.setTimeout(()=>un.set(null),Ce)},vt=fi.subscribe(Ce=>{St.set(Ce),Ce&&(window.clearTimeout(sn),sn=window.setTimeout(()=>St.set(!1),e.uiConfig.controls.hide360IconTimeout))}),zt=()=>xt(this,null,function*(){var Mt,bi,$i,_i;let Ce=bs();if(Ce){let Ee=Ul(),$t=nt();Ce=Ee===$t||Ee===Ge()}if(Ce){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ri==null?void 0:ri.remove()}catch(Ee){Ut({message:String(Ee)})}}qi.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),_()?(bi=(Mt=e.store.callbacks)==null?void 0:Mt.onFullscreenEnter)==null||bi.call(Mt):(_i=($i=e.store.callbacks)==null?void 0:$i.onFullscreenExit)==null||_i.call($i)}),Mi=Ce=>{let{width:Mt,height:bi}=Ce.target;zo.set({width:Mt,height:bi})},ko=()=>{let{width:Ce,height:Mt}=r(ro).getBoundingClientRect();zo.set({width:Ce,height:Mt})};Wt(()=>{var Mt;return Vc(zt),e.uiConfig.features.annotationsInside&&(no==null||no.init(r(ro))),ea(ri)&&(ri==null||ri.assignPlayerContainer(r(ro)),ri==null||ri.registryExternalEventHandlers({resize:Mi,leavepictureinpicture:ko})),e.interactiveContainer&&((Mt=ut().parentElement)==null||Mt.insertBefore(e.interactiveContainer,ut().nextSibling)),()=>{window.clearTimeout(Cn),window.clearTimeout(Un),window.clearTimeout(Fn),window.clearTimeout(sn),vt(),ri==null||ri.dispose().catch(bi=>{Ut({message:String(bi)})}),Rc(zt)}});let nt=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!pt()?r(ro):pt(),Mt=Ce.getRootNode(),bi=Mt instanceof ShadowRoot?Mt.host:Mt,$i=tt()instanceof HTMLElement&&tt().contains(bi);return e.uiConfig.allowChangingFullscreenTarget&&tt()&&$i?tt():Ce},Gt=()=>xt(this,null,function*(){bs()?(yield Lc(document),Ut({message:"exit fullscreen"})):(Ut({message:"request fullscreen"}),yield Mc(nt()))}),hi=()=>{rn(),wo.set(!1)},Ji=Ce=>{x()||(Ce.preventDefault(),wo.set(!0),Zi.set({left:Ce.clientX,top:Ce.clientY}))};function eo(){No.set(!0),Ii||ki(e.uiConfig.controls.hideTimeoutCursor)}function Li(){Ii||(cn.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))}function Ci(){No.set(!1),D(Hi,!1),D(vo,!1),In=!1,e.store.actions.internal.releaseCamera(),ki(e.uiConfig.controls.hideTimeout)}function Qi(Ce){return Ce?Ce.offsetTop+Qi(Ce.offsetParent):0}function si(Ce){return Ce?Ce.offsetLeft+si(Ce.offsetParent):0}function Fi(Ce){if(q()&&xn){let Mt=Ce.currentTarget,bi=Qi(Mt),$i=si(Mt),_i=Ce.pageX-$i,Ee=Ce.pageY-bi,{left:$t,bottom:jt,right:Ti}=q(),ci=Ti-$t;return _i>=$t-ci&&Ee<=jt+ci}}function fn(Ce){if(r(ro)){let Mt=Qi(Ce.currentTarget),bi=G().height,$i=Ce.pageY-Mt;if(Fi(Ce)){D(Hi,!1);return}$i<40?D(Hi,!0):$i>bi-40?D(vo,!0):(D(Hi,!1),f()||D(vo,!1))}}function cr(Ce){fn(Ce),r(Tn)||ki(e.uiConfig.controls.hideTimeoutCursor),H()&&In&&ii&&e.store.actions.internal.moveCameraFocusPX(ii.clientX-Ce.clientX,ii.clientY-Ce.clientY,Ce.timeStamp-ii.timeStamp),ii=Ce}let Qn=Ce=>{Ce.preventDefault(),Ce.button===0&&(In=!0,e.store.actions.internal.holdCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},ur=Ce=>{Ce.preventDefault(),Ce.button===0&&(ii=Ce,In=!1,e.store.actions.internal.releaseCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},pr=Ce=>{Ce.preventDefault(),qn&&(Ut({message:"double click on video"}),Gt(),ki(e.uiConfig.controls.hideTimeoutCursor))},fr=Ce=>{var Mt;if(Ce.preventDefault(),Z()||f()){hi();return}if(!(k()&&!Lo)){if(r(ar))return Er();if((Mt=ht())==null||Mt.focus(),!Ze()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==I1.PLAYING)&&e.store.actions.internal.togglePlay(),ki(e.uiConfig.controls.hideTimeoutCursor)}},mr=Ce=>{hi(),Wi.set(!0),ki(e.uiConfig.controls.hideTimeout),Ce&&dr(e.uiConfig.controls.hideHotKeyHelpers,Ce)},Gn=()=>{var Ce,Mt;hi(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(Mt=e.store.callbacks)==null||Mt.onOpenHotKeyMap(X()):To.update(bi=>!bi)},jn=()=>{Wi.set(!0)},Do=e.store.ui.contextMenu.openedByBtnKeyboard$,Ar=e.store.ui.contextMenu.btnRef$,Oo=J(void 0),vr=e.store.ui.contextMenu.openedByHotKey$,Mr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{Dn.set(r(Ki))}),Fe(()=>{D(zn,me(r(so)&&re()!==I1.PLAYING)),r(so)||wt(()=>D(so,!0))}),Fe(()=>{_t.set((r(zn)||k()||f()||ce()||ue()||Ve()||Me())&&!r(Tn)&&(a()==="video"||a()==="ads")&&!l()&&A())}),Fe(()=>{!ce()&&r(Kn)&&!u()&&ki(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(Kn,me(ce())))}),Fe(()=>{r(ot),f(),_e(),wt(()=>Xa(r(ot),f(),_e()))}),Fe(()=>{r(Oo),Z(),ae(),wt(()=>Xa(r(Oo),Z(),ae()))}),Fe(()=>{let Ce=Le();Ce&&(Z(),wt(()=>Za(Ce,Z(),Do)))}),Fe(()=>{r(Oo),Z(),ne(),wt(()=>Xa(r(Oo),Z(),ne()))}),Fe(()=>{let Ce=B();Ce&&(Z(),wt(()=>Mh(Ce,Z(),vr)))}),Fe(()=>{var Ce;!$e()&&_()&&(wt(()=>Lt.set(!1)),(Ce=ht())==null||Ce.focus())}),Fe(()=>{x()&&hi()});let Lr=F("video360");var Vr=hx();Tt("blur",Us,hi);var to=fe(Vr);to.__mousemove=cr;var kn=h(to);let Rr=v(()=>a()==="ads"),lt=v(()=>r(ar)?Er:void 0);ft(Gp(kn,{toggleFullscreen:Gt,hideContextMenu:hi,showHotKeyHelpers:mr,showKeyMap:Gn,get isAds(){return r(Rr)},get fakePlayButtonHandler(){return r(lt)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(Ce,Mt)=>{var bi=vx(),$i=fe(bi);_a($i,{get hideCursor(){return r(Wn)},onClick:fr,onContextMenu:Ji,onMouseDown:Qn,onMouseUp:ur,onDblClick:pr,get videoContainer(){return ut()},set videoContainer($t){ut($t)}});var _i=M($i,2);Gs(_i,()=>"slot",!1,($t,jt)=>{ke($t,null,{name:ha})});var Ee=M(_i,2);Qs(Ee,de,$t=>{var jt=mx(),Ti=fe(jt);let ci=v(()=>a()!=="thumb"||l()||Ii&&e.autoplay);ma(Ti,{get hidden(){return r(ci)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wr=M(Ti,2);km(Wr,{});var Ui=M(Wr,2);{var Yn=Ue=>{let ui=v(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});Cd(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ui)}})};R(Ui,Ue=>{a()==="LiveWaitingStart"&&Ue(Yn)})}var Es=M(Ui,2);{var Zn=Ue=>{va(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Es,Ue=>{a()==="LiveWaitingRecover"&&Ue(Zn)})}var ba=M(Es,2);{var cl=Ue=>{va(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(ba,Ue=>{a()==="LiveWaitingRecord"&&Ue(cl)})}var $a=M(ba,2);{var ya=Ue=>{var ui=cx();let Qo;var Ls=h(ui);zl(Ls,{get adsSlotId(){return st()},get adsParams(){return It()},get adsPreviewParam(){return bt()},get adsAutoplayParam(){return Zt()},get duration(){return li()}}),g(ui),E(go=>Qo=ee(ui,1,"ads-container svelte-jtgjmv",null,Qo,go),[()=>({hidden:a()!=="ads"})]),y(Ue,ui)};R($a,Ue=>{e.showAds&&Ze()&&Ue(ya)})}var xa=M($a,2);{var ul=Ue=>{let ui=v(()=>!We()&&e.showAutoplayNext&&C());Wp(Ue,{get title(){return se()},get thumb(){return Be()},get isHide(){return r(ui)},clickCloseIcon:()=>D(Wo,!0)})};R(xa,Ue=>{r(kr)&&se()&&Be()&&Ue(ul)})}var Ps=M(xa,2);{var wa=Ue=>{let ui=v(()=>!p());om(Ue,{get title(){return e.title},get isHidden(){return r(ui)}})};R(Ps,Ue=>{r(Ir)&&Ue(wa)})}var dt=M(Ps,2);{var yt=Ue=>{let ui=v(()=>a()==="video"&&p());xd(Ue,{get isShifted(){return r(ui)}})};R(dt,Ue=>{H()&&Ue(yt)})}var io=M(dt,2);{var Ko=Ue=>{var ui=ux(),Qo=h(ui);Fl(Qo,{"aria-label":Lr}),g(ui),y(Ue,ui)};R(io,Ue=>{Ke()&&Ue(Ko)})}var oo=M(io,2);{var mi=Ue=>{wd(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return te()}})};R(oo,Ue=>{Ve()&&Ue(mi)})}var Ri=M(oo,2);{var As=Ue=>{fa(Ue,{get shifted(){return p()},get captions(){return Y()},get position(){return ie()},get playerSize(){return G()}})};R(Ri,Ue=>{ve().value!=="off"&&Ue(As)})}var Sa=M(Ri,2);{var bu=Ue=>{var ui=px();ui.__contextmenu=Ji,ui.__click=[dx,Z,wo,f,Bt,hi];var Qo=h(ui);Sd(Qo,{}),g(ui),y(Ue,ui)};R(Sa,Ue=>{l()&&Ue(bu)})}var Hd=M(Sa,2);{var $u=Ue=>{let ui=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=v(()=>a()==="ads"),Ls=v(()=>e.canRewindLive&&He()!==0);yd(Ue,{get bottomHidden(){return r(ui)},get bottomNoSmooth(){return V()},get showControls(){return p()},get isAds(){return r(Qo)},get canRewindLive(){return r(Ls)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Et()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return qe()},customFullscreenSupported:qn,toggleFullscreen:Gt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Ro)},set playerControlsWrapperRef(go){D(Ro,me(go))},get playerControlsRef(){return r(Sn)},set playerControlsRef(go){D(Sn,me(go))}})};R(Hd,Ue=>{Ze()&&Ue($u)})}var Fd=M(Hd,2);{var yu=Ue=>{var ui=fx(),Qo=h(ui);let Ls=v(()=>{var go;return(go=r(Sn))==null?void 0:go.clientHeight});kd(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ls)},returnFocus:()=>{var go;return(go=ht())==null?void 0:go.focus()},get ref(){return r(ot)},set ref(go){D(ot,me(go))}}),g(ui),y(Ue,ui)};R(Fd,Ue=>{!Ve()&&a()!=="ads"&&Ue(yu)})}var Ud=M(Fd,2);let xu=v(()=>!r(pn));Kl(Ud,{get isLive(){return je()},get isHidden(){return r(xu)},get isPlaying(){return ye()},get position(){return ie()},get duration(){return He()}});var Ms=M(Ud,2);Jf(Ms,{data:un});var zd=M(Ms,2);qp(zd,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=ht())==null?void 0:Ue.focus()},get visible(){return Z()},get playerContainerRef(){return r(ro)},get controlsContainerRef(){return r(Ro)},get position(){return Se()},get menuElementRef(){return r(Oo)},set menuElementRef(Ue){D(Oo,me(Ue))}});var pl=M(zd,2);{var qd=Ue=>{Ed(Ue,{onClose:dn,onSelectAutoQuality:()=>{Vo("auto"),dn()}})};R(pl,Ue=>{r(ln)&&Ue(qd)})}var Wd=M(pl,2);{var Kd=Ue=>{ra(Ue,{})};R(Wd,Ue=>{r(Xi)&&Ue(Kd)})}var Ca=M(Wd,2);{var Qd=Ue=>{Zp(Ue,{})};R(Ca,Ue=>{Re()&&Ue(Qd)})}var wu=M(Ca,2);{var Gd=Ue=>{Yl(Ue,{})};R(wu,Ue=>{Ye()&&Ue(Gd)})}y($t,jt)}),y(Ce,bi)},$$slots:{default:!0}}),Ce=>ht(Ce),()=>ht());var qt=M(kn,2);ft(qt,Ce=>D(Ki,Ce),()=>r(Ki)),g(to),ft(to,Ce=>D(ro,Ce),()=>r(ro));var Vi=M(to,2);{var Eo=Ce=>{var Mt=gx();y(Ce,Mt)};R(Vi,Ce=>{ct()&&Ce(Eo)})}Tt("mouseenter",to,eo),Tt("mouseleave",to,Ci),Tt("click",to,jn,!0),Tt("focusin",to,Li,!0),y(t,Vr),z(),o()}at(["mousemove","contextmenu","click"]);import{clientChecker as Pd,PlaybackState as kx}from"@vkontakte/videoplayer-core/es2015";import{noop as Ex}from"@vkontakte/videoplayer-shared/es2015";var bx=L('<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),$x=L("<div><!></div>"),yx={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;
|
|
340
|
+
}`};function Vm(t,e){O(e,!0),q(t,px);let[i,o]=He(),n=()=>S(r,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:r},ui:{aboutToGoNextVideo:d},actions:l}=Ee(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:$}}=Wt(),p=0,_=J(null),w=J(!1);We(()=>{D(_,ve(n()?Rr:bs))}),We(()=>{D(_,ve(a()?Ds:null))}),We(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&s(_)===Ds&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D(_,null)},s(_)!==Ds?f:$),()=>{p&&(window.clearTimeout(p),p=0)}}),We(()=>{n()&&!s(w)&&(D(w,!0),D(_,null))});var b=Fe(),C=ge(b);{var T=I=>{var M=Fe(),P=ge(M);oa(P,()=>s(_),E=>{var V=ux(),W=h(V),K=h(W);let U=v(()=>a()==="prev");Ci(K,()=>s(_),(j,ae)=>{ae(j,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(W),g(V),k(()=>st(W,`animation-duration: ${s(_)!==Ds?f:$}ms`)),y(E,V)}),y(I,M)};R(C,I=>{s(_)&&u&&I(T)})}y(t,b),H(),o()}var fx=L('<div><div data-testid="video-container"></div></div>'),mx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
|
|
341
|
+
.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 Ea(t,e){O(e,!0),q(t,mx);let[i,o]=He(),n=()=>S(f,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),r=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:$},state:{isPlaying$:p}}=Ee(),{isSmoothVideoRotate:_}=Wt(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=fx();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);te(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),it(T,I=>l(I),()=>l()),g(b),k(I=>{C=te(b,1,"video-wrapper svelte-1czns9r",null,C,I),st(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Oe(T,"data-is-playing",d())},[()=>({hidden:r()!=="video",nocursor:e.hideCursor})]),y(t,b),H(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var vx=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},gx=L("<div><!></div>"),hx=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),_x=L("<div><!></div>"),bx=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),$x=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),yx=L("<!> <!> <!>",1),xx=L('<div class="blocked svelte-jtgjmv"></div>'),wx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Sx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .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-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Rm(t,e){O(e,!0),q(t,Sx);let[i,o]=He(),n=()=>S(Bn,"$notificationsToShow$",i),a=()=>S(Ki,"$playerPhase",i),r=()=>S(Zt,"$isLoaderVisible",i),d=()=>S(di,"$adPlaybackState",i),l=()=>S(Vt,"$crashed",i),u=()=>S(Jo,"$isInteractiveTime$",i),f=()=>S(Dt,"$settingsMenuVisible",i),$=()=>S(Gi,"$isInteractiveExpectation$",i),p=()=>S(gt,"$controlsVisible",i),_=()=>S(Oi,"$touched",i),w=()=>S(Ln,"$graphIsOpened$",i),b=()=>S(Qi,"$isFullscreen",i),C=()=>S(Nr,"$autoplayNextEnabled$",i),T=()=>S(ui,"$postrollPassed",i),I=()=>S(fi,"$isEnded$",i),M=()=>S(vo,"$cursorInside",i),P=()=>S(Xn,"$isControlsAvailable",i),E=()=>S(Mn,"$fakeIsPlaying$",i),V=()=>S(ti,"$bottomNoSmooth",i),W=()=>S(Eo,"$interactiveTimeIndicator",i),K=()=>S(Xo,"$playerSize",i),U=()=>S($i,"$is3DVideo",i),j=()=>S(To,"$contextMenuVisible$",i),ae=()=>S(oi,"$playbackState$",i),Y=()=>S(Do,"$hotKeyMapData",i),de=()=>S(Co,"$scrubbingInProgress",i),le=()=>S(Vi,"$volumeChangingInProgress",i),Me=()=>S(Ri,"$chromecastConnected$",i),Ne=()=>S($n,"$controlsTimeoutActive",i),_e=()=>S(fo,"$settingsMenuOpenedByKeyboard",i),ce=()=>S(Ro,"$contextMenuOpenedByKeyboard$",i),Le=()=>S(xn,"$contextMenuButtonRef$",i),se=()=>S(yr,"$contextMenuOpenedByHotKey$",i),N=()=>S(Ur,"$contextMenuLastActiveElem$",i),Se=()=>S(Lt,"$isFullscreenOpenedByKeyboard",i),$e=()=>S(ot,"$language$",i),Ke=()=>S(ht,"$icon3DVideoVisible",i),ne=()=>S(ci,"$chromecastDeviceName$",i),pe=()=>S(mr,"$currentSubtitle$",i),ye=()=>S(Ii,"$currentSubtitleCaptions$",i),Z=()=>S(rt,"$position$",i),qe=()=>S(ei,"$duration$",i),et=()=>S(ft,"$isLive$",i),Ie=()=>S(tt,"$isPlaying$",i),ie=()=>S(Oo,"$contextMenuPosition$",i),Ve=()=>S(Io,"$showHotKeyMap",i),Qe=()=>S(G,"$debugPanelVisible",i),at=()=>S(vr,"$userActionsDisabled$",i),lt=m(e,"videoContainer",15),nt=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),pt=m(e,"adsPreviewParam",3,void 0),Qt=m(e,"adsAutoplayParam",3,void 0),ni=m(e,"duration",3,void 0),At=m(e,"logoTargetUrl",3,""),Mt=m(e,"showNextPrevButtons",3,!1),ee=m(e,"nextButtonActive",3,!1),It=m(e,"prevButtonActive",3,!1),X=m(e,"endScreenVideoTitle",3,void 0),ue=m(e,"endScreenVideoThumb",3,void 0),Ae=m(e,"isOneVideoPlaylist",3,!1),De=m(e,"shadowRootContainer",3,void 0),fe=m(e,"outerContainerRef",3,void 0),Ye=m(e,"playerStarted",3,!1),Je=m(e,"fullScreenTarget",3,void 0),je=m(e,"showMiniTimer",3,!1),Nt=m(e,"showEndScreen",3,!0),ut=m(e,"keyboardControls",15),ri=e.store.getLogger().createComponentLog("Root component"),ot=e.store.interfaceLanguage$,oi=e.store.state.playbackState$,di=e.store.ads.playbackState,rt=e.store.state.positionWithScrubbing$,ei=e.store.state.duration$,Ki=e.store.playerPhase,Qi=e.store.ui.isFullscreen,Lt=e.store.ui.isFullscreenOpenedByKeyboard,gt=e.store.ui.controlsVisible,Dt=e.store.ui.settingsMenu.visible$,fo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Co=e.store.ui.scrubbingInProgress,Vi=e.store.ui.volumeChangingInProgress,To=e.store.ui.contextMenu.visible$,G=e.store.ui.debugPanelVisible,Zt=e.store.state.isLoaderVisible,fi=e.store.state.isEnded$,Ri=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,ui=e.store.ads.postrollPassed,ft=e.store.state.isLive$,tt=e.store.state.isPlaying$,Vt=e.store.state.crashed$,mo=e.store.webApi.annotationsApi,Xt=e.store.webApi.pictureInPictureApi,mr=e.store.state.currentSubtitle$,Ii=e.store.state.currentSubtitleCaptions$,Xo=e.store.ui.playerSize,$i=e.store.ui.is3DVideo,ht=e.store.ui.icon3DVideoVisible,Ei=e.store.state.isInteractive,Jo=e.store.state.isInteractiveTime$,Gi=e.store.state.isInteractiveExpectation$,yi=e.store.state.hasInteractiveBranches,Oi=e.store.ui.touched,Do=e.store.ui.modals.hotKeyMap.data,Io=e.store.ui.modals.hotKeyMap.show,An=e.store.ui.overlayContainer$,Eo=e.store.ui.controls.interactiveTimeIndicator,hn=e.store.state.showInteractiveTimeIndicator,Oo=e.store.ui.contextMenu.position$,Ho=e.store.actions.internal.setQuality,ko=e.store.actions.internal.closeSettingsMenu,Nr=e.store.ui.autoplayNextEnabled$,vr=e.store.ui.userActionsDisabled,Xn=e.store.ui.isControlsAvailable,Jn=e.store.ui.videoTitleInfo,er=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Mn,notifications$:Dr,graphIsOpened$:Ln}=uo(),Bi=J(void 0),en=J(void 0),_n=J(void 0),Vn=J(void 0),bn,Rn,tn;Do.set(Ah());let{closeNotification:tr,notificationsToShow$:Bn}=Dr,eo=v(()=>!!n().slow_video),Yi=()=>tr("slow_video"),gr=v(()=>(a()==="video"&&r()||a()==="ads"&&d()==="inactive")&&!l()),ct=J(void 0),ti=re(!1),hr,$n=re(!1),Po=re(),vo=re(!1),Nn=J(!1),Ao=J(!1),Dn=J(!1),Mo=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),yn=v(()=>u()&&!f()&&!(s(Nn)||s(Ao))&&!(s(Dn)&&!$())),ir=!0,or=v(()=>e.uiConfig.features.thumbTimer&&je()&&a()==="video"&&!p()&&!l()&&!Ei&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),_r=v(()=>a()==="video"&&!w()&&b()),nr=J(!1),Fo=v(()=>(Nt()||e.showAutoplayNext&&C())&&!!X()&&!!ue()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!s(nr)),Or=v(()=>M()&&!(p()||s(Fo))&&!u()&&P()),rr=J(!1),br=v(()=>E()!==null),{toggle:Lo}=Mn,Gt=!1,go=null;Xt==null||Xt.setContext(Ll());let Uo=()=>{e.autoplay&&!Ei&&e.uiConfig.controls.showOnStartupAtAutoplay&&ki(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Uo});let sr=()=>{window.clearTimeout(bn),$n.set(!1)},Hr=()=>{window.clearTimeout(Rn),Po.set(null)},ki=ke=>{sr(),$n.set(!0),bn=window.setTimeout(()=>$n.set(!1),ke);let xe=ke-100;hr=window.setTimeout(()=>{V()&&ti.set(!1)},xe>0?xe:ke)},is=(ke,xe)=>{Hr(),Po.set(xe),Rn=window.setTimeout(()=>Po.set(null),ke)},Fr=$i.subscribe(ke=>{ht.set(ke),ke&&(window.clearTimeout(tn),tn=window.setTimeout(()=>ht.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$r=()=>xt(this,null,function*(){var xe,$t,qt,Pi;let ke=As();if(ke){let xi=Ql(),Ue=zo();ke=xi===Ue||xi===De()}if(ke){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xt==null?void 0:Xt.remove()}catch(xi){ri({message:String(xi)})}}Qi.set(ke),e.store.getAdmanWrapper().setFullscreen(ke),b()?($t=(xe=e.store.callbacks)==null?void 0:xe.onFullscreenEnter)==null||$t.call(xe):(Pi=(qt=e.store.callbacks)==null?void 0:qt.onFullscreenExit)==null||Pi.call(qt)}),_t=ke=>{let{width:xe,height:$t}=ke.target;Xo.set({width:xe,height:$t})},si=()=>{let{width:ke,height:xe}=s(Bi).getBoundingClientRect();Xo.set({width:ke,height:xe})};Ht(()=>{var xe;return Nc($r),e.uiConfig.features.annotationsInside&&(mo==null||mo.init(s(Bi))),ca(Xt)&&(Xt==null||Xt.assignPlayerContainer(s(Bi)),Xt==null||Xt.registryExternalEventHandlers({resize:_t,leavepictureinpicture:si})),e.interactiveContainer&&((xe=lt().parentElement)==null||xe.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(bn),window.clearTimeout(hr),window.clearTimeout(Rn),window.clearTimeout(tn),Fr(),Xt==null||Xt.dispose().catch($t=>{ri({message:String($t)})}),Dc($r)}});let zo=()=>{let ke=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?s(Bi):fe(),xe=ke.getRootNode(),$t=xe instanceof ShadowRoot?xe.host:xe,qt=Je()instanceof HTMLElement&&Je().contains($t);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&qt?Je():ke},Wo=()=>xt(this,null,function*(){As()?(yield Bc(document),ri({message:"exit fullscreen"})):(ri({message:"request fullscreen"}),yield Rc(zo()))}),Hi=()=>{ko(),To.set(!1)},On=ke=>{w()||(ke.preventDefault(),To.set(!0),Oo.set({left:ke.clientX,top:ke.clientY}))};function on(){vo.set(!0),Ei||ki(e.uiConfig.controls.hideTimeoutCursor)}function Hn(){Ei||(ti.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))}function Fi(){vo.set(!1),D(Ao,!1),D(Nn,!1),Gt=!1,e.store.actions.internal.releaseCamera(),ki(e.uiConfig.controls.hideTimeout)}function nn(ke){return ke?ke.offsetTop+nn(ke.offsetParent):0}function Ze(ke){return ke?ke.offsetLeft+Ze(ke.offsetParent):0}function Rt(ke){if(W()&&hn){let xe=ke.currentTarget,$t=nn(xe),qt=Ze(xe),Pi=ke.pageX-qt,xi=ke.pageY-$t,{left:Ue,bottom:mt,right:pi}=W(),sn=pi-Ue;return Pi>=Ue-sn&&xi<=mt+sn}}function mi(ke){if(s(Bi)){let xe=nn(ke.currentTarget),$t=K().height,qt=ke.pageY-xe;if(Rt(ke)){D(Ao,!1);return}qt<40?D(Ao,!0):qt>$t-40?D(Nn,!0):(D(Ao,!1),f()||D(Nn,!1))}}function qo(ke){mi(ke),s(yn)||ki(e.uiConfig.controls.hideTimeoutCursor),U()&&Gt&&go&&e.store.actions.internal.moveCameraFocusPX(go.clientX-ke.clientX,go.clientY-ke.clientY,ke.timeStamp-go.timeStamp),go=ke}let to=ke=>{ke.preventDefault(),ke.button===0&&(Gt=!0,e.store.actions.internal.holdCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},ho=ke=>{ke.preventDefault(),ke.button===0&&(go=ke,Gt=!1,e.store.actions.internal.releaseCamera()),ki(e.uiConfig.controls.hideTimeoutCursor)},io=ke=>{ke.preventDefault(),ir&&(ri({message:"double click on video"}),Wo(),ki(e.uiConfig.controls.hideTimeoutCursor))},Ko=ke=>{var xe;if(ke.preventDefault(),j()||f()){Hi();return}if(!(I()&&!yi)){if(s(br))return Lo();if((xe=ut())==null||xe.focus(),!Ye()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ae()!==R1.PLAYING)&&e.store.actions.internal.togglePlay(),ki(e.uiConfig.controls.hideTimeoutCursor)}},Vo=ke=>{Hi(),Oi.set(!0),ki(e.uiConfig.controls.hideTimeout),ke&&is(e.uiConfig.controls.hideHotKeyHelpers,ke)},bi=()=>{var ke,xe;Hi(),(ke=e.store.callbacks)!=null&&ke.onOpenHotKeyMap?(xe=e.store.callbacks)==null||xe.onOpenHotKeyMap(Y()):Io.update($t=>!$t)},ji=()=>{Oi.set(!0)},Ro=e.store.ui.contextMenu.openedByBtnKeyboard$,xn=e.store.ui.contextMenu.btnRef$,Ui=J(void 0),yr=e.store.ui.contextMenu.openedByHotKey$,Ur=e.store.ui.contextMenu.lastActiveElem$;We(()=>{An.set(s(ct))}),We(()=>{D(Dn,ve(s(Mo)&&ae()!==R1.PLAYING)),s(Mo)||wt(()=>D(Mo,!0))}),We(()=>{gt.set((s(Dn)||I()||f()||de()||le()||Me()||Ne())&&!s(yn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),We(()=>{!de()&&s(rr)&&!u()&&ki(e.uiConfig.controls.hideTimeoutCursor),wt(()=>D(rr,ve(de())))}),We(()=>{s(Vn),f(),_e(),wt(()=>ol(s(Vn),f(),_e()))}),We(()=>{s(Ui),j(),ce(),wt(()=>ol(s(Ui),j(),ce()))}),We(()=>{let ke=Le();ke&&(j(),wt(()=>il(ke,j(),Ro)))}),We(()=>{s(Ui),j(),se(),wt(()=>ol(s(Ui),j(),se()))}),We(()=>{let ke=N();ke&&(j(),wt(()=>Nh(ke,j(),yr)))}),We(()=>{var ke;!Se()&&b()&&(wt(()=>Lt.set(!1)),(ke=ut())==null||ke.focus())}),We(()=>{w()&&Hi()});let ar=F("video360"),rn=J(void 0),zr=ke=>{Jn.set(Vr(er(),{title:s(rn)},"title",ke))};var xr=wx();Ct("blur",Xs,Hi);var Zi=ge(xr);Zi.__mousemove=qo;var Qo=h(Zi);let Fn=v(()=>a()==="ads"),lr=v(()=>s(br)?Lo:void 0);it(ef(Qo,{toggleFullscreen:Wo,hideContextMenu:Hi,showHotKeyHelpers:Vo,showKeyMap:bi,get isAds(){return s(Fn)},get fakePlayButtonHandler(){return s(lr)},get nextButtonActive(){return ee()},get prevButtonActive(){return It()},children:(ke,xe)=>{var $t=yx(),qt=ge($t);Ea(qt,{get hideCursor(){return s(Or)},onClick:Ko,onContextMenu:On,onMouseDown:to,onMouseUp:ho,onDblClick:io,get videoContainer(){return lt()},set videoContainer(Ue){lt(Ue)}});var Pi=A(qt,2);na(Pi,()=>"slot",!1,(Ue,mt)=>{Pe(Ue,null,{name:Ia})});var xi=A(Pi,2);oa(xi,$e,Ue=>{var mt=$x(),pi=ge(mt);let sn=v(()=>a()!=="thumb"||l()||Ei&&e.autoplay);Sa(pi,{get hidden(){return s(sn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Xi=A(pi,2);Vm(Xi,{});var Un=A(Xi,2);{var Kr=ze=>{let li=v(()=>{var _o;return(_o=e.live)==null?void 0:_o.startTime});kd(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(li)}})};R(Un,ze=>{a()==="LiveWaitingStart"&&ze(Kr)})}var Sr=A(Un,2);{var Ji=ze=>{Ca(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Sr,ze=>{a()==="LiveWaitingRecover"&&ze(Ji)})}var Ai=A(Sr,2);{var wn=ze=>{Ca(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ai,ze=>{a()==="LiveWaitingRecord"&&ze(wn)})}var zn=A(Ai,2);{var Cr=ze=>{var li=gx();let _o;var zs=h(li);Gl(zs,{get adsSlotId(){return nt()},get adsParams(){return Tt()},get adsPreviewParam(){return pt()},get adsAutoplayParam(){return Qt()},get duration(){return ni()}}),g(li),k(an=>_o=te(li,1,"ads-container svelte-jtgjmv",null,_o,an),[()=>({hidden:a()!=="ads"})]),y(ze,li)};R(zn,ze=>{e.showAds&&Ye()&&ze(Cr)})}var wi=A(zn,2);{var ka=ze=>{let li=v(()=>!Nt()&&e.showAutoplayNext&&C());Zp(ze,{get title(){return X()},get thumb(){return ue()},get isHide(){return s(li)},clickCloseIcon:()=>D(nr,!0)})};R(wi,ze=>{s(Fo)&&X()&&ue()&&ze(ka)})}var Fs=A(wi,2);{var yt=ze=>{let li=v(()=>!p());dm(ze,{get title(){return e.title},get isHidden(){return s(li)},onVisibilityChanged:zr,get ref(){return s(rn)},set ref(_o){D(rn,ve(_o))}})};R(Fs,ze=>{s(_r)&&ze(yt)})}var bt=A(Fs,2);{var oo=ze=>{let li=v(()=>a()==="video"&&p());Td(ze,{get isShifted(){return s(li)}})};R(bt,ze=>{U()&&ze(oo)})}var Go=A(bt,2);{var no=ze=>{var li=hx(),_o=h(li);Kl(_o,{"aria-label":ar}),g(li),y(ze,li)};R(Go,ze=>{Ke()&&ze(no)})}var ai=A(Go,2);{var Ni=ze=>{Id(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(ai,ze=>{Me()&&ze(Ni)})}var ys=A(ai,2);{var vl=ze=>{wa(ze,{get shifted(){return p()},get captions(){return ye()},get position(){return Z()},get playerSize(){return K()}})};R(ys,ze=>{pe().value!=="off"&&ze(vl)})}var Wd=A(ys,2);{var Su=ze=>{var li=_x();li.__contextmenu=On,li.__click=[vx,j,To,f,Dt,Hi];var _o=h(li);Ed(_o,{}),g(li),y(ze,li)};R(Wd,ze=>{l()&&ze(Su)})}var qd=A(Wd,2);{var Cu=ze=>{let li=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),_o=v(()=>a()==="ads"),zs=v(()=>e.canRewindLive&&qe()!==0);Cd(ze,{get bottomHidden(){return s(li)},get bottomNoSmooth(){return V()},get showControls(){return p()},get isAds(){return s(_o)},get canRewindLive(){return s(zs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return At()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Mt()},get nextButtonActive(){return ee()},get prevButtonActive(){return It()},get isOneVideoPlaylist(){return Ae()},customFullscreenSupported:ir,toggleFullscreen:Wo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(en)},set playerControlsWrapperRef(an){D(en,ve(an))},get playerControlsRef(){return s(_n)},set playerControlsRef(an){D(_n,ve(an))}})};R(qd,ze=>{Ye()&&ze(Cu)})}var Us=A(qd,2);{var Tu=ze=>{var li=bx(),_o=h(li);let zs=v(()=>{var an;return(an=s(_n))==null?void 0:an.clientHeight});Md(_o,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(zs)},returnFocus:()=>{var an;return(an=ut())==null?void 0:an.focus()},get ref(){return s(Vn)},set ref(an){D(Vn,ve(an))}}),g(li),y(ze,li)};R(Us,ze=>{!Me()&&a()!=="ads"&&ze(Tu)})}var gl=A(Us,2);let Kd=v(()=>!s(or));Zl(gl,{get isLive(){return et()},get isHidden(){return s(Kd)},get isPlaying(){return Ie()},get position(){return Z()},get duration(){return qe()}});var Qd=A(gl,2);rm(Qd,{data:Po});var hl=A(Qd,2);jp(hl,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=ut())==null?void 0:ze.focus()},get visible(){return j()},get playerContainerRef(){return s(Bi)},get controlsContainerRef(){return s(en)},get position(){return ie()},get menuElementRef(){return s(Ui)},set menuElementRef(ze){D(Ui,ve(ze))}});var Pa=A(hl,2);{var Gd=ze=>{Ld(ze,{onClose:Yi,onSelectAutoQuality:()=>{Ho("auto"),Yi()}})};R(Pa,ze=>{s(eo)&&ze(Gd)})}var Yd=A(Pa,2);{var jd=ze=>{va(ze,{})};R(Yd,ze=>{s(gr)&&ze(jd)})}var Zd=A(Yd,2);{var Iu=ze=>{nf(ze,{})};R(Zd,ze=>{Ve()&&ze(Iu)})}var Eu=A(Zd,2);{var ku=ze=>{td(ze,{})};R(Eu,ze=>{Qe()&&ze(ku)})}y(Ue,mt)}),y(ke,$t)},$$slots:{default:!0}}),ke=>ut(ke),()=>ut());var Wr=A(Qo,2);it(Wr,ke=>D(ct,ke),()=>s(ct)),g(Zi),it(Zi,ke=>D(Bi,ke),()=>s(Bi));var qr=A(Zi,2);{var wr=ke=>{var xe=xx();y(ke,xe)};R(qr,ke=>{at()&&ke(wr)})}Ct("mouseenter",Zi,on),Ct("mouseleave",Zi,Fi),Ct("click",Zi,ji,!0),Ct("focusin",Zi,Hn,!0),y(t,xr),H(),o()}dt(["mousemove","contextmenu","click"]);import{clientChecker as Vd,PlaybackState as Vx}from"@vkontakte/videoplayer-core/es2015";import{noop as Rx}from"@vkontakte/videoplayer-shared/es2015";var Cx=L('<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),Tx=L("<div><!></div>"),Ix={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;
|
|
345
342
|
animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
|
|
346
343
|
.triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
|
|
347
344
|
.triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
|
|
@@ -357,8 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
357
354
|
100% {
|
|
358
355
|
opacity: 0;
|
|
359
356
|
}
|
|
360
|
-
}.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 lu(t,e){U(e,!0),K(t,yx);let i=m(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(me(i())),d=b=>{b.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(b):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};_n(()=>{window.clearTimeout(n)});var l=$x();l.__click=d;var u=h(l);{var f=b=>{var p=bx(),$=fe(p),x=M($,2),_=h(x),C=h(_),T=M(C,2),k=M(T,2);g(_);var P=M(_,2),A=h(P,!0);g(P),g(x),E(I=>{var V,q,G,H;ee($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(q=e.side)!=null?q:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ee(k,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ge(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),y(b,p)};R(u,b=>{r(o)&&b(f)})}g(l),E(()=>{var b;return ee(l,1,`double-click-area ${(b=e.side)!=null?b:""}`,"svelte-nhq2ld")}),y(t,l),z()}at(["click"]);var xx=(t,e,i)=>{e(!1),i()},wx=L('<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),Sx={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 Pm(t,e){U(e,!0),K(t,Sx);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,b=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},_=()=>{e.clickCloseIcon(),$()};Wt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Oe(),T=fe(C);{var k=P=>{var A=wx(),I=M(fe(A),2),V=h(I),q=h(V),G=h(q,!0);g(q);var H=M(q,2);oa(H,{onClick:_}),g(V);var Z=M(V,2);Z.__click=[xx,u,b];var re=h(Z),X=h(re),ce=h(X);let ue;var Ve=M(ce,2);{var Me=ne=>{Zl(ne,{get isRunning(){return a()},onTimerEnded:x})};R(Ve,ne=>{n()&&ne(Me)})}g(X),g(re);var _e=M(re,2),ae=h(_e),Le=h(ae,!0);g(ae),g(_e),g(Z),g(I),E((ne,B)=>{ge(G,ne),rt(X,`background-image: url('${e.thumb}')`),ue=ee(ce,1,"thumb-overlay svelte-1qdxi6t",null,ue,B),ge(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),y(P,A)};R(T,P=>{e.isHide||P(k)})}y(t,C),z(),o()}at(["click"]);import{clientChecker as Cx}from"@vkontakte/videoplayer-core/es2015";var k1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Wt(()=>{Cx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),_n(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Tx}from"@vkontakte/videoplayer-core/es2015";var du=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Ix}from"@vkontakte/videoplayer-core/es2015";var E1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>Ix.device.isIOS&&Te(s)===Tx.DASH_LIVE_CMAF,b=()=>{l==null||l(),l=null},p=$=>{if(b(),!f()||!$)return;let x=u();if(!x)return;let _=new du(x),C=Te(d),T=Te(a),k=Te(n);for(let I of C)T.some(q=>q.value===I.id)&&_.attach(I,k.value===I.id);let P=d.subscribe(I=>{for(let V of I)_.updateSrc(V)}),A=()=>{let I=_.getCurrentShowingId();o(Te(a).find(V=>V.value===I))};x.textTracks.addEventListener("change",A),l=()=>{P(),_.detachAll(),x.textTracks.removeEventListener("change",A)}};Wt(()=>i.subscribe(p)),_n(b)};var Px=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ax=L("<!> <!>",1),Mx=L("<div><!></div>"),Lx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),Vx=L("<div><!></div>"),Rx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),Nx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Bx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Dx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .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-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
|
|
361
|
-
.ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {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 Am(t,e){var Mi,ko;U(e,!0),K(t,Dx);let[i,o]=Ne(),n=()=>S(ht,"$playerPhase",i),a=()=>S(_t,"$isLoaderVisible",i),s=()=>S(tt,"$adPlaybackState",i),d=()=>S(mt,"$crashed",i),l=()=>S(ot,"$notificationsToShow$",i),u=()=>S(Ze,"$playbackState$",i),f=()=>S(qe,"$graphIsOpened$",i),b=()=>S(ni,"$interactiveHideMobileControls",i),p=()=>S(Bt,"$isEnded$",i),$=()=>S(Mo,"$isInteractiveExpectation$",i),x=()=>S(Je,"$controlsVisible",i),_=()=>S(Wi,"$touched",i),C=()=>S(To,"$autoplayNextEnabled$",i),T=()=>S(yn,"$postrollPassed",i),k=()=>S(sn,"$bottomNoSmooth",i),P=()=>S(Vt,"$videoSize",i),A=()=>S(So,"$playerSize",i),I=()=>S(Ut,"$isFullscreen",i),V=()=>S(it,"$position$",i),q=()=>S(We,"$duration$",i),G=()=>S(Dn,"$loadedMetadata",i),H=()=>S(et,"$settingsMenuVisible",i),Z=()=>S(Di,"$scrubbingInProgress",i),re=()=>S(qi,"$volumeChangingInProgress",i),X=()=>S(mo,"$chromecastConnected$",i),ce=()=>S(Yt,"$isControlsAvailable",i),ue=()=>S(Ii,"$isInteractiveTime$",i),Ve=()=>S(Oi,"$isActiveLive",i),Me=()=>S(ei,"$settingsMenuOpenedByKeyboard",i),_e=()=>S(pt,"$language$",i),ae=()=>S(Lo,"$disabledControls$",i),Le=()=>S(zo,"$is3DVideo",i),ne=()=>S(fi,"$icon3DVideoVisible",i),B=()=>S(nn,"$chromecastDeviceName$",i),$e=()=>S(no,"$currentSubtitle$",i),de=()=>S(ri,"$currentSubtitleCaptions$",i),Ke=()=>S(or,"$realDuration$",i),te=()=>S(ti,"$isLive$",i),ve=()=>S(di,"$isPlaying$",i),Y=()=>S(Lt,"$debugPanelVisible",i),ie=m(e,"videoContainer",15),He=m(e,"adsSlotId",3,void 0),je=m(e,"adsParams",3,void 0),ye=m(e,"adsPreviewParam",3,void 0),Se=m(e,"adsAutoplayParam",3,void 0),Re=m(e,"duration",3,void 0),Ye=m(e,"logoTargetUrl",3,""),ct=m(e,"showNextPrevButtons",3,!1),ut=m(e,"nextButtonActive",3,!1),st=m(e,"prevButtonActive",3,!1),It=m(e,"endScreenVideoTitle",3,void 0),bt=m(e,"endScreenVideoThumb",3,void 0),Zt=m(e,"isOneVideoPlaylist",3,!1),li=m(e,"shadowRootContainer",3,void 0),Et=m(e,"outerContainerRef",3,void 0),Nt=m(e,"showMiniTimer",3,!1),O=m(e,"fullScreenTarget",3,void 0),be=m(e,"playerStarted",3,!1),se=m(e,"showEndScreen",3,!0),{notifications$:Be,graphIsOpened$:qe}=fo(),Ge=e.store.getLogger().createComponentLog("Root component"),pt=e.store.interfaceLanguage$,Ze=e.store.state.playbackState$,tt=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,ht=e.store.playerPhase,Ut=e.store.ui.isFullscreen,Je=e.store.ui.controlsVisible,Yt=e.store.ui.isControlsAvailable,ni=e.store.ui.interactiveHideMobileControls,et=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,Di=e.store.ui.scrubbingInProgress,qi=e.store.ui.volumeChangingInProgress,Lt=e.store.ui.debugPanelVisible,_t=e.store.state.isLoaderVisible,Bt=e.store.state.isEnded$,mo=e.store.state.chromecastConnected$,nn=e.store.state.chromecastDeviceName$,yn=e.store.ads.postrollPassed,wo=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,ti=e.store.state.isLive$,di=e.store.state.isPlaying$,Oi=e.store.state.isActiveLive$,pi=e.store.state.isRewindableLive$,mt=e.store.state.crashed$,vi=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,no=e.store.state.currentSubtitle$,ri=e.store.state.currentSubtitleCaptions$,or=e.store.state.duration$,So=e.store.ui.playerSize,zo=e.store.ui.is3DVideo,fi=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,Ii=e.store.state.isInteractiveTime$,Mo=e.store.state.isInteractiveExpectation$,gi=e.store.state.hasInteractiveBranches,Lo=e.store.ui.controls.disabledControls$,Wi=e.store.ui.touched,Co=e.store.ui.overlayContainer$,To=e.store.ui.autoplayNextEnabled$,Dn=e.store.state.loadedMetadata$,Io=e.store.actions.internal.closeSettingsMenu,xn=(Mi=e.store.callbacks)==null?void 0:Mi.onDisabledPlayPrevChapterClick,Zi=(ko=e.store.callbacks)==null?void 0:ko.onDisabledSeekToInteractiveClick,Vo=e.store.actions.internal.setQuality,rn=J(void 0),Tr=J(void 0),nr=J(void 0),On=J(void 0),wn,Hn,rr,ro=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Ro=J(void 0),{closeNotification:Sn,notificationsToShow$:ot}=Be,Cn=v(()=>!!l().slow_video),Fn=()=>Sn("slow_video"),sn=le(!1),sr,an=J(!1),ln=v(()=>u()!==kx.PLAYING),dn=J(!1),Xi=v(()=>f()||b()||!r(an)&&(p()&&!!gi||r(ln)&&$())),Ki=J(!0),cn=v(()=>e.uiConfig.features.thumbTimer&&Nt()&&n()==="video"&&!x()&&!d()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Un=J(!1),qo=v(()=>(se()||e.showAutoplayNext&&C())&&!!It()&&!!bt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Un)),un=J(!1);Xe==null||Xe.setContext(kl());let No=nt=>{clearTimeout(Hn),nt&&(j.set(!0),wo.set(!0),Hn=setTimeout(()=>{wo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),St||Hi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:No});let vo=()=>{clearTimeout(wn),D(an,!1),b()&&ni.set(!1)},Hi=nt=>{vo(),D(an,!0),wn=setTimeout(()=>D(an,!1),nt);let Gt=nt-100;sr=setTimeout(()=>{k()&&sn.set(!1)},Gt>0?Gt:nt)},zn=zo.subscribe(nt=>{fi.set(nt),nt&&(clearTimeout(rr),rr=setTimeout(()=>fi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),so=(...Gt)=>xt(this,[...Gt],function*(nt=bs()){var hi,Ji,eo,Li,Ci,Qi;if(nt&&!Pd.device.isIOS){let si=Ul(),Fi=Wo(),fn=Pd.browser.isSamsungBrowser&&si===li();nt=si===Fi||fn}if(nt){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xe==null?void 0:Xe.remove()}catch(si){Ge({message:String(si)})}try{let si=(hi=P())!=null&&hi.width&&((Ji=P())!=null&&Ji.height)?P():A();yield Sh(si)}catch(si){Ge({message:String(si)})}}Ut.set(nt),e.store.getAdmanWrapper().setFullscreen(nt),I()?(Li=(eo=e.store.callbacks)==null?void 0:eo.onFullscreenEnter)==null||Li.call(eo):(Qi=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenExit)==null||Qi.call(Ci)}),Tn=nt=>{let Gt=nt;So.set({width:Gt.target.width,height:Gt.target.height})};Wt(()=>{var nt;return Vc(so),e.uiConfig.features.annotationsInside&&(vi==null||vi.init(r(rn))),ea(Xe)&&(Xe==null||Xe.assignPlayerContainer(r(rn)),Xe==null||Xe.registryExternalEventHandlers({resize:Tn})),D(Ki,!Pd.device.isIphoneOrOldIpad),e.interactiveContainer&&((nt=ie().parentElement)==null||nt.insertBefore(e.interactiveContainer,ie().nextSibling)),()=>{clearTimeout(wn),clearTimeout(sr),clearTimeout(Hn),clearTimeout(rr),zn(),Xe==null||Xe.dispose().catch(Gt=>{Ge({message:String(Gt)})}),Rc(so)}});let qn=J(!0),pn=J(!0),Ir=nt=>{let Gt=V()+(nt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Gt<0?(D(qn,!1),Gt=0):Gt>=q()&&(D(pn,!1),Gt=q()),D(dn,!0),e.seekTime(Gt)},Wo=()=>{let nt=Pd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Et()?r(rn):Et(),Gt=nt.getRootNode(),hi=Gt instanceof ShadowRoot?Gt.host:Gt,Ji=O()instanceof HTMLElement&&O().contains(hi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Ji?O():nt},kr=()=>xt(this,null,function*(){try{if(bs())yield Lc(document),Ge({message:"exit fullscreen"});else{if(Ge({message:"request fullscreen"}),Pd.device.isIOS&&!G())return;yield Mc(Wo())}}catch(nt){Ge({message:String(nt)})}}),Wn=()=>{Io()},Kn=nt=>{if(nt.preventDefault(),H()){Wn();return}if(!be()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}D(dn,!1),x()?vo():Hi(e.uiConfig.controls.hideTimeoutMobile)},ar=()=>{Wi.set(!0)},Er=()=>{St||(sn.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))},In=nt=>{xn&&(xn(nt),Hi(e.uiConfig.controls.hideTimeoutMobile))},ii=nt=>{Zi&&(Zi(nt),Hi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{Co.set(r(Ro))}),Fe(()=>{Je.set((r(ln)||H()||Z()||re()||X()||!r(qo)&&(p()||r(an)&&!r(dn)))&&!r(Xi)&&n()==="video"&&!d()&&ce())}),Fe(()=>{!Z()&&r(un)&&!ue()&&Hi(e.uiConfig.controls.hideTimeoutMobile),D(un,me(Z()))}),Fe(()=>{D(qn,V()>0),D(pn,me(!Ve()&&V()<q()))}),Fe(()=>{Xa(r(On),H(),Me())});let lr=F("aria_label_video_player"),Pr=F("video360");k1({fullScreenChangeHandler:so,getFullscreenTarget:Wo}),E1({store:e.store,getFullscreenTarget:Wo});var Bo=Bx();Tt("blur",Us,Wn),De(Bo,"aria-label",lr);var ki=h(Bo);_a(ki,{onClick:Kn,get videoContainer(){return ie()},set videoContainer(nt){ie(nt)}});var dr=M(ki,2);Gs(dr,()=>"slot",!1,(nt,Gt)=>{ke(nt,null,{name:ha})});var vt=M(dr,2);Qs(vt,_e,nt=>{var Gt=Nx(),hi=fe(Gt);let Ji=v(()=>n()!=="thumb"||d()||St&&e.autoplay);ma(hi,{get hidden(){return r(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var eo=M(hi,2);{var Li=Ee=>{var $t=Ax(),jt=fe($t);{var Ti=Ui=>{let Yn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);lu(Ui,{side:"left",get seekStep(){return r(Yn)},handleSingleFirstClick:Kn,handleSecondClick:()=>Ir("backward")})};R(jt,Ui=>{r(qn)&&Ui(Ti)})}var ci=M(jt,2);{var Wr=Ui=>{let Yn=v(()=>e.uiConfig.controls.seekStepMobile/1e3);lu(Ui,{side:"right",get seekStep(){return r(Yn)},handleSingleFirstClick:Kn,handleSecondClick:()=>Ir("forward")})};R(ci,Ui=>{r(pn)&&Ui(Wr)})}y(Ee,$t)};R(eo,Ee=>{e.canRewindLive&&pi&&!ae().has("TIMELINE")&&Ee(Li)})}var Ci=M(eo,2);{var Qi=Ee=>{let $t=v(()=>{var jt;return(jt=e.live)==null?void 0:jt.startTime});Cd(Ee,{get thumbUrl(){return e.thumbUrl},get startTime(){return r($t)}})};R(Ci,Ee=>{n()==="LiveWaitingStart"&&Ee(Qi)})}var si=M(Ci,2);{var Fi=Ee=>{va(Ee,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(si,Ee=>{n()==="LiveWaitingRecover"&&Ee(Fi)})}var fn=M(si,2);{var cr=Ee=>{va(Ee,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(fn,Ee=>{n()==="LiveWaitingRecord"&&Ee(cr)})}var Qn=M(fn,2);{var ur=Ee=>{var $t=Mx();let jt;var Ti=h($t);zl(Ti,{get adsSlotId(){return He()},get adsParams(){return je()},get adsPreviewParam(){return ye()},get adsAutoplayParam(){return Se()},get duration(){return Re()}}),g($t),E(ci=>jt=ee($t,1,"ads-container svelte-dtyj47",null,jt,ci),[()=>({hidden:n()!=="ads"})]),y(Ee,$t)};R(Qn,Ee=>{e.showAds&&be()&&Ee(ur)})}var pr=M(Qn,2);{var fr=Ee=>{let $t=v(()=>!se()&&e.showAutoplayNext&&C());Pm(Ee,{get title(){return It()},get thumb(){return bt()},get isHide(){return r($t)},clickCloseIcon:()=>D(Un,!0)})};R(pr,Ee=>{r(qo)&&It()&&bt()&&Ee(fr)})}var mr=M(pr,2);{var Gn=Ee=>{xd(Ee,{})};R(mr,Ee=>{Le()&&Ee(Gn)})}var jn=M(mr,2);{var Do=Ee=>{var $t=Lx(),jt=h($t);Fl(jt,{"aria-label":Pr}),g($t),y(Ee,$t)};R(jn,Ee=>{ne()&&Ee(Do)})}var Ar=M(jn,2);{var Oo=Ee=>{wd(Ee,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return B()}})};R(Ar,Ee=>{X()&&Ee(Oo)})}var vr=M(Ar,2);{var Mr=Ee=>{fa(Ee,{get shifted(){return x()},get captions(){return de()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(vr,Ee=>{$e().value!=="off"&&Ee(Mr)})}var Lr=M(vr,2);{var Vr=Ee=>{var $t=Vx();$t.__click=[Px,H,et,Wn];var jt=h($t);Sd(jt,{}),g($t),y(Ee,$t)};R(Lr,Ee=>{d()&&Ee(Vr)})}var to=M(Lr,2);{var kn=Ee=>{let $t=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),jt=v(()=>n()==="ads"),Ti=v(()=>e.canRewindLive&&Ke()!==0);yd(Ee,{get bottomHidden(){return r($t)},get showControls(){return x()},get bottomNoSmooth(){return k()},get isAds(){return r(jt)},get canRewindLive(){return r(Ti)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ye()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ut()},get prevButtonActive(){return st()},get isOneVideoPlaylist(){return Zt()},get customFullscreenSupported(){return r(Ki)},get endScreenShown(){return r(qo)},toggleFullscreen:kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:In,onDisabledSeekToInteractiveClick:ii,get playerControlsWrapperRef(){return r(Tr)},set playerControlsWrapperRef(ci){D(Tr,me(ci))},get playerControlsRef(){return r(nr)},set playerControlsRef(ci){D(nr,me(ci))}})};R(to,Ee=>{be()&&Ee(kn)})}var Rr=M(to,2);{var lt=Ee=>{var $t=Rx(),jt=h($t);kd(jt,{get supportLink(){return e.supportLink},returnFocus:Ex,get ref(){return r(On)},set ref(Ti){D(On,me(Ti))}}),g($t),y(Ee,$t)};R(Rr,Ee=>{H()&&Ee(lt)})}var qt=M(Rr,2);let Vi=v(()=>!r(cn));Kl(qt,{get isLive(){return te()},get isHidden(){return r(Vi)},get isPlaying(){return ve()},get position(){return V()},get duration(){return q()}});var Eo=M(qt,2);{var Ce=Ee=>{ra(Ee,{})};R(Eo,Ee=>{r(ro)&&Ee(Ce)})}var Mt=M(Eo,2);{var bi=Ee=>{Yl(Ee,{})};R(Mt,Ee=>{Y()&&Ee(bi)})}var $i=M(Mt,2);{var _i=Ee=>{Ed(Ee,{onClose:Fn,onSelectAutoQuality:()=>{Vo("auto"),Fn()}})};R($i,Ee=>{r(Cn)&&Ee(_i)})}y(nt,Gt)});var zt=M(vt,2);ft(zt,nt=>D(Ro,nt),()=>r(Ro)),g(Bo),ft(Bo,nt=>D(rn,nt),()=>r(rn)),Tt("click",Bo,ar,!0),Tt("focusin",Bo,Er,!0),y(t,Bo),z(),o()}at(["click"]);function cu(t){let e="";return Bn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Bn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Bn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Bn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Bn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Bn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Bn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Bn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Bn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Bn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Bn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Bn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Bn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Bn(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Ox}from"@vkontakte/videoplayer-shared/es2015";var Hx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Fx={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 Mm(t,e){U(e,!0),K(t,Fx);let[i,o]=Ne(),n=()=>S(re,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(G,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(k,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),b=()=>S(q,"$currentSubtitleCaptions$",i),p=()=>S(A,"$positionExact$",i),$=()=>S(H,"$isLive$",i),x=()=>S(Z,"$isRewindableLive$",i),_=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:q,positionWithScrubbing$:G,isLive$:H,isRewindableLive$:Z},ui:{playerSize:re,controls:X},actions:{internal:{getVideoElement:ce}}}=Ie(),ue=8,Ve=J(!1),Me=me({}),_e=()=>{D(Ve,!0)},ae=()=>{D(Ve,!1)},Le=Ox(nl,260);Fe(()=>{n(),Le(ce(),X,Me,r(Ve))});let ne=v(()=>a()?on(s()-d()):on(isFinite(s())?s():_()));var B=Hx(),$e=h(B);_a($e,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Re){C(Re)}});var de=M($e,2);Gs(de,()=>"slot",!1,(Re,Ye)=>{ke(Re,null,{name:ha})});var Ke=M(de,2);let te=v(()=>l()!=="thumb"||u());ma(Ke,{get hidden(){return r(te)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ve=M(Ke,2);{var Y=Re=>{fa(Re,{shifted:!1,get captions(){return b()},get position(){return p()},get playerSize(){return n()}})};R(ve,Re=>{f().value!=="off"&&Re(Y)})}var ie=M(ve,2),He=h(ie);Wl(He,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ie);var je=M(ie,2);let ye;var Se=h(je);la(Se,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return Me.timeline},set ref(Re){Me.timeline=Re}}),g(je),g(B),E(Re=>ye=ee(je,1,"timeline svelte-1qfjf44",null,ye,Re),[()=>({visible:r(Ve)})]),Tt("mouseenter",B,_e),Tt("mouseleave",B,ae),y(t,B),z(),o()}var Wx=L("<div><!></div>"),Kx={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--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;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px 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;
|
|
357
|
+
}.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 fu(t,e){O(e,!0),q(t,Ix);let i=m(e,"seekStep",3,0),o=J(!1),n=0,a=0,r=J(ve(i())),d=$=>{$.stopPropagation(),a+=1,D(r,i()*(a-1)),a===1?e.handleSingleFirstClick($):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};En(()=>{window.clearTimeout(n)});var l=Tx();l.__click=d;var u=h(l);{var f=$=>{var p=Cx(),_=ge(p),w=A(_,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),k(E=>{var V,W,K,U;te(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),he(P,E)},[()=>F("doubletap_seek_step",{seconds:s(r).toFixed(0)})]),y($,p)};R(u,$=>{s(o)&&$(f)})}g(l),k(()=>{var $;return te(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),y(t,l),H()}dt(["click"]);var Ex=(t,e,i)=>{e(!1),i()},kx=L('<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),Px={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 Bm(t,e){O(e,!0),q(t,Px);let[i,o]=He(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),r=Ee(),d=r.ui.autoplayNextEnabled$,l=r.ui.timerNextVideoRunning$,u=r.actions.internal.nextVideoClick,f=r.actions.internal.nextVideoAnnouncementShow,$=r.actions.internal.nextVideoAnnouncementClick,p=r.actions.internal.nextVideoAnnouncementAuto,_=r.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},b=()=>{e.clickCloseIcon(),_()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=Fe(),T=ge(C);{var I=M=>{var P=kx(),E=A(ge(P),2),V=h(E),W=h(V),K=h(W,!0);g(W);var U=A(W,2);fa(U,{onClick:b}),g(V);var j=A(V,2);j.__click=[Ex,u,$];var ae=h(j),Y=h(ae),de=h(Y);let le;var Me=A(de,2);{var Ne=se=>{id(se,{get isRunning(){return a()},onTimerEnded:w})};R(Me,se=>{n()&&se(Ne)})}g(Y),g(ae);var _e=A(ae,2),ce=h(_e),Le=h(ce,!0);g(ce),g(_e),g(j),g(E),k((se,N)=>{he(K,se),st(Y,`background-image: url('${e.thumb}')`),le=te(de,1,"thumb-overlay svelte-1qdxi6t",null,le,N),he(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),y(M,P)};R(T,M=>{e.isHide||M(I)})}y(t,C),H(),o()}dt(["click"]);import{clientChecker as Ax}from"@vkontakte/videoplayer-core/es2015";var B1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{Ax.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let r=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",r),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",r),a.removeEventListener("webkitendfullscreen",d)}},0))}),En(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Mx}from"@vkontakte/videoplayer-core/es2015";var mu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Lx}from"@vkontakte/videoplayer-core/es2015";var N1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:r,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>Lx.device.isIOS&&we(r)===Mx.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},p=_=>{if($(),!f()||!_)return;let w=u();if(!w)return;let b=new mu(w),C=we(d),T=we(a),I=we(n);for(let E of C)T.some(W=>W.value===E.id)&&b.attach(E,I.value===E.id);let M=d.subscribe(E=>{for(let V of E)b.updateSrc(V)}),P=()=>{let E=b.getCurrentShowingId();o(we(a).find(V=>V.value===E))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};Ht(()=>i.subscribe(p)),En($)};var Bx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Nx=L("<!> <!>",1),Dx=L("<div><!></div>"),Ox=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Hx=L("<div><!></div>"),Fx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),Ux=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),zx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Wx={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 Nm(t,e){var Fr,$r;O(e,!0),q(t,Wx);let[i,o]=He(),n=()=>S(ut,"$playerPhase",i),a=()=>S(gt,"$isLoaderVisible",i),r=()=>S(Je,"$adPlaybackState",i),d=()=>S(ui,"$crashed",i),l=()=>S(en,"$notificationsToShow$",i),u=()=>S(Ye,"$playbackState$",i),f=()=>S(Ae,"$graphIsOpened$",i),$=()=>S(di,"$interactiveHideMobileControls",i),p=()=>S(Dt,"$isEnded$",i),_=()=>S(Jo,"$isInteractiveExpectation$",i),w=()=>S(ot,"$controlsVisible",i),b=()=>S(Oi,"$touched",i),C=()=>S(Io,"$autoplayNextEnabled$",i),T=()=>S(Vi,"$postrollPassed",i),I=()=>S(bn,"$bottomNoSmooth",i),M=()=>S(Vt,"$videoSize",i),P=()=>S(Ii,"$playerSize",i),E=()=>S(ri,"$isFullscreen",i),V=()=>S(je,"$position$",i),W=()=>S(Nt,"$duration$",i),K=()=>S(An,"$loadedMetadata",i),U=()=>S(rt,"$settingsMenuVisible",i),j=()=>S(Ki,"$scrubbingInProgress",i),ae=()=>S(Qi,"$volumeChangingInProgress",i),Y=()=>S(fo,"$chromecastConnected$",i),de=()=>S(oi,"$isControlsAvailable",i),le=()=>S(Ei,"$isInteractiveTime$",i),Me=()=>S(Ri,"$isActiveLive",i),Ne=()=>S(ei,"$settingsMenuOpenedByKeyboard",i),_e=()=>S(fe,"$language$",i),ce=()=>S(yi,"$disabledControls$",i),Le=()=>S(Xo,"$is3DVideo",i),se=()=>S($i,"$icon3DVideoVisible",i),N=()=>S(Co,"$chromecastDeviceName$",i),Se=()=>S(mo,"$currentSubtitle$",i),$e=()=>S(Xt,"$currentSubtitleCaptions$",i),Ke=()=>S(mr,"$realDuration$",i),ne=()=>S(Zt,"$isLive$",i),pe=()=>S(fi,"$isPlaying$",i),ye=()=>S(Lt,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),Ie=m(e,"adsPreviewParam",3,void 0),ie=m(e,"adsAutoplayParam",3,void 0),Ve=m(e,"duration",3,void 0),Qe=m(e,"logoTargetUrl",3,""),at=m(e,"showNextPrevButtons",3,!1),lt=m(e,"nextButtonActive",3,!1),nt=m(e,"prevButtonActive",3,!1),Tt=m(e,"endScreenVideoTitle",3,void 0),pt=m(e,"endScreenVideoThumb",3,void 0),Qt=m(e,"isOneVideoPlaylist",3,!1),ni=m(e,"shadowRootContainer",3,void 0),At=m(e,"outerContainerRef",3,void 0),Mt=m(e,"showMiniTimer",3,!1),ee=m(e,"fullScreenTarget",3,void 0),It=m(e,"playerStarted",3,!1),X=m(e,"showEndScreen",3,!0),{notifications$:ue,graphIsOpened$:Ae}=uo(),De=e.store.getLogger().createComponentLog("Root component"),fe=e.store.interfaceLanguage$,Ye=e.store.state.playbackState$,Je=e.store.ads.playbackState,je=e.store.state.positionWithScrubbing$,Nt=e.store.state.duration$,ut=e.store.playerPhase,ri=e.store.ui.isFullscreen,ot=e.store.ui.controlsVisible,oi=e.store.ui.isControlsAvailable,di=e.store.ui.interactiveHideMobileControls,rt=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ki=e.store.ui.scrubbingInProgress,Qi=e.store.ui.volumeChangingInProgress,Lt=e.store.ui.debugPanelVisible,gt=e.store.state.isLoaderVisible,Dt=e.store.state.isEnded$,fo=e.store.state.chromecastConnected$,Co=e.store.state.chromecastDeviceName$,Vi=e.store.ads.postrollPassed,To=e.store.ui.mobileUnmuteButtonExpanded,G=e.store.ui.mobileUnmuteButtonVisible,Zt=e.store.state.isLive$,fi=e.store.state.isPlaying$,Ri=e.store.state.isActiveLive$,ci=e.store.state.isRewindableLive$,ui=e.store.state.crashed$,ft=e.store.webApi.annotationsApi,tt=e.store.webApi.pictureInPictureApi,Vt=e.store.state.videoSize$,mo=e.store.state.currentSubtitle$,Xt=e.store.state.currentSubtitleCaptions$,mr=e.store.state.duration$,Ii=e.store.ui.playerSize,Xo=e.store.ui.is3DVideo,$i=e.store.ui.icon3DVideoVisible,ht=e.store.state.isInteractive,Ei=e.store.state.isInteractiveTime$,Jo=e.store.state.isInteractiveExpectation$,Gi=e.store.state.hasInteractiveBranches,yi=e.store.ui.controls.disabledControls$,Oi=e.store.ui.touched,Do=e.store.ui.overlayContainer$,Io=e.store.ui.autoplayNextEnabled$,An=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,hn=(Fr=e.store.callbacks)==null?void 0:Fr.onDisabledPlayPrevChapterClick,Oo=($r=e.store.callbacks)==null?void 0:$r.onDisabledSeekToInteractiveClick,Ho=e.store.actions.internal.setQuality,ko=J(void 0),Nr=J(void 0),vr=J(void 0),Xn=J(void 0),Jn,er,Mn,Dr=v(()=>(n()==="video"&&a()||n()==="ads"&&r()==="inactive")&&!d()),Ln=J(void 0),{closeNotification:Bi,notificationsToShow$:en}=ue,_n=v(()=>!!l().slow_video),Vn=()=>Bi("slow_video"),bn=re(!1),Rn,tn=J(!1),tr=v(()=>u()!==Vx.PLAYING),Bn=J(!1),eo=v(()=>f()||$()||!s(tn)&&(p()&&!!Gi||s(tr)&&_())),Yi=J(!0),gr=v(()=>e.uiConfig.features.thumbTimer&&Mt()&&n()==="video"&&!w()&&!d()&&!ht&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),ct=J(!1),ti=v(()=>(X()||e.showAutoplayNext&&C())&&!!Tt()&&!!pt()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!s(ct)),hr=J(!1);tt==null||tt.setContext(Ll());let $n=_t=>{clearTimeout(er),_t&&(G.set(!0),To.set(!0),er=setTimeout(()=>{To.set(!1)},e.uiConfig.controls.collapseMobileUnmute),ht||vo(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:$n});let Po=()=>{clearTimeout(Jn),D(tn,!1),$()&&di.set(!1)},vo=_t=>{Po(),D(tn,!0),Jn=setTimeout(()=>D(tn,!1),_t);let si=_t-100;Rn=setTimeout(()=>{I()&&bn.set(!1)},si>0?si:_t)},Nn=Xo.subscribe(_t=>{$i.set(_t),_t&&(clearTimeout(Mn),Mn=setTimeout(()=>$i.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ao=(...si)=>xt(this,[...si],function*(_t=As()){var zo,Wo,Hi,On,on,Hn;if(_t&&!Vd.device.isIOS){let Fi=Ql(),nn=or(),Ze=Vd.browser.isSamsungBrowser&&Fi===ni();_t=Fi===nn||Ze}if(_t){vo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield tt==null?void 0:tt.remove()}catch(Fi){De({message:String(Fi)})}try{let Fi=(zo=M())!=null&&zo.width&&((Wo=M())!=null&&Wo.height)?M():P();yield kh(Fi)}catch(Fi){De({message:String(Fi)})}}ri.set(_t),e.store.getAdmanWrapper().setFullscreen(_t),E()?(On=(Hi=e.store.callbacks)==null?void 0:Hi.onFullscreenEnter)==null||On.call(Hi):(Hn=(on=e.store.callbacks)==null?void 0:on.onFullscreenExit)==null||Hn.call(on)}),Dn=_t=>{let si=_t;Ii.set({width:si.target.width,height:si.target.height})};Ht(()=>{var _t;return Nc(Ao),e.uiConfig.features.annotationsInside&&(ft==null||ft.init(s(ko))),ca(tt)&&(tt==null||tt.assignPlayerContainer(s(ko)),tt==null||tt.registryExternalEventHandlers({resize:Dn})),D(Yi,!Vd.device.isIphoneOrOldIpad),e.interactiveContainer&&((_t=Z().parentElement)==null||_t.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(Jn),clearTimeout(Rn),clearTimeout(er),clearTimeout(Mn),Nn(),tt==null||tt.dispose().catch(si=>{De({message:String(si)})}),Dc(Ao)}});let Mo=J(!0),yn=J(!0),ir=_t=>{let si=V()+(_t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;si<0?(D(Mo,!1),si=0):si>=W()&&(D(yn,!1),si=W()),D(Bn,!0),e.seekTime(si)},or=()=>{let _t=Vd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!At()?s(ko):At(),si=_t.getRootNode(),zo=si instanceof ShadowRoot?si.host:si,Wo=ee()instanceof HTMLElement&&ee().contains(zo);return e.uiConfig.allowChangingFullscreenTarget&&ee()&&Wo?ee():_t},_r=()=>xt(this,null,function*(){try{if(As())yield Bc(document),De({message:"exit fullscreen"});else{if(De({message:"request fullscreen"}),Vd.device.isIOS&&!K())return;yield Rc(or())}}catch(_t){De({message:String(_t)})}}),nr=()=>{Eo()},Fo=_t=>{if(_t.preventDefault(),U()){nr();return}if(!It()){e.firstStart(),vo(e.uiConfig.controls.hideTimeoutCursor);return}D(Bn,!1),w()?Po():vo(e.uiConfig.controls.hideTimeoutMobile)},Or=()=>{Oi.set(!0)},rr=()=>{ht||(bn.set(!0),vo(e.uiConfig.controls.hideTimeoutCursor))},br=_t=>{hn&&(hn(_t),vo(e.uiConfig.controls.hideTimeoutMobile))},Lo=_t=>{Oo&&(Oo(_t),vo(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Do.set(s(Ln))}),We(()=>{ot.set((s(tr)||U()||j()||ae()||Y()||!s(ti)&&(p()||s(tn)&&!s(Bn)))&&!s(eo)&&n()==="video"&&!d()&&de())}),We(()=>{!j()&&s(hr)&&!le()&&vo(e.uiConfig.controls.hideTimeoutMobile),D(hr,ve(j()))}),We(()=>{D(Mo,V()>0),D(yn,ve(!Me()&&V()<W()))}),We(()=>{ol(s(Xn),U(),Ne())});let Gt=F("aria_label_video_player"),go=F("video360");B1({fullScreenChangeHandler:Ao,getFullscreenTarget:or}),N1({store:e.store,getFullscreenTarget:or});var Uo=zx();Ct("blur",Xs,nr),Oe(Uo,"aria-label",Gt);var sr=h(Uo);Ea(sr,{onClick:Fo,get videoContainer(){return Z()},set videoContainer(_t){Z(_t)}});var Hr=A(sr,2);na(Hr,()=>"slot",!1,(_t,si)=>{Pe(_t,null,{name:Ia})});var ki=A(Hr,2);oa(ki,_e,_t=>{var si=Ux(),zo=ge(si);let Wo=v(()=>n()!=="thumb"||d()||ht&&e.autoplay);Sa(zo,{get hidden(){return s(Wo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Hi=A(zo,2);{var On=xe=>{var $t=Nx(),qt=ge($t);{var Pi=mt=>{let pi=v(()=>e.uiConfig.controls.seekStepMobile/1e3);fu(mt,{side:"left",get seekStep(){return s(pi)},handleSingleFirstClick:Fo,handleSecondClick:()=>ir("backward")})};R(qt,mt=>{s(Mo)&&mt(Pi)})}var xi=A(qt,2);{var Ue=mt=>{let pi=v(()=>e.uiConfig.controls.seekStepMobile/1e3);fu(mt,{side:"right",get seekStep(){return s(pi)},handleSingleFirstClick:Fo,handleSecondClick:()=>ir("forward")})};R(xi,mt=>{s(yn)&&mt(Ue)})}y(xe,$t)};R(Hi,xe=>{e.canRewindLive&&ci&&!ce().has("TIMELINE")&&xe(On)})}var on=A(Hi,2);{var Hn=xe=>{let $t=v(()=>{var qt;return(qt=e.live)==null?void 0:qt.startTime});kd(xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return s($t)}})};R(on,xe=>{n()==="LiveWaitingStart"&&xe(Hn)})}var Fi=A(on,2);{var nn=xe=>{Ca(xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Fi,xe=>{n()==="LiveWaitingRecover"&&xe(nn)})}var Ze=A(Fi,2);{var Rt=xe=>{Ca(xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ze,xe=>{n()==="LiveWaitingRecord"&&xe(Rt)})}var mi=A(Ze,2);{var qo=xe=>{var $t=Dx();let qt;var Pi=h($t);Gl(Pi,{get adsSlotId(){return qe()},get adsParams(){return et()},get adsPreviewParam(){return Ie()},get adsAutoplayParam(){return ie()},get duration(){return Ve()}}),g($t),k(xi=>qt=te($t,1,"ads-container svelte-7yl31d",null,qt,xi),[()=>({hidden:n()!=="ads"})]),y(xe,$t)};R(mi,xe=>{e.showAds&&It()&&xe(qo)})}var to=A(mi,2);{var ho=xe=>{let $t=v(()=>!X()&&e.showAutoplayNext&&C());Bm(xe,{get title(){return Tt()},get thumb(){return pt()},get isHide(){return s($t)},clickCloseIcon:()=>D(ct,!0)})};R(to,xe=>{s(ti)&&Tt()&&pt()&&xe(ho)})}var io=A(to,2);{var Ko=xe=>{Td(xe,{})};R(io,xe=>{Le()&&xe(Ko)})}var Vo=A(io,2);{var bi=xe=>{var $t=Ox(),qt=h($t);Kl(qt,{"aria-label":go}),g($t),y(xe,$t)};R(Vo,xe=>{se()&&xe(bi)})}var ji=A(Vo,2);{var Ro=xe=>{Id(xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};R(ji,xe=>{Y()&&xe(Ro)})}var xn=A(ji,2);{var Ui=xe=>{wa(xe,{get shifted(){return w()},get captions(){return $e()},get position(){return V()},get playerSize(){return P()},isMobile:!0})};R(xn,xe=>{Se().value!=="off"&&xe(Ui)})}var yr=A(xn,2);{var Ur=xe=>{var $t=Hx();$t.__click=[Bx,U,rt,nr];var qt=h($t);Ed(qt,{}),g($t),y(xe,$t)};R(yr,xe=>{d()&&xe(Ur)})}var ar=A(yr,2);{var rn=xe=>{let $t=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),qt=v(()=>n()==="ads"),Pi=v(()=>e.canRewindLive&&Ke()!==0);Cd(xe,{get bottomHidden(){return s($t)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return s(qt)},get canRewindLive(){return s(Pi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return at()},get nextButtonActive(){return lt()},get prevButtonActive(){return nt()},get isOneVideoPlaylist(){return Qt()},get customFullscreenSupported(){return s(Yi)},get endScreenShown(){return s(ti)},toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:br,onDisabledSeekToInteractiveClick:Lo,get playerControlsWrapperRef(){return s(Nr)},set playerControlsWrapperRef(xi){D(Nr,ve(xi))},get playerControlsRef(){return s(vr)},set playerControlsRef(xi){D(vr,ve(xi))}})};R(ar,xe=>{It()&&xe(rn)})}var zr=A(ar,2);{var xr=xe=>{var $t=Fx(),qt=h($t);Md(qt,{get supportLink(){return e.supportLink},returnFocus:Rx,get ref(){return s(Xn)},set ref(Pi){D(Xn,ve(Pi))}}),g($t),y(xe,$t)};R(zr,xe=>{U()&&xe(xr)})}var Zi=A(zr,2);let Qo=v(()=>!s(gr));Zl(Zi,{get isLive(){return ne()},get isHidden(){return s(Qo)},get isPlaying(){return pe()},get position(){return V()},get duration(){return W()}});var Fn=A(Zi,2);{var lr=xe=>{va(xe,{})};R(Fn,xe=>{s(Dr)&&xe(lr)})}var Wr=A(Fn,2);{var qr=xe=>{td(xe,{})};R(Wr,xe=>{ye()&&xe(qr)})}var wr=A(Wr,2);{var ke=xe=>{Ld(xe,{onClose:Vn,onSelectAutoQuality:()=>{Ho("auto"),Vn()}})};R(wr,xe=>{s(_n)&&xe(ke)})}y(_t,si)});var is=A(ki,2);it(is,_t=>D(Ln,_t),()=>s(Ln)),g(Uo),it(Uo,_t=>D(ko,_t),()=>s(ko)),Ct("click",Uo,Or,!0),Ct("focusin",Uo,rr,!0),y(t,Uo),H(),o()}dt(["click"]);function vu(t){let e="";return po(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),po(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),po(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),po(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),po(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),po(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),po(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),po(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),po(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),po(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),po(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),po(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),po(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),po(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),po(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),po(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),po(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),po(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),po(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function po(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as qx}from"@vkontakte/videoplayer-shared/es2015";var Kx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Qx={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 Dm(t,e){O(e,!0),q(t,Qx);let[i,o]=He(),n=()=>S(ae,"$playerSize",i),a=()=>S(E,"$isPlaying$",i),r=()=>S(M,"$duration$",i),d=()=>S(K,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),f=()=>S(V,"$currentSubtitle$",i),$=()=>S(W,"$currentSubtitleCaptions$",i),p=()=>S(P,"$positionExact$",i),_=()=>S(U,"$isLive$",i),w=()=>S(j,"$isRewindableLive$",i),b=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:E,currentSubtitle$:V,currentSubtitleCaptions$:W,positionWithScrubbing$:K,isLive$:U,isRewindableLive$:j},ui:{playerSize:ae,controls:Y},actions:{internal:{getVideoElement:de}}}=Ee(),le=8,Me=J(!1),Ne=ve({}),_e=()=>{D(Me,!0)},ce=()=>{D(Me,!1)},Le=qx(dl,260);We(()=>{n(),Le(de(),Y,Ne,s(Me))});let se=v(()=>a()?gn(r()-d()):gn(isFinite(r())?r():b()));var N=Kx(),Se=h(N);Ea(Se,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ve){C(Ve)}});var $e=A(Se,2);na($e,()=>"slot",!1,(Ve,Qe)=>{Pe(Ve,null,{name:Ia})});var Ke=A($e,2);let ne=v(()=>l()!=="thumb"||u());Sa(Ke,{get hidden(){return s(ne)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var pe=A(Ke,2);{var ye=Ve=>{wa(Ve,{shifted:!1,get captions(){return $()},get position(){return p()},get playerSize(){return n()}})};R(pe,Ve=>{f().value!=="off"&&Ve(ye)})}var Z=A(pe,2),qe=h(Z);jl(qe,{get isLive(){return _()},get isPlaying(){return a()},get time(){return s(se)}}),g(Z);var et=A(Z,2);let Ie;var ie=h(et);_a(ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ne.timeline},set ref(Ve){Ne.timeline=Ve}}),g(et),g(N),k(Ve=>Ie=te(et,1,"timeline svelte-1qfjf44",null,Ie,Ve),[()=>({visible:s(Me)})]),Ct("mouseenter",N,_e),Ct("mouseleave",N,ce),y(t,N),H(),o()}var Zx=L("<div><!></div>"),Xx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--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;
|
|
362
358
|
|
|
363
359
|
/* USER DEFINED COLORS */
|
|
364
360
|
|
|
@@ -385,12 +381,12 @@ Try switching the\xA0quality to\xA0Auto.`},hh=m_;var os=new Map;os.set(bh.EN,hh)
|
|
|
385
381
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
386
382
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
387
383
|
#000 100%
|
|
388
|
-
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--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);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
389
|
-
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-
|
|
384
|
+
);--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--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);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
|
|
385
|
+
/* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
|
|
390
386
|
|
|
391
387
|
/* css reset start */* {-webkit-tap-highlight-color:transparent;}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;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
|
|
392
|
-
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
|
|
388
|
+
/* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
|
|
393
389
|
/* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
|
|
394
390
|
|
|
395
|
-
/* \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 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Vm(t,e){U(e,!0),K(t,Kx);let[i,o]=Ne(),n=()=>S(Zt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),b=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),x=m(e,"subtitles",7),_=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),k=m(e,"volume",7,void 0),P=m(e,"muted",7,void 0),A=m(e,"fromTime",7),I=m(e,"canRewindLive",7),V=m(e,"showAds",7),q=m(e,"adsSlotId",7,void 0),G=m(e,"adsParams",7,void 0),H=m(e,"adsPreviewParam",7,void 0),Z=m(e,"adsAutoplayParam",7,void 0),re=m(e,"duration",7,void 0),X=m(e,"logoClickable",7),ce=m(e,"logoHidden",7),ue=m(e,"isMobile",7),Ve=m(e,"showNextPrevButtons",7,!1),Me=m(e,"nextButtonActive",7,!1),_e=m(e,"prevButtonActive",7,!1),ae=m(e,"endScreenVideoTitle",7,void 0),Le=m(e,"endScreenVideoThumb",7,void 0),ne=m(e,"isOneVideoPlaylist",7,!1),B=m(e,"supportLink",7),$e=m(e,"shadowRootContainer",7,void 0),de=m(e,"outerContainerRef",7,void 0),Ke=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),Y=m(e,"saveRate",7),ie=m(e,"seekToInteractive",7,P1),He=m(e,"playPrevChapter",7,P1),je=m(e,"volumeMultiplier",7),ye=m(e,"showAutoplayNext",7),Se=m(e,"showEndScreen",7,!0),Re=m(e,"keyboardControls",15,void 0),{subscribers:Ye,stores:ct}=d();Dg(u());let ut=Kt(),st=u().logoLink,It=s().ui.debugPanelVisible,bt=s().ui.playerSize,Zt=s().state.isLive$,Et=s().state.isInteractive&&Lm.device.isAndroid,Nt=J(void 0),O=null,be=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Gg(s(),ct),Fe(()=>{var j,ti;s().ui.isMobile.set(ue()),(ti=(j=l().callbacks)==null?void 0:j.onDomReady)==null||ti.call(j)});let se=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Be=()=>{if(ut.features.qualityDetailsSubMenuEnabled){let j=mh(s().videoId);if(j)switch(j.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(j.quality);break}}else{vh(s().videoId),Pp()&&s().actions.internal.setTrafficSavingEnabled(!0);let ti=Tp(s().videoId);ti&&s().actions.internal.setQuality(ti)}};function qe(j){var mt,vi,Xe;let ti=a()||j;ti&&s().initVideo({container:r(Nt),sources:ti,failoverHosts:te(),subtitles:x(),volumeMultiplier:je()});let di=Ux.get(Nl)==="true";It.set(di),A()>0&&s().actions.external.seekTime(A());let Oi=ue()?ut.volumeDefault:(vi=(mt=k())!=null?mt:Sc())!=null?vi:ut.volumeDefault,pi=(Xe=P())!=null?Xe:lh();if(s().actions.external.setVolume(Oi),s().actions.external.setMuted(pi),s().getAdmanWrapper().setInitialVolume(pi?0:Oi),Be(),ut.features.saveRate&&Y()){let Vt=uh();Vt&&!n()&&s().actions.internal.setPlaybackRate(Vt)}if(ye()){let Vt=fh();Vt&&s().actions.internal.setAutoplayNextEnabled(Vt)}s().ui.isAutoplay.set(T()),T()?se():C()&&ut.features.preload&&s().actions.internal.preload()}let Ge=j=>{if(window.ResizeObserver){let ti,di;O=new ResizeObserver(zx(Oi=>{let pi=Oi[0];if(pi.contentBoxSize){let mt=Array.isArray(pi.contentBoxSize)?pi.contentBoxSize[0]:pi.contentBoxSize;ti=mt.inlineSize,di=mt.blockSize}else pi.contentRect&&(ti=pi.contentRect.width,di=pi.contentRect.height);bt.set({width:ti,height:di})},300)),O.observe(j)}bt.set({width:j.clientWidth,height:j.clientHeight})},pt=()=>{document.hidden&&s().actions.external.stop()};Wt(()=>{var di,Oi,pi,mt;Et&&document.addEventListener("visibilitychange",pt),ut.debugLog&&s().actions.internal.startLogging(),Ge(r(Nt));let j=Ye.map(vi=>vi.init({store:s(),microStores:ct,config:l(),interactiveController:$(),uiConfig:u()})),ti=()=>{Et&&document.removeEventListener("visibilitychange",pt),O==null||O.disconnect(),j.forEach(vi=>vi.unsubscribe()),s().destroy()};return((di=_())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),ti):((Oi=_())==null?void 0:Oi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),ti):(((pi=_())==null?void 0:pi.status)==="finished"||((mt=_())==null?void 0:mt.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),ti):(qe(),ti)});function Ze(){r(be)?s().actions.external.play():se(!0)}function tt(){s().actions.external.pause()}function it(j){s().actions.external.setMuted(j)}function We(){s().actions.external.toggleSubtitle()}function ht(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function Ut(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function Je(j){ue()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function Yt(j){s().actions.internal.seekTime(j,qx.UNKNOWN)}function ni(j){s().actions.external.seekEpisodeStartTime(j)}function et(){s().actions.external.returnFocusToEpisodes()}function ei(j){s().actions.external.setPlaybackRate(j)}function Di(j){s().actions.external.setAutoQualityLimits(j)}let qi=cu(ut.view),Lt=l().playerView==="preview";var _t=Wx();let Bt;rt(_t,qi);var mo=h(_t);{var nn=j=>{Am(j,{get store(){return s()},uiConfig:ut,get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return G()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return ce()},logoTargetUrl:st,get nextButtonActive(){return Me()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return $e()},get outerContainerRef(){return de()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return ie()},get playPrevChapter(){return He()},firstStart:se,seekTime:Yt,get showEndScreen(){return Se()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Nt)},set videoContainer(ti){D(Nt,me(ti))}})},yn=j=>{var ti=Oe(),di=fe(ti);{var Oi=mt=>{Mm(mt,{get thumbUrl(){return b()},get outsideDuration(){return re()},get canRewindLive(){return I()},get videoContainer(){return r(Nt)},set videoContainer(vi){D(Nt,me(vi))}})},pi=mt=>{Em(mt,{get store(){return s()},uiConfig:ut,get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return p()},get live(){return _()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return q()},get adsParams(){return G()},get adsPreviewParam(){return H()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return ce()},logoTargetUrl:st,get nextButtonActive(){return Me()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ne()},get supportLink(){return B()},get shadowRootContainer(){return $e()},get outerContainerRef(){return de()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return ve()},get playerStarted(){return r(be)},get seekToInteractive(){return ie()},get playPrevChapter(){return He()},firstStart:se,get showEndScreen(){return Se()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Nt)},set videoContainer(vi){D(Nt,me(vi))},get keyboardControls(){return Re()},set keyboardControls(vi){Re(vi)}})};R(di,mt=>{Lt?mt(Oi):mt(pi,!1)})}y(j,ti)};R(mo,j=>{ue()?j(nn):j(yn,!1)})}g(_t),E(j=>Bt=ee(_t,1,"root svelte-7ed4yj",null,Bt,j),[()=>({"root--miui-browser":Lm.device.isMobile&&Lm.browser.isMiuiBrowser,"visible-outside":Lt})]),y(t,_t);var wo=z({initVideo:qe,play:Ze,pause:tt,setMuted:it,toggleSubtitle:We,hideControls:ht,showControls:Ut,setVolume:Je,seekTime:Yt,seekEpisodeStartTime:ni,returnFocusToEpisodes:et,setPlaybackRate:ei,setAutoQualityLimits:Di,get sources(){return a()},set sources(j){a(j)},get store(){return s()},set store(j){s(j)},get microStoresRoot(){return d()},set microStoresRoot(j){d(j)},get videoConfig(){return l()},set videoConfig(j){l(j)},get uiConfig(){return u()},set uiConfig(j){u(j)},get title(){return f()},set title(j){f(j)},get thumbUrl(){return b()},set thumbUrl(j){b(j)},get interactiveContainer(){return p()},set interactiveContainer(j){p(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return x()},set subtitles(j){x(j)},get live(){return _()},set live(j){_(j)},get preload(){return C()},set preload(j){C(j)},get autoplay(){return T()},set autoplay(j){T(j)},get volume(){return k()},set volume(j){k(j)},get muted(){return P()},set muted(j){P(j)},get fromTime(){return A()},set fromTime(j){A(j)},get canRewindLive(){return I()},set canRewindLive(j){I(j)},get showAds(){return V()},set showAds(j){V(j)},get adsSlotId(){return q()},set adsSlotId(j){q(j)},get adsParams(){return G()},set adsParams(j){G(j)},get adsPreviewParam(){return H()},set adsPreviewParam(j){H(j)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(j){Z(j)},get duration(){return re()},set duration(j){re(j)},get logoClickable(){return X()},set logoClickable(j){X(j)},get logoHidden(){return ce()},set logoHidden(j){ce(j)},get isMobile(){return ue()},set isMobile(j){ue(j)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(j){Ve(j)},get nextButtonActive(){return Me()},set nextButtonActive(j){Me(j)},get prevButtonActive(){return _e()},set prevButtonActive(j){_e(j)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(j){ae(j)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(j){Le(j)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(j){ne(j)},get supportLink(){return B()},set supportLink(j){B(j)},get shadowRootContainer(){return $e()},set shadowRootContainer(j){$e(j)},get outerContainerRef(){return de()},set outerContainerRef(j){de(j)},get fullScreenTarget(){return Ke()},set fullScreenTarget(j){Ke(j)},get failoverHosts(){return te()},set failoverHosts(j){te(j)},get showMiniTimer(){return ve()},set showMiniTimer(j){ve(j)},get saveRate(){return Y()},set saveRate(j){Y(j)},get showAutoplayNext(){return ye()},set showAutoplayNext(j){ye(j)},get seekToInteractive(){return ie()},set seekToInteractive(j){ie(j)},get playPrevChapter(){return He()},set playPrevChapter(j){He(j)},get volumeMultiplier(){return je()},set volumeMultiplier(j){je(j)},get showEndScreen(){return Se()},set showEndScreen(j){Se(j)},get keyboardControls(){return Re()},set keyboardControls(j){Re(j)}});return o(),wo}var Qx=we('<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 Rm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Qx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),y(t,o)}function Nm(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Rm(t,{get style(){return r(o)}})}var Gx=L('<div class="title svelte-1y9fytq"> </div>'),jx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Yx={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 Bm(t,e){K(t,Yx);var i=jx(),o=h(i);{var n=d=>{var l=Gx(),u=h(l,!0);g(l),E(()=>ge(u,e.title)),y(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Nm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),y(t,i)}import{now as T5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as I5,InterfaceLanguage as k5,isNonNullable as qm,Logger as E5,Observable as P5,Subscription as O1,once as A5,InternalsExposure as M5,skip as L5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as H1,isMobile as V5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as R5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as Zx,Subscription as Xx}from"@vkontakte/videoplayer-shared/es2015";var uu=class{constructor(){this.subscription=new Xx,this.logger=new Zx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Te(e.state.currentPlaybackRate$),n=Te(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Fm,detectEmbed as n5}from"@vkontakte/videoplayer-shared/es2015";var Jx=we('<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 Dm(t,e){let i=Ae(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),xe(),g(o),E(()=>n=ke(o,n,W({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))),y(t,o)}var e5=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),t5={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 Om(t,e){U(e,!0),K(t,t5);let[i,o]=Ne(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),s=Ie(),d=Kt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,b=s.ui.t,p=v(()=>n()&&b("pip_dummy_title")),$=cu(d.view);var x=e5();ee(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),rt(x,$);var _=h(x);let C;var T=h(_);Dm(T,{}),g(_);var k=M(_,2),P=h(k,!0);g(k),g(x),E(A=>{C=ee(_,1,"dummy-image svelte-1pbsod4",null,C,A),ge(P,r(p))},[()=>({desktop:!a()})]),y(t,x),z(),o()}var i5=Object.defineProperty,o5=(t,e,i)=>e in t?i5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ll=(t,e,i)=>o5(t,typeof e!="symbol"?e+"":e,i),Hm=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),r5=460,s5=280,Ad=class{constructor({enabled:e=!0}={enabled:!0}){ll(this,"playerDomElement"),ll(this,"playerParentShadowRoot"),ll(this,"playerDummyElement"),ll(this,"svelteContext"),ll(this,"pipWindow"),ll(this,"info",{isActive$:new Fm(!1),isEnabled$:new Fm(!1),type:1}),this.info.isEnabled$=new Fm(e)}isSupported(){let{isEmbed:e}=n5();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Hm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:r5,height:s5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
396
|
-
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=es(Om,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ks(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Hm(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Hm(this,null,function*(){yield this.remove()})}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 A1(t){return t instanceof Ad}var pu=class{static getLatestSupportedVersion(e){let i=new Js(e),o=new Ad(e);if(o.isSupported())return o;if(i.isSupported())return i}};function fu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var M1="Inner error. Unexpectedly root annotation container null reference exception",L1="Annotation with such name already exists",V1="Annotation with such name does not exist";var dl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as a5,Subscription as l5,throttleFn as d5}from"@vkontakte/videoplayer-shared/es2015";var c5="1",u5=100,mu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new l5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=d5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},u5);this.subscriptions.add(a5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new dl(M1);if(this.annotations.has(e))throw new dl(L1);i.style.zIndex=(o=i.style.zIndex)!=null?o:c5,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 dl(V1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as vu,Subscription as p5}from"@vkontakte/videoplayer-shared/es2015";var Uo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return vu(e),vu(i),vu(n),n.interactiveData&&vu(o),this.subscription=new p5,this.subscription}};var Md=class extends Uo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Dt(W({},le(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ld=class extends Uo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Dt(W({},le(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,b=Te(f),p=()=>b&&Te(u);return o.add(u.subscribe($=>{if(!b)return;let x=Te(s);Te(l)?this.state$.set($):x!==null&&this.state$.set(!x||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let x=Te(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!$)})),o}};var Vd=class extends Uo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as f5}from"@vkontakte/videoplayer-shared/es2015";var Um=le(!1),gu=null,Rd=class extends Uo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Dt(W({},Um),{set:(i,o=!1)=>{i!==Te(Um)&&(this.clearTimeout(),Um.set(i),!i&&gu&&(gu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe(b=>{Te(s)&&b&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(f5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:b,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var x,_;if(!(!b||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&gu===null&&(gu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as m5,noop as v5}from"@vkontakte/videoplayer-shared/es2015";var Nd=class extends Uo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Dt(W({},le(null)),{toggle:v5});this.checkIfShouldHide=i=>Cs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(Te(s)))return;let l=Te(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:b}=n.ui.controls,p=Te(u),$=Te(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),b.remove(bp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),b.add(bp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}}),o.add(m5({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>xt(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as R1}from"@vkontakte/videoplayer-shared/es2015";var Bd=class extends Uo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new R1(!1),isEnabled$:new R1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as _5,filterChanged as b5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as zm}from"@vkontakte/videoplayer-shared/es2015";var N1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?g5({maxCount:t}):void 0,e!==0?h5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},g5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,zm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},h5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(zm.get(e)||"{}")}catch(a){return{}}},o=a=>zm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Dt(W({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Dd=class extends Uo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=N1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(b5(),_5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var B1=()=>[Md,Ld,Vd,Rd,Nd,Bd,Dd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Dt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Od}from"@vkontakte/videoplayer-shared/es2015";var $5=Object.defineProperty,y5=Object.defineProperties,x5=Object.getOwnPropertyDescriptors,D1=Object.getOwnPropertySymbols,w5=Object.prototype.hasOwnProperty,S5=Object.prototype.propertyIsEnumerable,Wm=(t,e,i)=>e in t?$5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ks=(t,e)=>{for(var i in e||(e={}))w5.call(e,i)&&Wm(t,i,e[i]);if(D1)for(var i of D1(e))S5.call(e,i)&&Wm(t,i,e[i]);return t},C5=(t,e)=>y5(t,x5(e)),ai=(t,e,i)=>Wm(t,typeof e!="symbol"?e+"":e,i),hu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),N5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:k5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:V5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},$n=J(void 0),_u=class extends HTMLElement{constructor(){super(),ai(this,"svelteStubComponent"),ai(this,"svelteRootComponent"),ai(this,"store"),ai(this,"microStoresRoot"),ai(this,"statistics"),ai(this,"sentry"),ai(this,"_shadowRoot"),ai(this,"playerContainer"),ai(this,"rootContainer"),ai(this,"shadowRootContainer"),ai(this,"uiConfig"),ai(this,"coreConfig"),ai(this,"statisticsConfig"),ai(this,"interactiveController"),ai(this,"interactiveContainer"),ai(this,"graphMadePause"),ai(this,"currentPlayingVideoIndex",0),ai(this,"needToRepeatPlaylist",!1),ai(this,"videoConfig"),ai(this,"pictureInPictureApi"),ai(this,"mediaSessionApi"),ai(this,"unsubscribePlayerPhaseSubscription"),ai(this,"logger"),ai(this,"log"),ai(this,"subscription"),ai(this,"interactiveSubscription"),ai(this,"annotationsApi"),ai(this,"slotsApi"),ai(this,"prevIsid"),ai(this,"isInited",!1),ai(this,"internalsExposure",null),ai(this,"shadowDOMCallbacksDisabled",!1),ai(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:b,refreshStatAuthToken:p,autoplay:$,isMobile:x,isTouch:_,refDomain:C,deviceId:T,interactiveData:k}=fu(this.videoConfig,i),P=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new R5(ks({movieId:I,albumId:d,place:l,trackCode:f,vkAppId:b,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:_!=null?_:x,clip:V,refDomain:C,deviceId:T},P&&(!this.isInited||A)&&{projectId:Number(P)}),ks({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Od.create("ui"),this.logger=new E5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new O1,this.interactiveSubscription=new O1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=es(Bm,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Od.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){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,u,f,b;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:x,preload:_,autoplay:C,volume:T,muted:k,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:G={},adsPreviewParam:H,adsAutoplayParam:Z,interfaceLanguage:re,isCyrillicRelatedInterface:X,logoClickable:ce,logoHidden:ue,isMobile:Ve,isTouch:Me,isAudioDisabled:_e,isLiveCatchUpMode:ae,fullScreenTarget:Le,failoverHosts:ne,canDownload:B,callbacks:$e,interactiveData:de,showThumbTimer:Ke,additionalButtons:te=[],additionalSettingsMenuItems:ve=[],additionalContextMenuItems:Y=[],repeat:ie,saveRate:He,volumeMultiplier:je,showEndScreen:ye,showAutoplayNext:Se}=fu(this.videoConfig,i),{sources:Re,title:Ye,thumbUrl:ct,unitedVideoId:ut,isClip:st=!1,duration:It,adsParams:bt={},videoEpisodes:Zt,previewThumbsData:li,subtitles:Et,live:Nt}=e,O=ks(ks({},G),bt),be=this.getNextVideoInfo(),se={sources:Re,title:Ye,thumbUrl:ct,subtitles:Et,unitedVideoId:ut,isClip:st,live:Nt,albumId:p,statPlace:$,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Z,duration:It,logoClickable:ce,logoHidden:ue,isTouch:Me!=null?Me:Ve,repeat:ie,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Be={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(se)}`});let qe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Ge=(qe==null?void 0:qe.oneStat)||this.createOneStat(e,i);Ge&&(this.statistics=new Yc(Ge,qe==null?void 0:qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Xs(this.uiConfig.sentry,{version:Ga,env:yc},{movieId:ut,albumId:p,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:st}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=ks(ks({},this.sentry),Xs.getInstance());let Ze=!!de,tt=[],it="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let Je=this.interactiveController.state.isInitialChapter$.getValue(),Yt=this.interactiveController.getHistoryState();Je&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),Yt.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),Je||(Yt.isGoBackLimited$.getValue()?it="tooltip_interactive_go_back_disabled_limit":it="tooltip_interactive_go_back_disabled"))}let We=()=>{var Je;this.isInited=!1,this.prevIsid=void 0;let Yt=(o==null?void 0:o.info.isEnded$.getValue())&&((Je=this.interactiveController)==null?void 0:Je.state.isEndChapter$.getValue());$e.onReplayInteractiveVideo&&!Yt?$e.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=t1({player:o,interfaceLanguage:re,isCyrillicRelatedInterface:X,videoId:ut,isClip:st,isLiveCatchUpMode:ae,isAudioDisabled:_e,statAuthToken:x,callbacks:$e,webApi:Be,videoEpisodes:Zt,previewThumbsData:li,canDownload:B,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:Ze,saveRate:He,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:We,playPrevChapterDisabledTooltip:it,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:ve!=null?ve:[],additionalContextMenuItems:Y!=null?Y:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ie&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ht}=this.microStoresRoot=B1(),Ut=()=>{var Je,Yt,ni,et,ei,Di;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onCurrentFormatChanged)==null?void 0:_t.call($e,Lt)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Lt=>{var _t;Lt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onThroughputEstimationChanged)==null?void 0:_t.call($e,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onTrafficSavingEnabledChanged)==null?void 0:_t.call($e,Lt)})),this.subscription.add(new P5(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>Lt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?L5(1):Lt=>Lt).subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onCurrentPlaybackRateChanged)==null?void 0:_t.call($e,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onVolumeChange)==null?void 0:_t.call($e,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var _t,Bt;return Lt?(_t=$e==null?void 0:$e.onMute)==null?void 0:_t.call($e):(Bt=$e==null?void 0:$e.onUnmute)==null?void 0:Bt.call($e)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onVideoBitrateChanged)==null?void 0:_t.call($e,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var _t;let Bt=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;Bt&&(Lt&&!Bt.includes(Bl)&&Bt.add(Bl),Lt||Bt.remove(Bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Lt=>hu(this,null,function*(){var _t;if(!H1.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((_t=this.videoConfig)==null?void 0:_t.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var _t;return(_t=$e==null?void 0:$e.onVSIDChanged)==null?void 0:_t.call($e,Lt)})),this.initMediaSession(),D($n,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ye,thumbUrl:ct,subtitles:Et,live:Nt,preload:_,autoplay:C,muted:k,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:q,adsParams:O,adsPreviewParam:H,adsAutoplayParam:Z,duration:It,logoClickable:ce,logoHidden:ue,isMobile:Me!=null?Me:Ve,failoverHosts:ne,fullScreenTarget:Le,saveRate:He,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ke,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:je,showEndScreen:ye,showAutoplayNext:Se}));let qi={target:this.playerContainer,props:r($n)};this.svelteRootComponent=es(Vm,qi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ni=(Yt=(Je=this.videoConfig)==null?void 0:Je.callbacks)==null?void 0:Yt.onInited)==null||ni.call(Yt)),(et=this.internalsExposure)==null||et.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Di=(ei=this.videoConfig)==null?void 0:ei.callbacks)!=null&&Di.onDevNullLog)?Od.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Od.destroy("ui")};this.coreConfig.asyncResolveClientChecker?H1.isInited$.subscribe(Je=>{Je&&(console.log("UI SDK async start"),Ut())}):Ut()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&qm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return hu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?Te(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:p,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(_=>{if(!this.isInited)return;let C=this.store;_?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(_=>{this.store&&this.store.state.isInteractiveExpectation$.set(_)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(_=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=C5(ks({},_.config),{title:(l==null?void 0:l.title)||_.config.title});let C=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(_.player,C),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:_,actionType:C})=>{var T,k,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let q=p.getValue();if(_==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Dl)),_==="action-choice-canceled"){let G=Te(this.store.state.isPlaying$)||q;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(k=this.videoConfig)!=null&&k.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:_,removeAllOpenURI:C})=>{this.store&&_==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Dl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let _=this.interactiveController.getHistoryState();this.subscription.add(_.history$.subscribe(C=>{var T,k,P;C.length&&((P=(k=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||P.call(k,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var _,C,T,k;(_=this.microStoresRoot)==null||_.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(_=>{this.log({message:_.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,s,d,l,u,f,b,p,$,x,_,C,T,k,P,A,I,V,q,G,H,Z,re,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=fu(N5,I5(e,ce=>ce instanceof HTMLElement?ce:void 0)),this.uiConfig=Bg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new M5("UI"))),Od.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[T5()]}),qm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),qm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(x=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.videoConfig.isTouch=(C=(_=this.uiConfig.isMobile)!=null?_:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(q=this.videoConfig.supportLink)!=null?q:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(H=this.uiConfig.features.autoplayNext)!=null?H:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((re=this.videoConfig.videos)!=null&&re[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=pu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new Js(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new uu:void 0,this.slotsApi=this.uiConfig.features.slots?new au:void 0,this.annotationsApi=this.uiConfig.features.annotations?new mu(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.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]),A1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r($n)&&(r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).prevButtonActive=this.isPrevButtonActive(),r($n).endScreenVideoTitle=o.nextVideoTitle,r($n).endScreenVideoThumb=o.nextVideoThumb,r($n).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=ks({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>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(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r($n)&&(r($n).needToRepeatPlaylist=this.needToRepeatPlaylist,r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return hu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return hu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Te(this.store.state.positionExact$),s=Te(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(A5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Ks(e)}};import{InterfaceLanguage as KJ,VKNumericLanguage as QJ,loadVKLangPack as GJ}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as YJ,VideoFormat as ZJ}from"@vkontakte/videoplayer-core/es2015";var DJ=()=>{window.customElements.define("vk-video-player",_u)};export{Zc as ControlButtonType,Ur as GridTypes,KJ as InterfaceLanguage,Gl as MenuItemType,ns as PlayerPhase,Ga as VERSION,QJ as VKNumericLanguage,ZJ as VideoFormat,YJ as VideoQuality,GJ as loadVKLangPack,DJ as registerPlayerWebComponent};
|
|
391
|
+
/* \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 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Hm(t,e){O(e,!0),q(t,Xx);let[i,o]=He(),n=()=>S(Qt,"$isLive$",i),a=m(e,"sources",7),r=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),u=m(e,"uiConfig",7),f=m(e,"title",7),$=m(e,"thumbUrl",7),p=m(e,"interactiveContainer",7),_=m(e,"interactiveController",7),w=m(e,"subtitles",7),b=m(e,"live",7),C=m(e,"preload",7),T=m(e,"autoplay",7),I=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),P=m(e,"fromTime",7),E=m(e,"canRewindLive",7),V=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),K=m(e,"adsParams",7,void 0),U=m(e,"adsPreviewParam",7,void 0),j=m(e,"adsAutoplayParam",7,void 0),ae=m(e,"duration",7,void 0),Y=m(e,"logoClickable",7),de=m(e,"logoHidden",7),le=m(e,"isMobile",7),Me=m(e,"showNextPrevButtons",7,!1),Ne=m(e,"nextButtonActive",7,!1),_e=m(e,"prevButtonActive",7,!1),ce=m(e,"endScreenVideoTitle",7,void 0),Le=m(e,"endScreenVideoThumb",7,void 0),se=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Se=m(e,"shadowRootContainer",7,void 0),$e=m(e,"outerContainerRef",7,void 0),Ke=m(e,"fullScreenTarget",7,void 0),ne=m(e,"failoverHosts",7,void 0),pe=m(e,"showMiniTimer",7,!1),ye=m(e,"saveRate",7),Z=m(e,"seekToInteractive",7,D1),qe=m(e,"playPrevChapter",7,D1),et=m(e,"volumeMultiplier",7),Ie=m(e,"showAutoplayNext",7),ie=m(e,"showEndScreen",7,!0),Ve=m(e,"keyboardControls",15,void 0),{subscribers:Qe,stores:at}=d();zg(u());let lt=Wt(),nt=u().logoLink,Tt=r().ui.debugPanelVisible,pt=r().ui.playerSize,Qt=r().state.isLive$,At=r().state.isInteractive&&Om.device.isAndroid,Mt=J(void 0),ee=null,It=J(!1);r().getAdmanWrapper().init({switchFromAdsToVideo:r().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r().actions.internal.switchFromVideoToAds,setMuted:r().actions.external.setMuted},r().ads,{isMobile:r().ui.isMobile,mobileUnmuteButtonVisible:r().ui.mobileUnmuteButtonVisible,vsid:r().vsid}),Jg(r(),at),We(()=>{var G,Zt;r().ui.isMobile.set(le()),(Zt=(G=l().callbacks)==null?void 0:G.onDomReady)==null||Zt.call(G)});let X=(G=!1)=>{D(It,!0),G?r().actions.external.firstStart(V()):r().actions.internal.firstStart(V())},ue=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let G=bh(r().videoId);if(G)switch(G.type){case"high_quality":r().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":r().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":r().actions.internal.setQuality(G.quality);break}}else{$h(r().videoId),Bp()&&r().actions.internal.setTrafficSavingEnabled(!0);let Zt=Mp(r().videoId);Zt&&r().actions.internal.setQuality(Zt)}};function Ae(G){var ui,ft,tt;let Zt=a()||G;Zt&&r().initVideo({container:s(Mt),sources:Zt,failoverHosts:ne(),subtitles:w(),volumeMultiplier:et()});let fi=Gx.get(Fl)==="true";Tt.set(fi),P()>0&&r().actions.external.seekTime(P());let Ri=le()?lt.volumeDefault:(ft=(ui=I())!=null?ui:Ic())!=null?ft:lt.volumeDefault,ci=(tt=M())!=null?tt:fh();if(r().actions.external.setVolume(Ri),r().actions.external.setMuted(ci),r().getAdmanWrapper().setInitialVolume(ci?0:Ri),ue(),lt.features.saveRate&&ye()){let Vt=gh();Vt&&!n()&&r().actions.internal.setPlaybackRate(Vt)}if(Ie()){let Vt=_h();Vt&&r().actions.internal.setAutoplayNextEnabled(Vt)}r().ui.isAutoplay.set(T()),T()?X():C()&<.features.preload&&r().actions.internal.preload()}let De=G=>{if(window.ResizeObserver){let Zt,fi;ee=new ResizeObserver(Yx(Ri=>{let ci=Ri[0];if(ci.contentBoxSize){let ui=Array.isArray(ci.contentBoxSize)?ci.contentBoxSize[0]:ci.contentBoxSize;Zt=ui.inlineSize,fi=ui.blockSize}else ci.contentRect&&(Zt=ci.contentRect.width,fi=ci.contentRect.height);pt.set({width:Zt,height:fi})},300)),ee.observe(G)}pt.set({width:G.clientWidth,height:G.clientHeight})},fe=()=>{document.hidden&&r().actions.external.stop()};Ht(()=>{var fi,Ri,ci,ui;At&&document.addEventListener("visibilitychange",fe),lt.debugLog&&r().actions.internal.startLogging(),De(s(Mt));let G=Qe.map(ft=>ft.init({store:r(),microStores:at,config:l(),interactiveController:_(),uiConfig:u()})),Zt=()=>{At&&document.removeEventListener("visibilitychange",fe),ee==null||ee.disconnect(),G.forEach(ft=>ft.unsubscribe()),r().destroy()};return((fi=b())==null?void 0:fi.status)==="upcoming"?(r().actions.internal.setLiveWaitingStart(!0),Zt):((Ri=b())==null?void 0:Ri.status)==="waiting"?(r().actions.internal.setLiveWaitingRecover(!0),Zt):(((ci=b())==null?void 0:ci.status)==="finished"||((ui=b())==null?void 0:ui.status)==="postlive")&&!Object.keys(a()||[]).length?(r().actions.internal.setLiveWaitingRecord(!0),Zt):(Ae(),Zt)});function Ye(){s(It)?r().actions.external.play():X(!0)}function Je(){r().actions.external.pause()}function je(G){r().actions.external.setMuted(G)}function Nt(){r().actions.external.toggleSubtitle()}function ut(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.hideControls()}function ri(){var G;(G=r().webApi.slotsApi)!=null&&G.haveSlots()&&r().actions.external.showControls()}function ot(G){le()||G>=0&&G<=1&&r().actions.external.setVolume(G)}function oi(G){r().actions.internal.seekTime(G,jx.UNKNOWN)}function di(G){r().actions.external.seekEpisodeStartTime(G)}function rt(){r().actions.external.returnFocusToEpisodes()}function ei(G){r().actions.external.setPlaybackRate(G)}function Ki(G){r().actions.external.setAutoQualityLimits(G)}let Qi=vu(lt.view),Lt=l().playerView==="preview";var gt=Zx();let Dt;st(gt,Qi);var fo=h(gt);{var Co=G=>{Nm(G,{get store(){return r()},uiConfig:lt,get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return j()},get duration(){return ae()},get logoClickable(){return Y()},get logoHidden(){return de()},logoTargetUrl:nt,get nextButtonActive(){return Ne()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Se()},get outerContainerRef(){return $e()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return pe()},get playerStarted(){return s(It)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:X,seekTime:oi,get showEndScreen(){return ie()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Mt)},set videoContainer(Zt){D(Mt,ve(Zt))}})},Vi=G=>{var Zt=Fe(),fi=ge(Zt);{var Ri=ui=>{Dm(ui,{get thumbUrl(){return $()},get outsideDuration(){return ae()},get canRewindLive(){return E()},get videoContainer(){return s(Mt)},set videoContainer(ft){D(Mt,ve(ft))}})},ci=ui=>{Rm(ui,{get store(){return r()},uiConfig:lt,get title(){return f()},get thumbUrl(){return $()},get interactiveContainer(){return p()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return E()},get showAds(){return V()},get adsSlotId(){return W()},get adsParams(){return K()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return j()},get duration(){return ae()},get logoClickable(){return Y()},get logoHidden(){return de()},logoTargetUrl:nt,get nextButtonActive(){return Ne()},get prevButtonActive(){return _e()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return Se()},get outerContainerRef(){return $e()},get fullScreenTarget(){return Ke()},get showMiniTimer(){return pe()},get playerStarted(){return s(It)},get seekToInteractive(){return Z()},get playPrevChapter(){return qe()},firstStart:X,get showEndScreen(){return ie()},get showAutoplayNext(){return Ie()},get showNextPrevButtons(){return Me()},get videoContainer(){return s(Mt)},set videoContainer(ft){D(Mt,ve(ft))},get keyboardControls(){return Ve()},set keyboardControls(ft){Ve(ft)}})};R(fi,ui=>{Lt?ui(Ri):ui(ci,!1)})}y(G,Zt)};R(fo,G=>{le()?G(Co):G(Vi,!1)})}g(gt),k(G=>Dt=te(gt,1,"root svelte-tw6yp4",null,Dt,G),[()=>({"root--miui-browser":Om.device.isMobile&&Om.browser.isMiuiBrowser,"visible-outside":Lt})]),y(t,gt);var To=H({initVideo:Ae,play:Ye,pause:Je,setMuted:je,toggleSubtitle:Nt,hideControls:ut,showControls:ri,setVolume:ot,seekTime:oi,seekEpisodeStartTime:di,returnFocusToEpisodes:rt,setPlaybackRate:ei,setAutoQualityLimits:Ki,get sources(){return a()},set sources(G){a(G)},get store(){return r()},set store(G){r(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return u()},set uiConfig(G){u(G)},get title(){return f()},set title(G){f(G)},get thumbUrl(){return $()},set thumbUrl(G){$(G)},get interactiveContainer(){return p()},set interactiveContainer(G){p(G)},get interactiveController(){return _()},set interactiveController(G){_(G)},get subtitles(){return w()},set subtitles(G){w(G)},get live(){return b()},set live(G){b(G)},get preload(){return C()},set preload(G){C(G)},get autoplay(){return T()},set autoplay(G){T(G)},get volume(){return I()},set volume(G){I(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return P()},set fromTime(G){P(G)},get canRewindLive(){return E()},set canRewindLive(G){E(G)},get showAds(){return V()},set showAds(G){V(G)},get adsSlotId(){return W()},set adsSlotId(G){W(G)},get adsParams(){return K()},set adsParams(G){K(G)},get adsPreviewParam(){return U()},set adsPreviewParam(G){U(G)},get adsAutoplayParam(){return j()},set adsAutoplayParam(G){j(G)},get duration(){return ae()},set duration(G){ae(G)},get logoClickable(){return Y()},set logoClickable(G){Y(G)},get logoHidden(){return de()},set logoHidden(G){de(G)},get isMobile(){return le()},set isMobile(G){le(G)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(G){Me(G)},get nextButtonActive(){return Ne()},set nextButtonActive(G){Ne(G)},get prevButtonActive(){return _e()},set prevButtonActive(G){_e(G)},get endScreenVideoTitle(){return ce()},set endScreenVideoTitle(G){ce(G)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(G){Le(G)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(G){se(G)},get supportLink(){return N()},set supportLink(G){N(G)},get shadowRootContainer(){return Se()},set shadowRootContainer(G){Se(G)},get outerContainerRef(){return $e()},set outerContainerRef(G){$e(G)},get fullScreenTarget(){return Ke()},set fullScreenTarget(G){Ke(G)},get failoverHosts(){return ne()},set failoverHosts(G){ne(G)},get showMiniTimer(){return pe()},set showMiniTimer(G){pe(G)},get saveRate(){return ye()},set saveRate(G){ye(G)},get showAutoplayNext(){return Ie()},set showAutoplayNext(G){Ie(G)},get seekToInteractive(){return Z()},set seekToInteractive(G){Z(G)},get playPrevChapter(){return qe()},set playPrevChapter(G){qe(G)},get volumeMultiplier(){return et()},set volumeMultiplier(G){et(G)},get showEndScreen(){return ie()},set showEndScreen(G){ie(G)},get keyboardControls(){return Ve()},set keyboardControls(G){Ve(G)}});return o(),To}var Jx=Te('<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 Fm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=Jx();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i))),y(t,o)}function Um(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Fm(t,{get style(){return s(o)}})}var e5=L('<div class="title svelte-1y9fytq"> </div>'),t5=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),i5={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 zm(t,e){q(t,i5);var i=t5(),o=h(i);{var n=d=>{var l=e5(),u=h(l,!0);g(l),k(()=>he(u,e.title)),y(d,l)};R(o,d=>{e.title&&d(n)})}var a=A(o,2);{var r=d=>{let l=v(()=>!!e.thumbUrl);Um(d,{get isWhite(){return s(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(r)})}g(i),k(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),y(t,i)}import{now as M5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as L5,InterfaceLanguage as V5,isNonNullable as jm,Logger as R5,Observable as B5,Subscription as Q1,once as N5,InternalsExposure as D5,skip as O5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as G1,isMobile as H5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as F5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as o5,Subscription as n5}from"@vkontakte/videoplayer-shared/es2015";var gu=class{constructor(){this.subscription=new n5,this.logger=new o5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(r){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,r;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(r=(a=navigator.mediaSession).setPositionState)==null||r.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Qm,detectEmbed as c5}from"@vkontakte/videoplayer-shared/es2015";var r5=Te('<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 Wm(t,e){let i=Be(e,["$$slots","$$events","$$legacy","children"]);var o=r5();let n;var a=h(o);be(a,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),k(()=>n=Pe(o,n,z({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))),y(t,o)}var s5=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),a5={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 qm(t,e){O(e,!0),q(t,a5);let[i,o]=He(),n=()=>S(u,"$interfaceLanguage$",i),a=()=>S(f,"$isMobile$",i),r=Ee(),d=Wt(),l=!!r.webApi.pictureInPictureApi,u=r.interfaceLanguage$,f=r.ui.isMobile,$=r.ui.t,p=v(()=>n()&&$("pip_dummy_title")),_=vu(d.view);var w=s5();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),st(w,_);var b=h(w);let C;var T=h(b);Wm(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),k(P=>{C=te(b,1,"dummy-image svelte-1pbsod4",null,C,P),he(M,s(p))},[()=>({desktop:!a()})]),y(t,w),H(),o()}var l5=Object.defineProperty,d5=(t,e,i)=>e in t?l5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,fl=(t,e,i)=>d5(t,typeof e!="symbol"?e+"":e,i),Km=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())}),u5=460,p5=280,Rd=class{constructor({enabled:e=!0}={enabled:!0}){fl(this,"playerDomElement"),fl(this,"playerParentShadowRoot"),fl(this,"playerDummyElement"),fl(this,"svelteContext"),fl(this,"pipWindow"),fl(this,"info",{isActive$:new Qm(!1),isEnabled$:new Qm(!1),type:1}),this.info.isEnabled$=new Qm(e)}isSupported(){let{isEmbed:e}=c5();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Km(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:u5,height:p5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
392
|
+
`),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),r=a.attachShadow({mode:"open"});r.append(n),r.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=us(qm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ia(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}remove(){return Km(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Km(this,null,function*(){yield this.remove()})}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 O1(t){return t instanceof Rd}var hu=class{static getLatestSupportedVersion(e){let i=new da(e),o=new Rd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function _u(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let r of i)o[r]=(a=(n=e[r])!=null?n:t[r])!=null?a:void 0;return o}var H1="Inner error. Unexpectedly root annotation container null reference exception",F1="Annotation with such name already exists",U1="Annotation with such name does not exist";var ml=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as f5,Subscription as m5,throttleFn as v5}from"@vkontakte/videoplayer-shared/es2015";var g5="1",h5=100,bu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new m5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=v5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},h5);this.subscriptions.add(f5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ml(H1);if(this.annotations.has(e))throw new ml(F1);i.style.zIndex=(o=i.style.zIndex)!=null?o:g5,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 ml(U1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,r=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+r>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as $u,Subscription as _5}from"@vkontakte/videoplayer-shared/es2015";var Zo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return $u(e),$u(i),$u(n),n.interactiveData&&$u(o),this.subscription=new _5,this.subscription}};var Bd=class extends Zo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ot(z({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Nd=class extends Zo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ot(z({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:r}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:u,isMobile:f}=a.ui,$=we(f),p=()=>$&&we(u);return o.add(u.subscribe(_=>{if(!$)return;let w=we(r);we(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||p())})),o.add(r.subscribe(_=>{if(_===null)return;let w=we(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Dd=class extends Zo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as b5}from"@vkontakte/videoplayer-shared/es2015";var Gm=re(!1),yu=null,Od=class extends Zo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ot(z({},Gm),{set:(i,o=!1)=>{i!==we(Gm)&&(this.clearTimeout(),Gm.set(i),!i&&yu&&(yu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:r,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(l.subscribe($=>{we(r)&&$&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(b5({isPlaying$:d,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:$,isInteractiveTime$:p,interactiveTimeIndicator:_})=>{var w,b;if(!(!$||!(_!=null&&_.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&yu===null&&(yu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as $5,noop as y5}from"@vkontakte/videoplayer-shared/es2015";var Hd=class extends Zo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ot(z({},re(null)),{toggle:y5});this.checkIfShouldHide=i=>Ns(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,r=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(we(r)))return;let l=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:$}=n.ui.controls,p=we(u),_=we(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),$.remove(Cp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),$.add(Cp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add($5({graphIsOpened:this.state$,currentGridType:r}).subscribe(f=>xt(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as z1}from"@vkontakte/videoplayer-shared/es2015";var Fd=class extends Zo{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:n}=i,{info:{isActive$:a,isEnabled$:r,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new z1(!1),isEnabled$:new z1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(r.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as S5,filterChanged as C5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Ym}from"@vkontakte/videoplayer-shared/es2015";var W1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?x5({maxCount:t}):void 0,e!==0?w5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},x5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ym.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},w5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ym.get(e)||"{}")}catch(a){return{}}},o=a=>Ym.set(e,JSON.stringify(a)),n=a=>{let r=i();delete r[a],o(r)};return{notificationShowed:a=>{o(Ot(z({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let r=i()[a];if(r){let d=Date.now()-r.launchTime>t;return d&&n(a),d}else return!0}}};var Ud=class extends Zo{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:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:r,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=W1({maxShowCount:a,timeout:r});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(C5(),S5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var q1=()=>[Bd,Nd,Dd,Od,Hd,Fd,Ud].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ot(z({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as zd}from"@vkontakte/videoplayer-shared/es2015";var T5=Object.defineProperty,I5=Object.defineProperties,E5=Object.getOwnPropertyDescriptors,K1=Object.getOwnPropertySymbols,k5=Object.prototype.hasOwnProperty,P5=Object.prototype.propertyIsEnumerable,Zm=(t,e,i)=>e in t?T5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Hs=(t,e)=>{for(var i in e||(e={}))k5.call(e,i)&&Zm(t,i,e[i]);if(K1)for(var i of K1(e))P5.call(e,i)&&Zm(t,i,e[i]);return t},A5=(t,e)=>I5(t,E5(e)),ii=(t,e,i)=>Zm(t,typeof e!="symbol"?e+"":e,i),xu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},r=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,r);d((i=i.apply(t,e)).next())}),U5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:V5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:H5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Pn=J(void 0),wu=class extends HTMLElement{constructor(){super(),ii(this,"svelteStubComponent"),ii(this,"svelteRootComponent"),ii(this,"store"),ii(this,"microStoresRoot"),ii(this,"statistics"),ii(this,"sentry"),ii(this,"_shadowRoot"),ii(this,"playerContainer"),ii(this,"rootContainer"),ii(this,"shadowRootContainer"),ii(this,"uiConfig"),ii(this,"coreConfig"),ii(this,"statisticsConfig"),ii(this,"interactiveController"),ii(this,"interactiveContainer"),ii(this,"graphMadePause"),ii(this,"currentPlayingVideoIndex",0),ii(this,"needToRepeatPlaylist",!1),ii(this,"videoConfig"),ii(this,"pictureInPictureApi"),ii(this,"mediaSessionApi"),ii(this,"unsubscribePlayerPhaseSubscription"),ii(this,"logger"),ii(this,"log"),ii(this,"subscription"),ii(this,"interactiveSubscription"),ii(this,"annotationsApi"),ii(this,"slotsApi"),ii(this,"prevIsid"),ii(this,"isInited",!1),ii(this,"internalsExposure",null),ii(this,"shadowDOMCallbacksDisabled",!1),ii(this,"createOneStat",(e,i={})=>{var o,n,a,r;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:$,refreshStatAuthToken:p,autoplay:_,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=_u(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)return new F5(Hs({movieId:E,albumId:d,place:l,trackCode:f,vkAppId:$,autoplay:(r=_&&!this.interactiveController)!=null?r:!1,mobile:b!=null?b:w,clip:V,refDomain:C,deviceId:T},M&&(!this.isInited||P)&&{projectId:Number(M)}),Hs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),zd.create("ui"),this.logger=new R5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Q1,this.interactiveSubscription=new Q1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ve({title:o,thumbUrl:n}),r={target:this.playerContainer,props:a};this.svelteStubComponent=us(zm,r)}disconnectedCallback(){var e,i,o,n,a,r;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.mediaSessionApi)==null||o.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)==null||n.call(this),(a=this.interactiveController)==null||a.destroy(),this.interactiveSubscription.unsubscribe(),(r=this.internalsExposure)==null||r.destroy(),zd.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){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,r,d,l,u,f,$;if(!this.videoConfig)return;let{albumId:p,statPlace:_,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:E,showAds:V,adsSlotId:W,adsParams:K={},adsPreviewParam:U,adsAutoplayParam:j,interfaceLanguage:ae,isCyrillicRelatedInterface:Y,logoClickable:de,logoHidden:le,isMobile:Me,isTouch:Ne,isAudioDisabled:_e,isLiveCatchUpMode:ce,fullScreenTarget:Le,failoverHosts:se,canDownload:N,callbacks:Se,interactiveData:$e,showThumbTimer:Ke,additionalButtons:ne=[],additionalSettingsMenuItems:pe=[],additionalContextMenuItems:ye=[],repeat:Z,saveRate:qe,volumeMultiplier:et,showEndScreen:Ie,showAutoplayNext:ie}=_u(this.videoConfig,i),{sources:Ve,title:Qe,thumbUrl:at,unitedVideoId:lt,isClip:nt=!1,duration:Tt,adsParams:pt={},videoEpisodes:Qt,previewThumbsData:ni,subtitles:At,live:Mt}=e,ee=Hs(Hs({},K),pt),It=this.getNextVideoInfo(),X={sources:Ve,title:Qe,thumbUrl:at,subtitles:At,unitedVideoId:lt,isClip:nt,live:Mt,albumId:p,statPlace:_,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:V,adsSlotId:W,adsParams:ee,adsPreviewParam:U,adsAutoplayParam:j,duration:Tt,logoClickable:de,logoHidden:le,isTouch:Ne!=null?Ne:Me,repeat:Z,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:It.nextVideoTitle,endScreenVideoThumb:It.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ue={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(X)}`});let Ae=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),De=(Ae==null?void 0:Ae.oneStat)||this.createOneStat(e,i);De&&(this.statistics=new Jc(De,Ae==null?void 0:Ae.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new la(this.uiConfig.sentry,{version:Ja,env:Sc},{movieId:lt,albumId:p,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Ne!=null?Ne:Me,clip:nt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(r=this.statistics)==null?void 0:r.oneStat.isid$.getValue())),this.sentry=Hs(Hs({},this.sentry),la.getInstance());let Ye=!!$e,Je=[],je="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let ot=this.interactiveController.state.isInitialChapter$.getValue(),oi=this.interactiveController.getHistoryState();ot&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),oi.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),ot||(oi.isGoBackLimited$.getValue()?je="tooltip_interactive_go_back_disabled_limit":je="tooltip_interactive_go_back_disabled"))}let Nt=()=>{var ot;this.isInited=!1,this.prevIsid=void 0;let oi=(o==null?void 0:o.info.isEnded$.getValue())&&((ot=this.interactiveController)==null?void 0:ot.state.isEndChapter$.getValue());Se.onReplayInteractiveVideo&&!oi?Se.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=s1({player:o,interfaceLanguage:ae,isCyrillicRelatedInterface:Y,videoId:lt,isClip:nt,isLiveCatchUpMode:ce,isAudioDisabled:_e,statAuthToken:w,callbacks:Se,webApi:ue,videoEpisodes:Qt,previewThumbsData:ni,canDownload:N,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:Ye,saveRate:qe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Nt,playPrevChapterDisabledTooltip:je,hasInteractiveBranches:!!(($=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?ne:[],additionalSettingsMenuItems:pe!=null?pe:[],additionalContextMenuItems:ye!=null?ye:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Z&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:ut}=this.microStoresRoot=q1(),ri=()=>{var ot,oi,di,rt,ei,Ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onCurrentFormatChanged)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(ut.interactiveControlsOpacity$.subscribe(Lt=>{var gt;Lt!==null&&((gt=this==null?void 0:this.interactiveController)==null||gt.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onThroughputEstimationChanged)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onTrafficSavingEnabledChanged)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(new B5(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(gt=>Lt.next(gt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?O5(1):Lt=>Lt).subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onCurrentPlaybackRateChanged)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onVolumeChange)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var gt,Dt;return Lt?(gt=Se==null?void 0:Se.onMute)==null?void 0:gt.call(Se):(Dt=Se==null?void 0:Se.onUnmute)==null?void 0:Dt.call(Se)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onVideoBitrateChanged)==null?void 0:gt.call(Se,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var gt;let Dt=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;Dt&&(Lt&&!Dt.includes(Ul)&&Dt.add(Ul),Lt||Dt.remove(Ul))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Lt=>xu(this,null,function*(){var gt;if(!G1.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((gt=this.videoConfig)==null?void 0:gt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var gt;return(gt=Se==null?void 0:Se.onVSIDChanged)==null?void 0:gt.call(Se,Lt)})),this.initMediaSession(),D(Pn,ve({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Qe,thumbUrl:at,subtitles:At,live:Mt,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:E,showAds:V,adsSlotId:W,adsParams:ee,adsPreviewParam:U,adsAutoplayParam:j,duration:Tt,logoClickable:de,logoHidden:le,isMobile:Ne!=null?Ne:Me,failoverHosts:se,fullScreenTarget:Le,saveRate:qe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ke,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:It.nextVideoTitle,endScreenVideoThumb:It.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:et,showEndScreen:Ie,showAutoplayNext:ie}));let Qi={target:this.playerContainer,props:s(Pn)};this.svelteRootComponent=us(Hm,Qi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(di=(oi=(ot=this.videoConfig)==null?void 0:ot.callbacks)==null?void 0:oi.onInited)==null||di.call(oi)),(rt=this.internalsExposure)==null||rt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ki=(ei=this.videoConfig)==null?void 0:ei.callbacks)!=null&&Ki.onDevNullLog)?zd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):zd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?G1.isInited$.subscribe(ot=>{ot&&(console.log("UI SDK async start"),ri())}):ri()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let r=a==null?void 0:a.uiInfo;r&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=r.onControlsVisibleChanged)==null?void 0:l.call(r,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=r.onIsMobileChanged)==null?void 0:l.call(r,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=r.onPlayerSizeChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=r.onPrevButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=r.onPlayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=r.onReplayButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=r.onNextButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=r.onPlayPrevChapterChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=r.onSeekToInteractiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=r.onGraphButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=r.onLiveButtonChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=r.onTimeUpdateChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=r.onEpisodesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=r.onSubtitlesChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var l;return(l=r.onTopLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var l;return(l=r.onTopRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var l;return(l=r.onBottomLeftControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var l;return(l=r.onBottomRightControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var l;return(l=r.onMiddleControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var l;return(l=r.onBottomControlBlockChanged)==null?void 0:l.call(r,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var l;return(l=r.onTitleChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=r.onSettingsChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=r.onFullscreenChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=r.onChromecastChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=r.onPipChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=r.onVkLogoChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=r.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(r,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=r.onTimelineChanged)==null?void 0:l.call(r,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&jm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return xu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let r=(i=this.store)==null?void 0:i.interfaceLanguage$,d=r?we(r):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,historyApi:f,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:u,historyApi:f,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation}});let{isInteractiveExpectation$:p,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=A5(Hs({},b.config),{title:(l==null?void 0:l.title)||b.config.title});let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,E,V;if(!this.store||!this.microStoresRoot)return;let W=p.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(zl)),b==="action-choice-canceled"){let K=we(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(P=this.videoConfig)==null?void 0:(E=P.callbacks).onDisabledInteractiveClick)==null||V.call(E)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(zl)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}})}initPlayer(e,i={}){var o,n,a,r,d,l,u,f,$,p,_,w,b,C,T,I,M,P,E,V,W,K,U,j,ae,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=_u(U5,L5(e,de=>de instanceof HTMLElement?de:void 0)),this.uiConfig=Ug((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(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:(r=this.uiConfig.sentry)!=null?r:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new D5("UI"))),zd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[M5()]}),jm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),jm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?p:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((E=this.uiConfig.showLogo)!=null?E:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ae=this.videoConfig.videos)!=null&&ae[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let de={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=hu.getLatestSupportedVersion(de):this.pictureInPictureApi=new da(de)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new gu:void 0,this.slotsApi=this.uiConfig.features.slots?new pu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new bu(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.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]),O1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(Pn)&&(s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).prevButtonActive=this.isPrevButtonActive(),s(Pn).endScreenVideoTitle=o.nextVideoTitle,s(Pn).endScreenVideoThumb=o.nextVideoThumb,s(Pn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Hs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>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(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(Pn)&&(s(Pn).needToRepeatPlaylist=this.needToRepeatPlaylist,s(Pn).showNextPrevButtons=this.needToShowNextPrevButtons(),s(Pn).nextButtonActive=this.isNextButtonActive(),s(Pn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return xu(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return xu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),r=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(N5()).subscribe(()=>{r&&n>=r.time?this.seekTime(r.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&ia(e)}};import{InterfaceLanguage as see,VKNumericLanguage as aee,loadVKLangPack as lee}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as cee,VideoFormat as uee}from"@vkontakte/videoplayer-core/es2015";var XJ=()=>{window.customElements.define("vk-video-player",wu)};export{eu as ControlButtonType,Jr as GridTypes,see as InterfaceLanguage,Jl as MenuItemType,vs as PlayerPhase,Ja as VERSION,aee as VKNumericLanguage,uee as VideoFormat,cee as VideoQuality,lee as loadVKLangPack,XJ as registerPlayerWebComponent};
|