@vkontakte/videoplayer 1.1.61-dev.4affc441.0 → 1.1.61-dev.7a92fe9e.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/es2018.esm.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.61-dev.4affc441.0
3
- * Tue, 15 Apr 2025 00:54:52 GMT
2
+ * @vkontakte/videoplayer v1.1.61-dev.7a92fe9e.0
3
+ * Wed, 16 Apr 2025 14:06:57 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-61/doc/
5
5
  */
6
- var I1=Object.defineProperty;var Vm=t=>{throw TypeError(t)};var k1=(t,e,i)=>e in t?I1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var On=(t,e,i)=>k1(t,typeof e!="symbol"?e+"":e,i),pu=(t,e,i)=>e.has(t)||Vm("Cannot "+i);var wi=(t,e,i)=>(pu(t,e,"read from private field"),i?i.call(t):e.get(t)),cs=(t,e,i)=>e.has(t)?Vm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),pa=(t,e,i,o)=>(pu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Rm=(t,e,i)=>(pu(t,e,"access private method"),i);var us="[",Es="[!",As="]",Wr={};var Si=Symbol(),pi=Symbol("filename"),Bm=Symbol("hmr"),Nm="http://www.w3.org/1999/xhtml",fu="http://www.w3.org/2000/svg";var Od=!0;var Dm,Om,mu=(Om=(Dm=globalThis.process)==null?void 0:Dm.env)==null?void 0:Om.NODE_ENV;mu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=mu&&!mu.toLowerCase().includes("prod");var Ho=Symbol("$state"),Qr=Symbol("$state metadata"),nl=Symbol("legacy props"),Hm=Symbol("");var br=Array.isArray,Fm=Array.prototype.indexOf,rl=Array.from,vu=Object.keys,Xi=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Hd=Object.getOwnPropertyDescriptors,gu=Object.prototype,Um=Array.prototype,Gr=Object.getPrototypeOf;function ps(t){return typeof t=="function"}var ie=()=>{};function zm(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var sl=[],hu=[];function qm(){var t=sl;sl=[],fs(t)}function E1(){var t=hu;hu=[],fs(t)}function Zo(t){sl.length===0&&queueMicrotask(qm),sl.push(t)}function _u(){sl.length>0&&qm(),hu.length>0&&E1()}function Fd(t){return t===this.v}function fa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Km(t,e){return t!==e}function ma(t){return!fa(t,this.v)}function Wm(){if(Te){let t=new Error(`derived_references_self
6
+ var k1=Object.defineProperty;var Bm=t=>{throw TypeError(t)};var E1=(t,e,i)=>e in t?k1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var En=(t,e,i)=>E1(t,typeof e!="symbol"?e+"":e,i),_u=(t,e,i)=>e.has(t)||Bm("Cannot "+i);var Ti=(t,e,i)=>(_u(t,e,"read from private field"),i?i.call(t):e.get(t)),us=(t,e,i)=>e.has(t)?Bm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ma=(t,e,i,o)=>(_u(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Dm=(t,e,i)=>(_u(t,e,"access private method"),i);var ps="[",As="[!",Ps="]",Wr={};var Ii=Symbol(),ci=Symbol("filename"),Om=Symbol("hmr"),Hm="http://www.w3.org/1999/xhtml",bu="http://www.w3.org/2000/svg";var qd=!0;var Fm,Um,$u=(Um=(Fm=globalThis.process)==null?void 0:Fm.env)==null?void 0:Um.NODE_ENV;$u||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=$u&&!$u.toLowerCase().includes("prod");var No=Symbol("$state"),Qr=Symbol("$state metadata"),rl=Symbol("legacy props"),zm=Symbol("");var _r=Array.isArray,qm=Array.prototype.indexOf,sl=Array.from,yu=Object.keys,Zi=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,xu=Object.prototype,Km=Array.prototype,Gr=Object.getPrototypeOf;function fs(t){return typeof t=="function"}var ie=()=>{};function Wm(t){return t()}function ms(t){for(var e=0;e<t.length;e++)t[e]()}var al=[],wu=[];function Qm(){var t=al;al=[],ms(t)}function A1(){var t=wu;wu=[],ms(t)}function Qo(t){al.length===0&&queueMicrotask(Qm),al.push(t)}function Su(){al.length>0&&Qm(),wu.length>0&&A1()}function Wd(t){return t===this.v}function va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Gm(t,e){return t!==e}function ga(t){return!va(t,this.v)}function Ym(){if(Te){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 Qm(t){if(Te){let e=new Error(`effect_in_teardown
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 jm(t){if(Te){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 Gm(){if(Te){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 Ym(t){if(Te){let e=new Error(`effect_orphan
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 Zm(){if(Te){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 Xm(t){if(Te){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 jm(){if(Te){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Jm(){if(Te){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 Zm(){if(Te){let t=new Error(`hydration_failed
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 ev(){if(Te){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 Xm(){if(Te){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 Jm(t){if(Te){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function tv(){if(Te){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 iv(t){if(Te){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 ev(t){if(Te){let e=new Error(`props_rest_readonly
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 ov(t){if(Te){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 tv(t){if(Te){let e=new Error(`rune_outside_svelte
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 nv(t){if(Te){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 iv(){if(Te){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 ov(){if(Te){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 nv(){if(Te){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 rv(){if(Te){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 Br=!1,Nr=!1;function sv(){Br=!0}var al=null;function Yr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function rv(){if(Te){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 sv(){if(Te){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 av(){if(Te){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 lv(){if(Te){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 Rr=!1,Nr=!1;function dv(){Rr=!0}var ll=null;function Yr(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 s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;Xi(e,"stack",{value:n.join(`
25
- `)}),Xi(e,"name",{value:`${t}Error`})}return e}var Ps=new Set,va=new Map;function xu(t){Ps=t}function Bi(t,e){var i={f:0,v:t,reactions:null,equals:Fd,rv:0,wv:0};return Te&&Nr&&(i.created=e!=null?e:Yr("CreatedAt"),i.debug=null),i}function ee(t){return A1(Bi(t))}function Zr(t,e=!1){var o,n;let i=Bi(t);return e||(i.equals=ma),Br&&St!==null&&St.l!==null&&((n=(o=St.l).s)!=null?n:o.s=[]).push(i),i}function A1(t){return Mt!==null&&!Un&&(Mt.f&2)!==0&&($r===null?dv([t]):$r.push(t)),t}function O(t,e){return Mt!==null&&!Un&&Dr()&&(Mt.f&18)!==0&&($r===null||!$r.includes(t))&&rv(),ga(t,e)}function ga(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ls?va.set(t,e):va.set(t,i),t.v=e,t.wv=dl(),Te&&Nr&&(t.updated=Yr("UpdatedAt"),bt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),lv(t,2048),Dr()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(Fn===null?cv([t]):Fn.push(t)),Te&&Ps.size>0){let n=Array.from(Ps);for(let a of n)(a.f&1024)!==0&&en(a,4096),ms(a)&&ha(a);Ps.clear()}}return e}function lv(t,e){var i=t.reactions;if(i!==null)for(var o=Dr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===bt)){if(Te&&(d&262144)!==0){Ps.add(s);continue}en(s,e),(d&1280)!==0&&((d&2)!==0?lv(s,4096):_a(s))}}}function m(t){var e=2050,i=Mt!==null&&(Mt.f&2)!==0?Mt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:St,deps:null,effects:null,equals:Fd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return Te&&Nr&&(o.created=Yr("CreatedAt")),o}function xr(t){let e=m(t);return e.equals=ma,e}function Ud(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)eo(e[i])}}var wu=[];function P1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function M1(t){var e,i=bt;if(Ji(P1(t)),Te){let o=Ps;xu(new Set);try{wu.includes(t)&&Wm(),wu.push(t),Ud(t),e=zd(t)}finally{Ji(i),xu(o),wu.pop()}}else try{Ud(t),e=zd(t)}finally{Ji(i)}return e}function Cu(t){var e=M1(t),i=(Xr||(t.f&256)!==0)&&t.deps!==null?4096:1024;en(t,i),t.equals(e)||(t.v=e,t.wv=dl())}var Vs="font-weight: bold",Rs="font-weight: normal";function uv(t,e,i){Te?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;Zi(e,"stack",{value:n.join(`
25
+ `)}),Zi(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,ha=new Map;function ku(t){Ms=t}function Ri(t,e){var i={f:0,v:t,reactions:null,equals:Wd,rv:0,wv:0};return Te&&Nr&&(i.created=e!=null?e:Yr("CreatedAt"),i.debug=null),i}function ee(t){return P1(Ri(t))}function Zr(t,e=!1){var o,n;let i=Ri(t);return e||(i.equals=ga),Rr&&St!==null&&St.l!==null&&((n=(o=St.l).s)!=null?n:o.s=[]).push(i),i}function P1(t){return Nt!==null&&!Mn&&(Nt.f&2)!==0&&(br===null?pv([t]):br.push(t)),t}function O(t,e){return Nt!==null&&!Mn&&Br()&&(Nt.f&18)!==0&&(br===null||!br.includes(t))&&lv(),_a(t,e)}function _a(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?ha.set(t,e):ha.set(t,i),t.v=e,t.wv=cl(),Te&&Nr&&(t.updated=Yr("UpdatedAt"),yt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),uv(t,2048),Br()&&yt!==null&&(yt.f&1024)!==0&&(yt.f&96)===0&&(Pn===null?fv([t]):Pn.push(t)),Te&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&jo(a,4096),vs(a)&&ba(a);Ms.clear()}}return e}function uv(t,e){var i=t.reactions;if(i!==null)for(var o=Br(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===yt)){if(Te&&(d&262144)!==0){Ms.add(s);continue}jo(s,e),(d&1280)!==0&&((d&2)!==0?uv(s,4096):$a(s))}}}function m(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;yt===null||i!==null&&(i.f&256)!==0?e|=256:yt.f|=1048576;let o={ctx:St,deps:null,effects:null,equals:Wd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:yt};return Te&&Nr&&(o.created=Yr("CreatedAt")),o}function yr(t){let e=m(t);return e.equals=ga,e}function Qd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ji(e[i])}}var Eu=[];function M1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function L1(t){var e,i=yt;if(Xi(M1(t)),Te){let o=Ms;ku(new Set);try{Eu.includes(t)&&Ym(),Eu.push(t),Qd(t),e=Gd(t)}finally{Xi(i),ku(o),Eu.pop()}}else try{Qd(t),e=Gd(t)}finally{Xi(i)}return e}function Pu(t){var e=L1(t),i=(Xr||(t.f&256)!==0)&&t.deps!==null?4096:1024;jo(t,i),t.equals(e)||(t.v=e,t.wv=cl())}var Rs="font-weight: bold",Ns="font-weight: normal";function mv(t,e,i){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function pv(t){Te?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function vv(t){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(t){Te?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(t){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_mismatch")}function fv(){Te?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_mismatch")}function gv(){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function mv(t,e,i){Te?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Rs,Ns):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function hv(t,e,i){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Tu(t,e){Te?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Mu(t,e){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function qd(t){Te?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Yd(t){Te?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`,Vs,Rs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function to(t){Ge=t}var ut;function fi(t){if(t===null)throw Bs(),Wr;return ut=t}function Ei(){return fi(Ao(ut))}function g(t){if(Ge){if(Ao(ut)!==null)throw Bs(),Wr;ut=t}}function _e(t=1){if(Ge){for(var e=t,i=ut;e--;)i=Ao(i);ut=i}}function ba(){for(var t=0,e=ut;;){if(e.nodeType===8){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===us||i===Es)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function he(t,e=null,i){var p,f;var o=null;if(Te&&Nr&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Ho in t)return t;let n=Gr(t);if(n!==gu&&n!==Um)return t;var a=new Map,s=br(t),d=Bi(0);s&&a.set("length",Bi(t.length,o));var l;if(Te)if(l={parent:e,owners:null},i){let _=(f=(p=i.v)==null?void 0:p[Qr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?St!==null?new Set([St.function]):null:new Set;return new Proxy(t,{defineProperty(_,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&iv();var w=a.get(u);return w===void 0?(w=Bi($.value,o),a.set(u,w)):O(w,he($.value,l)),!0},deleteProperty(_,u){var $=a.get(u);if($===void 0)u in _&&a.set(u,Bi(Si,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,Si),vv(d)}return!0},get(_,u,$){var A;if(Te&&u===Qr)return l;if(u===Ho)return t;var w=a.get(u),y=u in _;if(w===void 0&&(!y||(A=Hn(_,u))!=null&&A.writable)&&(w=Bi(he(y?_[u]:Si,l),o),a.set(u,w)),w!==void 0){var S=r(w);if(Te){var I=S==null?void 0:S[Qr];I&&(I==null?void 0:I.parent)!==l&&Iu(l,I)}return S===Si?void 0:S}return Reflect.get(_,u,$)},getOwnPropertyDescriptor(_,u){var $=Reflect.getOwnPropertyDescriptor(_,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var y=a.get(u),S=y==null?void 0:y.v;if(y!==void 0&&S!==Si)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,u){var S;if(Te&&u===Qr||u===Ho)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Si||Reflect.has(_,u);if($!==void 0||bt!==null&&(!w||(S=Hn(_,u))!=null&&S.writable)){$===void 0&&($=Bi(w?he(_[u],l):Si,o),a.set(u,$));var y=r($);if(y===Si)return!1}return w},set(_,u,$,w){var z;var y=a.get(u),S=u in _;if(s&&u==="length")for(var I=$;I<y.v;I+=1){var A=a.get(I+"");A!==void 0?O(A,Si):I in _&&(A=Bi(Si,o),a.set(I+"",A))}if(y===void 0?(!S||(z=Hn(_,u))!=null&&z.writable)&&(y=Bi(void 0,o),O(y,he($,l)),a.set(u,y)):(S=y.v!==Si,O(y,he($,l))),Te){var P=$==null?void 0:$[Qr];P&&(P==null?void 0:P.parent)!==l&&Iu(l,P),gv(l)}var E=Reflect.getOwnPropertyDescriptor(_,u);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof u=="string"){var T=a.get("length"),R=Number(u);Number.isInteger(R)&&R>=T.v&&O(T,R+1)}vv(d)}return!0},ownKeys(_){r(d);var u=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==Si});for(var[$,w]of a)w.v!==Si&&!($ in _)&&u.push($);return u},setPrototypeOf(){ov()}})}function vv(t,e=1){O(t,t.v+e)}function Kd(t){return t!==null&&typeof t=="object"&&Ho in t?t[Ho]: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,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Kd(this[l])===a){qd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Kd(this[l])===a){qd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Kd(this[l])===a){qd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ns,_v,cl,bv,$v;function Wd(){if(Ns===void 0){Ns=window,_v=document,cl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;bv=Hn(e,"firstChild").get,$v=Hn(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,Te&&(t.__svelte_meta=null,hv())}}function tn(t=""){return document.createTextNode(t)}function mi(t){return bv.call(t)}function Ao(t){return $v.call(t)}function h(t,e){if(!Ge)return mi(t);var i=mi(ut);if(i===null)i=ut.appendChild(tn());else if(e&&i.nodeType!==3){var o=tn();return i==null||i.before(o),fi(o),o}return fi(i),i}function ge(t,e){var n,a;if(!Ge){var i=mi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=ut)==null?void 0:n.nodeType)!==3){var o=tn();return(a=ut)==null||a.before(o),fi(o),o}return ut}function M(t,e=1,i=!1){let o=Ge?ut:t;for(var n;e--;)n=o,o=Ao(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=tn();return o===null?n==null||n.after(s):o.before(s),fi(s),s}return fi(o),o}function ul(t){t.textContent=""}var yv=new WeakSet,Qd=!1,ml=!1,pl=null,Ds=!1,Ls=!1;function Au(t){Ls=t}var fl=[],Yd=[],Mt=null,Un=!1;function vo(t){Mt=t}var bt=null;function Ji(t){bt=t}var $r=null;function dv(t){$r=t}var on=null,qn=0,Fn=null;function cv(t){Fn=t}var Tv=1,jd=0,Xr=!1,ll=null;function dl(){return++Tv}function ms(t){var _,u;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,s=(e&512)!==0,d=o&&bt!==null&&!Xr,l=i.length;if(s||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],ms(a)&&Cu(a),a.wv>t.wv)return!0}(!o||bt!==null&&!Xr)&&en(t,1024)}return!1}function xv(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 Qd=!1,t}function wv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function ya(t,e,i,o){var f,_;if(Qd){if(i===null&&(Qd=!1),wv(e))throw t;return}if(i!==null&&(Qd=!0),!Te||o===null||!(t instanceof Error)||yv.has(t)){xv(t,e);return}yv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Te){var d=(_=s.function)==null?void 0:_[pi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=cl?" ":" ";Xi(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function eo(t){Ye=t}var ft;function ui(t){if(t===null)throw Bs(),Wr;return ft=t}function Pi(){return ui(wo(ft))}function g(t){if(Ye){if(wo(ft)!==null)throw Bs(),Wr;ft=t}}function _e(t=1){if(Ye){for(var e=t,i=ft;e--;)i=wo(i);ft=i}}function ya(){for(var t=0,e=ft;;){if(e.nodeType===8){var i=e.data;if(i===Ps){if(t===0)return e;t-=1}else(i===ps||i===As)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function me(t,e=null,i){var p,f;var o=null;if(Te&&Nr&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||No in t)return t;let n=Gr(t);if(n!==xu&&n!==Km)return t;var a=new Map,s=_r(t),d=Ri(0);s&&a.set("length",Ri(t.length,o));var l;if(Te)if(l={parent:e,owners:null},i){let _=(f=(p=i.v)==null?void 0:p[Qr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?St!==null?new Set([St.function]):null:new Set;return new Proxy(t,{defineProperty(_,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&rv();var w=a.get(u);return w===void 0?(w=Ri($.value,o),a.set(u,w)):O(w,me($.value,l)),!0},deleteProperty(_,u){var $=a.get(u);if($===void 0)u in _&&a.set(u,Ri(Ii,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,Ii),_v(d)}return!0},get(_,u,$){var A;if(Te&&u===Qr)return l;if(u===No)return t;var w=a.get(u),y=u in _;if(w===void 0&&(!y||(A=An(_,u))!=null&&A.writable)&&(w=Ri(me(y?_[u]:Ii,l),o),a.set(u,w)),w!==void 0){var S=r(w);if(Te){var I=S==null?void 0:S[Qr];I&&(I==null?void 0:I.parent)!==l&&Lu(l,I)}return S===Ii?void 0:S}return Reflect.get(_,u,$)},getOwnPropertyDescriptor(_,u){var $=Reflect.getOwnPropertyDescriptor(_,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var y=a.get(u),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ii)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,u){var S;if(Te&&u===Qr||u===No)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Ii||Reflect.has(_,u);if($!==void 0||yt!==null&&(!w||(S=An(_,u))!=null&&S.writable)){$===void 0&&($=Ri(w?me(_[u],l):Ii,o),a.set(u,$));var y=r($);if(y===Ii)return!1}return w},set(_,u,$,w){var U;var y=a.get(u),S=u in _;if(s&&u==="length")for(var I=$;I<y.v;I+=1){var A=a.get(I+"");A!==void 0?O(A,Ii):I in _&&(A=Ri(Ii,o),a.set(I+"",A))}if(y===void 0?(!S||(U=An(_,u))!=null&&U.writable)&&(y=Ri(void 0,o),O(y,me($,l)),a.set(u,y)):(S=y.v!==Ii,O(y,me($,l))),Te){var P=$==null?void 0:$[Qr];P&&(P==null?void 0:P.parent)!==l&&Lu(l,P),bv(l)}var E=Reflect.getOwnPropertyDescriptor(_,u);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof u=="string"){var T=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=T.v&&O(T,V+1)}_v(d)}return!0},ownKeys(_){r(d);var u=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==Ii});for(var[$,w]of a)w.v!==Ii&&!($ in _)&&u.push($);return u},setPrototypeOf(){sv()}})}function _v(t,e=1){O(t,t.v+e)}function jd(t){return t!==null&&typeof t=="object"&&No in t?t[No]:t}function $v(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(jd(this[l])===a){Yd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(jd(this[l])===a){Yd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(jd(this[l])===a){Yd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ds,yv,ul,xv,wv;function Zd(){if(Ds===void 0){Ds=window,yv=document,ul=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;xv=An(e,"firstChild").get,wv=An(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,Te&&(t.__svelte_meta=null,$v())}}function Zo(t=""){return document.createTextNode(t)}function pi(t){return xv.call(t)}function wo(t){return wv.call(t)}function h(t,e){if(!Ye)return pi(t);var i=pi(ft);if(i===null)i=ft.appendChild(Zo());else if(e&&i.nodeType!==3){var o=Zo();return i==null||i.before(o),ui(o),o}return ui(i),i}function ue(t,e){var n,a;if(!Ye){var i=pi(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=ft)==null?void 0:n.nodeType)!==3){var o=Zo();return(a=ft)==null||a.before(o),ui(o),o}return ft}function M(t,e=1,i=!1){let o=Ye?ft:t;for(var n;e--;)n=o,o=wo(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=Zo();return o===null?n==null||n.after(s):o.before(s),ui(s),s}return ui(o),o}function pl(t){t.textContent=""}var Sv=new WeakSet,Xd=!1,vl=!1,fl=null,Os=!1,Vs=!1;function Nu(t){Vs=t}var ml=[],ec=[],Nt=null,Mn=!1;function lo(t){Nt=t}var yt=null;function Xi(t){yt=t}var br=null;function pv(t){br=t}var Xo=null,Vn=0,Pn=null;function fv(t){Pn=t}var Ev=1,tc=0,Xr=!1,dl=null;function cl(){return++Ev}function vs(t){var _,u;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,s=(e&512)!==0,d=o&&yt!==null&&!Xr,l=i.length;if(s||d){var p=t,f=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],vs(a)&&Pu(a),a.wv>t.wv)return!0}(!o||yt!==null&&!Xr)&&jo(t,1024)}return!1}function Cv(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 Xd=!1,t}function Tv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function wa(t,e,i,o){var f,_;if(Xd){if(i===null&&(Xd=!1),Tv(e))throw t;return}if(i!==null&&(Xd=!0),!Te||o===null||!(t instanceof Error)||Sv.has(t)){Cv(t,e);return}Sv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Te){var d=(_=s.function)==null?void 0:_[ci];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=ul?" ":" ";Zi(t,"message",{value:t.message+`
40
40
  ${n.map(u=>`
41
41
  ${l}in ${u}`).join("")}
42
- `}),Xi(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
- `),$=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||$.push(y)}Xi(t,"stack",{value:$.join(`
44
- `)})}if(xv(t,e),wv(e))throw t}function Iv(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?Iv(a,e,!1):e===a&&(i?en(a,2048):(a.f&1024)!==0&&en(a,4096),_a(a))}}function zd(t){var $,w;var e=on,i=qn,o=Fn,n=Mt,a=Xr,s=$r,d=St,l=Un,p=t.f;on=null,qn=0,Fn=null,Xr=(p&256)!==0&&(Un||!Ds||Mt===null),Mt=(p&96)===0?t:null,$r=null,gl(t.ctx),Un=!1,jd++;try{var f=(0,t.fn)(),_=t.deps;if(on!==null){var u;if(vl(t,qn),_!==null&&qn>0)for(_.length=qn+on.length,u=0;u<on.length;u++)_[qn+u]=on[u];else t.deps=_=on;if(!Xr)for(u=qn;u<_.length;u++)((w=($=_[u]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&qn<_.length&&(vl(t,qn),_.length=qn);if(Dr()&&Fn!==null&&!Un&&_!==null&&(t.f&6146)===0)for(u=0;u<Fn.length;u++)Iv(Fn[u],t);return n!==null&&(jd++,Fn!==null&&(o===null?o=Fn:o.push(...Fn))),f}finally{on=e,qn=i,Fn=o,Mt=n,Xr=a,$r=s,gl(d),Un=l}}function L1(t,e){let i=e.reactions;if(i!==null){var o=Fm.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&&(on===null||!on.includes(e))&&(en(e,4096),(e.f&768)===0&&(e.f^=512),Ud(e),vl(e,0))}function vl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)L1(t,i[o])}function ha(t){var e=t.f;if((e&16384)===0){en(t,1024);var i=bt,o=St,n=Ds;if(bt=t,Ds=!0,Te){var a=nn;hl(t.component_function)}try{(e&16)!==0?kv(t):Mu(t),Pu(t);var s=zd(t);t.teardown=typeof s=="function"?s:null,t.wv=Tv;var d=t.deps;if(Te&&Nr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=dl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Te&&Yd.push(t)}catch(p){ya(p,t,i,o||t.ctx)}finally{Ds=n,bt=i,Te&&hl(a)}}}function Sv(){console.error("Last ten effects were: ",Yd.slice(-10).map(t=>t.fn)),Yd=[]}function V1(){try{jm()}catch(t){if(Te&&Xi(t,"stack",{value:""}),pl!==null)if(Te)try{ya(t,pl,null,null)}catch(e){throw Sv(),e}else ya(t,pl,null,null);else throw Te&&Sv(),t}}function ku(){var t=Ds;try{var e=0;for(Ds=!0;fl.length>0;){e++>1e3&&V1();var i=fl,o=i.length;fl=[];for(var n=0;n<o;n++){var a=B1(i[n]);R1(a)}}}finally{ml=!1,Ds=t,pl=null,Te&&(Yd=[]),va.clear()}}function R1(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{ms(o)&&(ha(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Lu(o):o.fn=null))}catch(n){ya(n,o,null,o.ctx)}}}function _a(t){ml||(ml=!0,queueMicrotask(ku));for(var e=pl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}fl.push(e)}function B1(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 s=Mt;try{Mt=i,ms(i)&&ha(i)}catch(p){ya(p,i,null,i.ctx)}finally{Mt=s}}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 xa(t){var e;for(t&&(ml=!0,ku(),e=t()),_u();fl.length>0;)ml=!0,ku(),_u();return e}async function go(){await Promise.resolve(),xa()}function r(t){var e=t.f,i=(e&2)!==0;if(ll!==null&&ll.add(t),Mt!==null&&!Un){$r!==null&&$r.includes(t)&&nv();var o=Mt.deps;t.rv<jd&&(t.rv=jd,on===null&&o!==null&&o[qn]===t?qn++:on===null?on=[t]:(!Xr||!on.includes(t))&&on.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,ms(n)&&Cu(n)),Te&&Nr&&al!==null&&Mt!==null&&al.reaction===Mt){if(t.debug)t.debug();else if(t.created){var s=al.entries.get(t);s===void 0&&(s={read:[]},al.entries.set(t,s)),s.read.push(Yr("TracedAt"))}}return Ls&&va.has(t)?va.get(t):t.v}function ht(t){var e=Un;try{return Un=!0,t()}finally{Un=e}}var N1=-7169;function en(t,e){t.f=t.f&N1|e}function Xd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)Zd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&Zd(i)}}}function Zd(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{Zd(t[o],e)}catch(n){}let i=Gr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Hd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Ru(t){bt===null&&Mt===null&&Ym(t),Mt!==null&&(Mt.f&256)!==0&&bt===null&&Gm(),Ls&&Qm(t)}function D1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Os(t,e,i,o=!0){var l;var n=bt;if(Te)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:St,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(Te&&(a.component_function=nn),i)try{ha(a),a.f|=32768}catch(p){throw eo(a),p}else e!==null&&_a(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&D1(a,n),Mt!==null&&(Mt.f&2)!==0)){var d=Mt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function rn(t){let e=Os(8,null,!1);return en(e,1024),e.teardown=t,e}function je(t){var n;Ru("$effect");var e=bt!==null&&(bt.f&32)!==0&&St!==null&&!St.m;if(Te&&Xi(t,"name",{value:"$effect"}),e){var i=St;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:bt,reaction:Mt})}else{var o=gn(t);return o}}function wa(t){return Ru("$effect.pre"),Te&&Xi(t,"name",{value:"$effect.pre"}),ho(t)}function ec(t){let e=Os(64,t,!0);return()=>{eo(e)}}function Av(t){let e=Os(64,t,!0);return(i={})=>new Promise(o=>{i.outro?hn(e,()=>{eo(e),o(void 0)}):(eo(e),o(void 0))})}function gn(t){return Os(4,t,!1)}function ho(t){return Os(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Te&&Xi(n,"name",{value:"{expression}"}),io(n)}function io(t,e=0){return Os(24|e,t,!0)}function Ni(t,e=!0){return Os(40,t,!0,e)}function Pu(t){var e=t.teardown;if(e!==null){let i=Ls,o=Mt;Au(!0),vo(null);try{e.call(null)}finally{Au(i),vo(o)}}}function Mu(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:eo(i,e),i=o}}function kv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&eo(e),e=i}}function eo(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:Ao(o);o.remove(),o=a}i=!0}Mu(t,e&&!i),vl(t,0),en(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Pu(t);var d=t.parent;d!==null&&d.first!==null&&Lu(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Lu(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 hn(t,e){var i=[];tc(t,i,!0),Bu(i,()=>{eo(t),e&&e()})}function Bu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function tc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;tc(o,e,a?i:!1),o=n}}}function Jr(t){Pv(t,!0)}function Pv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ms(t)&&(en(t,2048),_a(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Pv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var O1={},H1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,F1=/@(.+):(\d+):(\d+)$/;function U1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=H1.exec(o))!=null?i:F1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Mv(){var e;let t=(e=U1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=O1[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 ic=Symbol("ADD_OWNER");function Nu(t,e,i=!1,o=!1){if(t&&!i){let n=nn,a=t[Qr];if(a&&!Du(a,n)){let s=Ou(a);e&&e[pi]!==n[pi]&&!o&&mv(n[pi],e[pi],s[pi])}}oc(t,e,new Set)}function Iu(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 oc(t,e,i){var a;let o=t==null?void 0:t[Qr];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),ic in t&&t[ic])ho(()=>{t[ic](e)});else{var n=Gr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Si;ho(()=>{let l=t[s];d!==l&&(d=l,oc(l,e,i))})}else oc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)oc(t[s],e,i)}}}function Du(t,e){return t.owners===null?!0:t.owners.has(e)||pi in e&&[...t.owners].some(i=>i[pi]===e[pi])||t.parent!==null&&Du(t.parent,e)}function Ou(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ou(t.parent)}var z1=!1;function gv(t){if(z1)return;let e=Mv();if(e&&!Du(t,e)){let i=Ou(t);i[pi]!==e[pi]?Tu(e[pi],i[pi]):Tu()}}function Sa(t){if(Te){let e=new Error(`lifecycle_outside_component
42
+ `}),Zi(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
+ `),$=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||$.push(y)}Zi(t,"stack",{value:$.join(`
44
+ `)})}if(Cv(t,e),Tv(e))throw t}function Av(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?Av(a,e,!1):e===a&&(i?jo(a,2048):(a.f&1024)!==0&&jo(a,4096),$a(a))}}function Gd(t){var $,w;var e=Xo,i=Vn,o=Pn,n=Nt,a=Xr,s=br,d=St,l=Mn,p=t.f;Xo=null,Vn=0,Pn=null,Xr=(p&256)!==0&&(Mn||!Os||Nt===null),Nt=(p&96)===0?t:null,br=null,hl(t.ctx),Mn=!1,tc++;try{var f=(0,t.fn)(),_=t.deps;if(Xo!==null){var u;if(gl(t,Vn),_!==null&&Vn>0)for(_.length=Vn+Xo.length,u=0;u<Xo.length;u++)_[Vn+u]=Xo[u];else t.deps=_=Xo;if(!Xr)for(u=Vn;u<_.length;u++)((w=($=_[u]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Vn<_.length&&(gl(t,Vn),_.length=Vn);if(Br()&&Pn!==null&&!Mn&&_!==null&&(t.f&6146)===0)for(u=0;u<Pn.length;u++)Av(Pn[u],t);return n!==null&&(tc++,Pn!==null&&(o===null?o=Pn:o.push(...Pn))),f}finally{Xo=e,Vn=i,Pn=o,Nt=n,Xr=a,br=s,hl(d),Mn=l}}function V1(t,e){let i=e.reactions;if(i!==null){var o=qm.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&&(Xo===null||!Xo.includes(e))&&(jo(e,4096),(e.f&768)===0&&(e.f^=512),Qd(e),gl(e,0))}function gl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)V1(t,i[o])}function ba(t){var e=t.f;if((e&16384)===0){jo(t,1024);var i=yt,o=St,n=Os;if(yt=t,Os=!0,Te){var a=Jo;_l(t.component_function)}try{(e&16)!==0?Pv(t):Du(t),Bu(t);var s=Gd(t);t.teardown=typeof s=="function"?s:null,t.wv=Ev;var d=t.deps;if(Te&&Nr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=cl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Te&&ec.push(t)}catch(p){wa(p,t,i,o||t.ctx)}finally{Os=n,yt=i,Te&&_l(a)}}}function Iv(){console.error("Last ten effects were: ",ec.slice(-10).map(t=>t.fn)),ec=[]}function R1(){try{Jm()}catch(t){if(Te&&Zi(t,"stack",{value:""}),fl!==null)if(Te)try{wa(t,fl,null,null)}catch(e){throw Iv(),e}else wa(t,fl,null,null);else throw Te&&Iv(),t}}function Vu(){var t=Os;try{var e=0;for(Os=!0;ml.length>0;){e++>1e3&&R1();var i=ml,o=i.length;ml=[];for(var n=0;n<o;n++){var a=B1(i[n]);N1(a)}}}finally{vl=!1,Os=t,fl=null,Te&&(ec=[]),ha.clear()}}function N1(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{vs(o)&&(ba(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ou(o):o.fn=null))}catch(n){wa(n,o,null,o.ctx)}}}function $a(t){vl||(vl=!0,queueMicrotask(Vu));for(var e=fl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ml.push(e)}function B1(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 s=Nt;try{Nt=i,vs(i)&&ba(i)}catch(p){wa(p,i,null,i.ctx)}finally{Nt=s}}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 Sa(t){var e;for(t&&(vl=!0,Vu(),e=t()),Su();ml.length>0;)vl=!0,Vu(),Su();return e}async function co(){await Promise.resolve(),Sa()}function r(t){var e=t.f,i=(e&2)!==0;if(dl!==null&&dl.add(t),Nt!==null&&!Mn){br!==null&&br.includes(t)&&av();var o=Nt.deps;t.rv<tc&&(t.rv=tc,Xo===null&&o!==null&&o[Vn]===t?Vn++:Xo===null?Xo=[t]:(!Xr||!Xo.includes(t))&&Xo.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,vs(n)&&Pu(n)),Te&&Nr&&ll!==null&&Nt!==null&&ll.reaction===Nt){if(t.debug)t.debug();else if(t.created){var s=ll.entries.get(t);s===void 0&&(s={read:[]},ll.entries.set(t,s)),s.read.push(Yr("TracedAt"))}}return Vs&&ha.has(t)?ha.get(t):t.v}function bt(t){var e=Mn;try{return Mn=!0,t()}finally{Mn=e}}var D1=-7169;function jo(t,e){t.f=t.f&D1|e}function oc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(No in t)ic(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&No in i&&ic(i)}}}function ic(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{ic(t[o],e)}catch(n){}let i=Gr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Fu(t){yt===null&&Nt===null&&Xm(t),Nt!==null&&(Nt.f&256)!==0&&yt===null&&Zm(),Vs&&jm(t)}function O1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Hs(t,e,i,o=!0){var l;var n=yt;if(Te)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:St,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(Te&&(a.component_function=Jo),i)try{ba(a),a.f|=32768}catch(p){throw Ji(a),p}else e!==null&&$a(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&O1(a,n),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function en(t){let e=Hs(8,null,!1);return jo(e,1024),e.teardown=t,e}function Ke(t){var n;Fu("$effect");var e=yt!==null&&(yt.f&32)!==0&&St!==null&&!St.m;if(Te&&Zi(t,"name",{value:"$effect"}),e){var i=St;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:yt,reaction:Nt})}else{var o=hn(t);return o}}function Ca(t){return Fu("$effect.pre"),Te&&Zi(t,"name",{value:"$effect.pre"}),uo(t)}function rc(t){let e=Hs(64,t,!0);return()=>{Ji(e)}}function Lv(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?_n(e,()=>{Ji(e),o(void 0)}):(Ji(e),o(void 0))})}function hn(t){return Hs(4,t,!1)}function uo(t){return Hs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Te&&Zi(n,"name",{value:"{expression}"}),to(n)}function to(t,e=0){return Hs(24|e,t,!0)}function Ni(t,e=!0){return Hs(40,t,!0,e)}function Bu(t){var e=t.teardown;if(e!==null){let i=Vs,o=Nt;Nu(!0),lo(null);try{e.call(null)}finally{Nu(i),lo(o)}}}function Du(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ji(i,e),i=o}}function Pv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ji(e),e=i}}function Ji(t,e=!0){var i=!1;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:wo(o);o.remove(),o=a}i=!0}Du(t,e&&!i),gl(t,0),jo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Bu(t);var d=t.parent;d!==null&&d.first!==null&&Ou(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ou(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 _n(t,e){var i=[];sc(t,i,!0),Uu(i,()=>{Ji(t),e&&e()})}function Uu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function sc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;sc(o,e,a?i:!1),o=n}}}function Jr(t){Vv(t,!0)}function Vv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),vs(t)&&(jo(t,2048),$a(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Vv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var H1={},F1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,U1=/@(.+):(\d+):(\d+)$/;function z1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=F1.exec(o))!=null?i:U1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Rv(){var e;let t=(e=z1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=H1[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 ac=Symbol("ADD_OWNER");function zu(t,e,i=!1,o=!1){if(t&&!i){let n=Jo,a=t[Qr];if(a&&!qu(a,n)){let s=Ku(a);e&&e[ci]!==n[ci]&&!o&&hv(n[ci],e[ci],s[ci])}}lc(t,e,new Set)}function Lu(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 lc(t,e,i){var a;let o=t==null?void 0:t[Qr];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),ac in t&&t[ac])uo(()=>{t[ac](e)});else{var n=Gr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ii;uo(()=>{let l=t[s];d!==l&&(d=l,lc(l,e,i))})}else lc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)lc(t[s],e,i)}}}function qu(t,e){return t.owners===null?!0:t.owners.has(e)||ci in e&&[...t.owners].some(i=>i[ci]===e[ci])||t.parent!==null&&qu(t.parent,e)}function Ku(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ku(t.parent)}var q1=!1;function bv(t){if(q1)return;let e=Rv();if(e&&!qu(t,e)){let i=Ku(t);i[ci]!==e[ci]?Mu(e[ci],i[ci]):Mu()}}function Ta(t){if(Te){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 St=null;function gl(t){St=t}var nn=null;function hl(t){nn=t}function Ca(t){return Hu("getContext").get(t)}function Ta(t,e){let i=Hu("setContext");return Te&&ht(()=>Nu(e,null,!0)),i.set(t,e),e}function bl(){return Hu("getAllContexts")}function q(t,e=!1,i){var o=St={p:St,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Br&&!e&&(St.l={s:null,u:null,r1:[],r2:Bi(!1)}),rn(()=>{o.d=!0}),Te&&(St.function=i,nn=i)}function K(t){var s,d;let e=St;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=bt,o=Mt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];Ji(a.effect),vo(a.reaction),gn(a.fn)}}finally{Ji(i),vo(o)}}St=e.p,Te&&(nn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Dr(){return!Br||St!==null&&St.l===null}function Hu(t){var e;return St===null&&Sa(t),(e=St.c)!=null?e:St.c=new Map(K1(St)||void 0)}function K1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var W1=/\r/g;function Lv(t){t=t.replace(W1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Vv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Q1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rv(t){return Q1.includes(t)}var G1=["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 Y1={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 Bv(t){var e;return t=t.toLowerCase(),(e=Y1[t])!=null?e:t}var Jw=[...G1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var j1=["touchstart","touchmove"];function Nv(t){return j1.includes(t)}var Z1=["textarea","script","style","title"];function Dv(t){return Z1.includes(t)}function Fu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ov=new Map;function Hv(t,e){var i=Ov.get(t);i||(i=new Set,Ov.set(t,i)),i.add(e)}function Uu(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function $l(t){var e=Mt,i=bt;vo(null),Ji(null);try{return t()}finally{vo(e),Ji(i)}}var zu=new Set,nc=new Set;function Hs(t){if(!Ge)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 qu(t,e,i,o={}){function n(a){if(o.capture||Ia.call(e,a),!a.cancelBubble)return $l(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function It(t,e,i,o,n){var a={capture:o,passive:n},s=qu(t,e,i,a);(e===document.body||e===window||e===document)&&rn(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)zu.add(t[e]);for(var i of nc)i(t)}function Ia(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.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 p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){Xi(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Mt,_=bt;vo(null),Ji(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(br(y)){var[S,...I]=y;S.apply(a,[t,...I])}else y.call(a,t)}catch(P){u?$.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of $)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,vo(f),Ji(_)}}}var J1;function Fv(){J1=void 0}function ka(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=bt;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(Ge)return _o(ut,null),ut;n===void 0&&(n=ka(a?t:"<!>"+t),i||(n=mi(n)));var s=o||cl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(s),l=s.lastChild;_o(d,l)}else _o(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return _o(ut,null),ut;if(!s){var d=ka(a),l=mi(d);if(n)for(s=document.createDocumentFragment();mi(l);)s.appendChild(mi(l));else s=mi(l)}var p=s.cloneNode(!0);if(n){var f=mi(p),_=p.lastChild;_o(f,_)}else _o(p,p);return p}}function tr(t=""){if(!Ge){var e=tn(t+"");return _o(e,e),e}var i=ut;return i.nodeType!==3&&(i.before(i=tn()),fi(i)),_o(i,i),i}function Ue(){if(Ge)return _o(ut,null),ut;var t=document.createDocumentFragment(),e=document.createComment(""),i=tn();return t.append(e,i),_o(e,i),t}function b(t,e){if(Ge){bt.nodes_end=ut,Ei();return}t!==null&&t.before(e)}var yl=!0;function rc(t){yl=t}function fe(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 zv(t,e)}function Wu(t,e){var s;Wd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=ut;try{for(var a=mi(i);a&&(a.nodeType!==8||a.data!==us);)a=Ao(a);if(!a)throw Wr;to(!0),fi(a),Ei();let d=zv(t,{...e,anchor:a});if(ut===null||ut.nodeType!==8||ut.data!==As)throw Bs(),Wr;return to(!1),d}catch(d){if(d===Wr)return e.recover===!1&&Zm(),Wd(),ul(i),to(!1),es(t,e);throw d}finally{to(o),fi(n),Fv()}}var Ea=new Map;function zv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Wd();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=Nv($);e.addEventListener($,Ia,{passive:w});var y=Ea.get($);y===void 0?(document.addEventListener($,Ia,{passive:w}),Ea.set($,1)):Ea.set($,y+1)}}};l(rl(zu)),nc.add(l);var p=void 0,f=Av(()=>{var _=i!=null?i:e.appendChild(tn());return Ni(()=>{if(a){q({});var u=St;u.c=a}n&&(o.$$events=n),Ge&&_o(_,null),yl=s,p=t(_,o)||{},yl=!0,Ge&&(bt.nodes_end=ut),a&&K()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ia);var $=Ea.get(u);--$===0?(document.removeEventListener(u,Ia),Ea.delete(u)):Ea.set(u,$)}nc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return Ku.set(p,f),p}var Ku=new WeakMap;function Fs(t,e){let i=Ku.get(t);return i?(Ku.delete(t),i(e)):(Te&&fv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ge&&i===0&&Ei();var n=t,a=null,s=null,d=Si,l=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ge&&o!==-1){if(i===0){let S=n.data;S===us?o=0:S===Es?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ba(),fi(n),to(!1),w=!0,o=-1)}d?(a?Jr(a):$&&(a=Ni(()=>$(n))),s&&hn(s,()=>{s=null})):(s?Jr(s):$&&(s=Ni(()=>$(n,[i+1,o]))),a&&hn(a,()=>{a=null})),w&&to(!0)};io(()=>{p=!1,e(f),p||_(null,null)},l),Ge&&(n=ut)}function xl(t,e,i){Ge&&Ei();var o=t,n=Si,a,s=Dr()?Km:fa;io(()=>{s(n,n=e())&&(a&&hn(a),a=Ni(()=>i(o)))}),Ge&&(o=ut)}var gs=null;function Yu(t){gs=t}function wl(t,e){return e}function o0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)tc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ul(l),l.append(i),o.clear(),vs(t,e[0].prev,e[a-1].next)}Bu(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),vs(t,f.prev,f.next)),eo(f.e,!d)}})}function bi(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 p=t;s=Ge?fi(mi(p)):p.appendChild(tn())}Ge&&Ei();var f=null,_=!1,u=xr(()=>{var $=i();return br($)?$:$==null?[]:rl($)});io(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ge){var S=s.data===Es;S!==(w===0)&&(s=ba(),fi(s),to(!1),y=!0)}if(Ge){for(var I=null,A,P=0;P<w;P++){if(ut.nodeType===8&&ut.data===As){s=ut,y=!0,to(!1);break}var E=$[P],T=o(E,P);A=Wv(ut,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}w>0&&fi(ba())}Ge||n0($,d,s,n,e,o,i),a!==null&&(w===0?f?Jr(f):f=Ni(()=>a(s)):f!==null&&hn(f,()=>{f=null})),y&&to(!0),r(u)}),Ge&&(s=ut)}function n0(t,e,i,o,n,a,s){var le,Le,Re,X;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,_=e.first,u=_,$,w=null,y,S=[],I=[],A,P,E,T;if(d)for(T=0;T<p;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<p;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var R=u?u.e.nodes_start:i;w=Wv(R,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],I=[],u=w.next;continue}if(l&&r0(E,A,T,n),(E.e.f&8192)!==0&&(Jr(E.e),d&&((Le=E.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(E))),E!==u){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Y;w=z.prev;var U=S[0],Z=S[S.length-1];for(Y=0;Y<S.length;Y+=1)qv(S[Y],z,i);for(Y=0;Y<I.length;Y+=1)$.delete(I[Y]);vs(e,U.prev,Z.next),vs(e,w,U),vs(e,Z,z),u=z,w=Z,T-=1,S=[],I=[]}else $.delete(E),qv(E,u,i),vs(e,E.prev,E.next),vs(e,E,w===null?e.first:w.next),vs(e,w,E),w=E;continue}for(S=[],I=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;E=u}S.push(E),w=E,u=E.next}if(u!==null||$!==void 0){for(var J=$===void 0?[]:rl($);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var oe=J.length;if(oe>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(T=0;T<oe;T+=1)(Re=J[T].a)==null||Re.measure();for(T=0;T<oe;T+=1)(X=J[T].a)==null||X.fix()}o0(e,J,ce,f)}}d&&Zo(()=>{var Me;if(y!==void 0)for(E of y)(Me=E.a)==null||Me.apply()}),bt.first=e.first&&e.first.e,bt.last=w&&w.e}function r0(t,e,i,o){(o&1)!==0&&ga(t.v,e),(o&2)!==0?ga(t.i,i):t.i=i}function Wv(t,e,i,o,n,a,s,d,l,p){var f=gs,_=(l&1)!==0,u=(l&16)===0,$=_?u?Zr(n):Bi(n):n,w=(l&2)===0?s:Bi(s);Te&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;p()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};gs=y;try{return y.e=Ni(()=>d(t,$,w,p),Ge),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{gs=f}}function qv(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=Ao(a);n.before(a),a=s}}function vs(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 s0(t,e,i){var a,s;if(!e||e===Lv(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=nn)!=null&&s[pi]&&(o=`in ${nn[pi]}`),pv(Fu(o))}function Sl(t,e,i,o,n){var a=t,s="",d;io(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Ei();return}d!==void 0&&(eo(d),d=void 0),s!==""&&(d=Ni(()=>{if(Ge){for(var p=ut.data,f=Ei(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Ao(f);if(f===null)throw Bs(),Wr;Te&&!n&&s0(f.parentNode,p,s),_o(ut,_),a=fi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=ka(u);if((i||o)&&($=mi($)),_o(mi($),$.lastChild),i||o)for(;mi($);)a.before(mi($));else a.before($)}))})}function me(t,e,...i){var o=t,n=ie,a;io(()=>{n!==(n=e())&&(a&&(eo(a),a=null),Te&&n==null&&Xm(),a=Ni(()=>n(o,...i)))},65536),Ge&&(o=ut)}function Ai(t,e,i){Ge&&Ei();var o=t,n,a;io(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=Ni(()=>i(o,n))))},65536),Ge&&(o=ut)}function Cl(t,e,i,o,n,a){var w;let s=Ge;Ge&&Ei();var d=Te&&a&&((w=St)==null?void 0:w.function[pi]),l,p,f=null;Ge&&ut.nodeType===1&&(f=ut,Ei());var _=Ge?ut:t,u,$=gs;io(()=>{let y=e()||null;var S=n?n():i||y==="svg"?fu:null;if(y!==l){var I=gs;Yu($),u&&(y===null?hn(u,()=>{u=null,p=null}):y===p?Jr(u):(eo(u),rc(!1))),y&&y!==p&&(u=Ni(()=>{if(f=Ge?f:S?document.createElementNS(S,y):document.createElement(y),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),_o(f,f),o){Ge&&Dv(y)&&f.append(document.createComment(""));var A=Ge?mi(f):f.appendChild(tn());Ge&&(A===null?to(!1):fi(A)),o(f,A)}bt.nodes_end=f,_.before(f)})),l=y,l&&(p=l),rc(!0),Yu(I)}},65536),s&&(to(!0),fi(_))}var Zu;function Qv(t){return Zu=t.target,new ju(t)}var ts,ir,ju=class{constructor(e){cs(this,ts);cs(this,ir);var a,s;var i=new Map,o=(d,l)=>{var p=Zr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===nl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return O((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});pa(this,ir,(e.hydrate?Wu: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)&&xa(),pa(this,ts,n.$$events);for(let d of Object.keys(wi(this,ir)))d==="$set"||d==="$destroy"||d==="$on"||Xi(this,d,{get(){return wi(this,ir)[d]},set(l){wi(this,ir)[d]=l},enumerable:!0});wi(this,ir).$set=d=>{Object.assign(n,d)},wi(this,ir).$destroy=()=>{Fs(wi(this,ir))}}$set(e){wi(this,ir).$set(e)}$on(e,i){wi(this,ts)[e]=wi(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return wi(this,ts)[e].push(o),()=>{wi(this,ts)[e]=wi(this,ts)[e].filter(n=>n!==o)}}$destroy(){wi(this,ir).$destroy()}};ts=new WeakMap,ir=new WeakMap;function Q(t,e){Zo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Zu)==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),Te&&Hv(e.hash,d)}})}function Gv(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=Gv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Yv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Gv(t))&&(o&&(o+=" "),o+=e);return o}function Tl(t){return typeof t=="object"?Yv(t):t!=null?t:""}var jv=[...`
48
- \r\f\xA0\v\uFEFF`];function Xv(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||jv.includes(o[s-1]))&&(d===o.length||jv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Zv(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 Xu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Jv(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(Xu)),n&&l.push(...Object.keys(n).map(Xu));var p=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var u=t[_];if(d?u==="/"&&t[_-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[_+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=_;else if(u===";"||_===y-1){if(f!==-1){var $=Xu(t.substring(p,f).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(p,_).trim();i+=" "+w+";"}}p=_+1,f=-1}}}}return o&&(i+=Zv(o)),n&&(i+=Zv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=Xv(i,o,a);(!Ge||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 p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function Ju(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 ot(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=Jv(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ju(t,i==null?void 0:i[0],o[0]),Ju(t,i==null?void 0:i[1],o[1],"important")):Ju(t,i,o));return o}var Aa=Symbol("class"),Pa=Symbol("style"),ig=Symbol("is custom element"),og=Symbol("is html");function ng(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=rg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||f0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Hm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=rg(t),s=a[ig],d=!a[og];let l=Ge&&s;l&&to(!1);var p=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Tl(i.class):(o||i[Aa])&&(i.class=null),i[Pa]&&((E=i.style)!=null||(i.style=null));var u=sg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",p[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,R,o,e==null?void 0:e[Aa],i[Aa]),p[T]=R,p[Aa]=i[Aa];continue}if(T==="style"){ot(t,R,e==null?void 0:e[Pa],i[Pa]),p[T]=R,p[Pa]=i[Pa];continue}var w=p[T];if(R!==w){p[T]=R;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},Y="$$"+T,U=T.slice(2);var S=Rv(U);if(Vv(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(U,p[Y],z),p[Y]=null}if(R!=null)if(S)t[`__${U}`]=R,st([U]);else{let Z=function(J){p[T].call(this,J)};var P=Z;p[Y]=qu(U,t,Z,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")Uu(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)ng(t,R);else{var I=T;d||(I=Bv(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Y=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Y?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Y?U:!1}}else t.removeAttribute(T);else A||u.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&to(!0),p}function rg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ig]:t.nodeName.includes("-"),[og]:t.namespaceURI===Nm}}var eg=new Map;function sg(t){var e=eg.get(t.nodeName);if(e)return e;eg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Hd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function f0(t,e,i){var o;Te&&(e==="srcset"&&m0(t,i)||ep((o=t.getAttribute(e))!=null?o:"",i)||uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ep(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function tg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function m0(t,e){var i=tg(t.srcset),o=tg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(ep(i[s][0],n)||ep(n,i[s][0])))}var v0=Od?()=>performance.now():()=>Date.now(),Sr={tick:t=>(Od?requestAnimationFrame:ie)(t),now:()=>v0(),tasks:new Set};function ag(){let t=Sr.now();Sr.tasks.forEach(e=>{e.c(t)||(Sr.tasks.delete(e),e.f())}),Sr.tasks.size!==0&&Sr.tick(ag)}function lg(t){let e;return Sr.tasks.size===0&&Sr.tick(ag),{promise:new Promise(i=>{Sr.tasks.add(e={c:t,f:i})}),abort(){Sr.tasks.delete(e)}}}function sc(t,e){$l(()=>{t.dispatchEvent(new CustomEvent(e))})}function b0(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 dg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=b0(n.trim());e[s]=a.trim()}return e}var $0=t=>t;function ip(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",p,f=e.inert,_=e.style.overflow,u,$;function w(){var R;var E=Mt,T=bt;vo(null),Ji(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{vo(E),Ji(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||u==null||u.abort(),sc(e,"introstart"),u=tp(e,w(),$,1,()=>{sc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),p=void 0;return}e.inert=!0,sc(e,"outrostart"),$=tp(e,w(),u,0,()=>{sc(e,"outroend"),E==null||E()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=bt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&yl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&gn(()=>{ht(()=>y.in())})}}function tp(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return Zo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=tp(t,S,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:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:f,easing:_=$0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var $=dg(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(p)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Y=dg(p(z,1-z));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return S+I*_(Z/A)},f&&lg(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var hs,Ma,Il,lc,cg,dc=class dc{constructor(e){cs(this,lc);cs(this,hs,new WeakMap);cs(this,Ma);cs(this,Il);pa(this,Il,e)}observe(e,i){var o=wi(this,hs).get(e)||new Set;return o.add(i),wi(this,hs).set(e,o),Rm(this,lc,cg).call(this).observe(e,wi(this,Il)),()=>{var n=wi(this,hs).get(e);n.delete(i),n.size===0&&(wi(this,hs).delete(e),wi(this,Ma).unobserve(e))}}};hs=new WeakMap,Ma=new WeakMap,Il=new WeakMap,lc=new WeakSet,cg=function(){var e;return(e=wi(this,Ma))!=null?e:pa(this,Ma,new ResizeObserver(i=>{for(var o of i){dc.entries.set(o.target,o);for(var n of wi(this,hs).get(o.target)||[])n(o)}}))},On(dc,"entries",new WeakMap);var op=dc;var w0=new op({box:"border-box"});function Or(t,e,i){var o=w0.observe(t,()=>i(t[e]));gn(()=>(ht(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Ho])===e}function lt(t={},e,i,o){return gn(()=>{var n,a;return ho(()=>{n=a,a=(o==null?void 0:o())||[],ht(()=>{t!==i(...a)&&(e(t,...a),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&ug(i(...a),t)&&e(null,...a)})}}),t}function Cr(t=!1){let e=St,i=e.l.u;if(!i)return;let o=()=>Xd(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&wa(()=>{pg(e,o),fs(i.b)}),je(()=>{let n=ht(()=>i.m.map(zm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{pg(e,o),fs(i.a)})}function pg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;tv(e)},set:o=>{i=o}})}};C0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var C0;function Nt(t){St===null&&Sa("onMount"),Br&&St.l!==null?S0(St).m.push(t):je(()=>{let e=ht(t);if(typeof e=="function")return e})}function _n(t){St===null&&Sa("onDestroy"),Nt(()=>()=>ht(t))}function S0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=ht(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var La=[];function or(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(fa(t,d)&&(t=d,i)){let l=!La.length;for(let p of o)p[1](),La.push(p,t);if(l){for(let p=0;p<La.length;p+=2)La[p][0](La[p+1]);La.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function vi(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 or(i,(s,d)=>{let l=!1,p=[],f=0,_=ie,u=()=>{if(f)return;_();let w=e(o?p[0]:p,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>kl(w,S=>{p[y]=S,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){fs($),_(),l=!1}})}function we(t){let e;return kl(t,i=>e=i)(),e}var cc=!1,np=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:ie};if(o.store!==t&&!(np in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=kl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&np in i?we(t):r(o.source)}function Fe(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();Xi(t,np,{enumerable:!1,value:!0})})}return[t,e]}function rp(t){var e=cc;try{return cc=!1,[t(),cc]}finally{cc=e}}var M0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&ev(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},M0)}var L0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(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];ps(n)&&(n=n());let a=Hn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Hn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===nl)return!1;for(let i of t.props)if(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},L0)}function fg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Y;var n=(i&1)!==0,a=!Br||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=rp(()=>t[e]):p=t[e];var f=Ho in t||nl in t,_=s&&((Y=(z=Hn(t,e))==null?void 0:z.set)!=null?Y:f&&e in t&&(U=>t[e]=U))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=ht(o):u=o),u);p===void 0&&o!==void 0&&(_&&a&&Jm(e),p=y(),_&&_(p));var S;if(a)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var I=(n?m:xr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Z){return arguments.length>0?((!a||!Z||A||l)&&_(Z?S():U),U):S()}}var P=!1,E=!1,T=Zr(p),R=m(()=>{var U=S(),Z=r(T);return P?(P=!1,E=!0,Z):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=ma),function(U,Z){if(ll!==null&&(P=E,S(),r(T)),arguments.length>0){let J=Z?r(R):a&&s?he(U):U;if(!R.equals(J)){if(P=!0,O(T,J),w&&u!==void 0&&(u=J),fg(R))return U;ht(()=>r(R))}return U}return fg(R)?R.v:r(R)}}var V0;typeof HTMLElement=="function"&&(V0=class extends HTMLElement{constructor(e,i,o){super();On(this,"$$ctor");On(this,"$$s");On(this,"$$c");On(this,"$$cn",!1);On(this,"$$d",{});On(this,"$$r",!1);On(this,"$$p_d",{});On(this,"$$l",{});On(this,"$$l_u",new Map);On(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))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=R0(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]=sp(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=Qv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=ec(()=>{ho(()=>{var a;this.$$r=!0;for(let s of vu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=sp(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]=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 vu(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 R0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var mg="5";var vg,gg,hg;typeof window!="undefined"&&((hg=(gg=(vg=window.__svelte)!=null?vg:window.__svelte={}).v)!=null?hg:gg.v=new Set).add(mg);import{clientChecker as ax}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as f1,safeStorage as lx,throttleFn as dx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as cx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as N0,fillWithDefault as D0,VideoQuality as _g}from"@vkontakte/videoplayer-shared/es2018";var O0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:N0.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:_g.Q_480P,highQualityLimit:_g.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,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!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},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=>D0(t,O0),$g=t=>Ta("ui-config",t),zt=()=>Ca("ui-config");var El="vk_player_debug_panel_opened";var yg="videoplayer",xg="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},wg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Cg=new Set(["ShiftRight","ShiftLeft"]);var Tg=["TIMELINE"],Al=[...Tg,"GRAPH_BUTTON"],ap=[...Tg,"PLAY_BUTTON"],Pl=[...Al,"PLAY_BUTTON"];var Fr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Fr||{}),zs={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ig,VERSION as H0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as F0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as U0}from"@vkontakte/videoplayer-statistics/es2018";var uc="prod",Va="1.1.61-dev.4affc441.0";var qs=(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"),Eg=Symbol("microStoresContext"),Ag=(t,e)=>{Ta(kg,t),Ta(Eg,e),uc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ca(kg);return Ig(t,"Store context is empty!"),t},oo=()=>{let t=Ca(Eg);return Ig(t,"MicroStores context is empty!"),t},Wt=(t,e)=>fc(t,t.getValue(),e),fc=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Pg=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Va} (core: ${F0}, stat: ${U0}, shared: ${H0})`,f=we(i.state.errorLog$),_=f.length?`
49
- `+f.map((z,Y)=>{var oe;let U=`${Y}) Type: ${z.id}
50
- `,Z=`Message: ${z.message} (${z.thrown})
51
- `,J=`Trace: ${(oe=z.thrown)==null?void 0:oe.stack}
52
- `;return U+Z+J}).join(`
53
- `):void 0,u=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];$&&y.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(R=w==null?void 0:w.codec)!=null?R:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:we(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:u,Position:`${we(i.state.positionExact$)}s`,State:`${we(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([z,Y])=>Y!==void 0).map(([z,Y])=>`${z}: ${Y}`).join(`
54
- `)},Mg=(t,e,i)=>{var z,Y,U,Z;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:Va,viewport:`${n}x${a}`,volume:Math.round(we(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 p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(_&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-we(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=we(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(s.hdr=!0);let R=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return R&&(s.audioLanguage=R),s},Lg=(t,e)=>qs(t,e,"mp4"),Vg=t=>!t.type,Rg=t=>!!t.type,Bg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},pc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as cp,safeStorage as bo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Ng="vk_player_prefer_traffic_saving_enabled",Dg="vk_player_preferred_volume",Og="vk_player_prefer_volume_mute",up="vk_player_preferred_quality",lp="vk_player_preferred_default_quality_settings",dp="vk_player_preferred_quality_settings_by_video",Hg="vk_player_preferred_stream_language",Fg="vk_player_preferred_rate",Ug="vk_player_preferred_autoplay_next",zg=t=>t>1?1:t<0?0:t,pp=t=>bo.set(Dg,zg(t).toString(10)),mc=()=>{let t=bo.get(Dg);return cp(t)?void 0:zg(parseFloat(t))},fp=(t,e)=>bo.set(up,JSON.stringify({videoId:t,value:e})),Ll=()=>bo.remove(up),mp=t=>{let e=bo.get(up);if(cp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ll();return}return o},vp=(t,e)=>{e?bo.set(t,"true"):bo.remove(t)},gp=t=>bo.get(t)==="true",hp=t=>vp(Og,t),qg=()=>gp(Og),Ml=t=>vp(Ng,t),_p=()=>gp(Ng),Kg=()=>bo.get(Hg),bp=t=>bo.set(Hg,t),Wg=t=>bo.set(Fg,JSON.stringify({rate:t})),Qg=()=>{let t=bo.get(Fg);if(cp(t))return;let{rate:e}=JSON.parse(t);return e},Gg=t=>vp(Ug,t),Yg=()=>gp(Ug),z0=()=>{let t=f=>{bo.set(lp,JSON.stringify(f))},e=()=>{try{let f=bo.get(lp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=bo.get(dp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{bo.set(dp,JSON.stringify(f))},n=f=>{p(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return{..._,appliesTo:"to-video"};_&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{bo.remove(dp)},s=()=>{bo.remove(lp)},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":Ml(!0);break;case"exact_quality":fp(f,_.quality)}a(),s()}},p=f=>{let _=mp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}_p()&&t({type:"traffic_saving",videoId:f}),Ml(!1),Ll()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:jg,migrateSettingsToLegacyWay:Zg,savePreferredQualitySettings:vc,savePreferredDefaultQualitySettings:kA,removePreferredQualitySettingsByVideo:EA,getPreferredDefaultQualitySettings:gc}=z0();import{PlaybackState as c1}from"@vkontakte/videoplayer-core/es2018";var q0=be('<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 Vl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=q0();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as eh,InterfaceLanguage as th}from"@vkontakte/videoplayer-shared/es2018";var K0={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_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,
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 St=null;function hl(t){St=t}var Jo=null;function _l(t){Jo=t}function Ia(t){return Wu("getContext").get(t)}function ka(t,e){let i=Wu("setContext");return Te&&bt(()=>zu(e,null,!0)),i.set(t,e),e}function $l(){return Wu("getAllContexts")}function q(t,e=!1,i){var o=St={p:St,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Rr&&!e&&(St.l={s:null,u:null,r1:[],r2:Ri(!1)}),en(()=>{o.d=!0}),Te&&(St.function=i,Jo=i)}function K(t){var s,d;let e=St;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=yt,o=Nt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];Xi(a.effect),lo(a.reaction),hn(a.fn)}}finally{Xi(i),lo(o)}}St=e.p,Te&&(Jo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Rr||St!==null&&St.l===null}function Wu(t){var e;return St===null&&Ta(t),(e=St.c)!=null?e:St.c=new Map(W1(St)||void 0)}function W1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q1=/\r/g;function Nv(t){t=t.replace(Q1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var G1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Dv(t){return G1.includes(t)}var Y1=["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 j1={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 Ov(t){var e;return t=t.toLowerCase(),(e=j1[t])!=null?e:t}var i6=[...Y1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Z1=["touchstart","touchmove"];function Hv(t){return Z1.includes(t)}var X1=["textarea","script","style","title"];function Fv(t){return X1.includes(t)}function Qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Uv=new Map;function zv(t,e){var i=Uv.get(t);i||(i=new Set,Uv.set(t,i)),i.add(e)}function Gu(t,e){if(e){let i=document.body;t.autofocus=!0,Qo(()=>{document.activeElement===i&&t.focus()})}}function yl(t){var e=Nt,i=yt;lo(null),Xi(null);try{return t()}finally{lo(e),Xi(i)}}var Yu=new Set,dc=new Set;function Fs(t){if(!Ye)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 ju(t,e,i,o={}){function n(a){if(o.capture||Ea.call(e,a),!a.cancelBubble)return yl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Qo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var a={capture:o,passive:n},s=ju(t,e,i,a);(e===document.body||e===window||e===document)&&en(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)Yu.add(t[e]);for(var i of dc)i(t)}function Ea(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.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 p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){Zi(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Nt,_=yt;lo(null),Xi(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(_r(y)){var[S,...I]=y;S.apply(a,[t,...I])}else y.call(a,t)}catch(P){u?$.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of $)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,lo(f),Xi(_)}}}var e0;function qv(){e0=void 0}function Aa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function po(t,e){var i=yt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return po(ft,null),ft;n===void 0&&(n=Aa(a?t:"<!>"+t),i||(n=pi(n)));var s=o||ul?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=pi(s),l=s.lastChild;po(d,l)}else po(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return po(ft,null),ft;if(!s){var d=Aa(a),l=pi(d);if(n)for(s=document.createDocumentFragment();pi(l);)s.appendChild(pi(l));else s=pi(l)}var p=s.cloneNode(!0);if(n){var f=pi(p),_=p.lastChild;po(f,_)}else po(p,p);return p}}function er(t=""){if(!Ye){var e=Zo(t+"");return po(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=Zo()),ui(i)),po(i,i),i}function qe(){if(Ye)return po(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=Zo();return t.append(e,i),po(e,i),t}function b(t,e){if(Ye){yt.nodes_end=ft,Pi();return}t!==null&&t.before(e)}var xl=!0;function cc(t){xl=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function es(t,e){return Wv(t,e)}function Xu(t,e){var s;Zd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ft;try{for(var a=pi(i);a&&(a.nodeType!==8||a.data!==ps);)a=wo(a);if(!a)throw Wr;eo(!0),ui(a),Pi();let d=Wv(t,{...e,anchor:a});if(ft===null||ft.nodeType!==8||ft.data!==Ps)throw Bs(),Wr;return eo(!1),d}catch(d){if(d===Wr)return e.recover===!1&&ev(),Zd(),pl(i),eo(!1),es(t,e);throw d}finally{eo(o),ui(n),qv()}}var Pa=new Map;function Wv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Zd();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=Hv($);e.addEventListener($,Ea,{passive:w});var y=Pa.get($);y===void 0?(document.addEventListener($,Ea,{passive:w}),Pa.set($,1)):Pa.set($,y+1)}}};l(sl(Yu)),dc.add(l);var p=void 0,f=Lv(()=>{var _=i!=null?i:e.appendChild(Zo());return Ni(()=>{if(a){q({});var u=St;u.c=a}n&&(o.$$events=n),Ye&&po(_,null),xl=s,p=t(_,o)||{},xl=!0,Ye&&(yt.nodes_end=ft),a&&K()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ea);var $=Pa.get(u);--$===0?(document.removeEventListener(u,Ea),Pa.delete(u)):Pa.set(u,$)}dc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return Zu.set(p,f),p}var Zu=new WeakMap;function Us(t,e){let i=Zu.get(t);return i?(Zu.delete(t),i(e)):(Te&&gv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&Pi();var n=t,a=null,s=null,d=Ii,l=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===ps?o=0:S===As?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=ya(),ui(n),eo(!1),w=!0,o=-1)}d?(a?Jr(a):$&&(a=Ni(()=>$(n))),s&&_n(s,()=>{s=null})):(s?Jr(s):$&&(s=Ni(()=>$(n,[i+1,o]))),a&&_n(a,()=>{a=null})),w&&eo(!0)};to(()=>{p=!1,e(f),p||_(null,null)},l),Ye&&(n=ft)}function zs(t,e,i){Ye&&Pi();var o=t,n=Ii,a,s=Br()?Gm:va;to(()=>{s(n,n=e())&&(a&&_n(a),a=Ni(()=>i(o)))}),Ye&&(o=ft)}var hs=null;function tp(t){hs=t}function wl(t,e){return e}function n0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)sc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;pl(l),l.append(i),o.clear(),gs(t,e[0].prev,e[a-1].next)}Uu(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),gs(t,f.prev,f.next)),Ji(f.e,!d)}})}function _i(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 p=t;s=Ye?ui(pi(p)):p.appendChild(Zo())}Ye&&Pi();var f=null,_=!1,u=yr(()=>{var $=i();return _r($)?$:$==null?[]:sl($)});to(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ye){var S=s.data===As;S!==(w===0)&&(s=ya(),ui(s),eo(!1),y=!0)}if(Ye){for(var I=null,A,P=0;P<w;P++){if(ft.nodeType===8&&ft.data===Ps){s=ft,y=!0,eo(!1);break}var E=$[P],T=o(E,P);A=Yv(ft,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}w>0&&ui(ya())}Ye||r0($,d,s,n,e,o,i),a!==null&&(w===0?f?Jr(f):f=Ni(()=>a(s)):f!==null&&_n(f,()=>{f=null})),y&&eo(!0),r(u)}),Ye&&(s=ft)}function r0(t,e,i,o,n,a,s){var le,Ve,Me,J;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,_=e.first,u=_,$,w=null,y,S=[],I=[],A,P,E,T;if(d)for(T=0;T<p;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<p;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var V=u?u.e.nodes_start:i;w=Yv(V,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],I=[],u=w.next;continue}if(l&&s0(E,A,T,n),(E.e.f&8192)!==0&&(Jr(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==u){if($!==void 0&&$.has(E)){if(S.length<I.length){var U=I[0],Y;w=U.prev;var F=S[0],j=S[S.length-1];for(Y=0;Y<S.length;Y+=1)Qv(S[Y],U,i);for(Y=0;Y<I.length;Y+=1)$.delete(I[Y]);gs(e,F.prev,j.next),gs(e,w,F),gs(e,j,U),u=U,w=j,T-=1,S=[],I=[]}else $.delete(E),Qv(E,u,i),gs(e,E.prev,E.next),gs(e,E,w===null?e.first:w.next),gs(e,w,E),w=E;continue}for(S=[],I=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;E=u}S.push(E),w=E,u=E.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:sl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var oe=X.length;if(oe>0){var pe=(n&4)!==0&&p===0?i:null;if(d){for(T=0;T<oe;T+=1)(Me=X[T].a)==null||Me.measure();for(T=0;T<oe;T+=1)(J=X[T].a)==null||J.fix()}n0(e,X,pe,f)}}d&&Qo(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),yt.first=e.first&&e.first.e,yt.last=w&&w.e}function s0(t,e,i,o){(o&1)!==0&&_a(t.v,e),(o&2)!==0?_a(t.i,i):t.i=i}function Yv(t,e,i,o,n,a,s,d,l,p){var f=hs,_=(l&1)!==0,u=(l&16)===0,$=_?u?Zr(n):Ri(n):n,w=(l&2)===0?s:Ri(s);Te&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;p()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};hs=y;try{return y.e=Ni(()=>d(t,$,w,p),Ye),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{hs=f}}function Qv(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=wo(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 a0(t,e,i){var a,s;if(!e||e===Nv(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=Jo)!=null&&s[ci]&&(o=`in ${Jo[ci]}`),vv(Qu(o))}function Sl(t,e,i,o,n){var a=t,s="",d;to(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Pi();return}d!==void 0&&(Ji(d),d=void 0),s!==""&&(d=Ni(()=>{if(Ye){for(var p=ft.data,f=Pi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=wo(f);if(f===null)throw Bs(),Wr;Te&&!n&&a0(f.parentNode,p,s),po(ft,_),a=ui(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Aa(u);if((i||o)&&($=pi($)),po(pi($),$.lastChild),i||o)for(;pi($);)a.before(pi($));else a.before($)}))})}function ge(t,e,...i){var o=t,n=ie,a;to(()=>{n!==(n=e())&&(a&&(Ji(a),a=null),Te&&n==null&&tv(),a=Ni(()=>n(o,...i)))},65536),Ye&&(o=ft)}function bi(t,e,i){Ye&&Pi();var o=t,n,a;to(()=>{n!==(n=e())&&(a&&(_n(a),a=null),n&&(a=Ni(()=>i(o,n))))},65536),Ye&&(o=ft)}function Cl(t,e,i,o,n,a){var w;let s=Ye;Ye&&Pi();var d=Te&&a&&((w=St)==null?void 0:w.function[ci]),l,p,f=null;Ye&&ft.nodeType===1&&(f=ft,Pi());var _=Ye?ft:t,u,$=hs;to(()=>{let y=e()||null;var S=n?n():i||y==="svg"?bu:null;if(y!==l){var I=hs;tp($),u&&(y===null?_n(u,()=>{u=null,p=null}):y===p?Jr(u):(Ji(u),cc(!1))),y&&y!==p&&(u=Ni(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),po(f,f),o){Ye&&Fv(y)&&f.append(document.createComment(""));var A=Ye?pi(f):f.appendChild(Zo());Ye&&(A===null?eo(!1):ui(A)),o(f,A)}yt.nodes_end=f,_.before(f)})),l=y,l&&(p=l),cc(!0),tp(I)}},65536),s&&(eo(!0),ui(_))}var op;function jv(t){return op=t.target,new ip(t)}var ts,tr,ip=class{constructor(e){us(this,ts);us(this,tr);var a,s;var i=new Map,o=(d,l)=>{var p=Zr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===rl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return O((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});ma(this,tr,(e.hydrate?Xu: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)&&Sa(),ma(this,ts,n.$$events);for(let d of Object.keys(Ti(this,tr)))d==="$set"||d==="$destroy"||d==="$on"||Zi(this,d,{get(){return Ti(this,tr)[d]},set(l){Ti(this,tr)[d]=l},enumerable:!0});Ti(this,tr).$set=d=>{Object.assign(n,d)},Ti(this,tr).$destroy=()=>{Us(Ti(this,tr))}}$set(e){Ti(this,tr).$set(e)}$on(e,i){Ti(this,ts)[e]=Ti(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Ti(this,ts)[e].push(o),()=>{Ti(this,ts)[e]=Ti(this,ts)[e].filter(n=>n!==o)}}$destroy(){Ti(this,tr).$destroy()}};ts=new WeakMap,tr=new WeakMap;function Q(t,e){Qo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=op)==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),Te&&zv(e.hash,d)}})}function Zv(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=Zv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Xv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Zv(t))&&(o&&(o+=" "),o+=e);return o}function Tl(t){return typeof t=="object"?Xv(t):t!=null?t:""}var Jv=[...`
48
+ \r\f\xA0\v\uFEFF`];function tg(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||Jv.includes(o[s-1]))&&(d===o.length||Jv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function eg(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 np(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ig(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(np)),n&&l.push(...Object.keys(n).map(np));var p=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var u=t[_];if(d?u==="/"&&t[_-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[_+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&f===-1)f=_;else if(u===";"||_===y-1){if(f!==-1){var $=np(t.substring(p,f).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(p,_).trim();i+=" "+w+";"}}p=_+1,f=-1}}}}return o&&(i+=eg(o)),n&&(i+=eg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=tg(i,o,a);(!Ye||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 p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function rp(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 et(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=ig(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(rp(t,i==null?void 0:i[0],o[0]),rp(t,i==null?void 0:i[1],o[1],"important")):rp(t,i,o));return o}var Ma=Symbol("class"),La=Symbol("style"),rg=Symbol("is custom element"),sg=Symbol("is html");function ag(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=lg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||m0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[zm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function xe(t,e,i,o,n=!1){var E;var a=lg(t),s=a[rg],d=!a[sg];let l=Ye&&s;l&&eo(!1);var p=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Tl(i.class):(o||i[Ma])&&(i.class=null),i[La]&&((E=i.style)!=null||(i.style=null));var u=dg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",p[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,V,o,e==null?void 0:e[Ma],i[Ma]),p[T]=V,p[Ma]=i[Ma];continue}if(T==="style"){et(t,V,e==null?void 0:e[La],i[La]),p[T]=V,p[La]=i[La];continue}var w=p[T];if(V!==w){p[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let U={},Y="$$"+T,F=T.slice(2);var S=Dv(F);if(Bv(F)&&(F=F.slice(0,-7),U.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,p[Y],U),p[Y]=null}if(V!=null)if(S)t[`__${F}`]=V,st([F]);else{let j=function(X){p[T].call(this,X)};var P=j;p[Y]=ju(F,t,j,U)}else S&&(t[`__${F}`]=void 0)}else if(T==="style")Oe(t,T,V);else if(T==="autofocus")Gu(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)ag(t,V);else{var I=T;d||(I=Ov(I));var A=I==="defaultValue"||I==="defaultChecked";if(V==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let U=t,Y=e===void 0;if(I==="value"){let F=U.defaultValue;U.removeAttribute(I),U.defaultValue=F,U.value=U.__value=Y?F:null}else{let F=U.defaultChecked;U.removeAttribute(I),U.defaultChecked=F,U.checked=Y?F:!1}}else t.removeAttribute(T);else A||u.includes(I)&&(s||typeof V!="string")?t[I]=V:typeof V!="function"&&Oe(t,I,V,n)}}}return l&&eo(!0),p}function lg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[rg]:t.nodeName.includes("-"),[sg]:t.namespaceURI===Hm}}var og=new Map;function dg(t){var e=og.get(t.nodeName);if(e)return e;og.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function m0(t,e,i){var o;Te&&(e==="srcset"&&v0(t,i)||sp((o=t.getAttribute(e))!=null?o:"",i)||mv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v0(t,e){var i=ng(t.srcset),o=ng(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(sp(i[s][0],n)||sp(n,i[s][0])))}var g0=qd?()=>performance.now():()=>Date.now(),wr={tick:t=>(qd?requestAnimationFrame:ie)(t),now:()=>g0(),tasks:new Set};function cg(){let t=wr.now();wr.tasks.forEach(e=>{e.c(t)||(wr.tasks.delete(e),e.f())}),wr.tasks.size!==0&&wr.tick(cg)}function ug(t){let e;return wr.tasks.size===0&&wr.tick(cg),{promise:new Promise(i=>{wr.tasks.add(e={c:t,f:i})}),abort(){wr.tasks.delete(e)}}}function uc(t,e){yl(()=>{t.dispatchEvent(new CustomEvent(e))})}function $0(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 pg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=$0(n.trim());e[s]=a.trim()}return e}var y0=t=>t;function lp(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",p,f=e.inert,_=e.style.overflow,u,$;function w(){var V;var E=Nt,T=yt;lo(null),Xi(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{lo(E),Xi(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||u==null||u.abort(),uc(e,"introstart"),u=ap(e,w(),$,1,()=>{uc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),p=void 0;return}e.inert=!0,uc(e,"outrostart"),$=ap(e,w(),u,0,()=>{uc(e,"outroend"),E==null||E()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=yt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&xl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&hn(()=>{bt(()=>y.in())})}}function ap(t,e,i,o,n){var a=o===1;if(fs(e)){var s,d=!1;return Qo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=ap(t,S,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:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:f,easing:_=y0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var $=pg(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var F;var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(p)for(var T=Math.ceil(A/16.666666666666668),V=0;V<=T;V+=1){var U=S+I*_(V/T),Y=pg(p(U,1-U));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var j=y.currentTime;return S+I*_(j/A)},f&&ug(()=>{if(y.playState!=="running")return!1;var j=w();return f(j,1-j),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var _s,Va,Il,fc,fg,mc=class mc{constructor(e){us(this,fc);us(this,_s,new WeakMap);us(this,Va);us(this,Il);ma(this,Il,e)}observe(e,i){var o=Ti(this,_s).get(e)||new Set;return o.add(i),Ti(this,_s).set(e,o),Dm(this,fc,fg).call(this).observe(e,Ti(this,Il)),()=>{var n=Ti(this,_s).get(e);n.delete(i),n.size===0&&(Ti(this,_s).delete(e),Ti(this,Va).unobserve(e))}}};_s=new WeakMap,Va=new WeakMap,Il=new WeakMap,fc=new WeakSet,fg=function(){var e;return(e=Ti(this,Va))!=null?e:ma(this,Va,new ResizeObserver(i=>{for(var o of i){mc.entries.set(o.target,o);for(var n of Ti(this,_s).get(o.target)||[])n(o)}}))},En(mc,"entries",new WeakMap);var dp=mc;var S0=new dp({box:"border-box"});function Dr(t,e,i){var o=S0.observe(t,()=>i(t[e]));hn(()=>(bt(()=>i(t[e])),o))}function mg(t,e){return t===e||(t==null?void 0:t[No])===e}function dt(t={},e,i,o){return hn(()=>{var n,a;return uo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&mg(i(...n),t)&&e(null,...n))})}),()=>{Qo(()=>{a&&mg(i(...a),t)&&e(null,...a)})}}),t}function Sr(t=!1){let e=St,i=e.l.u;if(!i)return;let o=()=>oc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ca(()=>{vg(e,o),ms(i.b)}),Ke(()=>{let n=bt(()=>i.m.map(Wm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ke(()=>{vg(e,o),ms(i.a)})}function vg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;nv(e)},set:o=>{i=o}})}};T0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T0;function Ot(t){St===null&&Ta("onMount"),Rr&&St.l!==null?C0(St).m.push(t):Ke(()=>{let e=bt(t);if(typeof e=="function")return e})}function bn(t){St===null&&Ta("onDestroy"),Ot(()=>()=>bt(t))}function C0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ra=[];function ir(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(va(t,d)&&(t=d,i)){let l=!Ra.length;for(let p of o)p[1](),Ra.push(p,t);if(l){for(let p=0;p<Ra.length;p+=2)Ra[p][0](Ra[p+1]);Ra.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function fi(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 ir(i,(s,d)=>{let l=!1,p=[],f=0,_=ie,u=()=>{if(f)return;_();let w=e(o?p[0]:p,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>kl(w,S=>{p[y]=S,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){ms($),_(),l=!1}})}function ye(t){let e;return kl(t,i=>e=i)(),e}var vc=!1,cp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:ie};if(o.store!==t&&!(cp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=kl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&cp in i?ye(t):r(o.source)}function Fe(){let t={};function e(){en(()=>{for(var i in t)t[i].unsubscribe();Zi(t,cp,{enumerable:!1,value:!0})})}return[t,e]}function up(t){var e=vc;try{return vc=!1,[t(),vc]}finally{vc=e}}var L0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&ov(`${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 Ie(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},L0)}var V0={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=An(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=An(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===No||e===rl)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},V0)}function gg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var U,Y;var n=(i&1)!==0,a=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=up(()=>t[e]):p=t[e];var f=No in t||rl in t,_=s&&((Y=(U=An(t,e))==null?void 0:U.set)!=null?Y:f&&e in t&&(F=>t[e]=F))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=bt(o):u=o),u);p===void 0&&o!==void 0&&(_&&a&&iv(e),p=y(),_&&_(p));var S;if(a)S=()=>{var F=t[e];return F===void 0?y():($=!0,w=!1,F)};else{var I=(n?m:yr)(()=>t[e]);I.f|=131072,S=()=>{var F=r(I);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(F,j){return arguments.length>0?((!a||!j||A||l)&&_(j?S():F),F):S()}}var P=!1,E=!1,T=Zr(p),V=m(()=>{var F=S(),j=r(T);return P?(P=!1,E=!0,j):(E=!1,T.v=F)});return s&&r(V),n||(V.equals=ga),function(F,j){if(dl!==null&&(P=E,S(),r(T)),arguments.length>0){let X=j?r(V):a&&s?me(F):F;if(!V.equals(X)){if(P=!0,O(T,X),w&&u!==void 0&&(u=X),gg(V))return F;bt(()=>r(V))}return F}return gg(V)?V.v:r(V)}}var R0;typeof HTMLElement=="function"&&(R0=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))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=N0(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]=pp(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=jv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=rc(()=>{uo(()=>{var a;this.$$r=!0;for(let s of yu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=pp(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]=pp(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 yu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pp(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 N0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var hg="5";var _g,bg,$g;typeof window!="undefined"&&(($g=(bg=(_g=window.__svelte)!=null?_g:window.__svelte={}).v)!=null?$g:bg.v=new Set).add(hg);import{clientChecker as ux}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as g1,safeStorage as px,throttleFn as fx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as mx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as D0,fillWithDefault as O0,VideoQuality as yg}from"@vkontakte/videoplayer-shared/es2018";var H0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:D0.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:yg.Q_480P,highQualityLimit:yg.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,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!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}},xg=t=>O0(t,H0),wg=t=>ka("ui-config",t),qt=()=>Ia("ui-config");var El="vk_player_debug_panel_opened";var Sg="videoplayer",Cg="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Tg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ig=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),kg=new Set(["ShiftRight","ShiftLeft"]);var Eg=["TIMELINE"],Al=[...Eg,"GRAPH_BUTTON"],fp=[...Eg,"PLAY_BUTTON"],Pl=[...Al,"PLAY_BUTTON"];var Hr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Hr||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ag,VERSION as F0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as U0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as z0}from"@vkontakte/videoplayer-statistics/es2018";var gc="prod",Na="1.1.61-dev.7a92fe9e.0";var Ws=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Pg=Symbol("storeContext"),Mg=Symbol("microStoresContext"),Lg=(t,e)=>{ka(Pg,t),ka(Mg,e),gc==="dev"&&(window.app={store:t,microStores:e})},we=()=>{let t=Ia(Pg);return Ag(t,"Store context is empty!"),t},io=()=>{let t=Ia(Mg);return Ag(t,"MicroStores context is empty!"),t},Zt=(t,e)=>_c(t,t.getValue(),e),_c=(t,e,i)=>ir(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Vg=(t,e,i)=>{var I,A,P,E,T,V;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Na} (core: ${U0}, stat: ${z0}, shared: ${F0})`,f=ye(i.state.errorLog$),_=f.length?`
49
+ `+f.map((U,Y)=>{var oe;let F=`${Y}) Type: ${U.id}
50
+ `,j=`Message: ${U.message} (${U.thrown})
51
+ `,X=`Trace: ${(oe=U.thrown)==null?void 0:oe.stack}
52
+ `;return F+j+X}).join(`
53
+ `):void 0,u=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];$&&y.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:ye(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:u,Position:`${ye(i.state.positionExact$)}s`,State:`${ye(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([U,Y])=>Y!==void 0).map(([U,Y])=>`${U}: ${Y}`).join(`
54
+ `)},Rg=(t,e,i)=>{var U,Y,F,j;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s={version:Na,viewport:`${n}x${a}`,volume:Math.round(ye(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 p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(_&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-ye(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let A=ye(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(U=t.info.currentVideoStream$.getValue())==null?void 0:U.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.language;return V&&(s.audioLanguage=V),s},Ng=(t,e)=>Ws(t,e,"mp4"),Bg=t=>!t.type,Dg=t=>!!t.type,Og=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},hc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as gp,safeStorage as fo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Hg="vk_player_prefer_traffic_saving_enabled",Fg="vk_player_preferred_volume",Ug="vk_player_prefer_volume_mute",hp="vk_player_preferred_quality",mp="vk_player_preferred_default_quality_settings",vp="vk_player_preferred_quality_settings_by_video",zg="vk_player_preferred_stream_language",qg="vk_player_preferred_rate",Kg="vk_player_preferred_autoplay_next",Wg=t=>t>1?1:t<0?0:t,_p=t=>fo.set(Fg,Wg(t).toString(10)),bc=()=>{let t=fo.get(Fg);return gp(t)?void 0:Wg(parseFloat(t))},bp=(t,e)=>fo.set(hp,JSON.stringify({videoId:t,value:e})),Ll=()=>fo.remove(hp),$p=t=>{let e=fo.get(hp);if(gp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ll();return}return o},yp=(t,e)=>{e?fo.set(t,"true"):fo.remove(t)},xp=t=>fo.get(t)==="true",wp=t=>yp(Ug,t),Qg=()=>xp(Ug),Ml=t=>yp(Hg,t),Sp=()=>xp(Hg),Gg=()=>fo.get(zg),Cp=t=>fo.set(zg,t),Yg=t=>fo.set(qg,JSON.stringify({rate:t})),jg=()=>{let t=fo.get(qg);if(gp(t))return;let{rate:e}=JSON.parse(t);return e},Zg=t=>yp(Kg,t),Xg=()=>xp(Kg),q0=()=>{let t=f=>{fo.set(mp,JSON.stringify(f))},e=()=>{try{let f=fo.get(mp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=fo.get(vp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{fo.set(vp,JSON.stringify(f))},n=f=>{p(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return{..._,appliesTo:"to-video"};_&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{fo.remove(vp)},s=()=>{fo.remove(mp)},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":Ml(!0);break;case"exact_quality":bp(f,_.quality)}a(),s()}},p=f=>{let _=$p(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Sp()&&t({type:"traffic_saving",videoId:f}),Ml(!1),Ll()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Jg,migrateSettingsToLegacyWay:eh,savePreferredQualitySettings:$c,savePreferredDefaultQualitySettings:PA,removePreferredQualitySettingsByVideo:MA,getPreferredDefaultQualitySettings:yc}=q0();import{PlaybackState as f1}from"@vkontakte/videoplayer-core/es2018";var K0=be('<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 Vl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=K0();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as oh,InterfaceLanguage as nh}from"@vkontakte/videoplayer-shared/es2018";var W0={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_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
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
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`},Xg=K0;var W0={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_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,
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`},th=W0;var Q0={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_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
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.`},Jg=W0;var os=new Map;os.set(th.EN,Jg);os.set(th.RU,Xg);var ih=new Map,$p=({language:t,pack:e,fallback:i})=>{if(os.has(t)){let o=os.get(t);os.set(t,{...o,...e})}else os.set(t,e);ih.set(t,i)},yp=t=>os.has(t),xp=(t,e,i,o)=>{var s;let n=os.get(t),a=n==null?void 0:n[e];if(eh(a)){let d=(s=ih.get(t))!=null?s:o,l=d?os.get(d):void 0;a=l==null?void 0:l[e]}return eh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=we(i),n=zt();return xp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Ra;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ra||(Ra={}));var Q0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,G0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Y0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hc="?",j0="X-Sentry-Auth",Z0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function X0(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=Q0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||hc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Y0.exec(i[a]))n={filename:o[2],function:o[1]||hc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=G0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||hc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=hc),e.push(n)}return e.length?{value:oh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function oh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function J0(t){try{let e=X0(t);if(e)return e}catch(e){}return{value:oh(t),type:t&&t.name,stacktrace:{frames:[]}}}function e_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var _c=class{constructor(e){if(e&&e.dsn){let i=Z0.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{...this.getRequestBlank(),exception:{values:[J0(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(j0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:e_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function nh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function t_(){return window}var bc=class t extends _c{constructor(e,i=t_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(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",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>nh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>nh(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{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as $c,Subscription as i_}from"@vkontakte/videoplayer-shared/es2018";var yc=null,Ks=class{constructor(e,i,o={}){!yc&&e.dsn&&(this.sentryClient=new bc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new i_,this.options=e,this.context=o,yc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),yc=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:p=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if($c($)&&_.includes($)||$c(u)&&f.includes(u))return;if(Math.random()<=d||$c($)&&p.includes($)||$c(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Ra.fatal:Ra.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return yc}};var Ws=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Ws||{});var xc=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()},wc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),rh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Rl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},_s=()=>!!Rl(),Sc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Cc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},sh=t=>{let e=window.screen;return(async n=>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 ah}from"@vkontakte/videoplayer-core/es2018";var lh=()=>({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:ah.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:ah.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as o_,ValueSubject as wp}from"@vkontakte/videoplayer-shared/es2018";var Qs=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:o_(this.onResize.bind(this),300)};this.info={isActive$:new wp(!1),isEnabled$:new wp(!1),type:0};this.info.isEnabled$=new wp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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 Gs(t){return t instanceof Qs}import{devNull as dh,now as ch}from"@vkontakte/videoplayer-shared/es2018";sv();function Tp(t,e){q(e,!1);let i=Ie();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Cr(),K()}import{noop as n_}from"@vkontakte/videoplayer-shared/es2018";var r_=(t,e)=>{t.stopPropagation(),e()()},s_=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>'),a_=L("<div><!></div>"),l_={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 Ip(t,e){q(e,!0),Q(t,l_);let[i,o]=Fe(),n=()=>C(p,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,n_),p=Ie().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=a_();let u;var $=h(_);{var w=S=>{var I=s_();I.__click=[r_,d];var A=h(I);_e(),g(I),k(P=>fe(A,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(S,I)},y=S=>{var I=tr();k(A=>fe(I,A),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};B($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>u=te(_,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}st(["click"]);var d_=L('<button class="svelte-1wy3dql"> </button>'),c_={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){q(e,!1),Q(t,c_),Cr();var i=d_(),o=h(i,!0);g(i),k(n=>fe(o,n),[()=>F("visit_advertiser")],xr),b(t,i),K()}var u_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),p_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),f_={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(
58
+ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih);os.set(nh.RU,th);var rh=new Map,Tp=({language:t,pack:e,fallback:i})=>{if(os.has(t)){let o=os.get(t);os.set(t,{...o,...e})}else os.set(t,e);rh.set(t,i)},Ip=t=>os.has(t),kp=(t,e,i,o)=>{var s;let n=os.get(t),a=n==null?void 0:n[e];if(oh(a)){let d=(s=rh.get(t))!=null?s:o,l=d?os.get(d):void 0;a=l==null?void 0:l[e]}return oh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},H=(t,e)=>{let{interfaceLanguage$:i}=we(),o=ye(i),n=qt();return kp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Ba;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ba||(Ba={}));var G0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Y0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,j0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xc="?",Z0="X-Sentry-Auth",X0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function J0(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=G0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||xc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=j0.exec(i[a]))n={filename:o[2],function:o[1]||xc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Y0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||xc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=xc),e.push(n)}return e.length?{value:sh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function sh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function e_(t){try{let e=J0(t);if(e)return e}catch(e){}return{value:sh(t),type:t&&t.name,stacktrace:{frames:[]}}}function t_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var wc=class{constructor(e){if(e&&e.dsn){let i=X0.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{...this.getRequestBlank(),exception:{values:[e_(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(Z0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:t_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ah(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function i_(){return window}var Sc=class t extends wc{constructor(e,i=i_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(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",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>ah(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>ah(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{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Cc,Subscription as o_}from"@vkontakte/videoplayer-shared/es2018";var Tc=null,Qs=class{constructor(e,i,o={}){!Tc&&e.dsn&&(this.sentryClient=new Sc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new o_,this.options=e,this.context=o,Tc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Tc=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:p=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if(Cc($)&&_.includes($)||Cc(u)&&f.includes(u))return;if(Math.random()<=d||Cc($)&&p.includes($)||Cc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Ba.fatal:Ba.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Tc}};var Gs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gs||{});var Ic=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()},kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),lh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Rl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},bs=()=>!!Rl(),Ec=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},dh=t=>{let e=window.screen;return(async n=>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/es2018";var uh=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:ch.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:ch.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as n_,ValueSubject as Ep}from"@vkontakte/videoplayer-shared/es2018";var Ys=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:n_(this.onResize.bind(this),300)};this.info={isActive$:new Ep(!1),isEnabled$:new Ep(!1),type:0};this.info.isEnabled$=new Ep(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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 js(t){return t instanceof Ys}import{devNull as ph,now as fh}from"@vkontakte/videoplayer-shared/es2018";dv();function Mp(t,e){q(e,!1);let i=we();Ot(()=>{i.getAdmanWrapper().startPostroll()}),Sr(),K()}import{noop as r_}from"@vkontakte/videoplayer-shared/es2018";var s_=(t,e)=>{t.stopPropagation(),e()()},a_=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>'),l_=L("<div><!></div>"),d_={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 Lp(t,e){q(e,!0),Q(t,d_);let[i,o]=Fe(),n=()=>C(p,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,r_),p=we().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=l_();let u;var $=h(_);{var w=S=>{var I=a_();I.__click=[s_,d];var A=h(I);_e(),g(I),k(P=>ve(A,`${P!=null?P:""} `),[()=>H("skip_ads_now")]),b(S,I)},y=S=>{var I=er();k(A=>ve(I,A),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>u=te(_,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}st(["click"]);var c_=L('<button class="svelte-1wy3dql"> </button>'),u_={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 Vp(t,e){q(e,!1),Q(t,u_),Sr();var i=c_(),o=h(i,!0);g(i),k(n=>ve(o,n),[()=>H("visit_advertiser")],yr),b(t,i),K()}var p_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),f_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),m_={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
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function Bl(t,e){q(e,!0),Q(t,f_);let[i,o]=Fe(),n=()=>C(Y,"$canSkipAd",i),a=()=>C(z,"$adPlaybackState",i),s=()=>C(A,"$isMobile",i),d=()=>C(U,"$adPosition",i),l=()=>C(Z,"$secondsToWatchBeforeSkipAd",i),p=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),u=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=Ie(),S=zt(),I=y.state.isEnded$,A=y.ui.isMobile,P=S.ads.isMobileGoToSiteButton,E=ee(void 0),T=ee(void 0),R=!1,z=y.ads.playbackState,Y=y.ads.canSkip,U=y.ads.position,Z=y.ads.secondsToWatchBeforeSkip,J=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);Nt(()=>{var ye;let re=y.getAdmanWrapper();if(dh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[ch(),f()]}),!f()){re.onAdmanLoadingError();return}let Be=Pe=>{re.initAdman(Pe),R=!0},ue=new AbortController,D=()=>{ue.abort()},{width:de,height:Ee}=we(y.ui.playerSize),Qe=we(y.ui.isFullscreen),at=(ye=$())!=null?ye:we(y.ui.isAutoplay),Ae={width:de,height:Ee,isFullscreen:Qe,isAutoplay:at,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:u(),duration:w()};return window.AdmanHTML?Be(Ae):re.loadAdman(ue.signal).then(()=>{Be(Ae)}).catch(()=>{re.onAdmanLoadingError()}),()=>{dh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[ch(),f()]}),!R&&D()}});var ce=p_(),le=h(ce);{var Le=re=>{var Be=u_();b(re,Be)};B(le,re=>{s()&&re(Le)})}var Re=M(le,2);lt(Re,re=>O(T,re),()=>r(T));var X=M(Re,2);{var Me=re=>{Ip(re,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};B(X,re=>{r(J)&&re(Me)})}var j=M(X,2);{var N=re=>{Tp(re,{})};B(j,re=>{p()&&re(N)})}var Ve=M(j,2);{var xe=re=>{kp(re,{})};B(Ve,re=>{r(oe)&&re(xe)})}g(ce),lt(ce,re=>O(E,re),()=>r(E)),b(t,ce),K(),o()}var nr=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 m_=be('<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 Ep(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=m_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var v_=be('<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 Ap(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=v_();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function Nl(t,e){let i=v(e,"isActive",3,!1);var o=Ue(),n=ge(o);{var a=d=>{Ap(d,{})},s=d=>{Ep(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var g_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),h_=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),__={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
70
+ );}`};function Nl(t,e){q(e,!0),Q(t,m_);let[i,o]=Fe(),n=()=>C(Y,"$canSkipAd",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(A,"$isMobile",i),d=()=>C(F,"$adPosition",i),l=()=>C(j,"$secondsToWatchBeforeSkipAd",i),p=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),u=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=we(),S=qt(),I=y.state.isEnded$,A=y.ui.isMobile,P=S.ads.isMobileGoToSiteButton,E=ee(void 0),T=ee(void 0),V=!1,U=y.ads.playbackState,Y=y.ads.canSkip,F=y.ads.position,j=y.ads.secondsToWatchBeforeSkip,X=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);Ot(()=>{var $e;let ke=y.getAdmanWrapper();if(ph.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[fh(),f()]}),!f()){ke.onAdmanLoadingError();return}let Ne=Pe=>{ke.initAdman(Pe),V=!0},fe=new AbortController,D=()=>{fe.abort()},{width:de,height:Ee}=ye(y.ui.playerSize),Ge=ye(y.ui.isFullscreen),lt=($e=$())!=null?$e:ye(y.ui.isAutoplay),Ae={width:de,height:Ee,isFullscreen:Ge,isAutoplay:lt,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:u(),duration:w()};return window.AdmanHTML?Ne(Ae):ke.loadAdman(fe.signal).then(()=>{Ne(Ae)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{ph.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[fh(),f()]}),!V&&D()}});var pe=f_(),le=h(pe);{var Ve=ke=>{var Ne=p_();b(ke,Ne)};R(le,ke=>{s()&&ke(Ve)})}var Me=M(le,2);dt(Me,ke=>O(T,ke),()=>r(T));var J=M(Me,2);{var Le=ke=>{Lp(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(J,ke=>{r(X)&&ke(Le)})}var Z=M(J,2);{var B=ke=>{Mp(ke,{})};R(Z,ke=>{p()&&ke(B)})}var Re=M(Z,2);{var ne=ke=>{Vp(ke,{})};R(Re,ke=>{r(oe)&&ke(ne)})}g(pe),dt(pe,ke=>O(E,ke),()=>r(E)),b(t,pe),K(),o()}var or=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 v_=be('<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 Rp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=v_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var g_=be('<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 Np(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=g_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function Bl(t,e){let i=v(e,"isActive",3,!1);var o=qe(),n=ue(o);{var a=d=>{Np(d,{})},s=d=>{Rp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var h_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),__=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),b_={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
71
71
  /* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
72
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
73
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -138,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Dl(t,e){q(e,!0),Q(t,__);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=h_();let s;var d=M(h(a),2),l=h(d);{var p=_=>{var u=g_(),$=h(u);Nl($,{isActive:!0}),g(u),b(_,u)},f=_=>{var u=tr();k($=>fe(u,$),[()=>nr(e.duration-e.position)]),b(_,u)};B(l,_=>{o()?_(p):_(f,!1)})}g(d),g(a),k(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var Ba=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 E_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as uh}from"@vkontakte/videoplayer-core/es2018";var rr=t=>{t.stopPropagation(),t.preventDefault()},$_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},y_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},x_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},w_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ph=t=>t.code==="Escape",S_=t=>t.code==="ArrowLeft",Ol=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},fh=t=>{if(x_(t)){rr(t),y_(t.target);return}w_(t)&&(rr(t),$_(t.target))},ys=t=>!uh.device.isAndroid&&(t==null?void 0:t.detail)===0||uh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Na=async(t,e,i)=>{await go(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(await go(),i.set(!1),t.focus())},mh=async(t,e,i)=>{await go(),t&&!e&&we(i)&&(i.set(!1),t.focus())},Da=async(t,e,i)=>{var n;await go(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},vh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Tc=(t,e)=>{fh(t),ph(t)&&(rr(t),e())},Ic=async(t,e)=>{Ol(t,["ArrowRight"])&&(rr(t),e())},gh=async(t,e,i)=>{if(fh(t),S_(t)){rr(t),e();return}ph(t)&&(rr(t),i())},Oa=(t,e)=>{Ol(t)&&(rr(t),e())},hh=(t,e,i)=>{if(Ol(t))rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),rr(t);return}o==="ArrowRight"&&!e&&(i(!0),rr(t))}},_h=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 kc,isValidURL as A_}from"@vkontakte/videoplayer-shared/es2018";var Tr={"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 $h}from"@vkontakte/videoplayer-shared/es2018";var T_=(t,e)=>{Oa(t,()=>e())},I_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),k_={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 Pp(t,e){q(e,!0),Q(t,k_);let i=v(e,"onClick",3,$h),o=v(e,"closeContextMenu",3,$h),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=I_();a.__click=n,a.__keydown=[T_,n];var s=h(a,!0);g(a),k(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),fe(s,e.label)}),b(t,a),K()}st(["click","keydown"]);var js=(t,e)=>t.weight-e.weight;var Hl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Hl||{});var P_=(t,e)=>{Tc(t,e)},M_=t=>{t.preventDefault()},L_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),V_={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 Mp(t,e){q(e,!0),Q(t,V_);let[i,o]=Fe(),n=()=>C(oe,"$isLive$",i),a=()=>C(Re,"$isPiPEnabled$",i),s=()=>C(J,"$chromecastState$",i),d=()=>C(X,"$pictureInPictureApiIsActive$",i),l=()=>C(Le,"$isLooped$",i),p=()=>C(ce,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=ee(0),A=ee(0),P=Ie(),{pictureInPicture$:E}=oo(),T=zt(),R=P.ui.contextMenu.visible$,z=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,U=P.ui.t,Z=P.actions.internal.togglePictureInPicture,J=P.state.chromecastState$,oe=P.state.isLive$,ce=P.state.positionExact$,le=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Re,isActive$:X}=E,Me=m(()=>{var qe;return T.features.copyVideoLink&&((qe=P.callbacks)==null?void 0:qe.onCopyVideoLink)}),j=m(()=>r(Me)&&!n()&&!le),N=m(()=>{var qe;return!!((qe=P.callbacks)!=null&&qe.onCopyEmbedCodeClicked)}),Ve=m(()=>a()&&s()!==E_.CONNECTED&&!le),xe=m(()=>T.features.videoRotate&&!le),re=m(()=>T.showSupport&&!d()),Be=m(()=>T.features.saveTraceInfoToFile),ue=()=>{var qe;R.set(!1),(qe=e.returnFocus)==null||qe.call(e)},D=(qe,vt)=>{if(!S()||!w()||!y())return;let Xe=S().getBoundingClientRect(),$t=w().getBoundingClientRect();O(I,qe-$t.left),O(A,vt-$t.top),r(I)+Xe.width>$t.width&&O(I,$t.width-Xe.width),r(A)+Xe.height>$t.height&&O(A,$t.height-Xe.height),O(I,he(Math.max(r(I),0))),O(A,he(Math.max(r(A),0)))};je(()=>{(async()=>{if(S()&&w()&&y()){await go();let{top:vt,left:Xe,bottom:$t,right:Qt}=$(),Ye=Xe!=null?Xe:0,wt=vt!=null?vt:0,li=S().getBoundingClientRect();kc(Xe)&&!kc(Qt)&&(Ye=Qt-li.width),kc(vt)&&!kc($t)&&(wt=$t-li.height),Ye=Math.max(Ye,0),wt=Math.max(wt,0),D(Ye,wt)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{A_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Qe=()=>{let qe=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let vt=new Blob([...qe],{type:"plain/text"}),Xe=window.URL.createObjectURL(vt);qs(Xe,"vk_player_debug_info","txt")}else Ba(P.actions.internal.getDebugTextData())},at=()=>{let qe=P.actions.internal.getTraceTextData(),vt=new Blob([...qe],{type:"application/json"}),Xe=window.URL.createObjectURL(vt);qs(Xe,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},ye=async()=>{var qe;try{Z()}finally{(qe=e.returnFocus)==null||qe.call(e)}},Pe=()=>{P.actions.internal.setLooped(!l())},nt=()=>{var qe,vt;if(r(N)){let Xe=(vt=(qe=P.callbacks)==null?void 0:qe.onCopyEmbedCodeClicked)==null?void 0:vt.call(qe);Xe&&Ba(Xe)}},pt=(qe=!1)=>{var vt,Xe;if((vt=P.callbacks)!=null&&vt.onCopyVideoLink){let $t=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(qe,p());$t&&Ba($t)}},tt=m(()=>T.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Lt=m(()=>r(Me)?{id:"copy-link",weight:Tr["copy-link"],label:U("menu_copy_video_link"),onClick:()=>pt()}:void 0),rt=m(()=>r(j)?{id:"copy-link-timestamp",weight:Tr["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>pt(!0)}:void 0),ft=m(()=>r(N)?{id:"copy-embed-code",weight:Tr["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:nt}:void 0),Ht=m(()=>r(Ve)?{id:"pip",weight:Tr.pip,label:U("menu_pip"),onClick:ye}:void 0),Ut=m(()=>({id:"video-loop",weight:Tr["video-loop"],label:l()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Pe})),Ne=m(()=>r(xe)?{id:"rotate",weight:Tr.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:de}:void 0),ne=m(()=>r(re)?{id:"report",weight:Tr.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),W=m(()=>({id:"save-debug",weight:Tr["save-debug"],label:r(tt),onClick:Qe})),se=m(()=>r(Be)?{id:"save-trace",weight:Tr["save-trace"],label:U("menu_save_debug"),onClick:at}:void 0),pe=m(()=>({id:"debug-info",weight:Tr["debug-info"],label:U("menu_debug_overlay"),ariaLabel:f()?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Ce=m(()=>[r(Lt),r(rt),r(ft),r(Ht),r(Ut),r(Ne),r(ne),r(W),r(se),r(pe),..._()].filter(qe=>!!qe).sort(js));var Oe=Ue(),dt=ge(Oe);{var Vt=qe=>{var vt=L_();vt.__contextmenu=[M_],vt.__keydown=[P_,ue],bi(vt,21,()=>r(Ce),Xe=>Xe.id,(Xe,$t)=>{Pp(Xe,{get id(){return r($t).id},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get onClick(){return r($t).onClick},closeContextMenu:ue})}),g(vt),lt(vt,Xe=>S(Xe),()=>S()),k(()=>{var Xe,$t;return ot(vt,`top: ${(Xe=r(A))!=null?Xe:""}px; left: ${($t=r(I))!=null?$t:""}px;`)}),b(qe,vt)};B(dt,qe=>{u()&&qe(Vt)})}b(t,Oe),K(),o()}st(["contextmenu","keydown"]);var Ec=class{constructor(e){this.value=e,this.next=null}};var Ha=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ec(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 R_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),B_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Fl(t,e){q(e,!0),Q(t,B_);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Nt(()=>{r(o).width=s,r(o).height=a,O(n,he(r(o).getContext("2d")))});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}je(()=>{let u="";if(r(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*l,I=$>0?a*(i()[y]/$):0;p(r(n),S,0,l,I),u=I+" "+u,w--}}});var f=R_(),_=h(f);lt(_,u=>O(o,u),()=>r(o)),g(f),b(t,f),K()}import{safeStorage as yh}from"@vkontakte/videoplayer-shared/es2018";var N_=(t,e)=>{t.stopPropagation(),yh.remove(El),e.set(!1)},D_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),O_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),H_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),F_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),U_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),K_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),W_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),G_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),j_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Z_=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>'),X_={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 Ul(t,e){q(e,!0),Q(t,X_);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),a=Ie(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(he(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),u=ee(0),$=new Ha(60),w=new Ha(60),y=new Ha(60),S=ee(he([])),I=ee(he([])),A=ee(he([])),P=F("aria_label_debug_panel");Nt(()=>{yh.set(El,"true"),a.actions.internal.startLogging(),p&&(O(_,he(p.getVideoPlaybackQuality().droppedVideoFrames)),O(f,he(p.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{O(l,he(a.actions.internal.getDebugPanelData()))},500),se;return p&&(se=window.setInterval(()=>{if(p){O(_,he(p.getVideoPlaybackQuality().droppedVideoFrames));let pe=p.getVideoPlaybackQuality().totalVideoFrames;O(u,pe-r(f)),O(f,he(pe)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,he($.getValuesFromBottom())),O(I,he(w.getValuesFromBottom())),O(A,he(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),se&&clearInterval(se)}});var E=Z_();let T;De(E,"aria-label",P);var R=h(E);R.__click=[N_,s];var z=M(R,2),Y=h(z),U=M(h(Y),2),Z=h(U,!0);g(U),g(Y);var J=M(Y,2);{var oe=W=>{var se=D_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).id)),b(W,se)};B(J,W=>{r(l).id&&W(oe)})}var ce=M(J,2);{var le=W=>{var se=O_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).vsid)),b(W,se)};B(ce,W=>{r(l).vsid&&W(le)})}var Le=M(ce,2);{var Re=W=>{var se=H_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).provider)),b(W,se)};B(Le,W=>{r(l).provider&&W(Re)})}var X=M(Le,2);{var Me=W=>{var se=F_(),pe=M(h(se),2),Ce=h(pe);g(pe),g(se),k(()=>{var Oe,dt;return fe(Ce,`Video: ${r(l).videoCodec||""} ${(Oe=r(l).hdr?"(HDR)":"")!=null?Oe:""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Dl(t,e){q(e,!0),Q(t,b_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=__();let s;var d=M(h(a),2),l=h(d);{var p=_=>{var u=h_(),$=h(u);Bl($,{isActive:!0}),g(u),b(_,u)},f=_=>{var u=er();k($=>ve(u,$),[()=>or(e.duration-e.position)]),b(_,u)};R(l,_=>{o()?_(p):_(f,!1)})}g(d),g(a),k(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var Da=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 A_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as mh}from"@vkontakte/videoplayer-core/es2018";var nr=t=>{t.stopPropagation(),t.preventDefault()},y_=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()},w_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},S_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},vh=t=>t.code==="Escape",C_=t=>t.code==="ArrowLeft",Ol=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},gh=t=>{if(w_(t)){nr(t),x_(t.target);return}S_(t)&&(nr(t),y_(t.target))},xs=t=>!mh.device.isAndroid&&(t==null?void 0:t.detail)===0||mh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Oa=async(t,e,i)=>{await co(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await co(),i.set(!1),t.focus())},hh=async(t,e,i)=>{await co(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Ha=async(t,e,i)=>{var n;await co(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},_h=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Pc=(t,e)=>{gh(t),vh(t)&&(nr(t),e())},Mc=async(t,e)=>{Ol(t,["ArrowRight"])&&(nr(t),e())},bh=async(t,e,i)=>{if(gh(t),C_(t)){nr(t),e();return}vh(t)&&(nr(t),i())},Fa=(t,e)=>{Ol(t)&&(nr(t),e())},$h=(t,e,i)=>{if(Ol(t))nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),nr(t);return}o==="ArrowRight"&&!e&&(i(!0),nr(t))}},yh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},xh=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 Lc,isValidURL as P_}from"@vkontakte/videoplayer-shared/es2018";var Cr={"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 wh}from"@vkontakte/videoplayer-shared/es2018";var I_=(t,e)=>{Fa(t,()=>e())},k_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),E_={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 Bp(t,e){q(e,!0),Q(t,E_);let i=v(e,"onClick",3,wh),o=v(e,"closeContextMenu",3,wh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=k_();a.__click=n,a.__keydown=[I_,n];var s=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),ve(s,e.label)}),b(t,a),K()}st(["click","keydown"]);var Xs=(t,e)=>t.weight-e.weight;var Hl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Hl||{});var M_=(t,e)=>{Pc(t,e)},L_=t=>{t.preventDefault()},V_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),R_={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 Dp(t,e){q(e,!0),Q(t,R_);let[i,o]=Fe(),n=()=>C(oe,"$isLive$",i),a=()=>C(Me,"$isPiPEnabled$",i),s=()=>C(X,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),p=()=>C(pe,"$positionExact$",i),f=()=>C(U,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=ee(0),A=ee(0),P=we(),{pictureInPicture$:E}=io(),T=qt(),V=P.ui.contextMenu.visible$,U=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,F=P.ui.t,j=P.actions.internal.togglePictureInPicture,X=P.state.chromecastState$,oe=P.state.isLive$,pe=P.state.positionExact$,le=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Me,isActive$:J}=E,Le=m(()=>{var je;return T.features.copyVideoLink&&((je=P.callbacks)==null?void 0:je.onCopyVideoLink)}),Z=m(()=>r(Le)&&!n()&&!le),B=m(()=>{var je;return!!((je=P.callbacks)!=null&&je.onCopyEmbedCodeClicked)}),Re=m(()=>a()&&s()!==A_.CONNECTED&&!le),ne=m(()=>T.features.videoRotate&&!le),ke=m(()=>T.showSupport&&!d()),Ne=m(()=>T.features.saveTraceInfoToFile),fe=()=>{var je;V.set(!1),(je=e.returnFocus)==null||je.call(e)},D=(je,ut)=>{if(!S()||!w()||!y())return;let Xe=S().getBoundingClientRect(),Et=w().getBoundingClientRect();O(I,je-Et.left),O(A,ut-Et.top),r(I)+Xe.width>Et.width&&O(I,Et.width-Xe.width),r(A)+Xe.height>Et.height&&O(A,Et.height-Xe.height),O(I,me(Math.max(r(I),0))),O(A,me(Math.max(r(A),0)))};Ke(()=>{(async()=>{if(S()&&w()&&y()){await co();let{top:ut,left:Xe,bottom:Et,right:ni}=$(),Qe=Xe!=null?Xe:0,it=ut!=null?ut:0,Jt=S().getBoundingClientRect();Lc(Xe)&&!Lc(ni)&&(Qe=ni-Jt.width),Lc(ut)&&!Lc(Et)&&(it=Et-Jt.height),Qe=Math.max(Qe,0),it=Math.max(it,0),D(Qe,it)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{P_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ge=()=>{let je=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let ut=new Blob([...je],{type:"plain/text"}),Xe=window.URL.createObjectURL(ut);Ws(Xe,"vk_player_debug_info","txt")}else Da(P.actions.internal.getDebugTextData())},lt=()=>{let je=P.actions.internal.getTraceTextData(),ut=new Blob([...je],{type:"application/json"}),Xe=window.URL.createObjectURL(ut);Ws(Xe,"vk_player_trace_info","json")},Ae=()=>{U.set(!0)},$e=async()=>{var je;try{j()}finally{(je=e.returnFocus)==null||je.call(e)}},Pe=()=>{P.actions.internal.setLooped(!l())},nt=()=>{var je,ut;if(r(B)){let Xe=(ut=(je=P.callbacks)==null?void 0:je.onCopyEmbedCodeClicked)==null?void 0:ut.call(je);Xe&&Da(Xe)}},mt=(je=!1)=>{var ut,Xe;if((ut=P.callbacks)!=null&&ut.onCopyVideoLink){let Et=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(je,p());Et&&Da(Et)}},at=m(()=>T.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),It=m(()=>r(Le)?{id:"copy-link",weight:Cr["copy-link"],label:F("menu_copy_video_link"),onClick:()=>mt()}:void 0),rt=m(()=>r(Z)?{id:"copy-link-timestamp",weight:Cr["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>mt(!0)}:void 0),vt=m(()=>r(B)?{id:"copy-embed-code",weight:Cr["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:nt}:void 0),Ut=m(()=>r(Re)?{id:"pip",weight:Cr.pip,label:F("menu_pip"),onClick:$e}:void 0),Qt=m(()=>({id:"video-loop",weight:Cr["video-loop"],label:l()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Pe})),Be=m(()=>r(ne)?{id:"rotate",weight:Cr.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:de}:void 0),re=m(()=>r(ke)?{id:"report",weight:Cr.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),W=m(()=>({id:"save-debug",weight:Cr["save-debug"],label:r(at),onClick:Ge})),se=m(()=>r(Ne)?{id:"save-trace",weight:Cr["save-trace"],label:F("menu_save_debug"),onClick:lt}:void 0),he=m(()=>({id:"debug-info",weight:Cr["debug-info"],label:F("menu_debug_overlay"),ariaLabel:f()?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Se=m(()=>[r(It),r(rt),r(vt),r(Ut),r(Qt),r(Be),r(re),r(W),r(se),r(he),..._()].filter(je=>!!je).sort(Xs));var De=qe(),ct=ue(De);{var Kt=je=>{var ut=V_();ut.__contextmenu=[L_],ut.__keydown=[M_,fe],_i(ut,21,()=>r(Se),Xe=>Xe.id,(Xe,Et)=>{Bp(Xe,{get id(){return r(Et).id},get label(){return r(Et).label},get ariaLabel(){return r(Et).ariaLabel},get onClick(){return r(Et).onClick},closeContextMenu:fe})}),g(ut),dt(ut,Xe=>S(Xe),()=>S()),k(()=>{var Xe,Et;return et(ut,`top: ${(Xe=r(A))!=null?Xe:""}px; left: ${(Et=r(I))!=null?Et:""}px;`)}),b(je,ut)};R(ct,je=>{u()&&je(Kt)})}b(t,De),K(),o()}st(["contextmenu","keydown"]);var Vc=class{constructor(e){this.value=e,this.next=null}};var Ua=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vc(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 N_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),B_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Fl(t,e){q(e,!0),Q(t,B_);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Ot(()=>{r(o).width=s,r(o).height=a,O(n,me(r(o).getContext("2d")))});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}Ke(()=>{let u="";if(r(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*l,I=$>0?a*(i()[y]/$):0;p(r(n),S,0,l,I),u=I+" "+u,w--}}});var f=N_(),_=h(f);dt(_,u=>O(o,u),()=>r(o)),g(f),b(t,f),K()}import{safeStorage as Sh}from"@vkontakte/videoplayer-shared/es2018";var D_=(t,e)=>{t.stopPropagation(),Sh.remove(El),e.set(!1)},O_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),H_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),F_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),U_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),K_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),W_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),G_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),j_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),X_=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>'),J_={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 Ul(t,e){q(e,!0),Q(t,J_);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),a=we(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(me(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),u=ee(0),$=new Ua(60),w=new Ua(60),y=new Ua(60),S=ee(me([])),I=ee(me([])),A=ee(me([])),P=H("aria_label_debug_panel");Ot(()=>{Sh.set(El,"true"),a.actions.internal.startLogging(),p&&(O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames)),O(f,me(p.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{O(l,me(a.actions.internal.getDebugPanelData()))},500),se;return p&&(se=window.setInterval(()=>{if(p){O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames));let he=p.getVideoPlaybackQuality().totalVideoFrames;O(u,he-r(f)),O(f,me(he)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,me($.getValuesFromBottom())),O(I,me(w.getValuesFromBottom())),O(A,me(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),se&&clearInterval(se)}});var E=X_();let T;Oe(E,"aria-label",P);var V=h(E);V.__click=[D_,s];var U=M(V,2),Y=h(U),F=M(h(Y),2),j=h(F,!0);g(F),g(Y);var X=M(Y,2);{var oe=W=>{var se=O_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).id)),b(W,se)};R(X,W=>{r(l).id&&W(oe)})}var pe=M(X,2);{var le=W=>{var se=H_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).vsid)),b(W,se)};R(pe,W=>{r(l).vsid&&W(le)})}var Ve=M(pe,2);{var Me=W=>{var se=F_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).provider)),b(W,se)};R(Ve,W=>{r(l).provider&&W(Me)})}var J=M(Ve,2);{var Le=W=>{var se=U_(),he=M(h(se),2),Se=h(he);g(he),g(se),k(()=>{var De,ct;return ve(Se,`Video: ${r(l).videoCodec||""} ${(De=r(l).hdr?"(HDR)":"")!=null?De:""}
142
142
  &
143
- Audio: ${r(l).audioCodec||""} ${(dt=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?dt:""}`)}),b(W,se)};B(X,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Me)})}var j=M(X,2);{var N=W=>{var se=U_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).viewport)),b(W,se)};B(j,W=>{r(l).viewport&&W(N)})}var Ve=M(j,2);{var xe=W=>{var se=z_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).videoSize)),b(W,se)};B(Ve,W=>{r(l).videoSize&&W(xe)})}var re=M(Ve,2);{var Be=W=>{var se=q_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(()=>fe(Ce,r(l).cdn)),b(W,se)};B(re,W=>{r(l).cdn&&W(Be)})}var ue=M(re,2);{var D=W=>{var se=K_(),pe=M(h(se),2),Ce=h(pe);g(pe),g(se),k(()=>{var Oe;return fe(Ce,`${(Oe=r(l).volume)!=null?Oe:""} %`)}),b(W,se)};B(ue,W=>{r(l).volume&&W(D)})}var de=M(ue,2);{var Ee=W=>{var se=W_(),pe=M(h(se),2),Ce=h(pe);g(pe),g(se),k(Oe=>fe(Ce,`${Oe!=null?Oe:""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,se)};B(de,W=>{r(l).buffer&&W(Ee)})}var Qe=M(de,2);{var at=W=>{var se=Q_(),pe=M(h(se),2),Ce=h(pe);g(pe),g(se),k(Oe=>fe(Ce,`${Oe!=null?Oe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,se)};B(Qe,W=>{r(l).liveLatency&&W(at)})}var Ae=M(Qe,2);{var ye=W=>{var se=G_(),pe=M(h(se),2),Ce=h(pe,!0);g(pe),g(se),k(Oe=>fe(Ce,Oe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Oe})=>Oe).map(({value:Oe,title:dt})=>`${dt} ${((Oe!=null?Oe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,se)};B(Ae,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W(ye)})}var Pe=M(Ae,2),nt=M(h(Pe),2),pt=h(nt);g(nt),g(Pe);var tt=M(Pe,2);{var Lt=W=>{var se=Y_(),pe=M(h(se),2);Fl(pe,{get values(){return r(I)}});var Ce=M(pe,2),Oe=h(Ce);g(Ce),g(se),k(dt=>fe(Oe,`${dt!=null?dt:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,se)};B(tt,W=>{r(l).speed&&W(Lt)})}var rt=M(tt,2);{var ft=W=>{var se=j_(),pe=M(h(se),2);Fl(pe,{get values(){return r(A)}});var Ce=M(pe,2),Oe=h(Ce);g(Ce),g(se),k(dt=>fe(Oe,`${dt!=null?dt:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,se)};B(rt,W=>{r(l).bitrate&&W(ft)})}var Ht=M(rt,2),Ut=M(h(Ht),2);Fl(Ut,{get values(){return r(S)}});var Ne=M(Ut,2),ne=h(Ne,!0);g(Ne),g(Ht),g(z),g(E),k(W=>{var se,pe;T=te(E,1,"container svelte-4deykz",null,T,W),fe(Z,r(l).version),fe(pt,`${(se=r(_))!=null?se:""} / ${(pe=r(f))!=null?pe:""} frames`),fe(ne,r(u))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}st(["click"]);import{noop as J_}from"@vkontakte/videoplayer-shared/es2018";var eb=(t,e)=>{t.stopPropagation(),e()()},tb=L('<div class="close svelte-1ome55p"></div>'),ib={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 Zs(t,e){q(e,!0),Q(t,ib);let i=v(e,"onClick",3,J_);var o=tb();o.__click=[eb,i],b(t,o),K()}st(["click"]);import{noop as ob}from"@vkontakte/videoplayer-shared/es2018";var nb=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>'),rb={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){q(e,!0),Q(t,rb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,ob),n=5e3,a=ee(void 0),s,d,l=ee(0),p;je(()=>{i()&&(d=Date.now(),O(l,he(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<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*p),s==null||s.stroke(),O(l,he(requestAnimationFrame(_)))):o()()};Nt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),_n(()=>{f()});var u=nb(),$=h(u);lt($,w=>O(a,w),()=>r(a)),_e(2),g(u),b(t,u),K()}var sb=(t,e,i)=>{e(!1),i()},ab=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),lb={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 Lp(t,e){q(e,!0),Q(t,lb);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),I=ge(S);{var A=P=>{var E=ab(),T=M(ge(E),2),R=h(T),z=h(R),Y=h(z,!0);g(z);var U=M(z,2);Zs(U,{onClick:y}),g(R);var Z=M(R,2);Z.__click=[sb,p,_];var J=h(Z),oe=h(J),ce=h(oe);let le;var Le=M(ce,2);{var Re=N=>{let Ve=m(()=>a()&&n());zl(N,{get isRunning(){return r(Ve)},onTimerEnded:w})};B(Le,N=>{n()&&N(Re)})}g(oe),g(J);var X=M(J,2),Me=h(X),j=h(Me,!0);g(Me),g(X),g(Z),g(T),k((N,Ve)=>{fe(Y,N),ot(oe,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-jfbaax",null,le,Ve),fe(j,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};B(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}st(["click"]);import{PlaybackState as Xs}from"@vkontakte/videoplayer-core/es2018";import{checkNever as cb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as bn}from"@vkontakte/videoplayer-statistics/es2018";var Vp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Rp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Ac=(t,e,i)=>{let o=Vp(e,i);e<1&&t.actions.internal.setVolume(o)},Pc=(t,e,i)=>{let o=Rp(e,i);e>0&&t.actions.internal.setVolume(o)};var xs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var ub=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),pb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Bp(t,e){var Ut,Ne;q(e,!0),Q(t,pb);let[i,o]=Fe(),n=()=>C(Y,"$playbackState$",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(ce,"$disabledControls$",i),d=()=>C(Z,"$positionExact$",i),l=()=>C(J,"$duration$",i),p=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(X,"$availablePlaybackRates$",i),u=()=>C(Re,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(Qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(xe,"$isEnded$",i),S=()=>C(le,"$muted$",i),I=()=>C(Le,"$currentSubtitle$",i),A=()=>C(re,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Ie(),R=zt(),z=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,U=T.ads.playbackState,Z=T.state.positionExact$,J=T.state.duration$,oe=T.state.volume$,ce=T.ui.controls.disabledControls$,le=T.state.muted$,Le=T.state.currentSubtitle$,Re=T.state.currentPlaybackRate$,X=T.state.availablePlaybackRates$,Me=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Ve=T.ui.contextMenu.position$,xe=T.state.isEnded$,re=T.ui.overlayContainer$,Be=(Ut=T.callbacks)==null?void 0:Ut.onAudioDoesNotExistHint,ue=(Ne=T.callbacks)==null?void 0:Ne.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=oo(),at=0,Ae=!0,ye=ee(void 0),Pe=()=>{var ne;return(ne=r(ye))==null?void 0:ne.focus()},nt=ne=>(ne!==Ae&&(Ae=ne,at=0),at+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*at)/1e3),pt=ne=>{var $t,Qt;let W=ne.target,se=($t=W==null?void 0:W.getAttribute("role"))==null?void 0:$t.includes("menuitem"),pe=W.classList.contains("btn"),Ce=ne.code;if(pe&&Ce==="Space")return;let Oe=Sg.has(Ce);if(se&&Oe)return;let dt=!wg.has(Ce);if(ne.ctrlKey&&dt||ne.altKey&&dt||ne.metaKey)return;let Vt=se&&Ce==="Escape";Cg.has(Ce)||Vt||e.hideContextMenu();let qe=n()===Xs.PLAYING||n()===Xs.PAUSED,vt=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!vt&&!s().has("TIMELINE");if(qe||vt)switch(z({message:`key down, code: ${Ce}`}),Ce){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(ne.ctrlKey||ne.altKey){let Ye=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ye),Ye&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ye.text}),ne.preventDefault()}else{let Ye=ne.shiftKey?nt(!1):R.controls.seekStepKeyboard/1e3,wt=Math.max(d()-Ye,0);d()>0&&(T.actions.internal.seekTime(wt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ye.toString()}),ne.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(ne.ctrlKey||ne.altKey){let Ye=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ye),Ye&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ye.text}),ne.preventDefault()}else{let Ye=ne.shiftKey?nt(!0):R.controls.seekStepKeyboard/1e3,wt=Math.min(d()+Ye,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(wt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ye.toString()}),ne.preventDefault())}break}case"ArrowUp":{if(xs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})){let Ye=f(),wt=R.controls.volumeStepKeyboard,li=Ye<=1;if(Ac(T,Ye,wt),li){let oi=Math.round(Vp(Ye,wt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:oi}})}}ne.preventDefault();break}case"ArrowDown":{if(xs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})){let Ye=f(),wt=R.controls.volumeStepKeyboard,li=Ye>=0;if(Pc(T,Ye,wt),li){let oi=Math.round(Rp(Ye,wt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:oi}})}}ne.preventDefault();break}case"Comma":{if(ne.shiftKey){T.actions.internal.decrementPlaybackRate();let Ye=_().find(wt=>wt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ye==null?void 0:Ye.displayValue}),ne.preventDefault()}else{if(vt||n()!==Xs.PAUSED)break;let Ye=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ye,bn.DOUBLE_TAP),ne.preventDefault())}break}case"Period":{if(ne.shiftKey){T.actions.internal.incrementPlaybackRate();let Ye=_().find(wt=>wt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ye==null?void 0:Ye.displayValue}),ne.preventDefault()}else{if(vt||n()!==Xs.PAUSED)break;let Ye=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ye,bn.DOUBLE_TAP),ne.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ye="PLAY";n()===Xs.PAUSED?Ye="PAUSE":y()&&(Ye="REPLAY"),e.showHotKeyHelpers({type:Ye})}ne.preventDefault();break;case"KeyM":{xs({isAudioDisabled:de,audioDisabledHintCallback:ue,isAudioAvailable:p(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),ne.preventDefault();break}case"KeyF":e.toggleFullscreen(),ne.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Qt=I())==null?void 0:Qt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ne.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),ne.preventDefault();break;case"Digit1":case"Numpad1":if(ne.shiftKey){let Ye=bh(A());Ve.set(Ye),j.set(W),Me.set(!0),N.set(!0),ne.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,bn.DOUBLE_TAP),ne.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,bn.DOUBLE_TAP),ne.preventDefault();break;case"Slash":{ne.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),ne.preventDefault());break}case"KeyN":ne.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":ne.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ne.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:cb(Ce);break}},tt=ne=>{let W=ne.code;if(ne.ctrlKey||ne.altKey||ne.metaKey)return;let se=n()===Xs.PLAYING||n()===Xs.PAUSED,pe=e.isAds&&(a()==="paused"||a()==="playing");if(se||pe)switch(W){case"ShiftLeft":case"ShiftRight":at=0;break}},Lt=F("aria_label_video_player");var rt=ub();rt.__keyup=tt,rt.__keydown=pt,De(rt,"aria-label",Lt);var ft=h(rt);me(ft,()=>{var ne;return(ne=e.children)!=null?ne:ie}),g(rt),lt(rt,ne=>O(ye,ne),()=>r(ye)),b(t,rt);var Ht=K({focus:Pe});return o(),Ht}st(["keyup","keydown"]);var fb=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>'),mb={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);}
143
+ Audio: ${r(l).audioCodec||""} ${(ct=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ct:""}`)}),b(W,se)};R(J,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Le)})}var Z=M(J,2);{var B=W=>{var se=z_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).viewport)),b(W,se)};R(Z,W=>{r(l).viewport&&W(B)})}var Re=M(Z,2);{var ne=W=>{var se=q_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).videoSize)),b(W,se)};R(Re,W=>{r(l).videoSize&&W(ne)})}var ke=M(Re,2);{var Ne=W=>{var se=K_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(()=>ve(Se,r(l).cdn)),b(W,se)};R(ke,W=>{r(l).cdn&&W(Ne)})}var fe=M(ke,2);{var D=W=>{var se=W_(),he=M(h(se),2),Se=h(he);g(he),g(se),k(()=>{var De;return ve(Se,`${(De=r(l).volume)!=null?De:""} %`)}),b(W,se)};R(fe,W=>{r(l).volume&&W(D)})}var de=M(fe,2);{var Ee=W=>{var se=Q_(),he=M(h(se),2),Se=h(he);g(he),g(se),k(De=>ve(Se,`${De!=null?De:""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,se)};R(de,W=>{r(l).buffer&&W(Ee)})}var Ge=M(de,2);{var lt=W=>{var se=G_(),he=M(h(se),2),Se=h(he);g(he),g(se),k(De=>ve(Se,`${De!=null?De:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,se)};R(Ge,W=>{r(l).liveLatency&&W(lt)})}var Ae=M(Ge,2);{var $e=W=>{var se=Y_(),he=M(h(se),2),Se=h(he,!0);g(he),g(se),k(De=>ve(Se,De),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:De})=>De).map(({value:De,title:ct})=>`${ct} ${((De!=null?De:0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,se)};R(Ae,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W($e)})}var Pe=M(Ae,2),nt=M(h(Pe),2),mt=h(nt);g(nt),g(Pe);var at=M(Pe,2);{var It=W=>{var se=j_(),he=M(h(se),2);Fl(he,{get values(){return r(I)}});var Se=M(he,2),De=h(Se);g(Se),g(se),k(ct=>ve(De,`${ct!=null?ct:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,se)};R(at,W=>{r(l).speed&&W(It)})}var rt=M(at,2);{var vt=W=>{var se=Z_(),he=M(h(se),2);Fl(he,{get values(){return r(A)}});var Se=M(he,2),De=h(Se);g(Se),g(se),k(ct=>ve(De,`${ct!=null?ct:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,se)};R(rt,W=>{r(l).bitrate&&W(vt)})}var Ut=M(rt,2),Qt=M(h(Ut),2);Fl(Qt,{get values(){return r(S)}});var Be=M(Qt,2),re=h(Be,!0);g(Be),g(Ut),g(U),g(E),k(W=>{var se,he;T=te(E,1,"container svelte-4deykz",null,T,W),ve(j,r(l).version),ve(mt,`${(se=r(_))!=null?se:""} / ${(he=r(f))!=null?he:""} frames`),ve(re,r(u))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}st(["click"]);import{noop as eb}from"@vkontakte/videoplayer-shared/es2018";var tb=(t,e)=>{t.stopPropagation(),e()()},ib=L('<div class="close svelte-1ome55p"></div>'),ob={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 Js(t,e){q(e,!0),Q(t,ob);let i=v(e,"onClick",3,eb);var o=ib();o.__click=[tb,i],b(t,o),K()}st(["click"]);import{noop as nb}from"@vkontakte/videoplayer-shared/es2018";var rb=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>'),sb={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){q(e,!0),Q(t,sb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,nb),n=5e3,a=ee(void 0),s,d,l=ee(0),p;Ke(()=>{i()&&(d=Date.now(),O(l,me(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<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*p),s==null||s.stroke(),O(l,me(requestAnimationFrame(_)))):o()()};Ot(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),bn(()=>{f()});var u=rb(),$=h(u);dt($,w=>O(a,w),()=>r(a)),_e(2),g(u),b(t,u),K()}var ab=(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),db={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 Op(t,e){q(e,!0),Q(t,db);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=we(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),I=ue(S);{var A=P=>{var E=lb(),T=M(ue(E),2),V=h(T),U=h(V),Y=h(U,!0);g(U);var F=M(U,2);Js(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[ab,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Me=B=>{let Re=m(()=>a()&&n());zl(B,{get isRunning(){return r(Re)},onTimerEnded:w})};R(Ve,B=>{n()&&B(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(j),g(T),k((B,Re)=>{ve(Y,B),et(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-jfbaax",null,le,Re),ve(Z,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}st(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as ub}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as $n}from"@vkontakte/videoplayer-statistics/es2018";var Hp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Fp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Rc=(t,e,i)=>{let o=Hp(e,i);e<1&&t.actions.internal.setVolume(o)},Nc=(t,e,i)=>{let o=Fp(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 pb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),fb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Up(t,e){var Qt,Be;q(e,!0),Q(t,fb);let[i,o]=Fe(),n=()=>C(Y,"$playbackState$",i),a=()=>C(F,"$adPlaybackState",i),s=()=>C(pe,"$disabledControls$",i),d=()=>C(j,"$positionExact$",i),l=()=>C(X,"$duration$",i),p=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),u=()=>C(Me,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(Ge,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(ne,"$isEnded$",i),S=()=>C(le,"$muted$",i),I=()=>C(Ve,"$currentSubtitle$",i),A=()=>C(ke,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=we(),V=qt(),U=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,F=T.ads.playbackState,j=T.state.positionExact$,X=T.state.duration$,oe=T.state.volume$,pe=T.ui.controls.disabledControls$,le=T.state.muted$,Ve=T.state.currentSubtitle$,Me=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,Z=T.ui.contextMenu.lastActiveElem$,B=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,ne=T.state.isEnded$,ke=T.ui.overlayContainer$,Ne=(Qt=T.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,fe=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ge}=io(),lt=0,Ae=!0,$e=ee(void 0),Pe=()=>{var re;return(re=r($e))==null?void 0:re.focus()},nt=re=>(re!==Ae&&(Ae=re,lt=0),lt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*lt)/1e3),mt=re=>{var Et,ni;let W=re.target,se=(Et=W==null?void 0:W.getAttribute("role"))==null?void 0:Et.includes("menuitem"),he=W.classList.contains("btn"),Se=re.code;if(he&&Se==="Space")return;let De=Ig.has(Se);if(se&&De)return;let ct=!Tg.has(Se);if(re.ctrlKey&&ct||re.altKey&&ct||re.metaKey)return;let Kt=se&&Se==="Escape";kg.has(Se)||Kt||e.hideContextMenu();let je=n()===ea.PLAYING||n()===ea.PAUSED,ut=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!ut&&!s().has("TIMELINE");if(je||ut)switch(U({message:`key down, code: ${Se}`}),Se){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Qe=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Qe),Qe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Qe.text}),re.preventDefault()}else{let Qe=re.shiftKey?nt(!1):V.controls.seekStepKeyboard/1e3,it=Math.max(d()-Qe,0);d()>0&&(T.actions.internal.seekTime(it,$n.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Qe.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Qe=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Qe),Qe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Qe.text}),re.preventDefault()}else{let Qe=re.shiftKey?nt(!0):V.controls.seekStepKeyboard/1e3,it=Math.min(d()+Qe,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(it,$n.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Qe.toString()}),re.preventDefault())}break}case"ArrowUp":{if(ws({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Qe=f(),it=V.controls.volumeStepKeyboard,Jt=Qe<=1;if(Rc(T,Qe,it),Jt){let ki=Math.round(Hp(Qe,it)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ki}})}}re.preventDefault();break}case"ArrowDown":{if(ws({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Qe=f(),it=V.controls.volumeStepKeyboard,Jt=Qe>=0;if(Nc(T,Qe,it),Jt){let ki=Math.round(Fp(Qe,it)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ki}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let Qe=_().find(it=>it.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Qe==null?void 0:Qe.displayValue}),re.preventDefault()}else{if(ut||n()!==ea.PAUSED)break;let Qe=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Qe,$n.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let Qe=_().find(it=>it.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Qe==null?void 0:Qe.displayValue}),re.preventDefault()}else{if(ut||n()!==ea.PAUSED)break;let Qe=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Qe,$n.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Qe="PLAY";n()===ea.PAUSED?Qe="PAUSE":y()&&(Qe="REPLAY"),e.showHotKeyHelpers({type:Qe})}re.preventDefault();break;case"KeyM":{ws({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),re.preventDefault();break}case"KeyF":e.toggleFullscreen(),re.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ni=I())==null?void 0:ni.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),re.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),re.preventDefault();break;case"Digit1":case"Numpad1":if(re.shiftKey){let Qe=xh(A());Re.set(Qe),Z.set(W),Le.set(!0),B.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,$n.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,$n.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":re.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":re.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:ub(Se);break}},at=re=>{let W=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let se=n()===ea.PLAYING||n()===ea.PAUSED,he=e.isAds&&(a()==="paused"||a()==="playing");if(se||he)switch(W){case"ShiftLeft":case"ShiftRight":lt=0;break}},It=H("aria_label_video_player");var rt=pb();rt.__keyup=at,rt.__keydown=mt,Oe(rt,"aria-label",It);var vt=h(rt);ge(vt,()=>{var re;return(re=e.children)!=null?re:ie}),g(rt),dt(rt,re=>O($e,re),()=>r($e)),b(t,rt);var Ut=K({focus:Pe});return o(),Ut}st(["keyup","keydown"]);var mb=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>'),vb={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);}
144
144
 
145
145
  @keyframes svelte-1dbnjb1-dot_animation {
146
146
  0% {
@@ -153,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
153
153
  opacity: 0.2;
154
154
  }
155
155
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
156
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Js(t,e){Q(t,mb);let i=v(e,"style",3,"");var o=fb();k(()=>ot(o,i())),b(t,o)}var vb=be('<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 Np(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=vb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as Fa}from"@vkontakte/videoplayer-shared/es2018";var gb=t=>{t.stopPropagation()},hb=L("<button><!></button>"),_b={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;}
156
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ta(t,e){Q(t,vb);let i=v(e,"style",3,"");var o=mb();k(()=>et(o,i())),b(t,o)}var gb=be('<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 zp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=gb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as za}from"@vkontakte/videoplayer-shared/es2018";var hb=t=>{t.stopPropagation()},_b=L("<button><!></button>"),bb={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;}
157
157
 
158
158
  /* \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;}
159
159
 
@@ -161,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
161
161
  /* mobile */
162
162
  /* 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,
163
163
  .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;
164
- /* \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 kt(t,e){q(e,!0),Q(t,_b);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),u=v(e,"click",3,Fa),$=v(e,"focus",3,Fa),w=v(e,"blur",3,Fa),y=m(()=>u()===Fa?null:E=>{E.stopPropagation(),u()(E)}),S=m(()=>$()===Fa?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===Fa?null:E=>{E.preventDefault(),w()()});var A=hb();A.__pointerdown=[gb],A.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var P=h(A);me(P,()=>{var E;return(E=e.children)!=null?E:ie}),g(A),lt(A,E=>l(E),()=>l()),k(()=>{var E,T,R,z,Y,U,Z;te(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),ot(A,o()||null),A.disabled=(T=n())!=null?T:null,De(A,"aria-hidden",(R=s())!=null?R:null),De(A,"aria-label",(z=d())!=null?z:null),De(A,"aria-keyshortcuts",(Y=p())!=null?Y:null),De(A,"aria-expanded",(U=f())!=null?U:null),De(A,"data-testid",(Z=a())!=null?Z:null),De(A,"tabindex",_())}),It("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),It("blur",A,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,A),K()}st(["pointerdown","click"]);var bb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),$b=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>'),yb={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 Dp(t,e){q(e,!0),Q(t,yb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=$b(),s=h(a),d=h(s);{var l=u=>{var $=bb(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=A=>{kt(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{Np(P,{})},$$slots:{default:!0}})};B(S,A=>{o()&&A(I)})}g($),k(()=>fe(y,e.title)),b(u,$)};B(d,u=>{i()&&u(l)})}var p=M(d,2),f=h(p),_=h(f);me(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),g(p),g(s),g(a),b(t,a),K()}var xb=new Set(["BR"]),xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;xb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var wb=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>'),Sb=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>'),Cb=L('<div class="hot-key-map svelte-quklnq"></div>'),Tb={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,
164
+ /* \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 Pt(t,e){q(e,!0),Q(t,bb);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),u=v(e,"click",3,za),$=v(e,"focus",3,za),w=v(e,"blur",3,za),y=m(()=>u()===za?null:E=>{E.stopPropagation(),u()(E)}),S=m(()=>$()===za?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===za?null:E=>{E.preventDefault(),w()()});var A=_b();A.__pointerdown=[hb],A.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var P=h(A);ge(P,()=>{var E;return(E=e.children)!=null?E:ie}),g(A),dt(A,E=>l(E),()=>l()),k(()=>{var E,T,V,U,Y,F,j;te(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),et(A,o()||null),A.disabled=(T=n())!=null?T:null,Oe(A,"aria-hidden",(V=s())!=null?V:null),Oe(A,"aria-label",(U=d())!=null?U:null),Oe(A,"aria-keyshortcuts",(Y=p())!=null?Y:null),Oe(A,"aria-expanded",(F=f())!=null?F:null),Oe(A,"data-testid",(j=a())!=null?j:null),Oe(A,"tabindex",_())}),kt("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),kt("blur",A,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,A),K()}st(["pointerdown","click"]);var $b=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),yb=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>'),xb={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 qp(t,e){q(e,!0),Q(t,xb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=yb(),s=h(a),d=h(s);{var l=u=>{var $=$b(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=A=>{Pt(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{zp(P,{})},$$slots:{default:!0}})};R(S,A=>{o()&&A(I)})}g($),k(()=>ve(y,e.title)),b(u,$)};R(d,u=>{i()&&u(l)})}var p=M(d,2),f=h(p),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),g(p),g(s),g(a),b(t,a),K()}var wb=new Set(["BR"]),Ch=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;wb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Sb=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>'),Cb=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>'),Tb=L('<div class="hot-key-map svelte-quklnq"></div>'),Ib={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,
165
165
  .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,
166
- .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 Op(t,e){q(e,!1),Q(t,Tb);let[i,o]=Fe(),n=()=>C(s,"$data",i),a=Ie(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Cr(),Dp(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var _=Cb();bi(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Sb(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);bi(P,5,y,({description:E,value:T})=>T,(E,T)=>{let R=()=>r(T).description,z=()=>r(T).value;var Y=wb(),U=h(Y),Z=h(U);Sl(Z,()=>xh(R()),!1,!1),g(U);var J=M(U,2),oe=h(J,!0);g(J),g(Y),k(()=>fe(oe,z())),b(E,Y)}),g(P),g(S),k(()=>fe(A,w())),b(u,S)}),g(_),b(p,_)},$$slots:{default:!0}}),K(),o()}import{noop as Wh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Uh,PlaybackState as Tf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Ib=L('<div class="pillow svelte-1oe0j8n"><!></div>'),kb={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 Hp(t,e){Q(t,kb);var i=Ib(),o=h(i);me(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as Wl}from"@vkontakte/videoplayer-shared/es2018";var Eb=be('<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 Fp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Eb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Ab=be('<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 Up(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ab();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Pb=be('<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 zp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Mb=be('<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 ql(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Lb=be('<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 Kl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Mc=t=>{switch(t){case Wl.Q_720P:return zp;case Wl.Q_1080P:return ql;case Wl.Q_1440P:return Kl;case Wl.Q_2160P:return Fp;case Wl.Q_4320P:return Up}};var Vb=be('<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 qp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var Rb=be('<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 Kp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var Bb=L('<div aria-hidden="true"><!> <!></div>'),Nb={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 Ql(t,e){q(e,!0),Q(t,Nb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Mc(o())),a=m(()=>!!r(n)&&[ql,Kl].includes(r(n)));var s=Ue(),d=ge(s);{var l=f=>{qp(f,{})},p=f=>{var _=Bb();let u;var $=h(_);{var w=I=>{Hp(I,{children:(A,P)=>{var E=Ue(),T=ge(E);Ai(T,()=>r(n),(R,z)=>{z(R,{})}),b(A,E)},$$slots:{default:!0}})};B($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Kp(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>u=te(_,1,"icon svelte-8t5w85",null,u,I),[()=>({triple:r(a)})]),b(f,_)};B(d,f=>{i()?f(l):f(p,!1)})}b(t,s),K()}var Db=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Ob={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ua(t,e){q(e,!0),Q(t,Ob);let[i,o]=Fe(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(p,"$currentQuality",i),l=Ie(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);je(()=>{n()&&ht(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function I(P){let E=ys(P);a()?u():_(E,go)}let A=m(()=>a()?"opened":"");kt(t,{get className(){return r(A)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,he(P))},children:(P,E)=>{var T=Db(),R=h(T);Ql(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),K(),o()}var Hb=be('<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 Wp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var Fb=be('<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 Gl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Qp(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));kt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyC},children:(s,d)=>{var l=Ue(),p=ge(l);{var f=u=>{Wp(u,{})},_=u=>{Gl(u,{})};B(p,u=>{i()?u(f):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var Ub=L('<span class="duration svelte-sz9er7"> </span>'),zb=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),qb={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 Yl(t,e){q(e,!0),Q(t,qb);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>nr(e.duration)),s=m(()=>nr(e.position));var d=zb();let l;var p=h(d),f=h(p,!0);g(p);var _=M(p,2);{var u=$=>{var w=Ub(),y=h(w,!0);g(w),k(()=>fe(y,r(a))),b($,w)};B(_,$=>{o()&&$(u)})}g(d),lt(d,$=>n($),()=>n()),k($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),fe(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}import{noop as Lc}from"@vkontakte/videoplayer-shared/es2018";var Kb=be('<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>'),Wb={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),
166
+ .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 Kp(t,e){q(e,!1),Q(t,Ib);let[i,o]=Fe(),n=()=>C(s,"$data",i),a=we(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Sr(),qp(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var _=Tb();_i(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Cb(),I=h(S),A=h(I,!0);g(I);var P=M(I,2);_i(P,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,U=()=>r(T).value;var Y=Sb(),F=h(Y),j=h(F);Sl(j,()=>Ch(V()),!1,!1),g(F);var X=M(F,2),oe=h(X,!0);g(X),g(Y),k(()=>ve(oe,U())),b(E,Y)}),g(P),g(S),k(()=>ve(A,w())),b(u,S)}),g(_),b(p,_)},$$slots:{default:!0}}),K(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Kh,PlaybackState as Pf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var kb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Eb={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 Wp(t,e){Q(t,Eb);var i=kb(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as Wl}from"@vkontakte/videoplayer-shared/es2018";var Ab=be('<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 Qp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ab();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Pb=be('<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 Gp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Mb=be('<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 Yp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Lb=be('<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 ql(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Vb=be('<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 Kl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Bc=t=>{switch(t){case Wl.Q_720P:return Yp;case Wl.Q_1080P:return ql;case Wl.Q_1440P:return Kl;case Wl.Q_2160P:return Qp;case Wl.Q_4320P:return Gp}};var Rb=be('<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 jp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var Nb=be('<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 Zp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var Bb=L('<div aria-hidden="true"><!> <!></div>'),Db={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 Ql(t,e){q(e,!0),Q(t,Db);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Bc(o())),a=m(()=>!!r(n)&&[ql,Kl].includes(r(n)));var s=qe(),d=ue(s);{var l=f=>{jp(f,{})},p=f=>{var _=Bb();let u;var $=h(_);{var w=I=>{Wp(I,{children:(A,P)=>{var E=qe(),T=ue(E);bi(T,()=>r(n),(V,U)=>{U(V,{})}),b(A,E)},$$slots:{default:!0}})};R($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Zp(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>u=te(_,1,"icon svelte-8t5w85",null,u,I),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(p,!1)})}b(t,s),K()}var Ob=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Hb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function qa(t,e){q(e,!0),Q(t,Hb);let[i,o]=Fe(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(p,"$currentQuality",i),l=we(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);Ke(()=>{n()&&bt(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function I(P){let E=xs(P);a()?u():_(E,co)}let A=m(()=>a()?"opened":"");Pt(t,{get className(){return r(A)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,me(P))},children:(P,E)=>{var T=Ob(),V=h(T);Ql(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),K(),o()}var Fb=be('<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 Xp(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var Ub=be('<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 Gl(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Jp(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=we().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Pt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Or.KeyC},children:(s,d)=>{var l=qe(),p=ue(l);{var f=u=>{Xp(u,{})},_=u=>{Gl(u,{})};R(p,u=>{i()?u(f):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var zb=L('<span class="duration svelte-sz9er7"> </span>'),qb=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),Kb={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 Yl(t,e){q(e,!0),Q(t,Kb);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>or(e.duration)),s=m(()=>or(e.position));var d=qb();let l;var p=h(d),f=h(p,!0);g(p);var _=M(p,2);{var u=$=>{var w=zb(),y=h(w,!0);g(w),k(()=>ve(y,r(a))),b($,w)};R(_,$=>{o()&&$(u)})}g(d),dt(d,$=>n($),()=>n()),k($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),ve(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}import{noop as Dc}from"@vkontakte/videoplayer-shared/es2018";var Wb=be('<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>'),Qb={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),
167
167
  .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),
168
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ws(t,e){Q(t,Wb);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=Kb();k(()=>{var d;De(s,"data-value",r(a)),De(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Sh,noop as Ir}from"@vkontakte/videoplayer-shared/es2018";import{noop as Yp}from"@vkontakte/videoplayer-shared/es2018";import{noop as Gb}from"@vkontakte/videoplayer-shared/es2018";var Qb=L('<div class="overlay"><!></div>');function Gp(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(s,"$overlayContainer$",i),s=Ie().ui.overlayContainer$,d=ee(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};je(()=>{p(n())}),Nt(()=>(p(n()),()=>l(n())));var f=Qb(),_=h(f);me(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),lt(f,u=>O(d,u),()=>r(d)),b(t,f),K(),o()}var Yb=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),jb=L("<div><!></div> <!>",1),Zb={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 ea(t,e){q(e,!0),Q(t,Zb);let[i,o]=Fe(),n=()=>C(Z,"$overlayContainer$",i),a=()=>C(U,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,Gb),y=5,S=ee(void 0),I=ee(void 0),A,P=ee(0),E=ee(0),T=ee(0),R=ee(0),z=zt(),Y=Ie(),U=Y.ui.playerSize,Z=Y.ui.overlayContainer$;je(()=>{ht(()=>{w()(l())})});let J=Y.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Pe=ye.width,nt=r(I).clientWidth,pt=a().width,tt=(Pe-nt)/2,Lt=ye.left+p()-Ae.left,rt=Lt+tt,ft=ye.top+f()-Ae.top,Ht=nt/2-y,Ut=rt<8,Ne=rt+nt>pt-8;Ut&&(rt=8,Ht=Lt+ye.width/2-2.5*y),Ne&&(rt=pt-8-nt,Ht=ye.left-Ae.left+ye.width/2-rt-y),O(T,he(rt)),O(R,ft),O(P,he(Ht))},ce=()=>{!n()||!r(I)||!r(S)||O(E,-y)},le=()=>{if(!n()||!r(I)||!r(S))return;O(P,y);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Pe=ye.height,nt=r(I).clientHeight,pt=(Pe-nt)/2+nt,tt=ye.left+p()-Ae.left-r(I).clientWidth,Lt=2,rt=tt-y;rt<8&&(rt=8);let Ht=ye.top+f()-Ae.top+pt,Ut=Lt-pt/2,Ne=Lt-y;O(T,he(rt)),O(R,Ht),O(E,Ut),O(P,Ne)},Le=()=>{!n()||!r(I)||!r(S)||O(P,-y)},Re=()=>{switch($()){case"top":oe();break;case"bottom":ce();break;case"left":le();break;default:Le()}},X=()=>{try{if(!n()||!r(S))return;Re(),l(!0)}catch(Ae){J({message:String(Ae)})}},Me=()=>{l(!1)},j=()=>{r(I)&&(A||(A=window.setTimeout(X,z.controls.hideTimeoutTooltips)),l()&&X())},N=()=>{Me(),window.clearTimeout(A),A=void 0},Ve=(Ae,ye)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${ye}px);`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${ye}px); top: auto; bottom: 100%;`;break;case"left":Pe=`transform: translate(${Ae}px, ${ye}px); left: 0; right: auto;`;break;default:Pe=`transform: translate(${Ae}px, ${ye}px);`}return Pe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Pe},xe=(Ae,ye)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${ye}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${ye}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${Ae}px, ${ye}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${Ae}px, ${ye}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},re=m(()=>Ve(r(T),r(R))),Be=m(()=>xe(r(P),r(E)));Nt(Re),_n(()=>window.clearTimeout(A));var ue=jb(),D=ge(ue);let de;D.__mousemove=j,D.__mousedown=N,D.__mouseup=j;var Ee=h(D);me(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),g(D),lt(D,Ae=>O(S,Ae),()=>r(S));var Qe=M(D,2);{var at=Ae=>{Gp(Ae,{children:(ye,Pe)=>{var nt=Yb();let pt;var tt=h(nt),Lt=h(tt,!0);g(tt);var rt=M(tt,2);g(nt),lt(nt,ft=>O(I,ft),()=>r(I)),k(ft=>{pt=te(nt,1,"tooltip svelte-1jbbzcj",null,pt,ft),ot(nt,r(re)),fe(Lt,d()),ot(rt,r(Be))},[()=>({active:l()})]),b(ye,nt)},$$slots:{default:!0}})};B(Qe,Ae=>{d()&&!s()&&Ae(at)})}k(Ae=>de=te(D,1,"tooltip-wrapper svelte-1jbbzcj",null,de,Ae),[()=>({"full-width":_()})]),It("mouseenter",D,j),It("mouseleave",D,N),b(t,ue),K(),o()}st(["mousemove","mousedown","mouseup"]);var wh=t=>{t.stopPropagation()},Xb=L("<div><!></div>"),Jb={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Po(t,e){q(e,!0),Q(t,Jb);let[i,o]=Fe(),n=()=>C(p,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=Ie(),d=oo(),l=s.ui.isMobile,p=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),u=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),R=v(e,"onTooltipVisibilityChange",3,Yp),z=v(e,"initialTranslateXPx",3,0),Y=v(e,"initialTranslateYPx",19,()=>-18),U=v(e,"mouseEnter",3,Yp),Z=v(e,"mouseLeave",3,Yp),J=m(()=>u()?n()?f("tooltip_disabled_when_graph_on"):E():I());var oe=Xb();oe.__pointerdown=[wh],oe.__click=[wh];var ce=h(oe);{var le=Re=>{ea(Re,{get content(){return r(J)},get translateX(){return z()},get translateY(){return Y()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return R()},children:(X,Me)=>{var j=Ue(),N=ge(j);me(N,()=>{var Ve;return(Ve=e.children)!=null?Ve:ie}),b(X,j)},$$slots:{default:!0}})},Le=Re=>{var X=Ue(),Me=ge(X);me(Me,()=>{var j;return(j=e.children)!=null?j:ie}),b(Re,X)};B(ce,Re=>{$()&&r(J)&&!a()?Re(le):Re(Le,!1)})}g(oe),lt(oe,Re=>w(Re),()=>w()),k(()=>{var Re;te(oe,1,`btn-container ${(Re=_())!=null?Re:""}`,"svelte-p9r045"),De(oe,"aria-hidden",T()||null)}),It("mouseenter",oe,function(...Re){var X;(X=U())==null||X.apply(this,Re)}),It("mouseleave",oe,function(...Re){var X;(X=Z())==null||X.apply(this,Re)}),Or(oe,"clientWidth",y),b(t,oe),K(),o()}st(["pointerdown","click"]);var e$=be('<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 jl(t,e){"use strict";var i=e$(),o=h(i),n=M(o);g(i),k(()=>{De(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),De(o,"fill-opacity",e.completed?1:.24),De(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var t$=L("<div><!></div>"),i$={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 jp(t,e){q(e,!0),Q(t,i$);let o=Ie().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=t$();let p;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);jl(f,{get completed(){return r(_)}}),g(l),k(u=>{p=te(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),ot(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Or(l,"clientWidth",u=>O(n,u)),b(s,l)},$$slots:{default:!0}}),K()}var o$=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>'),r$={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,
168
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Ss(t,e){Q(t,Qb);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=Wb();k(()=>{var d;Oe(s,"data-value",r(a)),Oe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Ih,noop as Tr}from"@vkontakte/videoplayer-shared/es2018";import{noop as tf}from"@vkontakte/videoplayer-shared/es2018";import{noop as Yb}from"@vkontakte/videoplayer-shared/es2018";var Gb=L('<div class="overlay"><!></div>');function ef(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(s,"$overlayContainer$",i),s=we().ui.overlayContainer$,d=ee(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Ke(()=>{p(n())}),Ot(()=>(p(n()),()=>l(n())));var f=Gb(),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),dt(f,u=>O(d,u),()=>r(d)),b(t,f),K(),o()}var jb=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),Zb=L("<div><!></div> <!>",1),Xb={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 ia(t,e){q(e,!0),Q(t,Xb);let[i,o]=Fe(),n=()=>C(j,"$overlayContainer$",i),a=()=>C(F,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,Yb),y=5,S=ee(void 0),I=ee(void 0),A,P=ee(0),E=ee(0),T=ee(0),V=ee(0),U=qt(),Y=we(),F=Y.ui.playerSize,j=Y.ui.overlayContainer$;Ke(()=>{bt(()=>{w()(l())})});let X=Y.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.width,nt=r(I).clientWidth,mt=a().width,at=(Pe-nt)/2,It=$e.left+p()-Ae.left,rt=It+at,vt=$e.top+f()-Ae.top,Ut=nt/2-y,Qt=rt<8,Be=rt+nt>mt-8;Qt&&(rt=8,Ut=It+$e.width/2-2.5*y),Be&&(rt=mt-8-nt,Ut=$e.left-Ae.left+$e.width/2-rt-y),O(T,me(rt)),O(V,vt),O(P,me(Ut))},pe=()=>{!n()||!r(I)||!r(S)||O(E,-y)},le=()=>{if(!n()||!r(I)||!r(S))return;O(P,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Pe=$e.height,nt=r(I).clientHeight,mt=(Pe-nt)/2+nt,at=$e.left+p()-Ae.left-r(I).clientWidth,It=2,rt=at-y;rt<8&&(rt=8);let Ut=$e.top+f()-Ae.top+mt,Qt=It-mt/2,Be=It-y;O(T,me(rt)),O(V,Ut),O(E,Qt),O(P,Be)},Ve=()=>{!n()||!r(I)||!r(S)||O(P,-y)},Me=()=>{switch($()){case"top":oe();break;case"bottom":pe();break;case"left":le();break;default:Ve()}},J=()=>{try{if(!n()||!r(S))return;Me(),l(!0)}catch(Ae){X({message:String(Ae)})}},Le=()=>{l(!1)},Z=()=>{r(I)&&(A||(A=window.setTimeout(J,U.controls.hideTimeoutTooltips)),l()&&J())},B=()=>{Le(),window.clearTimeout(A),A=void 0},Re=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px);`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px); left: 0; right: auto;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px);`}return Pe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Pe},ne=(Ae,$e)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${Ae}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${Ae}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},ke=m(()=>Re(r(T),r(V))),Ne=m(()=>ne(r(P),r(E)));Ot(Me),bn(()=>window.clearTimeout(A));var fe=Zb(),D=ue(fe);let de;D.__mousemove=Z,D.__mousedown=B,D.__mouseup=Z;var Ee=h(D);ge(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),g(D),dt(D,Ae=>O(S,Ae),()=>r(S));var Ge=M(D,2);{var lt=Ae=>{ef(Ae,{children:($e,Pe)=>{var nt=jb();let mt;var at=h(nt),It=h(at,!0);g(at);var rt=M(at,2);g(nt),dt(nt,vt=>O(I,vt),()=>r(I)),k(vt=>{mt=te(nt,1,"tooltip svelte-1jbbzcj",null,mt,vt),et(nt,r(ke)),ve(It,d()),et(rt,r(Ne))},[()=>({active:l()})]),b($e,nt)},$$slots:{default:!0}})};R(Ge,Ae=>{d()&&!s()&&Ae(lt)})}k(Ae=>de=te(D,1,"tooltip-wrapper svelte-1jbbzcj",null,de,Ae),[()=>({"full-width":_()})]),kt("mouseenter",D,Z),kt("mouseleave",D,B),b(t,fe),K(),o()}st(["mousemove","mousedown","mouseup"]);var Th=t=>{t.stopPropagation()},Jb=L("<div><!></div>"),e$={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 So(t,e){q(e,!0),Q(t,e$);let[i,o]=Fe(),n=()=>C(p,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=we(),d=io(),l=s.ui.isMobile,p=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),u=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),V=v(e,"onTooltipVisibilityChange",3,tf),U=v(e,"initialTranslateXPx",3,0),Y=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,tf),j=v(e,"mouseLeave",3,tf),X=m(()=>u()?n()?f("tooltip_disabled_when_graph_on"):E():I());var oe=Jb();oe.__pointerdown=[Th],oe.__click=[Th];var pe=h(oe);{var le=Me=>{ia(Me,{get content(){return r(X)},get translateX(){return U()},get translateY(){return Y()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return V()},children:(J,Le)=>{var Z=qe(),B=ue(Z);ge(B,()=>{var Re;return(Re=e.children)!=null?Re:ie}),b(J,Z)},$$slots:{default:!0}})},Ve=Me=>{var J=qe(),Le=ue(J);ge(Le,()=>{var Z;return(Z=e.children)!=null?Z:ie}),b(Me,J)};R(pe,Me=>{$()&&r(X)&&!a()?Me(le):Me(Ve,!1)})}g(oe),dt(oe,Me=>w(Me),()=>w()),k(()=>{var Me;te(oe,1,`btn-container ${(Me=_())!=null?Me:""}`,"svelte-p9r045"),Oe(oe,"aria-hidden",T()||null)}),kt("mouseenter",oe,function(...Me){var J;(J=F())==null||J.apply(this,Me)}),kt("mouseleave",oe,function(...Me){var J;(J=j())==null||J.apply(this,Me)}),Dr(oe,"clientWidth",y),b(t,oe),K(),o()}st(["pointerdown","click"]);var t$=be('<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 jl(t,e){"use strict";var i=t$(),o=h(i),n=M(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")}),b(t,i)}var i$=L("<div><!></div>"),o$={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 of(t,e){q(e,!0),Q(t,o$);let o=we().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));So(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=i$();let p;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);jl(f,{get completed(){return r(_)}}),g(l),k(u=>{p=te(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),et(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dr(l,"clientWidth",u=>O(n,u)),b(s,l)},$$slots:{default:!0}}),K()}var n$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),r$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),s$={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,
169
169
  .video-episode-loaded.svelte-1u6kv8l,
170
- .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 Zp(t,e){Q(t,r$);let i=v(e,"videoEpisodes",19,()=>[]);var o=n$();bi(o,21,i,n=>n.from,(n,a)=>{var s=o$();let d;var l=h(s),p=h(l),f=M(p,2);let _;g(l),g(s),k((u,$)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,u),ot(s,`left: ${r(a).from}%; width: ${r(a).width}%`),ot(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),ot(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function s$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,he(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function a$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function l$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function d$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var c$=L("<div></div>"),u$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),p$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),f$={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 {
170
+ .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 nf(t,e){Q(t,s$);let i=v(e,"videoEpisodes",19,()=>[]);var o=r$();_i(o,21,i,n=>n.from,(n,a)=>{var s=n$();let d;var l=h(s),p=h(l),f=M(p,2);let _;g(l),g(s),k((u,$)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,u),et(s,`left: ${r(a).from}%; width: ${r(a).width}%`),et(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),et(f,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function a$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function l$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function d$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function c$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var u$=L("<div></div>"),p$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),f$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),m$={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 {
171
171
  /* 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,
172
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
173
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
174
174
  .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),
175
- .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 ta(t,e){q(e,!0),Q(t,f$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Ir),S=v(e,"onHandleMove",3,Ir),I=v(e,"onPointerUp",3,Ir),A=v(e,"onPointerEnter",3,Ir),P=v(e,"onPointerMove",3,Ir),E=v(e,"onPointerLeave",3,Ir),T=v(e,"onWheelUp",3,Ir),R=v(e,"onWheelDown",3,Ir),z=v(e,"onWheelLeft",3,Ir),Y=v(e,"onWheelRight",3,Ir),U=v(e,"onDisabledClick",3,Ir),Z=v(e,"loadedProgress",3,0),J=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),ce=v(e,"ariaLabel",3,""),le=v(e,"ariaValueMin",3,void 0),Le=v(e,"ariaValueMax",3,void 0),Re=v(e,"ariaValueNow",3,void 0),X=v(e,"ariaValueText",3,""),Me=zt(),j=ee(void 0),N=ee(!1),Ve=m(()=>{var Ne;return(Ne=Le())!=null?Ne:0}),xe=m(()=>{var Ne;return Sh(f())&&((Ne=f()[f().length-1])==null?void 0:Ne.time)<r(Ve)}),re=m(()=>Sh(f())&&f().length&&r(xe)&&r(Ve)?Qe(Z()*100,J()*100):[]);function Be(Ne){if(Ne.preventDefault(),i()&&O(j,he(i().getBoundingClientRect())),$())return;let ne=de(Ne.clientX,Ne.clientY),W=Ee(Ne.clientX);A()(ne,W,r(j).width)}function ue(Ne){Ne.preventDefault(),!$()&&E()()}function D(Ne){$()||_()&&(Ne.preventDefault(),Ne.deltaY<0?T()():Ne.deltaY>0?R()():Ne.deltaX>0?Y()():z()())}function de(Ne,ne){return s()?Math.max(0,Math.min(1,(r(j).height-(ne-r(j).top))/r(j).height)):Math.min(Math.max(Ne-r(j).x,0),r(j).width)/r(j).width}function Ee(Ne){return Math.min(Math.max(Ne-r(j).x,0),r(j).width)}function Qe(Ne,ne){let W=Me.features.episodesClustering&&!u()?Me.episodeMinWidthPc:0,se=[],pe=f()[0].time/r(Ve)*100,Ce=0,Oe=0;for(let qe=1;qe<f().length;qe++)Ce=f()[qe].time/r(Ve)*100,Ce-pe>W&&(se.push({from:pe,width:Math.max(0,Ce-pe),loadedWidth:Math.max(0,Math.min(Ce,Ne)-pe),filledWidth:Math.max(0,Math.min(Ce,ne)-pe),interactive:f()[qe-1].interactive,completed:f()[qe-1].completed}),pe=f()[qe].time/r(Ve)*100,Oe++);let dt={from:pe,width:Math.max(0,100-pe),loadedWidth:Math.max(0,Math.min(Ne,100)-pe),filledWidth:Math.max(0,Math.min(ne,100)-pe),interactive:f()[Oe].interactive,completed:f()[Oe].completed};100-pe<W?(Oe-=1,se[Oe].width+=100-pe,se[Oe].loadedWidth+=Math.max(0,Math.min(Ne,100)-pe),se[Oe].filledWidth+=Math.max(0,Math.min(ne,100)-pe)):se[Oe]=dt;let Vt=f()[0].time;if(Vt!==0){let qe=Vt/r(Ve)*100;se.unshift({from:0,width:qe,loadedWidth:Math.min(qe,Ne),filledWidth:Math.min(qe,ne)})}return se}var at=p$(),Ae=ge(at);{var ye=Ne=>{var ne=c$();let W;bi(ne,21,()=>r(re),se=>se.from,(se,pe)=>{var Ce=Ue(),Oe=ge(Ce);{var dt=Vt=>{jp(Vt,{get videoEpisode(){return r(pe)},get disabled(){return $()}})};B(Oe,Vt=>{r(pe).interactive&&Vt(dt)})}b(se,Ce)}),g(ne),k(se=>W=te(ne,1,"interactive-icons svelte-1tpemng",null,W,se),[()=>({mobile:l(),hidden:l()&&!r(N)})]),b(Ne,ne)};B(Ae,Ne=>{u()&&Ne(ye)})}var Pe=M(Ae,2);let nt;Pe.__pointerdown=[s$,i,j,$,N,de,y],Pe.__pointermove=[a$,$,de,Ee,P,j,N,S],Pe.__pointerup=[l$,$,N,de,I],Pe.__click=[d$,$,U,de];var pt=h(Pe);{var tt=Ne=>{Zp(Ne,{get videoEpisodes(){return r(re)},get disabled(){return $()},get isMobile(){return l()}})},Lt=Ne=>{var ne=u$(),W=h(ne),se=M(W,2);let pe;g(ne),k(Ce=>{ot(W,`transform: translateX(${Z()*100}%);`),pe=te(se,1,"filled svelte-1tpemng",null,pe,Ce),ot(se,`transform: translateX(${J()*100}%);`)},[()=>({"active-live":d()})]),b(Ne,ne)};B(pt,Ne=>{r(re).length?Ne(tt):Ne(Lt,!1)})}var rt=M(pt,2);let ft;var Ht=h(rt);let Ut;g(rt),g(Pe),lt(Pe,Ne=>i(Ne),()=>i()),k((Ne,ne,W)=>{var se,pe;nt=te(Pe,1,`slider ${(se=o())!=null?se:""}`,"svelte-1tpemng",nt,Ne),De(Pe,"aria-label",ce()),De(Pe,"aria-valuemin",le()),De(Pe,"aria-valuemax",Le()),De(Pe,"aria-valuenow",Re()),De(Pe,"aria-valuetext",X()),De(Pe,"data-testid",(pe=n())!=null?pe:null),ft=te(rt,1,"handleWrap svelte-1tpemng",null,ft,ne),ot(rt,`transform: translateX(${oe()*100}%);`),Ut=te(Ht,1,"handle svelte-1tpemng",null,Ut,W)},[()=>({disabled:$(),"slider-dragging":r(N),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),It("pointerenter",Pe,Be),It("pointerleave",Pe,ue),It("wheel",Pe,D),b(t,at),K()}st(["pointerdown","pointermove","pointerup","click"]);var Di=(t,e)=>zs[t]>=zs[e],Ch=(t,e)=>zs[t]<zs[e],Ss=(t,e)=>zs[t]<=zs[e],Th=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var m$=L("<div><!></div>"),v$=L("<div><!> <!></div>"),g$={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 Xp(t,e){var at,Ae;q(e,!0),Q(t,g$);let[i,o]=Fe(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=Ie(),p=zt(),f=l.state.volume$,_=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(at=l.callbacks)==null?void 0:at.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=ee(!1),R,z=m(()=>!n()||a()||s()===0),Y=m(()=>Ss(d(),"s")),U=m(()=>r(Y)?"":r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),Z=m(()=>r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),J=m(()=>r(z)?0:s()),oe=!1,ce=m(()=>n()?P&&!I:!S);function le(ye){$(),u(ye)}function Le(){Ac(l,s(),p.controls.volumeStepWheel)}function Re(){Pc(l,s(),p.controls.volumeStepWheel)}function X(ye){u(ye)}function Me(ye){u(ye),w()}function j(){oe=!0}function N(){oe=!1,re()}function Ve(){clearTimeout(R),O(T,!0)}function xe(){re()}function re(){R=window.setTimeout(()=>{oe||O(T,!1)},p.controls.volumeBarTimeout)}function Be(ye){ye.preventDefault(),ye.deltaY<0?Le():ye.deltaY>0&&Re()}var ue=v$();let D;var de=h(ue);ea(de,{get content(){return r(U)},translateY:-18,children:(ye,Pe)=>{let nt=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");kt(ye,{className:"btn-full-opacity",get disabled(){return r(ce)},get testId(){return r(nt)},get ariaLabel(){return r(Z)},get click(){return e.click},get ariaKeyShortCut(){return Hr.KeyM},children:(pt,tt)=>{ws(pt,{get volume(){return s()},get muted(){return r(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(de,2);{var Qe=ye=>{var Pe=m$();let nt;var pt=h(Pe);let tt=m(()=>r(Y)?"volumeBar-slider-vertical":""),Lt=m(()=>r(Y)&&!r(T)),rt=m(()=>r(Y)?j:Lc),ft=m(()=>r(Y)?N:Lc),Ht=m(()=>Math.round(r(J)*100)),Ut=m(()=>`${Math.round(r(J)*100)}%`),Ne=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");ta(pt,{get className(){return r(tt)},get isHidden(){return r(Lt)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Re,onPointerDown:le,onHandleMove:X,onPointerUp:Me,get onPointerEnter(){return r(rt)},get onPointerLeave(){return r(ft)},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 r(Ht)},get ariaValueText(){return r(Ut)},get filledProgress(){return r(J)},get handleProgress(){return r(J)},get testId(){return r(Ne)}}),g(Pe),k(ne=>nt=te(Pe,1,"volumeBar svelte-1auih1j",null,nt,ne),[()=>({"volumeBar-vertical":r(Y)})]),b(ye,Pe)};B(Ee,ye=>{n()&&ye(Qe)})}g(ue),k(ye=>D=te(ue,1,"volumeBar-container svelte-1auih1j",null,D,ye),[()=>({vertical:r(Y)})]),It("mouseenter",ue,function(...ye){var Pe;(Pe=r(Y)?Ve:Lc)==null||Pe.apply(this,ye)}),It("mouseleave",ue,function(...ye){var Pe;(Pe=r(Y)?xe:Lc)==null||Pe.apply(this,ye)}),It("wheel",ue,Be),b(t,ue),K(),o()}import{noop as b$}from"@vkontakte/videoplayer-shared/es2018";var h$=be('<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 Jp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=h$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var _$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function ef(t,e){Q(t,_$);let i=v(e,"isFullscreen",8,!1),o=xr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Jp(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Zl(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,b$),n=Ie(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));kt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=ys(p);a.set(f),o()()},get ariaKeyShortCut(){return Hr.KeyF},children:(p,f)=>{ef(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),K()}var $$=be('<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 tf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=$$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var y$=be('<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 of(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var x$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
175
+ .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 oa(t,e){q(e,!0),Q(t,m$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Tr),S=v(e,"onHandleMove",3,Tr),I=v(e,"onPointerUp",3,Tr),A=v(e,"onPointerEnter",3,Tr),P=v(e,"onPointerMove",3,Tr),E=v(e,"onPointerLeave",3,Tr),T=v(e,"onWheelUp",3,Tr),V=v(e,"onWheelDown",3,Tr),U=v(e,"onWheelLeft",3,Tr),Y=v(e,"onWheelRight",3,Tr),F=v(e,"onDisabledClick",3,Tr),j=v(e,"loadedProgress",3,0),X=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),le=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Me=v(e,"ariaValueNow",3,void 0),J=v(e,"ariaValueText",3,""),Le=qt(),Z=ee(void 0),B=ee(!1),Re=m(()=>{var Be;return(Be=Ve())!=null?Be:0}),ne=m(()=>{var Be;return Ih(f())&&((Be=f()[f().length-1])==null?void 0:Be.time)<r(Re)}),ke=m(()=>Ih(f())&&f().length&&r(ne)&&r(Re)?Ge(j()*100,X()*100):[]);function Ne(Be){if(Be.preventDefault(),i()&&O(Z,me(i().getBoundingClientRect())),$())return;let re=de(Be.clientX,Be.clientY),W=Ee(Be.clientX);A()(re,W,r(Z).width)}function fe(Be){Be.preventDefault(),!$()&&E()()}function D(Be){$()||_()&&(Be.preventDefault(),Be.deltaY<0?T()():Be.deltaY>0?V()():Be.deltaX>0?Y()():U()())}function de(Be,re){return s()?Math.max(0,Math.min(1,(r(Z).height-(re-r(Z).top))/r(Z).height)):Math.min(Math.max(Be-r(Z).x,0),r(Z).width)/r(Z).width}function Ee(Be){return Math.min(Math.max(Be-r(Z).x,0),r(Z).width)}function Ge(Be,re){let W=Le.features.episodesClustering&&!u()?Le.episodeMinWidthPc:0,se=[],he=f()[0].time/r(Re)*100,Se=0,De=0;for(let je=1;je<f().length;je++)Se=f()[je].time/r(Re)*100,Se-he>W&&(se.push({from:he,width:Math.max(0,Se-he),loadedWidth:Math.max(0,Math.min(Se,Be)-he),filledWidth:Math.max(0,Math.min(Se,re)-he),interactive:f()[je-1].interactive,completed:f()[je-1].completed}),he=f()[je].time/r(Re)*100,De++);let ct={from:he,width:Math.max(0,100-he),loadedWidth:Math.max(0,Math.min(Be,100)-he),filledWidth:Math.max(0,Math.min(re,100)-he),interactive:f()[De].interactive,completed:f()[De].completed};100-he<W?(De-=1,se[De].width+=100-he,se[De].loadedWidth+=Math.max(0,Math.min(Be,100)-he),se[De].filledWidth+=Math.max(0,Math.min(re,100)-he)):se[De]=ct;let Kt=f()[0].time;if(Kt!==0){let je=Kt/r(Re)*100;se.unshift({from:0,width:je,loadedWidth:Math.min(je,Be),filledWidth:Math.min(je,re)})}return se}var lt=f$(),Ae=ue(lt);{var $e=Be=>{var re=u$();let W;_i(re,21,()=>r(ke),se=>se.from,(se,he)=>{var Se=qe(),De=ue(Se);{var ct=Kt=>{of(Kt,{get videoEpisode(){return r(he)},get disabled(){return $()}})};R(De,Kt=>{r(he).interactive&&Kt(ct)})}b(se,Se)}),g(re),k(se=>W=te(re,1,"interactive-icons svelte-1tpemng",null,W,se),[()=>({mobile:l(),hidden:l()&&!r(B)})]),b(Be,re)};R(Ae,Be=>{u()&&Be($e)})}var Pe=M(Ae,2);let nt;Pe.__pointerdown=[a$,i,Z,$,B,de,y],Pe.__pointermove=[l$,$,de,Ee,P,Z,B,S],Pe.__pointerup=[d$,$,B,de,I],Pe.__click=[c$,$,F,de];var mt=h(Pe);{var at=Be=>{nf(Be,{get videoEpisodes(){return r(ke)},get disabled(){return $()},get isMobile(){return l()}})},It=Be=>{var re=p$(),W=h(re),se=M(W,2);let he;g(re),k(Se=>{et(W,`transform: translateX(${j()*100}%);`),he=te(se,1,"filled svelte-1tpemng",null,he,Se),et(se,`transform: translateX(${X()*100}%);`)},[()=>({"active-live":d()})]),b(Be,re)};R(mt,Be=>{r(ke).length?Be(at):Be(It,!1)})}var rt=M(mt,2);let vt;var Ut=h(rt);let Qt;g(rt),g(Pe),dt(Pe,Be=>i(Be),()=>i()),k((Be,re,W)=>{var se,he;nt=te(Pe,1,`slider ${(se=o())!=null?se:""}`,"svelte-1tpemng",nt,Be),Oe(Pe,"aria-label",pe()),Oe(Pe,"aria-valuemin",le()),Oe(Pe,"aria-valuemax",Ve()),Oe(Pe,"aria-valuenow",Me()),Oe(Pe,"aria-valuetext",J()),Oe(Pe,"data-testid",(he=n())!=null?he:null),vt=te(rt,1,"handleWrap svelte-1tpemng",null,vt,re),et(rt,`transform: translateX(${oe()*100}%);`),Qt=te(Ut,1,"handle svelte-1tpemng",null,Qt,W)},[()=>({disabled:$(),"slider-dragging":r(B),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),kt("pointerenter",Pe,Ne),kt("pointerleave",Pe,fe),kt("wheel",Pe,D),b(t,lt),K()}st(["pointerdown","pointermove","pointerup","click"]);var Bi=(t,e)=>Ks[t]>=Ks[e],kh=(t,e)=>Ks[t]<Ks[e],Cs=(t,e)=>Ks[t]<=Ks[e],Eh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var v$=L("<div><!></div>"),g$=L("<div><!> <!></div>"),h$={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 rf(t,e){var lt,Ae;q(e,!0),Q(t,h$);let[i,o]=Fe(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=we(),p=qt(),f=l.state.volume$,_=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(lt=l.callbacks)==null?void 0:lt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=ee(!1),V,U=m(()=>!n()||a()||s()===0),Y=m(()=>Cs(d(),"s")),F=m(()=>r(Y)?"":r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),j=m(()=>r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>r(U)?0:s()),oe=!1,pe=m(()=>n()?P&&!I:!S);function le($e){$(),u($e)}function Ve(){Rc(l,s(),p.controls.volumeStepWheel)}function Me(){Nc(l,s(),p.controls.volumeStepWheel)}function J($e){u($e)}function Le($e){u($e),w()}function Z(){oe=!0}function B(){oe=!1,ke()}function Re(){clearTimeout(V),O(T,!0)}function ne(){ke()}function ke(){V=window.setTimeout(()=>{oe||O(T,!1)},p.controls.volumeBarTimeout)}function Ne($e){$e.preventDefault(),$e.deltaY<0?Ve():$e.deltaY>0&&Me()}var fe=g$();let D;var de=h(fe);ia(de,{get content(){return r(F)},translateY:-18,children:($e,Pe)=>{let nt=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");Pt($e,{className:"btn-full-opacity",get disabled(){return r(pe)},get testId(){return r(nt)},get ariaLabel(){return r(j)},get click(){return e.click},get ariaKeyShortCut(){return Or.KeyM},children:(mt,at)=>{Ss(mt,{get volume(){return s()},get muted(){return r(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(de,2);{var Ge=$e=>{var Pe=v$();let nt;var mt=h(Pe);let at=m(()=>r(Y)?"volumeBar-slider-vertical":""),It=m(()=>r(Y)&&!r(T)),rt=m(()=>r(Y)?Z:Dc),vt=m(()=>r(Y)?B:Dc),Ut=m(()=>Math.round(r(X)*100)),Qt=m(()=>`${Math.round(r(X)*100)}%`),Be=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");oa(mt,{get className(){return r(at)},get isHidden(){return r(It)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Me,onPointerDown:le,onHandleMove:J,onPointerUp:Le,get onPointerEnter(){return r(rt)},get onPointerLeave(){return r(vt)},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 r(Ut)},get ariaValueText(){return r(Qt)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Be)}}),g(Pe),k(re=>nt=te(Pe,1,"volumeBar svelte-1auih1j",null,nt,re),[()=>({"volumeBar-vertical":r(Y)})]),b($e,Pe)};R(Ee,$e=>{n()&&$e(Ge)})}g(fe),k($e=>D=te(fe,1,"volumeBar-container svelte-1auih1j",null,D,$e),[()=>({vertical:r(Y)})]),kt("mouseenter",fe,function(...$e){var Pe;(Pe=r(Y)?Re:Dc)==null||Pe.apply(this,$e)}),kt("mouseleave",fe,function(...$e){var Pe;(Pe=r(Y)?ne:Dc)==null||Pe.apply(this,$e)}),kt("wheel",fe,Ne),b(t,fe),K(),o()}import{noop as $$}from"@vkontakte/videoplayer-shared/es2018";var _$=be('<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 sf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var b$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function af(t,e){Q(t,b$);let i=v(e,"isFullscreen",8,!1),o=yr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");sf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Zl(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,$$),n=we(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Pt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=xs(p);a.set(f),o()()},get ariaKeyShortCut(){return Or.KeyF},children:(p,f)=>{af(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),K()}var y$=be('<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 lf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var x$=be('<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 df(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var w$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
177
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
178
178
  svg[data-testid="vk-video-logo-icon"] ._en,
179
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function nf(t,e){Q(t,x$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);of(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Xl(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),a=()=>C(u,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=zt(),_=Ie(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||Ss(a(),"l"))&&r(I)),P=()=>{var R,z;e.click(),(R=_.callbacks)!=null&&R.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():p()&&window.open(p(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");kt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,z)=>{var Y=Ue(),U=ge(Y);{var Z=oe=>{nf(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},J=oe=>{tf(oe,{})};B(U,oe=>{r(I)?oe(Z):oe(J,!1)})}b(R,Y)},$$slots:{default:!0}}),K(),o()}import{ChromecastState as I$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Ih}from"@vkontakte/videoplayer-core/es2018";var S$=be('<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>'),C$=be('<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>'),T$={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) {
179
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function cf(t,e){Q(t,w$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);df(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Xl(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C($,"$isMobile",i),a=()=>C(u,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=qt(),_=we(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||Cs(a(),"l"))&&r(I)),P=()=>{var V,U;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(U=_.callbacks)==null||U.onLogoClicked():p()&&window.open(p(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");Pt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,U)=>{var Y=qe(),F=ue(Y);{var j=oe=>{cf(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},X=oe=>{lf(oe,{})};R(F,oe=>{r(I)?oe(j):oe(X,!1)})}b(V,Y)},$$slots:{default:!0}}),K(),o()}import{ChromecastState as k$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Ah}from"@vkontakte/videoplayer-core/es2018";var C$=be('<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>'),T$=be('<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>'),I$={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) {
180
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
181
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -224,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
224
224
  100% {
225
225
  opacity: 1;
226
226
  }
227
- }`};function rf(t,e){q(e,!0),Q(t,T$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Ih.CONNECTED),n=m(()=>e.iconState===Ih.CONNECTING);var a=Ue(),s=ge(a);{var d=p=>{var f=S$(),_=h(f),u=h(_),$=h(u);_e(),g(u);var w=M(u);_e(),g(_);var y=M(_),S=h(y),I=h(S);g(S),_e(),g(y),g(f),k(()=>{De($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),De(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},l=p=>{var f=C$();let _;var u=h(f),$=M(h(u),5);let w;g(u),g(f),k((y,S)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(p,f)};B(s,p=>{i()?p(d):p(l,!1)})}b(t,a),K()}import{noop as k$}from"@vkontakte/videoplayer-shared/es2018";function Jl(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,k$),s=Ie().ui.t,d=m(()=>e.state===I$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));kt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{rf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),K()}var E$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),A$={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,A$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=ee(void 0),d=ee(void 0);function l(w){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),S=y/2;return w<S?S:w>e.containerWidth-S?e.containerWidth-S:w}let p=m(()=>l(n()));var f=E$(),_=h(f);let u;var $=h(_);me($,()=>{var w;return(w=e.children)!=null?w:ie}),g(_),lt(_,w=>O(d,w),()=>r(d)),g(f),lt(f,w=>O(s,w),()=>r(s)),k(w=>{ot(f,`transform: translate(${r(p)}px, ${a()}px);`),u=te(_,1,"tooltip svelte-5ygsa2",null,u,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Vc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var kh=t=>!!(Math.round(Math.abs(t)/90)%2),Eh=t=>Math.abs(t)/90%4===1;var P$=L('<div class="preview svelte-1wqg760"></div>'),M$=L('<div class="time svelte-1wqg760"> </div>'),L$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),V$={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 af(t,e){q(e,!0),Q(t,V$);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),a=()=>C(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),$=Ie(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=ee(0),I=ee(0),A=ee(""),P=ee(0),E=ee(0),T=ee(0),R=ee(0),z=m(()=>Vc(f(),_(),p())),Y=m(()=>kh(n())),U=m(()=>Eh(n())),Z=m(ce),J=m(()=>(r(U)?1:-1)*(r(S)/2-r(I)/2)),oe=m(()=>r(J)*-1);je(()=>{(D=>(O(S,he(D.width)),O(I,he(D.height))))(Le())}),je(()=>{(D=>(O(A,he(D.imgSrc)),O(P,he(D.imgWidth)),O(E,he(D.imgHeight)),O(T,he(D.imgOffsetX)),O(R,he(D.imgOffsetY))))(Re(f()))});function ce(){var Qe;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ee=30;return(Qe=r(z))!=null&&Qe.text&&(Ee+=16),(de||r(Y))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),D)}function le(){let D=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ee=de>D;return{width:D,height:de,isHorizontal:!Ee,isVertical:Ee}}function Le(){let{height:D,isHorizontal:de,isVertical:Ee,width:Qe}=le();return de&&(D=D/Qe*r(Z),Qe=r(Z)),Ee&&(Qe=Qe/D*r(Z),D=r(Z)),{width:Qe,height:D}}function Re(D){let de;e.previewThumbsData.isUV?de=Math.floor(_()*D/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Ee=Math.floor(de/e.previewThumbsData.countPerImage),Qe=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),at=de%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let ye=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ye=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=r(S)*ye,nt=r(I)*Ae,pt=-at*r(S),tt=-Qe*r(I);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Pe,imgHeight:nt,imgOffsetX:pt,imgOffsetY:tt}}var X=L$();let Me;var j=h(X);{var N=D=>{var de=P$();k(()=>ot(de,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(R)}px;
228
- transform: rotate(${n()}deg) ${r(Y)?`translate(${r(J)}px, ${r(oe)}px)`:""};
229
- `)),b(D,de)};B(j,D=>{r(A)&&D(N)})}var Ve=M(j,2),xe=h(Ve);{var re=D=>{var de=Ue(),Ee=ge(de);{var Qe=Ae=>{var ye=tr();k(Pe=>fe(ye,Pe),[()=>F("tooltip_episode_unfinished")]),b(Ae,ye)},at=Ae=>{var ye=tr();k(()=>fe(ye,r(z).text||"")),b(Ae,ye)};B(Ee,Ae=>{u()&&r(z).completed===!1?Ae(Qe):Ae(at,!1)})}b(D,de)};B(xe,D=>{r(z)&&D(re)})}g(Ve);var Be=M(Ve,2);{var ue=D=>{var de=M$(),Ee=h(de,!0);g(de),k(()=>fe(Ee,d())),b(D,de)};B(Be,D=>{u()||D(ue)})}g(X),k(D=>{Me=te(X,1,"timeline-preview svelte-1wqg760",null,Me,D),ot(X,`width: ${r(Y)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,X),K(),o()}var R$=L('<span class="time svelte-1jr6obn"> </span>'),B$=L("<!> <!>",1),N$={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 lf(t,e){var pe;q(e,!0),Q(t,N$);let[i,o]=Fe(),n=()=>C(Z,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(ce,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),p=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(R,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(Re,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Ie(),I=zt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,R=S.state.isActiveLive$,z=S.ui.isMobile,Y=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,U=S.actions.internal.getPreviewThumbsData(),Z=S.state.interactiveEpisodes$,J=S.state.isInteractive,oe=S.state.isInteractiveTime$,ce=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Le=(pe=S.callbacks)==null?void 0:pe.onDisabledTimelineClick,Re=S.ui.controls.disabledControls$,X=S.ui.t,Me=I.features.interactiveResponsiveUi,j=m(()=>J?n():Y),N=m(()=>nr(a())),Ve=m(()=>nr(s())),xe=m(()=>s()/a()),re=m(()=>d()||l()),Be=ee(!1),ue=ee(""),D=ee(0),de=ee(0),Ee=ee(0),Qe=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:J&&U?-36:-16,active:r(Be)&&w()&&!r(re)&&!Me,pointer:!I.features.timelinePreview||!U||p()})),at=X("aria_timeline"),Ae=m(()=>X("aria_timeline_value",{position:r(Ve),duration:r(N)}));function ye(Ce){return!le||!J?Ce:le(Ce*a())/a()}function Pe(Ce){S.actions.internal.startScrubbing(ye(Ce))}function nt(Ce){l()||S.actions.internal.progressScrubbing(ye(Ce))}function pt(Ce){S.actions.internal.completeScrubbing(ye(Ce)),O(Be,!1)}function tt(Ce,Oe,dt){ft(Ce,Oe,dt),O(Be,!0)}function Lt(Ce,Oe,dt){ft(Ce,Oe,dt),O(Be,!0)}function rt(){O(Be,!1)}function ft(Ce,Oe,dt){O(Ee,he(ye(Ce))),O(D,he(Oe)),dt&&O(de,he(dt)),O(ue,he(Ht(Ce)))}function Ht(Ce){let Oe=nr((p()?1-Ce:Ce)*a());return p()?`-${Oe}`:Oe}var Ut=B$(),Ne=ge(Ut);sf(Ne,is(()=>r(Qe),{children:(Ce,Oe)=>{var dt=Ue(),Vt=ge(dt);{var qe=Xe=>{af(Xe,{get time(){return r(ue)},get isMobile(){return f()},get videoEpisodes(){return r(j)},previewThumbsData:U,get progress(){return r(Ee)},get duration(){return a()},isInteractive:J})},vt=Xe=>{var $t=R$(),Qt=h($t,!0);g($t),k(()=>fe(Qt,r(ue))),b(Xe,$t)};B(Vt,Xe=>{I.features.timelinePreview&&U&&!p()?Xe(qe):Xe(vt,!1)})}b(Ce,dt)},$$slots:{default:!0}}));var ne=M(Ne,2);let W=m(()=>Math.round(r(xe)*100)),se=m(()=>$().has("TIMELINE"));ta(ne,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:at,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(Ae)},get loadedProgress(){return u()},get filledProgress(){return r(xe)},get handleProgress(){return r(xe)},get videoEpisodes(){return r(j)},onPointerDown:Pe,onHandleMove:nt,onPointerMove:Lt,onPointerUp:pt,onPointerEnter:tt,onPointerLeave:rt,onDisabledClick:Le,isInteractive:J,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Ce){y(Ce)}}),b(t,Ut),K(),o()}var D$={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 ed(t,e){q(e,!0),Q(t,D$);let[i,o]=Fe(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Ie(),l=d.ui.isMobile,p=d.ui.t,f=m(()=>nr(s())),_=m(()=>nr(a())),u=m(()=>a()/s()),$=m(()=>p("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(u)*100));ta(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),K(),o()}var O$=L("<div><!></div>"),H$=L("<div></div>"),F$={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {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-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function td(t,e){q(e,!0),Q(t,F$);let[i,o]=Fe(),n=()=>C(u,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),p=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Ie(),u=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Ue(),A=ge(I);{var P=T=>{var R=O$();let z;var Y=h(R);{var U=J=>{ed(J,{get position(){return s()},get duration(){return d()}})},Z=J=>{lf(J,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};B(Y,J=>{l()?J(U):J(Z,!1)})}g(R),k(J=>z=te(R,1,"timeline svelte-1gqonyf",null,z,J),[()=>({mobile:a()})]),b(T,R)},E=T=>{var R=H$();let z;k(Y=>z=te(R,1,"timeline-stub svelte-1gqonyf",null,z,Y),[()=>({mobile:a()})]),b(T,R)};B(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),K(),o()}import{noop as q$}from"@vkontakte/videoplayer-shared/es2018";var U$=be('<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 df(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=U$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=Se(o,n,{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})),b(t,o)}var z$=be('<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 cf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=z$();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var K$=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),W$=L('<span class="text svelte-1yhs2ga"> </span>'),Q$=L('<span class="text count svelte-1yhs2ga"> </span>'),G$=L("<!> <!>",1),Y$={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 id(t,e){var le,Le,Re;q(e,!0),Q(t,Y$);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Ie(),u=(Le=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Le:q$,$=!!((Re=_.callbacks)!=null&&Re.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=X=>{var j,N,Ve;if(!!((j=_.callbacks)!=null&&j.onEpisodeClicked)){let xe=ys(X);y.set(xe),S.set(!0),(Ve=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||Ve.call(N,xe)}},T=ee(null),R=m(()=>l()/p());je(()=>{var Me;let X=Vc(r(R),p(),f());X?((Me=r(T))==null?void 0:Me.time)!==X.time&&(u(X),O(T,he(X))):O(T,null)});let z=m(()=>{var X;return((X=r(T))==null?void 0:X.text)||""}),Y=m(()=>Di(n(),"xl")?"FULL":Di(n(),"m")&&Ch(n(),"xl")?"COUNT":"SHORT"),U=m(()=>`${A("tooltip_episodes")}: ${r(z)}`),Z=async(X,Me,j)=>{await go(),(X==null?void 0:X.getAttribute("aria-expanded"))==="false"&&Me&&!j&&ht(()=>{y.set(!1),X.focus()})};je(()=>{Z(r(P),a(),s())});var J=Ue(),oe=ge(J);{var ce=X=>{let Me=m(()=>d()?"px-0":"");kt(X,{get className(){var j;return`w-max btn-full-opacity btn-jc-l ${(j=r(Me))!=null?j:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(U)},get ref(){return r(P)},set ref(j){O(P,he(j))},children:(j,N)=>{var Ve=Ue(),xe=ge(Ve);{var re=ue=>{var D=K$(),de=ge(D),Ee=h(de,!0);g(de);var Qe=M(de,2),at=h(Qe);cf(at,{}),g(Qe),k(()=>fe(Ee,r(z))),b(ue,D)},Be=ue=>{var D=G$(),de=ge(D);df(de,{});var Ee=M(de,2);{var Qe=Ae=>{var ye=W$(),Pe=h(ye,!0);g(ye),k(()=>fe(Pe,r(z))),b(Ae,ye)},at=(Ae,ye)=>{{var Pe=nt=>{var pt=Q$(),tt=h(pt,!0);g(pt),k(()=>fe(tt,f().length)),b(nt,pt)};B(Ae,nt=>{r(Y)==="COUNT"&&nt(Pe)},ye)}};B(Ee,Ae=>{r(Y)==="FULL"?Ae(Qe):Ae(at,!1)})}b(ue,D)};B(xe,ue=>{d()?ue(re):ue(Be,!1)})}b(j,Ve)},$$slots:{default:!0}})};B(oe,X=>{r(T)&&X(ce)})}b(t,J),K(),o()}import{debounceFn as Y2}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as o2,PlaybackState as od,Player as n2,PredefinedQualityLimits as zr,VideoFormat as nd,clientChecker as r2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Kn,getHighestQuality as s2,InterfaceLanguage as a2,isInvariantQuality as l2,isNonNullable as d2,loadVKLangPack as c2,Logger as u2,map as Nh,merge as p2,Observable as f2,Subject as Fc,Subscription as gf,Tracer as m2,ValueSubject as v2,VideoQuality as g2,devNull as h2,now as _2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as ns}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as j$,devNull as qt,now as Kt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Z$,Subject as Fo,clearVideoElement as X$}from"@vkontakte/videoplayer-shared/es2018";var Ah=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var J$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Rc=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=>(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Kt()]}),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?(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Kt()]}),i(),this.events.loadEnded$.next()):(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Kt()]}),o())};Z$(J$,e,this.loadTimeout).then(()=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Kt()]}),window.AdmanHTML?(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Kt()]}),i(),this.events.loadEnded$.next()):(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Kt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Kt()]}),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?(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Kt()]}),i(),this.events.loadEnded$.next()):(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Kt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Kt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Kt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Kt()]}),!d&&(window.AdmanHTML?(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Kt()]}),i(),this.events.loadEnded$.next()):(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Kt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Kt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Kt(),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;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Kt()]}),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;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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")=>{qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Kt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Kt(),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:p={},duration:f,previewParam:_}=e,u,$=this.playerState&&we(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=j$(),S=(P=w?y:window.location.href)!=null?P:window.location.href,I={...p,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:f,puid10:Ah(i,o),puid11:n?0:1};_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[Kt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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(qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Kt()]}),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,p,f,_,u;qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Kt()]}),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),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&X$(this.videoElement),this.isDestroyed=!0}};var Ph=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 uf=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 p=new Bc,{startTime:f,endTime:_}=p.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let p=new pf,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Bc=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}},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](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((f,_)=>{let u=s.indexOf(_,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Bc;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}},Mh=uf;import{isNonNullable as ff}from"@vkontakte/videoplayer-shared/es2018";var ia,$i,mf=0,vf=!1,Lh="",Vh=(t,e=0,i=0)=>t<e&&t<i,Nc=(t,e=0,i=0)=>t>=e&&t<=i,e2=(t,e=0,i=0)=>t>e&&t>i,Rh=(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:p,endTime:f})=>Nc(t,p,f));let a=t>=mf,s=t<mf;if(mf=t,s&&(vf=!1),ff(ia)&&Nc(t,ia.startTime,ia.endTime)&&Lh===e.value)return ia;if(!ff($i)&&(n!=null&&n.length)&&!vf){$i=n.find(({startTime:p,endTime:f})=>Nc(t,p,f)||a&&Vh(t,p,f)),ia=void 0,!ff($i)&&n[n.length-1].endTime<t&&(vf=!0);return}else{if(Nc(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))return ia=$i,$i=void 0,Lh=e.value,ia;(a&&e2(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime)||s&&Vh(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))&&($i=void 0)}};var Bh={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"},t2={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"},Dc=t=>{var e,i;return(i=(e=Bh[t])!=null?e:Bh[t2[t]])!=null?i:void 0};import{Subscription as i2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Oc=class{constructor(e,i,o=new i2){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Hc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Hc||{});var Ur=t=>t!=null?t:0,za=(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(Ur(i==null?void 0:i.top)-Ur(o==null?void 0:o.top)),left:Math.round(Ur(i==null?void 0:i.left)-Ur(o==null?void 0:o.left)),bottom:Math.round(Ur(i==null?void 0:i.bottom)-Ur(o==null?void 0:o.top)),right:Math.round(Ur(i==null?void 0:i.right)-Ur(o==null?void 0:o.left))}},qa=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Ur(e==null?void 0:e.width),height:Ur(e==null?void 0:e.height)}};var Dh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,additionalButtons:z,additionalSettingsMenuItems:Y,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:J,looped:oe=!1,statistics:ce,saveRate:le,internalsExposure:Le})=>{var Pm,Mm,Lm;let Re={...$,configName:[...(Pm=$.configName)!=null?Pm:[],"ui"],isAudioDisabled:s,live:{...(Mm=$.live)!=null?Mm:{},isLiveCatchUpMode:!!n}},X=u,Me=m2.createRootTracer(X.features.saveTraceInfoToFile),j=Me.createComponentTracer("Store"),N=w||new n2(Re,Me);Le==null||Le.expose({corePlayer:N});let Ve=new u2,xe=new Rc(Ve,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout,useAdmanFromNPM:X.ads.useAdmanFromNPM,volumeMultiplier:X.ads.volumeMultiplier,isVsidOriginal:X.ads.isVsidOriginal}),re=Ks.getInstance(),Be=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,D=Ve.createComponentLog("Store"),de,Ee,Qe={},at=new pc,Ae=ce&&ce.oneStat?Wt(ce.oneStat.vsid$):or(void 0),ye=ae(_s()),Pe=ae(!1),nt=(Lm=Be==null?void 0:Be.info.isActive$)!=null?Lm:new v2(!1),pt=ae(0),tt=ae([]),Lt=p2(N.events.fatalError$,N.events.managedError$).subscribe(c=>tt.update(x=>[...x,c])),rt=or(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ft=async c=>{var ve;let x=Object.values(a2).includes(c);if(X.downloadVKLanguages&&(x&&X.updateBuiltinLanguages||!yp(c))){let We;try{We=await c2(c,yg,xg)}catch(xt){(ve=ce==null?void 0:ce.oneStat)==null||ve.logError({errorType:"VKLangPack",fatal:!1}),re==null||re.report(xt,{errorType:"VKLangPack",fatal:!1})}We&&($p({language:c,pack:We,fallback:X.defaultLanguage}),Ht.set(c))}yp(c)&&Ht.set(c)},Ht=ae(t),Ut=ae(e);ft(t);let Ne=(c,x)=>{let V=we(Ht);return xp(V,c,x,X.defaultLanguage)},ne=ae("thumb"),W=(()=>{let c=vi([rt,ne],([x,V])=>x?"crashed":V);return{...c,is:x=>we(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(V=>new Set([...V].concat(x)))},remove:x=>{c.update(V=>{let ve=[...V];return new Set(Array.isArray(x)?ve.filter(We=>!x.includes(We)):ve.filter(We=>We!==x))})},includes:x=>{let V=we(c);return Array.isArray(x)?x.every(ve=>V.has(ve)):V.has(x)}}})();j.log("create store"),D({message:"create store"});let pe=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),Xe=new MutationObserver(V=>{let{removedNodes:ve}=V[0];ve.length&&x.append(N.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Ce=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?pe(c):(h2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[_2()]}),N.initVideo(c)),j.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),de=c},Oe=new Fc,dt=c=>Oe.next(c),Vt=new Fc,qe=new Fc,vt=new Fc,Xe=null,$t={actionRewind$:Vt,actionSeek$:qe,inPiP$:nt,inFullscreen$:new f2(c=>ye.subscribe(x=>c.next(x))),actionSetSubtitle$:vt,nextMovie$:Oe},Qt={actionSeek$:qe};if(ce){let{oneStat:c,thinOneStat:x,statSubscription:V}=ce;c&&(S||V.add(c.attachTo(N)),V.add(c.attachToUi($t)),V.add(c.attachToAds(xe.events)),c.authorize(a).catch(ve=>{D({message:`onestat auth error ${String(ve)}`})})),x&&(V.add(x.attachTo(N)),V.add(x.attachToUi(Qt)),x.authorize(a))}if(re){let c=new gf,x=(V,ve)=>c.add(V.subscribe(ve));if(x(N.events.managedError$,V=>{re.logIError(V)}),x(N.events.fatalError$,V=>{re.logIError(V,!0)}),ce){let{oneStat:V}=ce;V&&x(V.experimental.error$,ve=>{re.logIError(ve)})}re.sentrySubscription.add(c)}let Ye=()=>{r2.device.isIOS&&Ee&&rh(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},wt=new gf().add(N.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),Gs(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;Ye(),(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(async()=>{var x,V;Gs(Be)&&await(Be==null?void 0:Be.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(V=Qe.onStarted)==null||V.call(Qe,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var V;(V=l==null?void 0:l.onSeek)==null||V.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 V;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((V=l==null?void 0:l.onTimeupdate)==null||V.call(l,x,c),xe.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(()=>{Tt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Tt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(Pl),se.add("PLAY_BUTTON")):se.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(xe.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(xe.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(xe.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(xe.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(xe.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(xe.events.started$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:V.call(x,c)})).add(xe.events.timeRemained$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:V.call(x,c)})).add(xe.events.ended$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:V.call(x,c)})).add(xe.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(xe.events.clicked$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:V.call(x,c)})).add(xe.events.closed$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:V.call(x,c)})).add(xe.events.error$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:V.call(x,c)})).add(xe.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(xe.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)})),li=new gf,oi=()=>{var xt,At,Ot;let{debugLog:c}=X,x,V="#9df7b7",ve="#efd169";if(c&&c!==!0){let{colors:Pt}=c;x=c.tag,V=(xt=Pt==null?void 0:Pt[0])!=null?xt:V,ve=(Ot=(At=Pt==null?void 0:Pt[1])!=null?At:Pt==null?void 0:Pt[0])!=null?Ot:ve}let We=x?`: ${x}`:"";li.add(N.events.log$.subscribe(Pt=>{console.debug(`%c sdk${We} `,`background:${V};`,`sdk component: ${Pt.component}`,Pt.message)})).add(Ve.log$.subscribe(Pt=>{console.debug(`%c ui${We} `,`background:${ve};`,`ui component: ${Pt.component}.`,Pt.message)}))},Ci=()=>{li.unsubscribe()},Oi=(c,x)=>{j.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Mo=(c=!1)=>{j.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},$o=(c,x,V)=>{j.log("move camera focus px",{xpx:c,ypx:x,dt:V}),N.moveCameraFocusPX(c,x,V)},yo=()=>{N.holdCamera()},Lo=()=>{N.releaseCamera()},H=or(N.info.position$.getValue(),c=>{let x,V,ve=()=>{let We=N.info.playbackState$.getValue(),xt=N.info.isLive$.getValue(),At=N.info.duration$.getValue(),Ot=N.info.position$.getValue();if(We&&[od.PLAYING,od.PAUSED].includes(We)){let Pt=xt?Ot-At:N.getExactTime();Pt!==V&&c(Pt),V=Pt}x=requestAnimationFrame(ve)};return ve(),()=>cancelAnimationFrame(x)}),Ke=Wt(N.info.playbackState$),ni=Wt(N.info.currentBuffer$),Hi=Wt(N.info.isEnded$),Jt=Wt(N.info.isLive$),ui=X.features.playbackRate?Wt(N.info.canChangePlaybackSpeed$):or(!1),no=Wt(N.info.liveBufferTime$),ro=Wt(N.info.volume$),so=Wt(N.info.muted$),zo=fc(N.info.predefinedQualityLimitType$.pipe(Nh(c=>c===zr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===zr.TRAFFIC_SAVING),Rt=fc(N.info.predefinedQualityLimitType$.pipe(Nh(c=>c===zr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===zr.HIGH_QUALITY),di=Wt(N.info.autoQualityLimitingAvailable$),yt=Wt(N.info.availableQualities$),Ft=Wt(N.info.availableQualitiesFps$),zi=Wt(N.info.chromecastState$),Yt=Wt(N.info.chromecastDeviceName$),yn=Wt(N.info.currentFormat$),xo=Wt(N.info.throughputEstimation$),qo=Wt(N.info.videoBitrate$),ri=Wt(N.info.intrinsicVideoSize$),_t=Wt(N.info.duration$),qi=Wt(N.info.isAudioAvailable$),yi=null,ci=N.info.isBuffering$,xn=or(ci.getValue(),c=>{let x=ci.subscribe(V=>{V&&yi===null?yi=window.setTimeout(()=>{c(ci.getValue()),yi=null},X.loaderDelay):c(V)});return()=>{x.unsubscribe(),yi&&clearTimeout(yi)}}),Ki=()=>{yi&&clearTimeout(yi),yi=null},Fi=vi([_t,Jt],([c,x])=>x?-c:c),Ko=vi([Ke],([c])=>c===od.PLAYING),wn=Wt(N.info.atLiveEdge$),Ti=Wt(N.info.atLiveDurationEdge$),sn=Wt(N.info.position$),an=vi([sn,_t],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Vo=vi([zi],([c])=>c===o2.CONNECTED),ln=Wt(N.info.availableVideoStreams$),Er=X.features.audioLanguages?Wt(N.info.availableAudioStreams$):or([]),sr=Wt(N.info.currentVideoStream$),Qn=Wt(N.info.currentAudioStream$),Sn=c=>{c.language&&bp(c.language),N.setVideoStream(c)},Cn=c=>{c.language&&bp(c.language),N.setAudioStream(c)},Tn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ve=>"isDefault"in ve&&ve.isDefault)),x)return x;let V=Kg();return V&&(x=c.find(({language:ve})=>V===ve)),x!=null||(x=c.at(0)),x},ao=!1;wt.add(N.info.availableAudioStreams$.subscribe(c=>{if(!ao&&c.length){let x=Tn(c);x&&(N.setAudioStream(x),ao=!0)}}));let Je=!1;wt.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Je&&c.length){let x=Tn(c);x&&(N.setVideoStream(x),Je=!0)}}));let Wo=ae(void 0),dn=Wt(N.info.isAutoQualityEnabled$,c=>c&&Wo.set(void 0)),ar=Wt(N.info.currentQuality$,()=>Wo.set(void 0)),In=vi([Wo,ar],([c,x])=>c!=null?c:x),Qo=vi(yn,c=>c!==nd.MPEG),Gn=vi([yt,Ft,dn,In,Qo],([c,x,V,ve,We])=>{let xt=[];We&&xt.push({value:"auto",displayValue:Ne("auto_quality_option"),selected:V});let At=c.filter(Ot=>!l2(Ot));for(let Ot of At){let Pt=x[Ot];xt.push({value:Ot,displayValue:`${Ot}${Pt?Ph(Pt):""}`,selected:V?!1:Ot===ve})}return xt}),Go=Wt(N.info.currentPlaybackRate$),cn=vi([Go,wn,Ti],([c,x,V])=>{let ve=V||S?1:X.controls.playbackRateMin,We=x?1:X.controls.playbackRateMax,xt=X.controls.playbackRateStep,At=[];for(let Ot=ve;Ot<=We;Ot+=xt)At.push({value:Ot,displayValue:Ot===1?Ne("playback_rate_1"):Ne("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return At}),Pi={displayValue:Ne("subtitles_off"),value:"off"},wo=ae({...Pi}),un=X.features.subtitles?Wt(N.info.availableTextTracks$):or([]),kn=Bg(),lr=vi([un,wo],([c,x],V)=>{var xt;let ve=[],We=c.find(({id:At})=>At===x.value);if(We!=null&&We.url){let[,At]=(xt=kn.find(We.url))!=null?xt:[];if(At){V(At);return}at.download(We.url).then(Ot=>{if(!Ot||at.isDestroyed())return;let Pt=new Mh,ds=We.language;if(ds){let C1=!!We.isAuto,T1=Pt.parse(Ot,ds);ve.push({lang:ds,subtitles:T1,isAuto:C1,id:We.id})}kn.add(We.url,ve),we(wo).value===x.value&&V(ve)}).catch(Ot=>{var Pt;(Pt=ce==null?void 0:ce.oneStat)==null||Pt.logError({errorType:"Subtitles download",fatal:!1}),re==null||re.report(Ot,{errorType:"Subtitles download",fatal:!1})})}V(ve)}),lo=vi([Go,Ko,wo],([c,x,V],ve)=>{let At;if(N.info.isLive$.getValue()&&x&&V.value!==Pi.value){let Pt=()=>{let ds=1e3/(3*c);At=setTimeout(Pt,ds),ve(Date.now())};return Pt(),()=>clearTimeout(At)}}),Ro=vi([un,wo],([c,x])=>{if(!c.length)return[];let V=[];for(let{language:ve,isAuto:We,id:xt}of c){let At=ve&&Dc(ve);ve&&At&&V.push({displayValue:We?Ne("subtitles_auto",{language:At}):At,value:xt,selected:(x==null?void 0:x.value)===xt,isAuto:We})}return V.length?(V.unshift({...Pi,selected:(x==null?void 0:x.value)===Pi.value}),V):[]}),So={available:[],prev:[]},En=()=>{var x,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?V:0},co=vi([H,wo,lr,lo],([c,x,V,ve])=>{var xt;let We=N.info.isLive$.getValue();if(We&&So.prev!==V){let At=V.find(({id:Pt})=>Pt===x.value),Ot=So.prev.find(({id:Pt})=>Pt===x.value);if(At){let Pt={...At,subtitles:[...(xt=Ot==null?void 0:Ot.subtitles)!=null?xt:[],...At.subtitles]};So.available=[Pt],So.prev=V}}if(x&&x.value!==Pi.value){let At=We?En():c,Ot=We?So.available:V;return Rh(At,x,Ot,We)}}),Wi=vi([co],([c])=>c!=null&&c.texts?c.texts:[]),An=ae(!0),Yo=vi([ni,Fi,sn,no],([c,x,V,ve])=>{var Ot;let We=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!ve)return We/x;let At=-V+ve-x;return(We-At)/x}),dr=Wt(N.info.availableSources$),Pn=vi([dr],([c])=>Object.keys((c==null?void 0:c[nd.MPEG])||{}).length>0),cr=()=>{var V,ve,We;let c=Object.keys(((ve=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ve[nd.MPEG])||{}),x=s2(c)||g2.Q_144P;return(We=de.sources[nd.MPEG])==null?void 0:We[x]},Mn=()=>{var x;let c=cr();if(c)j.log("download video",{url:c}),Lg(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let V="There is no URL for download video";j.log("download video",{message:V}),D({message:V})}},Ln=()=>{D({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?jt(Vn()):jo(!c)},Ar=()=>{var c;if(Tt.ui.settingsMenu.visible$.set(!1),!we(Tt.ui.settingsSubMenu.visible$)){let x=we(Tt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ve=qa(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ve,position:We,name:"settings"})}}j.log("close settings menu")},Yn=async(c,x=()=>Promise.resolve())=>{var We;Tt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Tt.ui.settingsMenu.visible$.set(!0),await x();let V=we(Tt.ui.settingsMenu.ref$),ve=ua();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&V&&ve){let At=qa(V),Ot=za(V,ve);l.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ot,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:c})},ur=(c,x=!1)=>{var xt;Tt.ui.settingsSubMenu.visible$.set(!1);let V=we(Tt.ui.settingsMenu.ref$),ve=ua(),We=we(Tt.ui.settingsMenu.visible$);if((xt=l==null?void 0:l.uiInfo)!=null&&xt.onSettingsMenu&&V&&ve)if(We&&!x){let Ot=qa(V),Pt=za(V,ve);l.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Pt,name:"settings"})}else{let Ot=qa(c),Pt={top:0,left:0,bottom:0,right:0},ds=we(Tt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Pt,name:ds})}j.log("close settings sub menu")},Pr=(c,x)=>{var ve;Tt.ui.settingsSubMenu.visible$.set(!0),Tt.ui.settingsSubMenu.ref$.set(x),Tt.ui.settingsSubMenu.name$.set(c);let V=ua();if((ve=l==null?void 0:l.uiInfo)!=null&&ve.onSettingsMenu&&x&&V){let xt=qa(x),At=za(x,V);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:xt,position:At})}j.log("open settings sub menu",{name:c})},Vn=()=>{var x;let c=Math.max(X.volumeMinRestore,(x=mc())!=null?x:0);return c===0?X.volumeDefault:c},jt=c=>{let x=c===0?Vn():c,V=N.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),V&&c>0&&!s&&(V=!1,hp(!1)),N.setVolume(c,V),xe.setVolume(c),pp(x)},jo=c=>{let x=N.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),xe.setVolume(c?0:x),hp(c),!c&&x===0){let V=Vn();N.setVolume(V),pp(V),xe.setVolume(V)}},pr=ae(!1),fr=c=>{j.log("set looped",{isLooped:c}),pr.set(c),N.setLooped(c)};fr(oe);let it=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ct=(c,x=!1)=>{var V;D({message:`set autoplayNextEnabled, value: ${c}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:c}),Tt.ui.autoplayNextEnabled$.set(c),Gg(c),x&&((V=l==null?void 0:l.onSetAutoplayNextEnabled)==null||V.call(l,c))},xi=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),j.log("set timer next video running",{timerNextVideoRunning:c}),Tt.ui.timerNextVideoRunning$.set(c)},Qi=(c=!0)=>{var V;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(V=l==null?void 0:l.onPrevVideoClick)==null?void 0:V.call(l)}catch(ve){D({message:"onPrevVideoClick callback failed to execute"})}x&&Z()},Gi=(c=!0)=>{var V;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(V=l==null?void 0:l.onNextVideoClick)==null?void 0:V.call(l)}catch(ve){D({message:"onNextVideoClick callback failed to execute"})}x&&J()},Co=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Bo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},No=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},To=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Ze=()=>{N.prepare()},Ct=()=>{Kn(Tt);let c=we(Tt.ui.controls.disabledControls$),x=we(Tt.playerPhase),V={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){V.action="play",j.log("toggle adman play",V),xe.togglePlay();return}let ve=()=>{var xt;D({message:"toggle play, call player.play"}),V.action="play",N.play(),(xt=l==null?void 0:l.onPlay)==null||xt.call(l)},We=()=>{var xt;D({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(xt=l==null?void 0:l.onPause)==null||xt.call(l)};if(N.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Vt.next(),qe.next(ns.REWIND),S){P==null||P();return}N.seekTime(0),ve()}else N.info.playbackState$.getValue()!==od.PLAYING?ve():We();j.log("toggle play",V)},Ii=(c,{changeReason:x="default",appliesTo:V="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),j.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(X.features.qualityDetailsSubMenuEnabled?(vc({type:"exact_quality",quality:c,videoId:i},V),Ll(),N.setPredefinedQualityLimits(zr.UNKNOWN)):fp(i,c),Wo.set(c),N.setQuality(c)):X.features.qualityDetailsSubMenuEnabled?x==="default"&&(Yi("auto_quality",V),we(zo)&&Mi(!1),we(Rt)&&Li(!1)):Ll()},Mi=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?zr.TRAFFIC_SAVING:zr.UNKNOWN;X.features.qualityDetailsSubMenuEnabled?(gi(V,x),Ml(!1)):(N.setPredefinedQualityLimits(V),Ml(c))},Li=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),j.log("set high quality enabled",{highQualityEnabled:c}),gi(c?zr.HIGH_QUALITY:zr.UNKNOWN,x)},gi=(c,x)=>{c!==zr.UNKNOWN&&(we(di)&&!we(dn)&&Ii("auto",{appliesTo:x,changeReason:"limit-changed"}),Yi(c,x)),N.setPredefinedQualityLimits(c)},Yi=(c,x)=>{vc({type:c,videoId:i},x),x==="as-default"&&vc({type:c,videoId:i},"to-video")},Vi=c=>{j.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),X.features.saveRate&&le&&!N.info.isLive$.getValue()&&Wg(c)},Rn=()=>{let c=we(cn),x=c.findIndex(({selected:ve})=>ve);if(x===c.length-1)return;let V=c[x+1];Vi(V.value)},mr=()=>{let c=we(cn),x=c.findIndex(({selected:ve})=>ve);if(x===0)return;let V=c[x-1];Vi(V.value)},Bn=(c={...Pi,selected:!1})=>{j.log("set subtitles",{...c}),c&&c.value!==Pi.value&&vt.next(c.isAuto?c.value+"_auto":c.value),wo.set(c)},Mr=()=>{j.log("toggle subtitles");let c=we(Ro),x=we(wo),V=we(Ht);if((x==null?void 0:x.value)===Pi.value){let ve=c.filter(We=>We.value!==Pi.value).find(We=>We.value===V)||c[1];Bn(ve)}else Bn()},uo=(c,x,V=!0)=>{var ve;if(D({message:`seek to time, time: ${c}`}),j.log("seek to time",{time:c,action:x,forcePrecise:V}),qe.next(x),N.info.isLive$.getValue()){let We=N.info.duration$.getValue(),xt=Math.min(0,We+c);N.seekTime(xt,V)}else{if(A!=null&&A.getValue())return;N.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ve=l==null?void 0:l.onPlay)==null||ve.call(l)),N.seekTime(Oo(c),V)}},Lr=c=>{D({message:`seek to episode start time: ${c}`}),j.log("seek to episode start time",{time:c}),uo(c,ns.EPISODE,!0)},jn=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),j.log("seek to percent",{percent:c,action:x});let V=we(Fi)*c;uo(V,x,!1)},Vr=c=>{D({message:`seek external, time: ${c}`}),j.log("seek external",{time:c}),qe.next(ns.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},vr=c=>{var ve,We;let x=(ve=c.max)!=null?ve:"none",V=(We=c.min)!=null?We:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${V}`}),j.log("set auto quality limits",{max:x,min:V}),N.setAutoQualityLimits(c)},pn=c=>{D({message:`seek external to episode start time: ${c}`}),j.log("seek external to episode start time",{time:c}),uo(c,ns.EPISODE,!0)},Zn=c=>{D({message:`set playback rate to: ${c}`}),j.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},gr=ae(void 0),Nn=ae(!1),Io=c=>{D({message:`start scrubbing, progress: ${c}`}),j.log("start scrubbing",{progress:c}),Nn.set(!0),Xn(c)},Xn=c=>{gr.set(c)},hr,et,Dt=()=>{gr.set(void 0),Nn.set(!1)},$e=()=>{clearTimeout(et),clearTimeout(hr),hr=window.setTimeout(()=>{Dt()},500),Ee==null||Ee.removeEventListener("seeked",$e)},Et=c=>{D({message:`complete scrubbing, progress: ${c}`}),j.log("complete scrubbing",{progress:c}),jn(c,ns.SLIDER),we(Tt.ui.isMobile)&&we(Tt.state.currentFormat$)===nd.HLS?(Ee==null||Ee.addEventListener("seeked",$e),et=window.setTimeout(()=>{$e()},300)):Dt()},ei=vi([H,Fi,gr],([c,x,V],ve)=>{ve(d2(V)?V*x:c)}),Gt=ae(!1),po=()=>{Gt.set(!0)},Ri=()=>{Gt.set(!1)},ti=ae({width:0,height:0}),ai=vi([ti],([{width:c}],x)=>{let V=Th(c);x(V)}),hi=ae(!1),Ui=z.filter(c=>Vg(c)),ko=vi([ai,hi],([c,x])=>x?Ui.filter(V=>!V.hideOnMobile):Ui.filter(V=>{var ve;return!((ve=V.hideOnDesktopGridTypes)!=null&&ve.includes(c))})),si=ae(z.filter(c=>Rg(c))),qr=vi([si,ai],([c,x])=>c.filter(V=>{var ve;return!((ve=V.hideOnDesktopGridTypes)!=null&&ve.includes(x))})),ze=vi([qr,ko],([c,x])=>[...X.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...X.features.additionalButtons?x.map((V,ve)=>{var We;return{id:ve,weight:ve,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(We=V.ariaLabel)!=null?We:V.tooltip,tooltipText:V.tooltip}}):[]]),Bt=ae(Y),_i=vi([Bt],([c])=>X.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Eo=(c,x)=>{let V=we(si).map(ve=>ve.id!==c?ve:{...ve,...x});si.set(V)},fn=c=>{let x=we(si);if(x.some(V=>V.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),si.set(x)},Kr=c=>{let x=we(si);if(!x.some(V=>V.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),si.set(x)},Dn=c=>{qe.next(ns.LIVE),D({message:"live switch to low latency "+c}),j.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Rr=(c,x)=>{let V=we(Bt).map(ve=>ve.id!==c?ve:{...ve,...x});Bt.set(V)},ja=c=>{let x=we(Bt);if(x.some(V=>V.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Bt.set(x)},Ts=c=>{let x=we(Bt);if(!x.some(V=>V.id===c)){D({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),Bt.set(x)},_r=ae(U),da=vi([_r],([c])=>X.features.additionalContextMenuItems?c:[]),ca=(c,x)=>{let V=we(_r).map(ve=>ve.id!==c?ve:{...ve,...x});_r.set(V)},Is=c=>{let x=we(_r);if(x.some(V=>V.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),_r.set(x)},gt=c=>{let x=we(_r);if(!x.some(V=>V.id===c)){D({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),_r.set(x)},mt=vi([hi,rt],([c,x],V)=>{V(c&&x)}),ji=()=>{qe.next(ns.LIVE),D({message:"switch to active live"}),j.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==od.PLAYING&&Tt.actions.internal.togglePlay()},Do=()=>{j.log("skip adman"),xe.skip()},Zi=(c=!0)=>{Kn(Tt),D({message:`switch from ads to video, callPlay: ${c}`}),j.log("switch from ads to video",{callPlay:c}),ne.set("video"),c&&N.play()},ii=()=>{Kn(Tt),D({message:"switch from video to ads"}),j.log("switch from video to ads"),Tt.actions.internal.pause(),Ye(),ne.set("ads")},ki=c=>{Kn(Tt);let x=c?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:c,playerPhase:x}),ne.set(x)},ls=c=>{Kn(Tt);let x=c?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:c,playerPhase:x}),ne.set(x)},Za=c=>{Kn(Tt);let x=c?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:c,playerPhase:x}),ne.set(x)},Bd=()=>(Kn(Tt),j.log("get debug text data"),Pg(N,de,Tt)),au=()=>(Kn(Tt),JSON.stringify(Me.getFinishedSpans())),Nd=()=>(Kn(Tt),Mg(N,de,Tt)),ua=()=>Ee,Dd=()=>{D({message:"toggle chromecast"}),j.log("toggle chromecast"),N.toggleChromecast()},Xa=c=>{var V;if(Kn(Tt),N.info.isEnded$.getValue())return;let x=!c;if(we(Tt.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),j.log("pause ads",{internalCall:x}),xe.pause();return}D({message:`pause video, internalCall: ${x}`}),j.log("pause video",{internalCall:x}),x&&((V=l==null?void 0:l.onPause)==null||V.call(l)),N.pause()},Ja=c=>{var V;Kn(Tt);let x=!c;if(we(Tt.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),j.log("play ads",{internalCall:x}),xe.play();return}D({message:`play video, internalCall: ${x}`}),j.log("play video",{internalCall:x}),x&&((V=l==null?void 0:l.onPlay)==null||V.call(l)),N.play()},lu=c=>{Kn(Tt);let x=!c;if(we(Tt.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},el=(c,x)=>{Kn(Tt),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),j.log("first start",{showAds:c,external:x}),c?ne.set("ads"):(ne.set("video"),x?N.play():Tt.actions.internal.togglePlay())},tl=()=>(D({message:"getting time codes"}),f),il=()=>{let c=tl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(V=>V.time>x)},du=c=>{let x=c;x||(x=il());let V=N.info.position$.getValue();j.log("seek to next episode",{currentTime:V,...x}),x&&(D({message:"seek to next episode"}),uo(x.time,ns.EPISODE,!0))},ol=()=>{let c=tl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),V=c.findIndex(We=>We.time>x),ve=V===-1?c.length-2:V-2;if(!(ve<0))return c[ve]},cu=c=>{let x=c;x||(x=ol());let V=N.info.position$.getValue();j.log("seek to prev episode",{currentTime:V,...x}),x&&(D({message:"seek to prev episode"}),uo(x.time,ns.EPISODE,!0))},uu=()=>(D({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),He=async()=>{let c=Be==null?void 0:Be.isActive(),x="none";Be!=null&&Be.isActive()?(x="remove",await(Be==null?void 0:Be.remove())):(x="request",await(Be==null?void 0:Be.request())),j.log("toggle picture in picture",{isActive:c,action:x})},Xt=(c=-90)=>{j.log("rotate video",{alphaDiff:c}),pt.update(x=>x+c)},fo=ae([]);I==null||I.subscribe(c=>{let x=[];for(let V=0;V<c.length;V++){let{range:[ve,We],subjects:xt}=c[V];V===0&&ve!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ve/1e3,text:"",interactive:!0,completed:X.features.interactiveTimeOpenUri?!xt.length||xt.every(At=>At.isRemoved):!xt.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}fo.set(x)});let ks=ae(!1);A==null||A.subscribe(c=>{c&&we(Nn)&&Dt()});let Oo=c=>{if(!S)return c;let x=we(fo),V=we(Fi),We=we(sn)/V,xt=x.find(At=>At.interactive&&!At.completed&&At.time>We);return typeof(xt==null?void 0:xt.time)=="number"?Math.min(c,xt.time-.05):c},w1=()=>{Tt.ui.episodes.panelOpened$.set(!1)},S1=()=>{j.log("destroy store"),clearTimeout(et),clearTimeout(hr),wt.unsubscribe(),li.unsubscribe(),N.destroy(),xe.destroy(),ce==null||ce.destroy(),re==null||re.destroy(),Lt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,at.destroy()},Tt={interfaceLanguage$:Ht,isCyrillicRelatedInterface$:Ut,initVideo:Ce,videoId:i,isClip:o,playerPhase:W,vsid:Ae,state:{positionExact$:H,positionWithScrubbing$:ei,duration$:Fi,playbackState$:Ke,isPlaying$:Ko,isLoaderVisible:xn,bufferedProgress$:Yo,isLive$:Jt,canChangePlaybackSpeed$:ui,isActiveLive$:wn,isOldestAvailableLive$:Ti,isRewindableLive$:an,isEnded$:Hi,muted$:so,volume$:ro,trafficSavingEnabled$:zo,highQualityEnabled$:Rt,autoQualityLimitingAvailable$:di,availableVideoStreams$:ln,availableAudioStreams$:Er,videoStream$:sr,audioStream$:Qn,currentQuality$:In,isAutoQualityEnabled$:dn,availableQualities$:Gn,currentPlaybackRate$:Go,availablePlaybackRates$:cn,currentSubtitle$:wo,availableTextTracks$:un,availableSubtitlesList$:Ro,currentSubtitleCaptions$:Wi,isAutoSubtitleCaptionVisible$:An,chromecastState$:zi,chromecastDeviceName$:Yt,chromecastConnected$:Vo,currentFormat$:yn,throughputEstimation$:xo,videoBitrate$:qo,videoSize$:ri,errorLog$:tt,crashed$:rt,isAudioAvailable$:qi,isAudioDisabled:!!s,canDownload:X.features.download&&!!d,availableSources$:dr,hasMpegSources$:Pn,isInteractive:S,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!we(fo).length,interactiveEpisodes$:fo,isInteractiveTime$:A?Wt(A):ae(!1),isInteractiveExpectation$:ks,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,looped$:pr,loadedMetadata$:ae(!1),isAutoQualityAvailable$:Qo},ui:{t:Ne,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:z.length?z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,isFullscreenOpenedByKeyboard:Pe,rotateAlpha:pt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ti,isMobile:hi,mobileNotReportControlHidden$:mt,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Nn,volumeChangingInProgress:Gt,is3DVideo:ae(!1),currentGridType$:ai,additionalButtonsDeprecated$:ko,additionalDesktopControlPanelRightButtons$:ze,additionalSettingsMenuItems$:_i,additionalContextMenuItems$:da,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)}},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:ue},actions:{internal:{preload:Ze,firstStart:c=>el(c,!1),play:()=>Ja(!1),pause:()=>Xa(!1),togglePlay:Ct,toggleMuted:Ln,openSettingsMenu:Yn,closeSettingsMenu:Ar,openSettingsSubMenu:Pr,closeSettingsSubMenu:ur,setVolume:jt,startVolumeChanging:po,stopVolumeChanging:Ri,setVideoStream:Sn,setAudioStream:Cn,setQuality:Ii,setTrafficSavingEnabled:Mi,setHighQualityEnabled:Li,setPlaybackRate:Vi,incrementPlaybackRate:Rn,decrementPlaybackRate:mr,setSubtitle:Bn,toggleSubtitle:Mr,togglePictureInPicture:He,startScrubbing:Io,progressScrubbing:Xn,completeScrubbing:Et,toggleChromecast:Dd,switchToActiveLive:ji,switchFromAdsToVideo:Zi,switchFromVideoToAds:ii,skipAd:Do,setLiveWaitingStart:ki,setLiveWaitingRecover:ls,setLiveWaitingRecord:Za,getDebugTextData:Bd,getTraceTextData:au,getDebugPanelData:Nd,getVideoElement:ua,seekTime:(c,x,V)=>uo(c,x,V),clearDelayedBufferingCheckTimeout:Ki,seekEpisodeStartTime:Lr,seekToPercent:jn,getNextEpisode:il,seekToNextEpisode:du,getPrevEpisode:ol,seekToPrevEpisode:cu,startLogging:oi,stopLogging:Ci,startCameraManualRotation:Oi,stopCameraManualRotation:Mo,moveCameraFocusPX:$o,holdCamera:yo,releaseCamera:Lo,getVideoEpisodes:tl,getPreviewThumbsData:uu,downloadVideo:Mn,addLanguage:$p,setLanguage:ft,nextMovie:dt,videoRotate:Xt,correctSeekTimeToInteractive:Oo,replayInteractive:P,setLooped:fr,reportProblem:it,setAutoplayNextEnabled:ct,setTimerNextVideoRunning:xi,prevVideoClick:Qi,nextVideoClick:Gi,nextVideoAnnouncementShow:Co,nextVideoAnnouncementClick:Bo,nextVideoAnnouncementAuto:No,nextVideoAnnouncementCancel:To},external:{firstStart:c=>el(c,!0),play:()=>Ja(!0),pause:()=>Xa(!0),stop:()=>lu(!0),seekTime:c=>Vr(c),seekEpisodeStartTime:c=>pn(c),setPlaybackRate:c=>Zn(c),setAutoQualityLimits:c=>vr(c),setMuted:jo,setVolume:jt,returnFocusToEpisodes:w1,updateAdditionalSettingsItem:Rr,addAdditionalSettingsItem:ja,removeAdditionalSettingsItem:Ts,updateAdditionalContextItem:ca,addAdditionalContextItem:Is,removeAdditionalContextItem:gt,updateAdditionalButton:Eo,addAdditionalButton:fn,removeAdditionalButton:Kr,setLiveLowLatency:Dn}},callbacks:l,setUiCallbacks:c=>{Qe={...c}},getAdmanWrapper:()=>xe,getLogger:()=>Ve,getPlayer:()=>N,destroy:S1};return Tt};function oa(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=za(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var Uc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(oa(t,i,n,o))};var zc=async(t,e,i)=>{await go(),e&&i&&(i.focus(),t.set(!1))};var b2=be('<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 hf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=b2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function _f(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Ie(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=ee(void 0);je(()=>{r($)&&ht(()=>{u.set(r($))})});let w=A=>{let P=ys(A),E=_h(r($));_.set(E),p.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");kt(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,he(A))},children:(A,P)=>{hf(A,{})},$$slots:{default:!0}}),K(),o()}var $2=t=>{t.stopPropagation()},y2=L("<div><!> <div></div> <div></div></div>"),x2={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;}
227
+ }`};function uf(t,e){q(e,!0),Q(t,I$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Ah.CONNECTED),n=m(()=>e.iconState===Ah.CONNECTING);var a=qe(),s=ue(a);{var d=p=>{var f=C$(),_=h(f),u=h(_),$=h(u);_e(),g(u);var w=M(u);_e(),g(_);var y=M(_),S=h(y),I=h(S);g(S),_e(),g(y),g(f),k(()=>{Oe($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},l=p=>{var f=T$();let _;var u=h(f),$=M(h(u),5);let w;g(u),g(f),k((y,S)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(p,f)};R(s,p=>{i()?p(d):p(l,!1)})}b(t,a),K()}import{noop as E$}from"@vkontakte/videoplayer-shared/es2018";function Jl(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,E$),s=we().ui.t,d=m(()=>e.state===k$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Pt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{uf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),K()}var A$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),P$={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 pf(t,e){Q(t,P$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=ee(void 0),d=ee(void 0);function l(w){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),S=y/2;return w<S?S:w>e.containerWidth-S?e.containerWidth-S:w}let p=m(()=>l(n()));var f=A$(),_=h(f);let u;var $=h(_);ge($,()=>{var w;return(w=e.children)!=null?w:ie}),g(_),dt(_,w=>O(d,w),()=>r(d)),g(f),dt(f,w=>O(s,w),()=>r(s)),k(w=>{et(f,`transform: translate(${r(p)}px, ${a()}px);`),u=te(_,1,"tooltip svelte-5ygsa2",null,u,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Oc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Ph=t=>!!(Math.round(Math.abs(t)/90)%2),Mh=t=>Math.abs(t)/90%4===1;var M$=L('<div class="preview svelte-1wqg760"></div>'),L$=L('<div class="time svelte-1wqg760"> </div>'),V$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),R$={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 ff(t,e){q(e,!0),Q(t,R$);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),a=()=>C(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),$=we(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=ee(0),I=ee(0),A=ee(""),P=ee(0),E=ee(0),T=ee(0),V=ee(0),U=m(()=>Oc(f(),_(),p())),Y=m(()=>Ph(n())),F=m(()=>Mh(n())),j=m(pe),X=m(()=>(r(F)?1:-1)*(r(S)/2-r(I)/2)),oe=m(()=>r(X)*-1);Ke(()=>{(D=>(O(S,me(D.width)),O(I,me(D.height))))(Ve())}),Ke(()=>{(D=>(O(A,me(D.imgSrc)),O(P,me(D.imgWidth)),O(E,me(D.imgHeight)),O(T,me(D.imgOffsetX)),O(V,me(D.imgOffsetY))))(Me(f()))});function pe(){var Ge;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ee=30;return(Ge=r(U))!=null&&Ge.text&&(Ee+=16),(de||r(Y))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),D)}function le(){let D=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ee=de>D;return{width:D,height:de,isHorizontal:!Ee,isVertical:Ee}}function Ve(){let{height:D,isHorizontal:de,isVertical:Ee,width:Ge}=le();return de&&(D=D/Ge*r(j),Ge=r(j)),Ee&&(Ge=Ge/D*r(j),D=r(j)),{width:Ge,height:D}}function Me(D){let de;e.previewThumbsData.isUV?de=Math.floor(_()*D/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Ee=Math.floor(de/e.previewThumbsData.countPerImage),Ge=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=de%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let $e=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&($e=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=r(S)*$e,nt=r(I)*Ae,mt=-lt*r(S),at=-Ge*r(I);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Pe,imgHeight:nt,imgOffsetX:mt,imgOffsetY:at}}var J=V$();let Le;var Z=h(J);{var B=D=>{var de=M$();k(()=>et(de,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(V)}px;
228
+ transform: rotate(${n()}deg) ${r(Y)?`translate(${r(X)}px, ${r(oe)}px)`:""};
229
+ `)),b(D,de)};R(Z,D=>{r(A)&&D(B)})}var Re=M(Z,2),ne=h(Re);{var ke=D=>{var de=qe(),Ee=ue(de);{var Ge=Ae=>{var $e=er();k(Pe=>ve($e,Pe),[()=>H("tooltip_episode_unfinished")]),b(Ae,$e)},lt=Ae=>{var $e=er();k(()=>ve($e,r(U).text||"")),b(Ae,$e)};R(Ee,Ae=>{u()&&r(U).completed===!1?Ae(Ge):Ae(lt,!1)})}b(D,de)};R(ne,D=>{r(U)&&D(ke)})}g(Re);var Ne=M(Re,2);{var fe=D=>{var de=L$(),Ee=h(de,!0);g(de),k(()=>ve(Ee,d())),b(D,de)};R(Ne,D=>{u()||D(fe)})}g(J),k(D=>{Le=te(J,1,"timeline-preview svelte-1wqg760",null,Le,D),et(J,`width: ${r(Y)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),K(),o()}var N$=L('<span class="time svelte-1jr6obn"> </span>'),B$=L("<!> <!>",1),D$={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 mf(t,e){var he;q(e,!0),Q(t,D$);let[i,o]=Fe(),n=()=>C(j,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(pe,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),p=()=>C(T,"$isLive$",i),f=()=>C(U,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(Me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=we(),I=qt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,U=S.ui.isMobile,Y=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,F=S.actions.internal.getPreviewThumbsData(),j=S.state.interactiveEpisodes$,X=S.state.isInteractive,oe=S.state.isInteractiveTime$,pe=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Ve=(he=S.callbacks)==null?void 0:he.onDisabledTimelineClick,Me=S.ui.controls.disabledControls$,J=S.ui.t,Le=I.features.interactiveResponsiveUi,Z=m(()=>X?n():Y),B=m(()=>or(a())),Re=m(()=>or(s())),ne=m(()=>s()/a()),ke=m(()=>d()||l()),Ne=ee(!1),fe=ee(""),D=ee(0),de=ee(0),Ee=ee(0),Ge=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:X&&F?-36:-16,active:r(Ne)&&w()&&!r(ke)&&!Le,pointer:!I.features.timelinePreview||!F||p()})),lt=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Re),duration:r(B)}));function $e(Se){return!le||!X?Se:le(Se*a())/a()}function Pe(Se){S.actions.internal.startScrubbing($e(Se))}function nt(Se){l()||S.actions.internal.progressScrubbing($e(Se))}function mt(Se){S.actions.internal.completeScrubbing($e(Se)),O(Ne,!1)}function at(Se,De,ct){vt(Se,De,ct),O(Ne,!0)}function It(Se,De,ct){vt(Se,De,ct),O(Ne,!0)}function rt(){O(Ne,!1)}function vt(Se,De,ct){O(Ee,me($e(Se))),O(D,me(De)),ct&&O(de,me(ct)),O(fe,me(Ut(Se)))}function Ut(Se){let De=or((p()?1-Se:Se)*a());return p()?`-${De}`:De}var Qt=B$(),Be=ue(Qt);pf(Be,is(()=>r(Ge),{children:(Se,De)=>{var ct=qe(),Kt=ue(ct);{var je=Xe=>{ff(Xe,{get time(){return r(fe)},get isMobile(){return f()},get videoEpisodes(){return r(Z)},previewThumbsData:F,get progress(){return r(Ee)},get duration(){return a()},isInteractive:X})},ut=Xe=>{var Et=N$(),ni=h(Et,!0);g(Et),k(()=>ve(ni,r(fe))),b(Xe,Et)};R(Kt,Xe=>{I.features.timelinePreview&&F&&!p()?Xe(je):Xe(ut,!1)})}b(Se,ct)},$$slots:{default:!0}}));var re=M(Be,2);let W=m(()=>Math.round(r(ne)*100)),se=m(()=>$().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(Ae)},get loadedProgress(){return u()},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get videoEpisodes(){return r(Z)},onPointerDown:Pe,onHandleMove:nt,onPointerMove:It,onPointerUp:mt,onPointerEnter:at,onPointerLeave:rt,onDisabledClick:Ve,isInteractive:X,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Se){y(Se)}}),b(t,Qt),K(),o()}var O$={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 ed(t,e){q(e,!0),Q(t,O$);let[i,o]=Fe(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=we(),l=d.ui.isMobile,p=d.ui.t,f=m(()=>or(s())),_=m(()=>or(a())),u=m(()=>a()/s()),$=m(()=>p("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(u)*100));oa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),K(),o()}var H$=L("<div><!></div>"),F$=L("<div></div>"),U$={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {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-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function td(t,e){q(e,!0),Q(t,U$);let[i,o]=Fe(),n=()=>C(u,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),p=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=we(),u=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=qe(),A=ue(I);{var P=T=>{var V=H$();let U;var Y=h(V);{var F=X=>{ed(X,{get position(){return s()},get duration(){return d()}})},j=X=>{mf(X,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};R(Y,X=>{l()?X(F):X(j,!1)})}g(V),k(X=>U=te(V,1,"timeline svelte-1gqonyf",null,U,X),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=F$();let U;k(Y=>U=te(V,1,"timeline-stub svelte-1gqonyf",null,U,Y),[()=>({mobile:a()})]),b(T,V)};R(A,T=>{r(S)?T(P):T(E,!1)})}b(t,I),K(),o()}import{noop as K$}from"@vkontakte/videoplayer-shared/es2018";var z$=be('<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 vf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=xe(o,n,{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})),b(t,o)}var q$=be('<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 gf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=q$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var W$=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Q$=L('<span class="text svelte-1yhs2ga"> </span>'),G$=L('<span class="text count svelte-1yhs2ga"> </span>'),Y$=L("<!> <!>",1),j$={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 id(t,e){var le,Ve,Me;q(e,!0),Q(t,j$);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=we(),u=(Ve=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ve:K$,$=!!((Me=_.callbacks)!=null&&Me.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=J=>{var Z,B,Re;if(!!((Z=_.callbacks)!=null&&Z.onEpisodeClicked)){let ne=xs(J);y.set(ne),S.set(!0),(Re=(B=_.callbacks)==null?void 0:B.onEpisodeClicked)==null||Re.call(B,ne)}},T=ee(null),V=m(()=>l()/p());Ke(()=>{var Le;let J=Oc(r(V),p(),f());J?((Le=r(T))==null?void 0:Le.time)!==J.time&&(u(J),O(T,me(J))):O(T,null)});let U=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=m(()=>Bi(n(),"xl")?"FULL":Bi(n(),"m")&&kh(n(),"xl")?"COUNT":"SHORT"),F=m(()=>`${A("tooltip_episodes")}: ${r(U)}`),j=async(J,Le,Z)=>{await co(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Le&&!Z&&bt(()=>{y.set(!1),J.focus()})};Ke(()=>{j(r(P),a(),s())});var X=qe(),oe=ue(X);{var pe=J=>{let Le=m(()=>d()?"px-0":"");Pt(J,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=r(Le))!=null?Z:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(P)},set ref(Z){O(P,me(Z))},children:(Z,B)=>{var Re=qe(),ne=ue(Re);{var ke=fe=>{var D=W$(),de=ue(D),Ee=h(de,!0);g(de);var Ge=M(de,2),lt=h(Ge);gf(lt,{}),g(Ge),k(()=>ve(Ee,r(U))),b(fe,D)},Ne=fe=>{var D=Y$(),de=ue(D);vf(de,{});var Ee=M(de,2);{var Ge=Ae=>{var $e=Q$(),Pe=h($e,!0);g($e),k(()=>ve(Pe,r(U))),b(Ae,$e)},lt=(Ae,$e)=>{{var Pe=nt=>{var mt=G$(),at=h(mt,!0);g(mt),k(()=>ve(at,f().length)),b(nt,mt)};R(Ae,nt=>{r(Y)==="COUNT"&&nt(Pe)},$e)}};R(Ee,Ae=>{r(Y)==="FULL"?Ae(Ge):Ae(lt,!1)})}b(fe,D)};R(ne,fe=>{d()?fe(ke):fe(Ne,!1)})}b(Z,Re)},$$slots:{default:!0}})};R(oe,J=>{r(T)&&J(pe)})}b(t,X),K(),o()}import{debounceFn as j2}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as n2,PlaybackState as od,Player as r2,PredefinedQualityLimits as Ur,VideoFormat as nd,clientChecker as s2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Rn,getHighestQuality as a2,InterfaceLanguage as l2,isInvariantQuality as d2,isNonNullable as c2,loadVKLangPack as u2,Logger as p2,map as Hh,merge as f2,Observable as m2,Subject as Wc,Subscription as xf,Tracer as v2,ValueSubject as g2,VideoQuality as h2,devNull as _2,now as b2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as ns}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Z$,devNull as Yt,now as jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as X$,Subject as Bo,clearVideoElement as J$}from"@vkontakte/videoplayer-shared/es2018";var Lh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var e2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Hc=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 Bo,loadStarted$:new Bo,loadEnded$:new Bo,loadError$:new Bo,ready$:new Bo,slotRequested$:new Bo,started$:new Bo,timeRemained$:new Bo,paused$:new Bo,resumed$:new Bo,ended$:new Bo,empty$:new Bo,skipped$:new Bo,clicked$:new Bo,closed$:new Bo,error$:new Bo};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())};X$(e2,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(s=>{Yt.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?(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())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Yt.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(()=>{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)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});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"}),ye(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 P;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:s,adsVideoElement:d,slotId:l,params:p={},duration:f,previewParam:_}=e,u,$=this.playerState&&ye(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=Z$(),S=(P=w?y:window.location.href)!=null?P:window.location.href,I={...p,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:f,puid10:Lh(i,o),puid11:n?0:1};_||delete I.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],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 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(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=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(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,s,d,l,p,f,_,u;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),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&J$(this.videoElement),this.isDestroyed=!0}};var Vh=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 hf=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 p=new Fc,{startTime:f,endTime:_}=p.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let p=new _f,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Fc=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}},_f=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 p=["<",">"].reduce((f,_)=>{let u=s.indexOf(_,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Fc;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}},Rh=hf;import{isNonNullable as bf}from"@vkontakte/videoplayer-shared/es2018";var na,$i,$f=0,yf=!1,Nh="",Bh=(t,e=0,i=0)=>t<e&&t<i,Uc=(t,e=0,i=0)=>t>=e&&t<=i,t2=(t,e=0,i=0)=>t>e&&t>i,Dh=(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:p,endTime:f})=>Uc(t,p,f));let a=t>=$f,s=t<$f;if($f=t,s&&(yf=!1),bf(na)&&Uc(t,na.startTime,na.endTime)&&Nh===e.value)return na;if(!bf($i)&&(n!=null&&n.length)&&!yf){$i=n.find(({startTime:p,endTime:f})=>Uc(t,p,f)||a&&Bh(t,p,f)),na=void 0,!bf($i)&&n[n.length-1].endTime<t&&(yf=!0);return}else{if(Uc(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))return na=$i,$i=void 0,Nh=e.value,na;(a&&t2(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime)||s&&Bh(t,$i==null?void 0:$i.startTime,$i==null?void 0:$i.endTime))&&($i=void 0)}};var Oh={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"},i2={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"},zc=t=>{var e,i;return(i=(e=Oh[t])!=null?e:Oh[i2[t]])!=null?i:void 0};import{Subscription as o2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var qc=class{constructor(e,i=new o2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Kc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Kc||{});var Fr=t=>t!=null?t:0,Ka=(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(Fr(i==null?void 0:i.top)-Fr(o==null?void 0:o.top)),left:Math.round(Fr(i==null?void 0:i.left)-Fr(o==null?void 0:o.left)),bottom:Math.round(Fr(i==null?void 0:i.bottom)-Fr(o==null?void 0:o.top)),right:Math.round(Fr(i==null?void 0:i.right)-Fr(o==null?void 0:o.left))}},Wa=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Fr(e==null?void 0:e.width),height:Fr(e==null?void 0:e.height)}};var Fh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:U,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:j,playNextVideo:X,looped:oe=!1,statistics:pe,saveRate:le,internalsExposure:Ve})=>{var Vo,ds,Ro;let Me={...$,configName:[...(Vo=$.configName)!=null?Vo:[],"ui"],isAudioDisabled:s,live:{...(ds=$.live)!=null?ds:{},isLiveCatchUpMode:!!n}},J=u,Le=v2.createRootTracer(J.features.saveTraceInfoToFile),Z=Le.createComponentTracer("Store"),B=w||new r2(Me,Le);Ve==null||Ve.expose({corePlayer:B});let Re=new p2,ne=new Hc(Re,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),ke=Qs.getInstance(),Ne=p==null?void 0:p.pictureInPictureApi,fe=p==null?void 0:p.annotationsApi,D=Re.createComponentLog("Store"),de,Ee,Ge={},lt=new hc,Ae=pe?Zt(pe.oneStat.vsid$):ir(void 0),$e=ae(bs()),Pe=ae(!1),nt=(Ro=Ne==null?void 0:Ne.info.isActive$)!=null?Ro:new g2(!1),mt=ae(0),at=ae([]),It=f2(B.events.fatalError$,B.events.managedError$).subscribe(c=>at.update(x=>[...x,c])),rt=ir(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),vt=async c=>{var ce;let x=Object.values(l2).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!Ip(c))){let We;try{We=await u2(c,Sg,Cg)}catch(wt){(ce=pe==null?void 0:pe.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),ke==null||ke.report(wt,{errorType:"VKLangPack",fatal:!1})}We&&(Tp({language:c,pack:We,fallback:J.defaultLanguage}),Ut.set(c))}Ip(c)&&Ut.set(c)},Ut=ae(t),Qt=ae(e);vt(t);let Be=(c,x)=>{let N=ye(Ut);return kp(N,c,x,J.defaultLanguage)},re=ae("thumb"),W=(()=>{let c=fi([rt,re],([x,N])=>x?"crashed":N);return{...c,is:x=>ye(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ce=[...N];return new Set(Array.isArray(x)?ce.filter(We=>!x.includes(We)):ce.filter(We=>We!==x))})},includes:x=>{let N=ye(c);return Array.isArray(x)?x.every(ce=>N.has(ce)):N.has(x)}}})();Z.log("create store"),D({message:"create store"});let he=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),Xe=new MutationObserver(N=>{let{removedNodes:ce}=N[0];ce.length&&x.append(B.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Se=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?he(c):(_2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[b2()]}),B.initVideo(c)),Z.log("init video",{isInteractive:S}),c.subtitles&&B.setExternalTextTracks(c.subtitles),de=c},De=new Wc,ct=c=>De.next(c),Kt=new Wc,je=new Wc,ut=new Wc,Xe=null,Et={actionRewind$:Kt,actionSeek$:je,inPiP$:nt,inFullscreen$:new m2(c=>$e.subscribe(x=>c.next(x))),actionSetSubtitle$:ut,nextMovie$:De};if(pe){let{oneStat:c,statSubscription:x}=pe;S||x.add(c.attachTo(B)),x.add(c.attachToUi(Et)),x.add(c.attachToAds(ne.events)),c.authorize(a).catch(N=>{D({message:`onestat auth error ${String(N)}`})})}if(ke){let c=new xf,x=(N,ce)=>c.add(N.subscribe(ce));if(x(B.events.managedError$,N=>{ke.logIError(N)}),x(B.events.fatalError$,N=>{ke.logIError(N,!0)}),pe){let{oneStat:N}=pe;x(N.experimental.error$,ce=>{ke.logIError(ce)})}ke.sentrySubscription.add(c)}let ni=()=>{s2.device.isIOS&&Ee&&lh(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Qe=new xf().add(B.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),js(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(B.events.ended$.subscribe(()=>{var c;ni(),(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(async()=>{var x,N;js(Ne)&&await(Ne==null?void 0:Ne.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Ge.onStarted)==null||N.call(Ge,c)})).add(B.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).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 x=B.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),ne.setPosition(c,x))})).add(B.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(B.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(B.events.loadedMetadata$.subscribe(()=>{ze.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{ze.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(Pl),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ne.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(ne.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(ne.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(ne.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(ne.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(ne.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(ne.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(ne.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(ne.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(ne.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(ne.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(ne.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(ne.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(ne.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)})),it=new xf,Jt=()=>{var wt,Vt,Ft;let{debugLog:c}=J,x,N="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Rt}=c;x=c.tag,N=(wt=Rt==null?void 0:Rt[0])!=null?wt:N,ce=(Ft=(Vt=Rt==null?void 0:Rt[1])!=null?Vt:Rt==null?void 0:Rt[0])!=null?Ft:ce}let We=x?`: ${x}`:"";it.add(B.events.log$.subscribe(Rt=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Rt.component}`,Rt.message)})).add(Re.log$.subscribe(Rt=>{console.debug(`%c ui${We} `,`background:${ce};`,`ui component: ${Rt.component}.`,Rt.message)}))},ki=()=>{it.unsubscribe()},Co=(c,x)=>{Z.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},Di=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},To=(c,x,N)=>{Z.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},Oo=()=>{B.holdCamera()},Mt=()=>{B.releaseCamera()},ht=ir(B.info.position$.getValue(),c=>{let x,N,ce=()=>{let We=B.info.playbackState$.getValue(),wt=B.info.isLive$.getValue(),Vt=B.info.duration$.getValue(),Ft=B.info.position$.getValue();if(We&&[od.PLAYING,od.PAUSED].includes(We)){let Rt=wt?Ft-Vt:B.getExactTime();Rt!==N&&c(Rt),N=Rt}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),z=Zt(B.info.playbackState$),Wt=Zt(B.info.currentBuffer$),Oi=Zt(B.info.isEnded$),Mi=Zt(B.info.isLive$),mi=J.features.playbackRate?Zt(B.info.canChangePlaybackSpeed$):ir(!1),ei=Zt(B.info.liveBufferTime$),oo=Zt(B.info.volume$),mo=Zt(B.info.muted$),Hi=_c(B.info.predefinedQualityLimitType$.pipe(Hh(c=>c===Ur.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Ur.TRAFFIC_SAVING),Ho=_c(B.info.predefinedQualityLimitType$.pipe(Hh(c=>c===Ur.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Ur.HIGH_QUALITY),Bt=Zt(B.info.autoQualityLimitingAvailable$),li=Zt(B.info.availableQualities$),xt=Zt(B.info.availableQualitiesFps$),zt=Zt(B.info.chromecastState$),Io=Zt(B.info.chromecastDeviceName$),Fi=Zt(B.info.currentFormat$),ai=Zt(B.info.throughputEstimation$),vo=Zt(B.info.videoBitrate$),Fo=Zt(B.info.intrinsicVideoSize$),ri=Zt(B.info.duration$),$t=Zt(B.info.isAudioAvailable$),vi=null,Ui=B.info.isBuffering$,Li=ir(Ui.getValue(),c=>{let x=Ui.subscribe(N=>{N&&vi===null?vi=window.setTimeout(()=>{c(Ui.getValue()),vi=null},J.loaderDelay):c(N)});return()=>{x.unsubscribe(),vi&&clearTimeout(vi)}}),go=()=>{vi&&clearTimeout(vi),vi=null},yi=fi([ri,Mi],([c,x])=>x?-c:c),ho=fi([z],([c])=>c===od.PLAYING),xn=Zt(B.info.atLiveEdge$),tn=Zt(B.info.atLiveDurationEdge$),xi=Zt(B.info.position$),wn=fi([xi,ri],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),on=fi([zt],([c])=>c===n2.CONNECTED),ko=Zt(B.info.availableVideoStreams$),Sn=J.features.audioLanguages?Zt(B.info.availableAudioStreams$):ir([]),rr=Zt(B.info.currentVideoStream$),sr=Zt(B.info.currentAudioStream$),Bn=c=>{c.language&&Cp(c.language),B.setVideoStream(c)},Dn=c=>{c.language&&Cp(c.language),B.setAudioStream(c)},nn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let N=Gg();return N&&(x=c.find(({language:ce})=>N===ce)),x!=null||(x=c.at(0)),x},rn=!1;Qe.add(B.info.availableAudioStreams$.subscribe(c=>{if(!rn&&c.length){let x=nn(c);x&&(B.setAudioStream(x),rn=!0)}}));let ar=!1;Qe.add(B.info.availableVideoStreams$.subscribe(c=>{if(!ar&&c.length){let x=nn(c);x&&(B.setVideoStream(x),ar=!0)}}));let tt=ae(void 0),Wi=Zt(B.info.isAutoQualityEnabled$,c=>c&&tt.set(void 0)),lr=Zt(B.info.currentQuality$,()=>tt.set(void 0)),On=fi([tt,lr],([c,x])=>c!=null?c:x),sn=fi(Fi,c=>c!==nd.MPEG),an=fi([li,xt,Wi,On,sn],([c,x,N,ce,We])=>{let wt=[];We&&wt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:N});let Vt=c.filter(Ft=>!d2(Ft));for(let Ft of Vt){let Rt=x[Ft];wt.push({value:Ft,displayValue:`${Ft}${Rt?Vh(Rt):""}`,selected:N?!1:Ft===ce})}return wt}),Eo=Zt(B.info.currentPlaybackRate$),_o=fi([Eo,xn,tn],([c,x,N])=>{let ce=N||S?1:J.controls.playbackRateMin,We=x?1:J.controls.playbackRateMax,wt=J.controls.playbackRateStep,Vt=[];for(let Ft=ce;Ft<=We;Ft+=wt)Vt.push({value:Ft,displayValue:Ft===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return Vt}),zi={displayValue:Be("subtitles_off"),value:"off"},Qi=ae({...zi}),Hn=J.features.subtitles?Zt(B.info.availableTextTracks$):ir([]),Fn=Og(),Er=fi([Hn,Qi],([c,x],N)=>{var wt;let ce=[],We=c.find(({id:Vt})=>Vt===x.value);if(We!=null&&We.url){let[,Vt]=(wt=Fn.find(We.url))!=null?wt:[];if(Vt){N(Vt);return}lt.download(We.url).then(Ft=>{if(!Ft||lt.isDestroyed())return;let Rt=new Rh,cs=We.language;if(cs){let T1=!!We.isAuto,I1=Rt.parse(Ft,cs);ce.push({lang:cs,subtitles:I1,isAuto:T1,id:We.id})}Fn.add(We.url,ce),ye(Qi).value===x.value&&N(ce)}).catch(Ft=>{var Rt;(Rt=pe==null?void 0:pe.oneStat)==null||Rt.logError({errorType:"Subtitles download",fatal:!1}),ke==null||ke.report(Ft,{errorType:"Subtitles download",fatal:!1})})}N(ce)}),Un=fi([Eo,ho,Qi],([c,x,N],ce)=>{let Vt;if(B.info.isLive$.getValue()&&x&&N.value!==zi.value){let Rt=()=>{let cs=1e3/(3*c);Vt=setTimeout(Rt,cs),ce(Date.now())};return Rt(),()=>clearTimeout(Vt)}}),no=fi([Hn,Qi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ce,isAuto:We,id:wt}of c){let Vt=ce&&zc(ce);ce&&Vt&&N.push({displayValue:We?Be("subtitles_auto",{language:Vt}):Vt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:We})}return N.length?(N.unshift({...zi,selected:(x==null?void 0:x.value)===zi.value}),N):[]}),bo={available:[],prev:[]},ln=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?N:0},Cn=fi([ht,Qi,Er,Un],([c,x,N,ce])=>{var wt;let We=B.info.isLive$.getValue();if(We&&bo.prev!==N){let Vt=N.find(({id:Rt})=>Rt===x.value),Ft=bo.prev.find(({id:Rt})=>Rt===x.value);if(Vt){let Rt={...Vt,subtitles:[...(wt=Ft==null?void 0:Ft.subtitles)!=null?wt:[],...Vt.subtitles]};bo.available=[Rt],bo.prev=N}}if(x&&x.value!==zi.value){let Vt=We?ln():c,Ft=We?bo.available:N;return Dh(Vt,x,Ft,We)}}),Ao=fi([Cn],([c])=>c!=null&&c.texts?c.texts:[]),qi=ae(!0),Uo=fi([Wt,yi,xi,ei],([c,x,N,ce])=>{var Ft;let We=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!ce)return We/x;let Vt=-N+ce-x;return(We-Vt)/x}),$o=Zt(B.info.availableSources$),dr=fi([$o],([c])=>Object.keys((c==null?void 0:c[nd.MPEG])||{}).length>0),dn=()=>{var N,ce,We;let c=Object.keys(((ce=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ce[nd.MPEG])||{}),x=a2(c)||h2.Q_144P;return(We=de.sources[nd.MPEG])==null?void 0:We[x]},zn=()=>{var x;let c=dn();if(c)Z.log("download video",{url:c}),Ng(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";Z.log("download video",{message:N}),D({message:N})}},qn=()=>{D({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?Gn(Qn()):oi(!c)},Kn=()=>{var c;if(ze.ui.settingsMenu.visible$.set(!1),!ye(ze.ui.settingsSubMenu.visible$)){let x=ye(ze.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=Wa(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:We,name:"settings"})}}Z.log("close settings menu")},cr=async(c,x=()=>Promise.resolve())=>{var We;ze.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),ze.ui.settingsMenu.visible$.set(!0),await x();let N=ye(ze.ui.settingsMenu.ref$),ce=pa();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&ce){let Vt=Wa(N),Ft=Ka(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Ft,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})},Wn=(c,x=!1)=>{var wt;ze.ui.settingsSubMenu.visible$.set(!1);let N=ye(ze.ui.settingsMenu.ref$),ce=pa(),We=ye(ze.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&ce)if(We&&!x){let Ft=Wa(N),Rt=Ka(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Rt,name:"settings"})}else{let Ft=Wa(c),Rt={top:0,left:0,bottom:0,right:0},cs=ye(ze.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:Rt,name:cs})}Z.log("close settings sub menu")},ur=(c,x)=>{var ce;ze.ui.settingsSubMenu.visible$.set(!0),ze.ui.settingsSubMenu.ref$.set(x),ze.ui.settingsSubMenu.name$.set(c);let N=pa();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&N){let wt=Wa(x),Vt=Ka(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Vt})}Z.log("open settings sub menu",{name:c})},Qn=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=bc())!=null?x:0);return c===0?J.volumeDefault:c},Gn=c=>{let x=c===0?Qn():c,N=B.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,wp(!1)),B.setVolume(c,N),ne.setVolume(c),_p(x)},oi=c=>{let x=B.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),ne.setVolume(c?0:x),wp(c),!c&&x===0){let N=Qn();B.setVolume(N),_p(N),ne.setVolume(N)}},pr=ae(!1),cn=c=>{Z.log("set looped",{isLooped:c}),pr.set(c),B.setLooped(c)};cn(oe);let zo=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ot=(c,x=!1)=>{var N;D({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),ze.ui.autoplayNextEnabled$.set(c),Zg(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},At=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),ze.ui.timerNextVideoRunning$.set(c)},wi=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ce=l==null?void 0:l.onPrevVideoClick)==null?void 0:ce.call(l)}catch(We){D({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Gi("prev")||j()},ti=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ce=l==null?void 0:l.onNextVideoClick)==null?void 0:ce.call(l)}catch(We){D({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Gi("next")||X()},Gi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ce}}=J;return N&&ce&&!x?(ze.ui.aboutToGoNextVideo.set(c),ze.ui.userActionsDisabled.set(!0),!0):!1},yo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},xo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},qo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Ko=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Je=()=>{B.prepare()},Ct=()=>{Rn(ze);let c=ye(ze.ui.controls.disabledControls$),x=ye(ze.playerPhase),N={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){N.action="play",Z.log("toggle adman play",N),ne.togglePlay();return}let ce=()=>{var wt;D({message:"toggle play, call player.play"}),N.action="play",B.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},We=()=>{var wt;D({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(B.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Kt.next(),je.next(ns.REWIND),S){P==null||P();return}B.seekTime(0),ce()}else B.info.playbackState$.getValue()!==od.PLAYING?ce():We();Z.log("toggle play",N)},si=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?($c({type:"exact_quality",quality:c,videoId:i},N),Ll(),B.setPredefinedQualityLimits(Ur.UNKNOWN)):bp(i,c),tt.set(c),B.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(ro("auto_quality",N),ye(Hi)&&Ei(!1),ye(Ho)&&Vi(!1)):Ll()},Ei=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Ur.TRAFFIC_SAVING:Ur.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Si(N,x),Ml(!1)):(B.setPredefinedQualityLimits(N),Ml(c))},Vi=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),Si(c?Ur.HIGH_QUALITY:Ur.UNKNOWN,x)},Si=(c,x)=>{c!==Ur.UNKNOWN&&(ye(Bt)&&!ye(Wi)&&si("auto",{appliesTo:x,changeReason:"limit-changed"}),ro(c,x)),B.setPredefinedQualityLimits(c)},ro=(c,x)=>{$c({type:c,videoId:i},x),x==="as-default"&&$c({type:c,videoId:i},"to-video")},Ci=c=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),J.features.saveRate&&le&&!B.info.isLive$.getValue()&&Yg(c)},un=()=>{let c=ye(_o),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let N=c[x+1];Ci(N.value)},fr=()=>{let c=ye(_o),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let N=c[x-1];Ci(N.value)},Tn=(c={...zi,selected:!1})=>{Z.log("set subtitles",{...c}),c&&c.value!==zi.value&&ut.next(c.isAuto?c.value+"_auto":c.value),Qi.set(c)},Ar=()=>{Z.log("toggle subtitles");let c=ye(no),x=ye(Qi),N=ye(Ut);if((x==null?void 0:x.value)===zi.value){let ce=c.filter(We=>We.value!==zi.value).find(We=>We.value===N)||c[1];Tn(ce)}else Tn()},so=(c,x,N=!0)=>{var ce;if(D({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:x,forcePrecise:N}),je.next(x),B.info.isLive$.getValue()){let We=B.info.duration$.getValue(),wt=Math.min(0,We+c);B.seekTime(wt,N)}else{if(A!=null&&A.getValue())return;B.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),B.seekTime(zd(c),N)}},Pr=c=>{D({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),so(c,ns.EPISODE,!0)},Yn=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:x});let N=ye(yi)*c;so(N,x,!1)},zr=c=>{D({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),je.next(ns.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},mr=c=>{var ce,We;let x=(ce=c.max)!=null?ce:"none",N=(We=c.min)!=null?We:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),Z.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Mr=c=>{D({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),so(c,ns.EPISODE,!0)},vr=c=>{D({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Po=ae(void 0),pn=ae(!1),qr=c=>{D({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),pn.set(!0),gr(c)},gr=c=>{Po.set(c)},jn,Ze,Dt=()=>{Po.set(void 0),pn.set(!1)},hi=()=>{clearTimeout(Ze),clearTimeout(jn),jn=window.setTimeout(()=>{Dt()},500),Ee==null||Ee.removeEventListener("seeked",hi)},fn=c=>{D({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),Yn(c,ns.SLIDER),ye(ze.ui.isMobile)&&ye(ze.state.currentFormat$)===nd.HLS?(Ee==null||Ee.addEventListener("seeked",hi),Ze=window.setTimeout(()=>{hi()},300)):Dt()},mn=fi([ht,yi,Po],([c,x,N],ce)=>{ce(c2(N)?N*x:c)}),In=ae(!1),Zn=()=>{In.set(!0)},Ce=()=>{In.set(!1)},pt=ae({width:0,height:0}),Lt=fi([pt],([{width:c}],x)=>{let N=Eh(c);x(N)}),Ht=ae(!1),Ki=U.filter(c=>Bg(c)),di=fi([Lt,Ht],([c,x])=>x?Ki.filter(N=>!N.hideOnMobile):Ki.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),Gt=ae(U.filter(c=>Dg(c))),Lr=fi([Gt,Lt],([c,x])=>c.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),He=fi([Lr,di],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((N,ce)=>{var We;return{id:ce,weight:ce,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(We=N.ariaLabel)!=null?We:N.tooltip,tooltipText:N.tooltip}}):[]]),Tt=ae(Y),gi=fi([Tt],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Mo=(c,x)=>{let N=ye(Gt).map(ce=>ce.id!==c?ce:{...ce,...x});Gt.set(N)},Wo=c=>{let x=ye(Gt);if(x.some(N=>N.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Gt.set(x)},Kr=c=>{let x=ye(Gt);if(!x.some(N=>N.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Gt.set(x)},kn=c=>{je.next(ns.LIVE),D({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Vr=(c,x)=>{let N=ye(Tt).map(ce=>ce.id!==c?ce:{...ce,...x});Tt.set(N)},Xa=c=>{let x=ye(Tt);if(x.some(N=>N.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Tt.set(x)},ks=c=>{let x=ye(Tt);if(!x.some(N=>N.id===c)){D({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Tt.set(x)},hr=ae(F),ca=fi([hr],([c])=>J.features.additionalContextMenuItems?c:[]),ua=(c,x)=>{let N=ye(hr).map(ce=>ce.id!==c?ce:{...ce,...x});hr.set(N)},Es=c=>{let x=ye(hr);if(x.some(N=>N.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),hr.set(x)},_t=c=>{let x=ye(hr);if(!x.some(N=>N.id===c)){D({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),hr.set(x)},gt=fi([Ht,rt],([c,x],N)=>{N(c&&x)}),Yi=()=>{je.next(ns.LIVE),D({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==od.PLAYING&&ze.actions.internal.togglePlay()},Lo=()=>{Z.log("skip adman"),ne.skip()},ji=(c=!0)=>{Rn(ze),D({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&B.play()},ii=()=>{Rn(ze),D({message:"switch from video to ads"}),Z.log("switch from video to ads"),ze.actions.internal.pause(),ni(),re.set("ads")},Ai=c=>{Rn(ze);let x=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},ls=c=>{Rn(ze);let x=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},Ja=c=>{Rn(ze);let x=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},Rd=()=>(Rn(ze),Z.log("get debug text data"),Vg(B,de,ze)),fu=()=>(Rn(ze),JSON.stringify(Le.getFinishedSpans())),Nd=()=>(Rn(ze),Rg(B,de,ze)),pa=()=>Ee,Bd=()=>{D({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},Dd=c=>{var N;if(Rn(ze),B.info.isEnded$.getValue())return;let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),Z.log("pause ads",{internalCall:x}),ne.pause();return}D({message:`pause video, internalCall: ${x}`}),Z.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},el=c=>{var N;Rn(ze);let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),Z.log("play ads",{internalCall:x}),ne.play();return}D({message:`play video, internalCall: ${x}`}),Z.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},mu=c=>{Rn(ze);let x=!c;if(ye(ze.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},tl=(c,x)=>{Rn(ze),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),Z.log("first start",{showAds:c,external:x}),c?re.set("ads"):(re.set("video"),x?B.play():ze.actions.internal.togglePlay())},il=()=>(D({message:"getting time codes"}),f),ol=()=>{let c=il();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},Od=c=>{let x=c;x||(x=ol());let N=B.info.position$.getValue();Z.log("seek to next episode",{currentTime:N,...x}),x&&(D({message:"seek to next episode"}),so(x.time,ns.EPISODE,!0))},nl=()=>{let c=il();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(We=>We.time>x),ce=N===-1?c.length-2:N-2;if(!(ce<0))return c[ce]},vu=c=>{let x=c;x||(x=nl());let N=B.info.position$.getValue();Z.log("seek to prev episode",{currentTime:N,...x}),x&&(D({message:"seek to prev episode"}),so(x.time,ns.EPISODE,!0))},Hd=()=>(D({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",{..._}),_),gu=async()=>{let c=Ne==null?void 0:Ne.isActive(),x="none";Ne!=null&&Ne.isActive()?(x="remove",await(Ne==null?void 0:Ne.remove())):(x="request",await(Ne==null?void 0:Ne.request())),Z.log("toggle picture in picture",{isActive:c,action:x})},Fd=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),mt.update(x=>x+c)},fa=ae([]);I==null||I.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ce,We],subjects:wt}=c[N];N===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!wt.length||wt.every(Vt=>Vt.isRemoved):!wt.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}fa.set(x)});let Ud=ae(!1);A==null||A.subscribe(c=>{c&&ye(pn)&&Dt()});let zd=c=>{if(!S)return c;let x=ye(fa),N=ye(yi),We=ye(xi)/N,wt=x.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>We);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},hu=()=>{ze.ui.episodes.panelOpened$.set(!1)},Ue=()=>{Z.log("destroy store"),clearTimeout(Ze),clearTimeout(jn),Qe.unsubscribe(),it.unsubscribe(),B.destroy(),ne.destroy(),pe==null||pe.destroy(),ke==null||ke.destroy(),It.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,lt.destroy()},ze={interfaceLanguage$:Ut,isCyrillicRelatedInterface$:Qt,initVideo:Se,videoId:i,isClip:o,playerPhase:W,vsid:Ae,state:{positionExact$:ht,positionWithScrubbing$:mn,duration$:yi,playbackState$:z,isPlaying$:ho,isLoaderVisible:Li,bufferedProgress$:Uo,isLive$:Mi,canChangePlaybackSpeed$:mi,isActiveLive$:xn,isOldestAvailableLive$:tn,isRewindableLive$:wn,isEnded$:Oi,muted$:mo,volume$:oo,trafficSavingEnabled$:Hi,highQualityEnabled$:Ho,autoQualityLimitingAvailable$:Bt,availableVideoStreams$:ko,availableAudioStreams$:Sn,videoStream$:rr,audioStream$:sr,currentQuality$:On,isAutoQualityEnabled$:Wi,availableQualities$:an,currentPlaybackRate$:Eo,availablePlaybackRates$:_o,currentSubtitle$:Qi,availableTextTracks$:Hn,availableSubtitlesList$:no,currentSubtitleCaptions$:Ao,isAutoSubtitleCaptionVisible$:qi,chromecastState$:zt,chromecastDeviceName$:Io,chromecastConnected$:on,currentFormat$:Fi,throughputEstimation$:ai,videoBitrate$:vo,videoSize$:Fo,errorLog$:at,crashed$:rt,isAudioAvailable$:$t,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:$o,hasMpegSources$:dr,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ye(fa).length,interactiveEpisodes$:fa,isInteractiveTime$:A?Zt(A):ae(!1),isInteractiveExpectation$:Ud,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:pr,loadedMetadata$:ae(!1),isAutoQualityAvailable$:sn},ui:{t:Be,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:U.length?U.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$e,isFullscreenOpenedByKeyboard:Pe,rotateAlpha:mt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:pt,isMobile:Ht,mobileNotReportControlHidden$:gt,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:pn,volumeChangingInProgress:In,is3DVideo:ae(!1),currentGridType$:Lt,additionalButtonsDeprecated$:di,additionalDesktopControlPanelRightButtons$:He,additionalSettingsMenuItems$:gi,additionalContextMenuItems$:ca,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:fe},actions:{internal:{preload:Je,firstStart:c=>tl(c,!1),play:()=>el(!1),pause:()=>Dd(!1),togglePlay:Ct,toggleMuted:qn,openSettingsMenu:cr,closeSettingsMenu:Kn,openSettingsSubMenu:ur,closeSettingsSubMenu:Wn,setVolume:Gn,startVolumeChanging:Zn,stopVolumeChanging:Ce,setVideoStream:Bn,setAudioStream:Dn,setQuality:si,setTrafficSavingEnabled:Ei,setHighQualityEnabled:Vi,setPlaybackRate:Ci,incrementPlaybackRate:un,decrementPlaybackRate:fr,setSubtitle:Tn,toggleSubtitle:Ar,togglePictureInPicture:gu,startScrubbing:qr,progressScrubbing:gr,completeScrubbing:fn,toggleChromecast:Bd,switchToActiveLive:Yi,switchFromAdsToVideo:ji,switchFromVideoToAds:ii,skipAd:Lo,setLiveWaitingStart:Ai,setLiveWaitingRecover:ls,setLiveWaitingRecord:Ja,getDebugTextData:Rd,getTraceTextData:fu,getDebugPanelData:Nd,getVideoElement:pa,seekTime:(c,x,N)=>so(c,x,N),clearDelayedBufferingCheckTimeout:go,seekEpisodeStartTime:Pr,seekToPercent:Yn,getNextEpisode:ol,seekToNextEpisode:Od,getPrevEpisode:nl,seekToPrevEpisode:vu,startLogging:Jt,stopLogging:ki,startCameraManualRotation:Co,stopCameraManualRotation:Di,moveCameraFocusPX:To,holdCamera:Oo,releaseCamera:Mt,getVideoEpisodes:il,getPreviewThumbsData:Hd,downloadVideo:zn,addLanguage:Tp,setLanguage:vt,nextMovie:ct,videoRotate:Fd,correctSeekTimeToInteractive:zd,replayInteractive:P,setLooped:cn,reportProblem:zo,setAutoplayNextEnabled:ot,setTimerNextVideoRunning:At,prevVideoClick:wi,nextVideoClick:ti,nextVideoAnnouncementShow:yo,nextVideoAnnouncementClick:xo,nextVideoAnnouncementAuto:qo,nextVideoAnnouncementCancel:Ko},external:{firstStart:c=>tl(c,!0),play:()=>el(!0),pause:()=>Dd(!0),stop:()=>mu(!0),seekTime:c=>zr(c),seekEpisodeStartTime:c=>Mr(c),setPlaybackRate:c=>vr(c),setAutoQualityLimits:c=>mr(c),setMuted:oi,setVolume:Gn,returnFocusToEpisodes:hu,updateAdditionalSettingsItem:Vr,addAdditionalSettingsItem:Xa,removeAdditionalSettingsItem:ks,updateAdditionalContextItem:ua,addAdditionalContextItem:Es,removeAdditionalContextItem:_t,updateAdditionalButton:Mo,addAdditionalButton:Wo,removeAdditionalButton:Kr,setLiveLowLatency:kn}},callbacks:l,setUiCallbacks:c=>{Ge={...c}},getAdmanWrapper:()=>ne,getLogger:()=>Re,getPlayer:()=>B,destroy:Ue};return ze};function ra(t,e,i,o){var _;let n=["interactiveTimeIndicator"],a=(_=e[i])==null?void 0:_.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:f}=Ka(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var Qc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ra(t,i,n,o))};var Gc=async(t,e,i)=>{await co(),e&&i&&(i.focus(),t.set(!1))};var $2=be('<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 wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function Sf(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=we(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=ee(void 0);Ke(()=>{r($)&&bt(()=>{u.set(r($))})});let w=A=>{let P=xs(A),E=yh(r($));_.set(E),p.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");Pt(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,me(A))},children:(A,P)=>{wf(A,{})},$$slots:{default:!0}}),K(),o()}var y2=t=>{t.stopPropagation()},x2=L("<div><!> <div></div> <div></div></div>"),w2={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;}
230
230
 
231
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
232
232
  }
@@ -251,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
251
251
  opacity: 0;
252
252
  }
253
253
  }.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);
254
- 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 sd(t,e){var D;q(e,!0),Q(t,x2);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(R,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),u=ee(void 0),$=Ie(),w=oo(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,z=m(()=>!n()&&a()),Y=m(()=>Ss(s(),"s")),U=m(()=>!d()||!!l()||r(z)),Z=ee(!1);je(()=>{O(Z,he(r(U)))});let J=()=>{O(Z,!0)},oe=()=>{var de;ce(),(de=r(u))==null||de.addEventListener("animationiteration",J,{once:!0})},ce=()=>{var de;O(Z,!1),(de=r(u))==null||de.removeEventListener("animationiteration",J)},le=de=>{P.set(de)},Le=m(()=>p()&&!r(U));je(()=>{p()?oe():ce()});let Re=()=>{r(U)||(P.set(!0),T==null||T())};_n(()=>{P.clearTimeout(),ce()});let X=()=>{P.set(!1)},Me=F("tooltip_interactive_interaction_time_indicator");var j=y2();let N;j.__mousemove=[$2],j.__click=Re;var Ve=h(j);Po(Ve,{tooltipContent:Me,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{jl(de,{completed:!0})},$$slots:{default:!0}});var xe=M(Ve,2);let re;lt(xe,de=>_(de),()=>_());var Be=M(xe,2);let ue;lt(Be,de=>O(u,de),()=>r(u)),g(j),k((de,Ee,Qe)=>{N=te(j,1,"interactive-episode-icon-animated svelte-od3veb",null,N,de),re=te(xe,1,"ref-block svelte-od3veb",null,re,Ee),ue=te(Be,1,"pulse svelte-od3veb",null,ue,Qe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(Y)}),()=>({hidden:r(U)}),()=>({paused:r(Z)})]),It("mouseleave",j,X),b(t,j),K(),o()}st(["mousemove","click"]);function qc(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Po(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Ue();let p=m(()=>e.buttonComponent);var f=ge(l);Ai(f,()=>r(p),(_,u)=>{u(_,is(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var S2=be('<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 bf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=S2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function $f(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");bf(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var C2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),T2=L("<!> <!>",1),I2={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 na(t,e){q(e,!0),Q(t,I2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Ie().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=m(()=>`btn-${o()?"m":"d"}--${e.type}`);kt(t,{get className(){return r(p)},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,_)=>{var u=T2(),$=ge(u);{var w=I=>{var A=C2();b(I,A)};B($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");$f(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,u)},$$slots:{default:!0}}),K()}var k2=be('<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 ad(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=k2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as E2}from"@vkontakte/videoplayer-shared/es2018";var A2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),P2=L("<!> <div><!></div>",1),M2={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 Ka(t,e){q(e,!0),Q(t,M2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,E2),d=F("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);kt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var _=P2(),u=ge(_);{var $=I=>{var A=A2();b(I,A)};B(u,I=>{o()&&I($)})}var w=M(u,2);let y;var S=h(w);ad(S,{}),g(w),k(I=>y=te(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(p,_)},$$slots:{default:!0}}),K()}var L2=be('<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 ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=L2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}var V2=be('<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 ra(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=V2(),d=h(s);g(s),k(()=>{De(s,"width",i()),De(s,"height",o()),De(s,"viewBox",n()),De(d,"fill",a())}),b(t,s)}import{noop as R2}from"@vkontakte/videoplayer-shared/es2018";var B2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),N2=L("<!> <div><!></div>",1),D2={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 Wa(t,e){q(e,!0),Q(t,D2);let[i,o]=Fe(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=oo(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,R2),$=Ie().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?ra:ss),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());kt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return p()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Hr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,z)=>{var Y=N2();let U=m(()=>r(P));var Z=ge(Y);{var J=Le=>{var Re=B2();b(Le,Re)};B(Z,Le=>{d()&&Le(J)})}var oe=M(Z,2);let ce;var le=h(oe);Ai(le,()=>r(U),(Le,Re)=>{Re(Le,{})}),g(oe),k(Le=>ce=te(oe,1,"svelte-1ot3duq",null,ce,Le),[()=>({mobile:d()})]),b(R,Y)},$$slots:{default:!0}}),K(),o()}var O2=be('<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 yf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function ld(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");kt(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)=>{yf(d,{})},$$slots:{default:!0}}),K()}var H2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),F2={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 dd(t,e){q(e,!0),Q(t,F2);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;kt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var u=H2(),$=h(u);let w;var y=h($);{var S=A=>{ss(A,{width:"14",height:"14",fill:"#000"})},I=A=>{ra(A,{width:"14",height:"14",fill:"#000"})};B(y,A=>{n()?A(S):A(I,!1)})}g($),g(u),k(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,u)},$$slots:{default:!0}}),K(),o()}var U2=be('<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 xf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{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})),b(t,o)}function cd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");kt(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)=>{xf(d,{})},$$slots:{default:!0}}),K()}var z2=be('<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 wf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var q2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Sf(t,e){Q(t,q2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");wf(t,{get"data-testid"(){return r(o)}})}function ud(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Ie().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=m(()=>o()?"hidden":"");kt(t,{get className(){return r(p)},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,_)=>{let u=m(()=>!!a());Sf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),K()}import{PlaybackState as Oh}from"@vkontakte/videoplayer-core/es2018";function pd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(p,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Ie(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=m(()=>()=>{if(!s()){f();return}n()===Oh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Oh.PLAYING);kt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,I)=>{Nl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}import{noop as Hh}from"@vkontakte/videoplayer-shared/es2018";var K2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),W2=L('<img class="icon" aria-hidden="true">');function sa(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=Ue(),a=ge(n);{var s=l=>{var p=K2();b(l,p)},d=l=>{var p=W2();k(()=>De(p,"src",e.icon)),It("error",p,o),Hs(p),b(l,p)};B(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Cf(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Hh),n=v(e,"ref",15),a=m(()=>o()===Hh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Po(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,p)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});kt(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:(_,u)=>{sa(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var Fh=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var j2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),Z2={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 kf(t,e){var ca,Is;q(e,!0),Q(t,Z2);let[i,o]=Fe(),n=()=>C(ui,"$disabledControls$",i),a=()=>C(Ft,"$adPlaybackState",i),s=()=>C(Qt,"$playbackState$",i),d=()=>C(Jt,"$currentSubtitle$",i),l=()=>C(li,"$isEnded$",i),p=()=>C(yn,"$currentGridType$",i),f=()=>C(oi,"$isLive$",i),_=()=>C(ni,"$chromecastState$",i),u=()=>C(Mo,"$isPictureInPictureActive",i),$=()=>C($o,"$pictureInPictureType$",i),w=()=>C(Hi,"$availableSubtitlesList$",i),y=()=>C(so,"$contextMenuOpenedByKeyboard$",i),S=()=>C(ro,"$showContextMenuBtn$",i),I=()=>C(Yt,"$playerSize",i),A=()=>C(Oi,"$isRewindableLive$",i),P=()=>C(Ci,"$isActiveLive$",i),E=()=>C(an,"$graphIsOpened$",i),T=()=>C(no,"$contextMenuVisible$",i),R=()=>C(zi,"$isFullscreen",i),z=()=>C(qo,"$autoplayNextEnabled",i),Y=()=>C(r(jo),"$prevButton",i),U=()=>C(r(pr),"$replayButton",i),Z=()=>C(r(fr),"$playButton",i),J=()=>C(r(it),"$nextButton",i),oe=()=>C(r(ct),"$playPrevChapterButton",i),ce=()=>C(r(xi),"$seekToInteractiveButton",i),le=()=>C(r(Qi),"$interactiveGraphButton",i),Le=()=>C(r(Gi),"$liveButton",i),Re=()=>C(r(Co),"$time",i),X=()=>C(r(Bo),"$episodes",i),Me=()=>C(r(No),"$vkLogo",i),j=()=>C(r(To),"$volume",i),N=()=>C(r(Ze),"$subtitles",i),Ve=()=>C(r(Ct),"$settings",i),xe=()=>C(r(Ii),"$context",i),re=()=>C(r(Mi),"$fullscreen",i),Be=()=>C(r(Li),"$chromecast",i),ue=()=>C(xo,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(xn,"$isInteractiveTime$",i),de=()=>C(yo,"$settingsMenuVisible",i),Ee=()=>C(Bn,"$settingButtonRef$",i),Qe=()=>C(zo,"$startedByKeyboard$",i),at=()=>C(Ye,"$isAudioAvailable$",i),Ae=()=>C(ne,"$fakeIsPlaying$",i),ye=()=>C(sn,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(yt,"$adPosition",i),nt=()=>C($t,"$position$",i),pt=()=>C(di,"$adDuration",i),tt=()=>C(Xe,"$duration$",i),Lt=v(e,"playerControlsWrapperRef",15,void 0),rt=v(e,"playerControlsRef",15,void 0),ft=v(e,"isAds",3,!1),Ht=v(e,"logoTargetUrl",3,""),Ut=v(e,"isOneVideoPlaylist",3,!1),Ne=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ne}=oo(),W=Ie(),se=oo(),pe=zt(),Ce=W.actions.internal.toggleMuted,Oe=W.actions.internal.togglePlay,dt=W.actions.internal.pause,Vt=W.actions.internal.toggleSubtitle,qe=(ca=W.callbacks)==null?void 0:ca.onAudioDoesNotExistHint,vt=(Is=W.callbacks)==null?void 0:Is.onAudioDisabledHint,Xe=W.state.duration$,$t=W.state.positionWithScrubbing$,Qt=W.state.playbackState$,Ye=W.state.isAudioAvailable$,wt=W.state.isAudioDisabled,li=W.state.isEnded$,oi=W.state.isLive$,Ci=W.state.isActiveLive$,Oi=W.state.isRewindableLive$,{isActive$:Mo,type$:$o}=se.pictureInPicture$,yo=W.ui.settingsMenu.visible$,Lo=W.ui.settingsMenu.openedByBtnKeyboard$,H=W.ui.controls,Ke=W.actions.internal.getVideoEpisodes(),ni=W.state.chromecastState$,Hi=W.state.availableSubtitlesList$,Jt=W.state.currentSubtitle$,ui=H.disabledControls$,no=W.ui.contextMenu.visible$,ro=W.ui.contextMenu.showContextMenuBtn$,so=W.ui.contextMenu.openedByBtnKeyboard$,zo=W.ui.startedByKeyboard$,Rt=W.ui.t,di=W.ads.duration,yt=W.ads.position,Ft=W.ads.playbackState,zi=W.ui.isFullscreen,Yt=W.ui.playerSize,yn=W.ui.currentGridType$,xo=W.ui.additionalDesktopControlPanelRightButtons$,qo=W.ui.autoplayNextEnabled$,ri=W.actions.internal.getVideoElement,_t=W.actions.internal.replayInteractive,qi=W.actions.internal.prevVideoClick,yi=W.actions.internal.nextVideoClick,ci=W.state.isInteractive,xn=W.state.isInteractiveTime$,Ki=W.state.showInteractiveGraph,Fi=W.state.showSeekToInteractive,Ko=W.state.showPlayPrevChapter,wn=W.state.showInteractiveTimeIndicator,Ti=W.state.playPrevChapterDisabledTooltip,sn=se.seekToInteractiveDisabledTooltip$,an=se.graphIsOpened$,Vo=pe.features.interactiveResponsiveUi,ln=m(()=>n().has("EPISODE_BUTTON")),Er=m(()=>n().has("GRAPH_BUTTON")),sr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Qn=m(()=>n().has("PLAY_BUTTON")),Sn=m(()=>n().has("REPLAY_BUTTON")),Cn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Tn=()=>W.actions.internal.toggleChromecast(),ao=m(()=>ft()?a()==="playing":s()===Tf.PLAYING),Je=m(()=>d().value!=="off"),Wo=m(()=>l()&&!ft()||ci),dn=m(()=>Vo?r(Wo)&&Di(p(),"m"):r(Wo)),ar=m(()=>!l()||ci||ft()),In=m(()=>Di(p(),"m")),Qo=m(()=>e.showNextPrevButtons&&Di(p(),"m")&&!ft()&&e.nextButtonActive),Gn=m(()=>e.showNextPrevButtons&&Di(p(),"m")&&!ft()&&e.prevButtonActive),Go=m(()=>!ft()&&!!f()),cn=m(()=>_()!==Uh.NOT_AVAILABLE&&!(u()&&$()===1)&&Di(p(),"m")&&!ci),Pi=m(()=>e.showAutoplayNext&&!Ut()&&Di(p(),"s")),wo=m(()=>w().length>0&&Di(p(),"m")),un=m(()=>y()||S()),kn=m(()=>Di(p(),"s")&&!ft()),lr=m(()=>!e.logoHidden&&!ft()),lo=m(()=>pe.features.fullscreen&&(e.logoHidden||Di(p(),Vo?"xs":"s"))&&!(u()&&$()===1)&&(ci?Ne():!0)),Ro=m(()=>(!f()||ft())&&!(pe.features.interactiveHideTime&&ci)),So=m(()=>I().width>100),En=m(()=>Ki&&Di(p(),"m")),co=m(()=>Vo?Fi&&Di(p(),"s"):Fi),Wi=m(()=>Vo?Ko&&Di(p(),"s"):Ko),An=m(()=>!ft()&&!f()&&!!(Ke!=null&&Ke.length)&&r(In)&&!r(ln)),Yo=m(()=>!A()||!!P()),dr=m(()=>E()?Rt("tooltip_interactive_graph_on"):Rt("tooltip_interactive_graph_off")),Pn=m(()=>T()?Rt("aria_label_context_menu_close"):Rt("aria_label_context_menu_open")),cr=(gt,mt)=>gt?mt&&mt===Tf.PAUSED?Rt("tooltip_play"):"":Rt("tooltip_live"),Mn=m(()=>cr(r(Yo),s())),Ln=m(()=>pe.logoType==="vk_video"?Rt("tooltip_vk_video_logo"):Rt("tooltip_vk_logo")),Ar=m(()=>r(Je)?Rt("tooltip_subtitles_on"):Rt("tooltip_subtitles_off")),Yn=m(()=>R()?Rt("tooltip_fullscreen_on"):Rt("tooltip_fullscreen_off")),ur=m(()=>_()===Uh.CONNECTED?Rt("tooltip_chromecast_on"):Rt("tooltip_chromecast_off")),Pr=m(()=>z()?Rt("tooltip_autoplay_on"):Rt("tooltip_autoplay_off")),Vn=ee(0),jt=he({}),jo=m(()=>H.prevButton),pr=m(()=>H.replayButton),fr=m(()=>H.playButton),it=m(()=>H.nextButton),ct=m(()=>H.playPrevChapterButton),xi=m(()=>H.seekToInteractiveButton),Qi=m(()=>H.interactiveGraphButton),Gi=m(()=>H.liveButton),Co=m(()=>H.time),Bo=m(()=>H.episodes),No=m(()=>H.vkLogo),To=m(()=>H.volume),Ze=m(()=>H.subtitles),Ct=m(()=>H.settings),Ii=m(()=>H.context),Mi=m(()=>H.fullscreen),Li=m(()=>H.chromecast),gi=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:U()?U().right-U().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Le()?Le().right-Le().left:0,time:Re()?Re().right-Re().left:0,episodes:X()?X().right-X().left:0,vkLogo:Me()?Me().right-Me().left:0,volume:j()?j().right-j().left:0,subtitles:N()?N().right-N().left:0,settings:Ve()?Ve().right-Ve().left:0,context:xe()?xe().right-xe().left:0,fullscreen:re()?re().right-re().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:ue().length?ue().reduce(gt=>[...gt,40],[]):[]})),Yi=ee(0);je(()=>{(!r(Yi)||r(Yi)<r(gi).time)&&ht(()=>O(Yi,he(r(gi).time)))});let Vi=ee(!1);je(()=>{let gt=0;r(An)&&(Di(p(),"xl")?gt=r(gi).time:gt=60);let mt=r(gi).prevButton+r(gi).playButton+r(gi).nextButton+r(gi).seekToInteractiveButton+r(gi).interactiveGraphButton+r(gi).liveButton+r(Yi)+gt;O(Vi,he(r(Ro)&&r(Vn)>=mt))});let Rn=m(()=>r(Vi)&&Di(p(),"m")),mr=Y2(Uc,260);je(()=>{I(),D(),mr(ri(),H,jt,e.showControls)});let Bn=ae();je(()=>{de(),Ee()&&ht(()=>Na(Ee(),de(),Lo))});let Mr;je(()=>{Qe(),ht(()=>zc(zo,Qe(),Mr))});function uo(){xs({isAudioDisabled:wt,audioDisabledHintCallback:vt,isAudioAvailable:at(),audioIsNotExistHintCallback:qe})&&Ce()}let Lr=ci?_t:Oe,jn=m(()=>Ae()!==null),Vr=m(()=>r(jn)?Ae():r(ao)),vr=m(()=>r(Vr)?Rt("tooltip_pause"):Rt("tooltip_play")),pn=Rt("tooltip_episodes"),Zn=m(()=>{var gt,mt,ji,Do;return r(Gn)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:na,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:qi.bind(null,!0)},tooltipEnabled:!((mt=(gt=W.callbacks)==null?void 0:gt.uiInfo)!=null&&mt.onPrevButtonMouseEnter)&&!((Do=(ji=W.callbacks)==null?void 0:ji.uiInfo)!=null&&Do.onPrevButtonMouseLeave),mouseEnter:()=>{var Zi,ii,ki;(ki=(ii=(Zi=W.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ii.onPrevButtonMouseEnter)==null||ki.call(ii,oa(ri(),jt,"prevButton",e.showControls))},mouseLeave:()=>{var Zi,ii,ki;(ki=(ii=(Zi=W.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ii.onPrevButtonMouseLeave)==null||ki.call(ii,oa(ri(),jt,"prevButton",e.showControls))},tooltipText:Rt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),gr=m(()=>r(dn)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:Ka,buttonComponentProps:{disabled:r(Sn),click:Lr},tooltipText:Rt("tooltip_restart"),disabled:r(Sn)}:void 0),Nn=m(()=>r(ar)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:Wa,buttonComponentProps:{disabled:r(Qn),isPlaying:r(ao),click:Oe},tooltipText:r(vr),disabled:r(Qn)}:void 0),Io=m(()=>{var gt,mt,ji,Do;return r(Qo)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:na,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:yi.bind(null,!0)},tooltipEnabled:!((mt=(gt=W.callbacks)==null?void 0:gt.uiInfo)!=null&&mt.onNextButtonMouseEnter)&&!((Do=(ji=W.callbacks)==null?void 0:ji.uiInfo)!=null&&Do.onNextButtonMouseLeave),mouseEnter:()=>{var Zi,ii,ki;(ki=(ii=(Zi=W.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ii.onNextButtonMouseEnter)==null||ki.call(ii,oa(ri(),jt,"nextButton",e.showControls))},mouseLeave:()=>{var Zi,ii,ki;(ki=(ii=(Zi=W.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:ii.onNextButtonMouseLeave)==null||ki.call(ii,oa(ri(),jt,"nextButton",e.showControls))},tooltipText:Rt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Xn=m(()=>ci&&r(Wi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:ld,buttonComponentProps:{disabled:r(Cn),click:e.playPrevChapter},tooltipText:Rt("tooltip_interactive_go_back"),disabledTooltipContent:Rt(Ti),disabled:r(Cn)}:void 0),hr=m(()=>ci&&r(co)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:cd,buttonComponentProps:{disabled:r(sr),click:e.seekToInteractive},tooltipText:Rt("tooltip_interactive_seek"),disabled:r(sr),disabledTooltipContent:Rt(ye())}:void 0),et=m(()=>ci&&r(En)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:ud,buttonComponentProps:{disabled:r(Er),click:an.toggle,graphIsOpened:E()},tooltipText:r(dr)}:void 0),Dt=m(()=>r(Go)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:pd,buttonComponentProps:{isLiveActive:r(Yo),ariaLabel:r(Mn)},tooltipText:r(Mn),disabled:r(Yo)&&s()===Tf.PLAYING}:void 0),$e=m(()=>[r(Zn),r(gr),r(Nn),r(Io),r(Xn),r(hr),r(et),r(Dt)].filter(gt=>!!gt).sort(js)),Et=m(()=>r(lr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:Xl,buttonComponentProps:{targetUrl:Ht(),logoClickable:e.logoClickable,click:dt},tooltipText:r(Ln),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ei=m(()=>r(Pi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:dd,tooltipText:r(Pr)}:void 0),Gt=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:Xp,buttonComponentProps:{click:uo}})),po=m(()=>r(wo)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:Qp,buttonComponentProps:{isSubtitlesEnabled:r(Je),click:Vt},tooltipText:r(Ar)}:void 0),Ri=m(()=>r(kn)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:Ua,buttonComponentProps:{ref$:Bn},tooltipText:de()?void 0:Rt("tooltip_settings_off")}:void 0),ti=m(()=>pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:_f,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Pn)},className:r(un)?"":"out-of-view",tooltipText:r(Pn)}:void 0),ai=m(()=>r(lo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:Zl,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Yn)}:void 0),hi=m(()=>r(cn)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:Jl,buttonComponentProps:{state:_(),click:Tn},tooltipText:r(ur)}:void 0),Ui=m(()=>[r(Et),r(ei),r(Gt),r(po),r(Ri),r(ti),r(ai),r(hi),...ue()].filter(gt=>!!gt).sort(js));var ko=j2(),si=ge(ko);let qr;var ze=h(si);let Bt=m(()=>!r(So));td(ze,{get isHidden(){return r(Bt)},get isAds(){return ft()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return jt.timeline},set ref(gt){jt.timeline=gt}});var _i=M(ze,2),Eo=h(_i),fn=h(Eo);bi(fn,17,()=>r($e),gt=>gt.id,(gt,mt)=>{qc(gt,{get buttonComponent(){return r(mt).buttonComponent},get buttonComponentProps(){return r(mt).buttonComponentProps},get tooltipText(){return r(mt).tooltipText},get disabledTooltipContent(){return r(mt).disabledTooltipContent},get disabled(){return r(mt).disabled},get className(){return r(mt).className},get tooltipEnabled(){return r(mt).tooltipEnabled},get mouseEnter(){return r(mt).mouseEnter},get mouseLeave(){return r(mt).mouseLeave},get ref(){return jt[r(mt).id]},set ref(ji){jt[r(mt).id]=ji}})});var Kr=M(fn,2);{var Dn=gt=>{let mt=m(()=>ft()?Pe():nt()),ji=m(()=>ft()?pt():tt());Yl(gt,{isMobile:!1,get showDuration(){return r(Rn)},get position(){return r(mt)},get duration(){return r(ji)},get ref(){return jt.time},set ref(Do){jt.time=Do}})};B(Kr,gt=>{r(Ro)&&gt(Dn)})}var Rr=M(Kr,2);let ja=m(()=>!r(An));Po(Rr,{className:"w-max",get disabled(){return r(ja)},tooltipContent:pn,get ref(){return jt.episodes},set ref(gt){jt.episodes=gt},children:(gt,mt)=>{var ji=Ue(),Do=ge(ji);{var Zi=ii=>{id(ii,{get position(){return nt()},get duration(){return tt()},timeCodes:Ke})};B(Do,ii=>{r(An)&&ii(Zi)})}b(gt,ji)},$$slots:{default:!0}}),g(Eo);var Ts=M(Eo,2);bi(Ts,21,()=>r(Ui),gt=>gt.id,(gt,mt)=>{var ji=Ue(),Do=ge(ji);{var Zi=ki=>{qc(ki,{get buttonComponent(){return r(mt).buttonComponent},get buttonComponentProps(){return r(mt).buttonComponentProps},get tooltipText(){return r(mt).tooltipText},get disabledTooltipContent(){return r(mt).disabledTooltipContent},get disabled(){return r(mt).disabled},get className(){return r(mt).className},get ref(){return jt[r(mt).id]},set ref(ls){jt[r(mt).id]=ls}})},ii=ki=>{let ls=m(()=>!!r(mt).disabled);Cf(ki,{get id(){return r(mt).id},get testId(){return r(mt).testId},get icon(){return r(mt).icon},get ariaLabel(){return r(mt).ariaLabel},get tooltipText(){return r(mt).tooltipText},get disabledTooltipContent(){return r(mt).disabledTooltipContent},get disabled(){return r(ls)},get onClick(){return r(mt).onClick},get ref(){return jt[r(mt).id]},set ref(Za){jt[r(mt).id]=Za}})};B(Do,ki=>{Fh(r(mt))?ki(Zi):ki(ii,!1)})}b(gt,ji)}),g(Ts),g(_i),lt(_i,gt=>rt(gt),()=>rt()),g(si),lt(si,gt=>Lt(gt),()=>Lt());var _r=M(si,2);{var da=gt=>{sd(gt,{get ref(){return jt.interactiveTimeIndicator},set ref(mt){jt.interactiveTimeIndicator=mt}})};B(_r,gt=>{wn&&gt(da)})}k(gt=>qr=te(si,1,"wrapper-bottom svelte-1iedtj3",null,qr,gt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Or(Eo,"clientWidth",gt=>O(Vn,gt)),b(t,ko),K(),o()}import{ChromecastState as qh,PlaybackState as Kh}from"@vkontakte/videoplayer-core/es2018";import{noop as zh}from"@vkontakte/videoplayer-shared/es2018";var X2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),J2=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ey={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 Ef(t,e){Q(t,ey);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,zh),n=m(()=>o()===zh),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");kt(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:(p,f)=>{var _=Ue(),u=ge(_);{var $=y=>{var S=X2();b(y,S)},w=y=>{var S=J2();k(()=>De(S,"src",e.iconUrl)),It("error",S,d),Hs(S),b(y,S)};B(u,y=>{r(s)?y($):y(w,!1)})}b(p,_)},$$slots:{default:!0}})}var ty=be('<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 Af(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as iy}from"@vkontakte/videoplayer-shared/es2018";var oy=L('<span class="text svelte-6gmlbk"> </span>'),ny=L('<div aria-hidden="true"><!> <!></div>'),ry={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 Kc(t,e){q(e,!0),Q(t,ry);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,iy),a=v(e,"ref",15,void 0),d=Ie().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=m(()=>o()?ws:Af),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");kt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=ny();let w=m(()=>r(p)),y;var S=h($);Ai(S,()=>r(w),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=oy(),T=h(E,!0);g(E),k(R=>fe(T,R),[()=>d("mobile_unmute")]),b(P,E)};B(I,P=>{o()&&P(A)})}g($),k(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var sy=be('<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 Pf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=sy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var ay={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Mf(t,e){Q(t,ay);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Pf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as ly}from"@vkontakte/videoplayer-shared/es2018";function Lf(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,ly),a=F("menu_pip");kt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Mf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),K()}import{debounceFn as dy}from"@vkontakte/videoplayer-shared/es2018";var cy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},uy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},py=L("<div><!></div>"),fy=L("<div><!></div>"),my=L("<div><!></div>"),vy=L("<!> <!> <!>",1),gy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),hy=L("<div><!></div>"),_y=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),by=L("<!> <!> <div><!></div>",1),$y=L('<div aria-hidden="true">\xB7</div> <!>',1),yy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),xy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {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-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
254
+ 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 sd(t,e){var D;q(e,!0),Q(t,w2);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),u=ee(void 0),$=we(),w=io(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,U=m(()=>!n()&&a()),Y=m(()=>Cs(s(),"s")),F=m(()=>!d()||!!l()||r(U)),j=ee(!1);Ke(()=>{O(j,me(r(F)))});let X=()=>{O(j,!0)},oe=()=>{var de;pe(),(de=r(u))==null||de.addEventListener("animationiteration",X,{once:!0})},pe=()=>{var de;O(j,!1),(de=r(u))==null||de.removeEventListener("animationiteration",X)},le=de=>{P.set(de)},Ve=m(()=>p()&&!r(F));Ke(()=>{p()?oe():pe()});let Me=()=>{r(F)||(P.set(!0),T==null||T())};bn(()=>{P.clearTimeout(),pe()});let J=()=>{P.set(!1)},Le=H("tooltip_interactive_interaction_time_indicator");var Z=x2();let B;Z.__mousemove=[y2],Z.__click=Me;var Re=h(Z);So(Re,{tooltipContent:Le,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{jl(de,{completed:!0})},$$slots:{default:!0}});var ne=M(Re,2);let ke;dt(ne,de=>_(de),()=>_());var Ne=M(ne,2);let fe;dt(Ne,de=>O(u,de),()=>r(u)),g(Z),k((de,Ee,Ge)=>{B=te(Z,1,"interactive-episode-icon-animated svelte-od3veb",null,B,de),ke=te(ne,1,"ref-block svelte-od3veb",null,ke,Ee),fe=te(Ne,1,"pulse svelte-od3veb",null,fe,Ge)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(j)})]),kt("mouseleave",Z,J),b(t,Z),K(),o()}st(["mousemove","click"]);function Yc(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);So(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=qe();let p=m(()=>e.buttonComponent);var f=ue(l);bi(f,()=>r(p),(_,u)=>{u(_,is(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var C2=be('<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 Cf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=C2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function Ts(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),a=v(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Cf(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 T2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),I2=L("<!> <!>",1),k2={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 sa(t,e){q(e,!0),Q(t,k2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=we().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Pt(t,{get className(){return r(p)},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,_)=>{var u=I2(),$=ue(u);{var w=I=>{var A=T2();b(I,A)};R($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Ts(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,u)},$$slots:{default:!0}}),K()}var E2=be('<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 ad(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=E2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as A2}from"@vkontakte/videoplayer-shared/es2018";var P2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),M2=L("<!> <div><!></div>",1),L2={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 Qa(t,e){q(e,!0),Q(t,L2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,A2),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Pt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Or.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var _=M2(),u=ue(_);{var $=I=>{var A=P2();b(I,A)};R(u,I=>{o()&&I($)})}var w=M(u,2);let y;var S=h(w);ad(S,{}),g(w),k(I=>y=te(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(p,_)},$$slots:{default:!0}}),K()}var V2=be('<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 Ir(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=V2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var R2=be('<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 ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=R2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}import{noop as N2}from"@vkontakte/videoplayer-shared/es2018";var B2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),D2=L("<!> <div><!></div>",1),O2={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 Ga(t,e){q(e,!0),Q(t,O2);let[i,o]=Fe(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=io(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,N2),$=we().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),A=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?ss:Ir),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());Pt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return p()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Or.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,U)=>{var Y=D2();let F=m(()=>r(P));var j=ue(Y);{var X=Ve=>{var Me=B2();b(Ve,Me)};R(j,Ve=>{d()&&Ve(X)})}var oe=M(j,2);let pe;var le=h(oe);bi(le,()=>r(F),(Ve,Me)=>{Me(Ve,{})}),g(oe),k(Ve=>pe=te(oe,1,"svelte-1ot3duq",null,pe,Ve),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),K(),o()}var H2=be('<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 Tf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=H2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function ld(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Pt(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)=>{Tf(d,{})},$$slots:{default:!0}}),K()}var F2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),U2={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 dd(t,e){q(e,!0),Q(t,U2);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=we(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Pt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var u=F2(),$=h(u);let w;var y=h($);{var S=A=>{Ir(A,{width:"14",height:"14",fill:"#000"})},I=A=>{ss(A,{width:"14",height:"14",fill:"#000"})};R(y,A=>{n()?A(S):A(I,!1)})}g($),g(u),k(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,u)},$$slots:{default:!0}}),K(),o()}var z2=be('<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 If(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{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})),b(t,o)}function cd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Pt(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)=>{If(d,{})},$$slots:{default:!0}}),K()}var q2=be('<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 kf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=q2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var K2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Ef(t,e){Q(t,K2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");kf(t,{get"data-testid"(){return r(o)}})}function ud(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=we().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=m(()=>o()?"hidden":"");Pt(t,{get className(){return r(p)},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,_)=>{let u=m(()=>!!a());Ef(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),K()}import{PlaybackState as Uh}from"@vkontakte/videoplayer-core/es2018";function pd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(p,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=we(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=m(()=>()=>{if(!s()){f();return}n()===Uh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Uh.PLAYING);Pt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,I)=>{Bl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}import{noop as zh}from"@vkontakte/videoplayer-shared/es2018";var W2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Q2=L('<img class="icon" aria-hidden="true">');function aa(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=qe(),a=ue(n);{var s=l=>{var p=W2();b(l,p)},d=l=>{var p=Q2();k(()=>Oe(p,"src",e.icon)),kt("error",p,o),Fs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Af(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,zh),n=v(e,"ref",15),a=m(()=>o()===zh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");So(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,p)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});Pt(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:(_,u)=>{aa(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var qh=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Z2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),X2={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 Lf(t,e){var ua,Es;q(e,!0),Q(t,X2);let[i,o]=Fe(),n=()=>C(ei,"$disabledControls$",i),a=()=>C(zt,"$adPlaybackState",i),s=()=>C(ni,"$playbackState$",i),d=()=>C(mi,"$currentSubtitle$",i),l=()=>C(Jt,"$isEnded$",i),p=()=>C(ai,"$currentGridType$",i),f=()=>C(ki,"$isLive$",i),_=()=>C(Oi,"$chromecastState$",i),u=()=>C(To,"$isPictureInPictureActive",i),$=()=>C(Oo,"$pictureInPictureType$",i),w=()=>C(Mi,"$availableSubtitlesList$",i),y=()=>C(Hi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(mo,"$showContextMenuBtn$",i),I=()=>C(Fi,"$playerSize",i),A=()=>C(Di,"$isRewindableLive$",i),P=()=>C(Co,"$isActiveLive$",i),E=()=>C(on,"$graphIsOpened$",i),T=()=>C(oo,"$contextMenuVisible$",i),V=()=>C(Io,"$isFullscreen",i),U=()=>C(Fo,"$autoplayNextEnabled",i),Y=()=>C(r(pr),"$prevButton",i),F=()=>C(r(cn),"$replayButton",i),j=()=>C(r(zo),"$playButton",i),X=()=>C(r(ot),"$nextButton",i),oe=()=>C(r(At),"$playPrevChapterButton",i),pe=()=>C(r(wi),"$seekToInteractiveButton",i),le=()=>C(r(ti),"$interactiveGraphButton",i),Ve=()=>C(r(Gi),"$liveButton",i),Me=()=>C(r(yo),"$time",i),J=()=>C(r(xo),"$episodes",i),Le=()=>C(r(qo),"$vkLogo",i),Z=()=>C(r(Ko),"$volume",i),B=()=>C(r(Je),"$subtitles",i),Re=()=>C(r(Ct),"$settings",i),ne=()=>C(r(si),"$context",i),ke=()=>C(r(Ei),"$fullscreen",i),Ne=()=>C(r(Vi),"$chromecast",i),fe=()=>C(vo,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(go,"$isInteractiveTime$",i),de=()=>C(Mt,"$settingsMenuVisible",i),Ee=()=>C(Tn,"$settingButtonRef$",i),Ge=()=>C(Ho,"$startedByKeyboard$",i),lt=()=>C(Qe,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),$e=()=>C(wn,"$seekToInteractiveDisabledTooltip$",i),Pe=()=>C(xt,"$adPosition",i),nt=()=>C(Et,"$position$",i),mt=()=>C(li,"$adDuration",i),at=()=>C(Xe,"$duration$",i),It=v(e,"playerControlsWrapperRef",15,void 0),rt=v(e,"playerControlsRef",15,void 0),vt=v(e,"isAds",3,!1),Ut=v(e,"logoTargetUrl",3,""),Qt=v(e,"isOneVideoPlaylist",3,!1),Be=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=io(),W=we(),se=io(),he=qt(),Se=W.actions.internal.toggleMuted,De=W.actions.internal.togglePlay,ct=W.actions.internal.pause,Kt=W.actions.internal.toggleSubtitle,je=(ua=W.callbacks)==null?void 0:ua.onAudioDoesNotExistHint,ut=(Es=W.callbacks)==null?void 0:Es.onAudioDisabledHint,Xe=W.state.duration$,Et=W.state.positionWithScrubbing$,ni=W.state.playbackState$,Qe=W.state.isAudioAvailable$,it=W.state.isAudioDisabled,Jt=W.state.isEnded$,ki=W.state.isLive$,Co=W.state.isActiveLive$,Di=W.state.isRewindableLive$,{isActive$:To,type$:Oo}=se.pictureInPicture$,Mt=W.ui.settingsMenu.visible$,ht=W.ui.settingsMenu.openedByBtnKeyboard$,z=W.ui.controls,Wt=W.actions.internal.getVideoEpisodes(),Oi=W.state.chromecastState$,Mi=W.state.availableSubtitlesList$,mi=W.state.currentSubtitle$,ei=z.disabledControls$,oo=W.ui.contextMenu.visible$,mo=W.ui.contextMenu.showContextMenuBtn$,Hi=W.ui.contextMenu.openedByBtnKeyboard$,Ho=W.ui.startedByKeyboard$,Bt=W.ui.t,li=W.ads.duration,xt=W.ads.position,zt=W.ads.playbackState,Io=W.ui.isFullscreen,Fi=W.ui.playerSize,ai=W.ui.currentGridType$,vo=W.ui.additionalDesktopControlPanelRightButtons$,Fo=W.ui.autoplayNextEnabled$,ri=W.actions.internal.getVideoElement,$t=W.actions.internal.replayInteractive,vi=W.actions.internal.prevVideoClick,Ui=W.actions.internal.nextVideoClick,Li=W.state.isInteractive,go=W.state.isInteractiveTime$,yi=W.state.showInteractiveGraph,ho=W.state.showSeekToInteractive,xn=W.state.showPlayPrevChapter,tn=W.state.showInteractiveTimeIndicator,xi=W.state.playPrevChapterDisabledTooltip,wn=se.seekToInteractiveDisabledTooltip$,on=se.graphIsOpened$,ko=he.features.interactiveResponsiveUi,Sn=m(()=>n().has("EPISODE_BUTTON")),rr=m(()=>n().has("GRAPH_BUTTON")),sr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Bn=m(()=>n().has("PLAY_BUTTON")),Dn=m(()=>n().has("REPLAY_BUTTON")),nn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),rn=()=>W.actions.internal.toggleChromecast(),ar=m(()=>vt()?a()==="playing":s()===Pf.PLAYING),tt=m(()=>d().value!=="off"),Wi=m(()=>l()&&!vt()||Li),lr=m(()=>ko?r(Wi)&&Bi(p(),"m"):r(Wi)),On=m(()=>!l()||Li||vt()),sn=m(()=>Bi(p(),"m")),an=m(()=>e.showNextPrevButtons&&Bi(p(),"m")&&!vt()&&e.nextButtonActive),Eo=m(()=>e.showNextPrevButtons&&Bi(p(),"m")&&!vt()&&e.prevButtonActive),_o=m(()=>!vt()&&!!f()),zi=m(()=>_()!==Kh.NOT_AVAILABLE&&!(u()&&$()===1)&&Bi(p(),"m")&&!Li),Qi=m(()=>e.showAutoplayNext&&!Qt()&&Bi(p(),"s")),Hn=m(()=>w().length>0&&Bi(p(),"m")),Fn=m(()=>y()||S()),Er=m(()=>Bi(p(),"s")&&!vt()),Un=m(()=>!e.logoHidden&&!vt()),no=m(()=>he.features.fullscreen&&(e.logoHidden||Bi(p(),ko?"xs":"s"))&&!(u()&&$()===1)&&(Li?Be():!0)),bo=m(()=>(!f()||vt())&&!(he.features.interactiveHideTime&&Li)),ln=m(()=>I().width>100),Cn=m(()=>yi&&Bi(p(),"m")),Ao=m(()=>ko?ho&&Bi(p(),"s"):ho),qi=m(()=>ko?xn&&Bi(p(),"s"):xn),Uo=m(()=>!vt()&&!f()&&!!(Wt!=null&&Wt.length)&&r(sn)&&!r(Sn)),$o=m(()=>!A()||!!P()),dr=m(()=>E()?Bt("tooltip_interactive_graph_on"):Bt("tooltip_interactive_graph_off")),dn=m(()=>T()?Bt("aria_label_context_menu_close"):Bt("aria_label_context_menu_open")),zn=(_t,gt)=>_t?gt&&gt===Pf.PAUSED?Bt("tooltip_play"):"":Bt("tooltip_live"),qn=m(()=>zn(r($o),s())),Kn=m(()=>he.logoType==="vk_video"?Bt("tooltip_vk_video_logo"):Bt("tooltip_vk_logo")),cr=m(()=>r(tt)?Bt("tooltip_subtitles_on"):Bt("tooltip_subtitles_off")),Wn=m(()=>V()?Bt("tooltip_fullscreen_on"):Bt("tooltip_fullscreen_off")),ur=m(()=>_()===Kh.CONNECTED?Bt("tooltip_chromecast_on"):Bt("tooltip_chromecast_off")),Qn=m(()=>U()?Bt("tooltip_autoplay_on"):Bt("tooltip_autoplay_off")),Gn=ee(0),oi=me({}),pr=m(()=>z.prevButton),cn=m(()=>z.replayButton),zo=m(()=>z.playButton),ot=m(()=>z.nextButton),At=m(()=>z.playPrevChapterButton),wi=m(()=>z.seekToInteractiveButton),ti=m(()=>z.interactiveGraphButton),Gi=m(()=>z.liveButton),yo=m(()=>z.time),xo=m(()=>z.episodes),qo=m(()=>z.vkLogo),Ko=m(()=>z.volume),Je=m(()=>z.subtitles),Ct=m(()=>z.settings),si=m(()=>z.context),Ei=m(()=>z.fullscreen),Vi=m(()=>z.chromecast),Si=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:j()?j().right-j().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:pe()?pe().right-pe().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Me()?Me().right-Me().left:0,episodes:J()?J().right-J().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:Z()?Z().right-Z().left:0,subtitles:B()?B().right-B().left:0,settings:Re()?Re().right-Re().left:0,context:ne()?ne().right-ne().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:fe().length?fe().reduce(_t=>[..._t,40],[]):[]})),ro=ee(0);Ke(()=>{(!r(ro)||r(ro)<r(Si).time)&&bt(()=>O(ro,me(r(Si).time)))});let Ci=ee(!1);Ke(()=>{let _t=0;r(Uo)&&(Bi(p(),"xl")?_t=r(Si).time:_t=60);let gt=r(Si).prevButton+r(Si).playButton+r(Si).nextButton+r(Si).seekToInteractiveButton+r(Si).interactiveGraphButton+r(Si).liveButton+r(ro)+_t;O(Ci,me(r(bo)&&r(Gn)>=gt))});let un=m(()=>r(Ci)&&Bi(p(),"m")),fr=j2(Qc,260);Ke(()=>{I(),D(),fr(ri(),z,oi,e.showControls)});let Tn=ae();Ke(()=>{de(),Ee()&&bt(()=>Oa(Ee(),de(),ht))});let Ar;Ke(()=>{Ge(),bt(()=>Gc(Ho,Ge(),Ar))});function so(){ws({isAudioDisabled:it,audioDisabledHintCallback:ut,isAudioAvailable:lt(),audioIsNotExistHintCallback:je})&&Se()}let Pr=Li?$t:De,Yn=m(()=>Ae()!==null),zr=m(()=>r(Yn)?Ae():r(ar)),mr=m(()=>r(zr)?Bt("tooltip_pause"):Bt("tooltip_play")),Mr=Bt("tooltip_episodes"),vr=m(()=>{var _t,gt,Yi,Lo;return r(Eo)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:vi.bind(null,!0)},tooltipEnabled:!((gt=(_t=W.callbacks)==null?void 0:_t.uiInfo)!=null&&gt.onPrevButtonMouseEnter)&&!((Lo=(Yi=W.callbacks)==null?void 0:Yi.uiInfo)!=null&&Lo.onPrevButtonMouseLeave),mouseEnter:()=>{var ji,ii,Ai;(Ai=(ii=(ji=W.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ii.onPrevButtonMouseEnter)==null||Ai.call(ii,ra(ri(),oi,"prevButton",e.showControls))},mouseLeave:()=>{var ji,ii,Ai;(Ai=(ii=(ji=W.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ii.onPrevButtonMouseLeave)==null||Ai.call(ii,ra(ri(),oi,"prevButton",e.showControls))},tooltipText:Bt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Po=m(()=>r(lr)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:Qa,buttonComponentProps:{disabled:r(Dn),click:Pr},tooltipText:Bt("tooltip_restart"),disabled:r(Dn)}:void 0),pn=m(()=>r(On)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:Ga,buttonComponentProps:{disabled:r(Bn),isPlaying:r(ar),click:De},tooltipText:r(mr),disabled:r(Bn)}:void 0),qr=m(()=>{var _t,gt,Yi,Lo;return r(an)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Ui.bind(null,!0)},tooltipEnabled:!((gt=(_t=W.callbacks)==null?void 0:_t.uiInfo)!=null&&gt.onNextButtonMouseEnter)&&!((Lo=(Yi=W.callbacks)==null?void 0:Yi.uiInfo)!=null&&Lo.onNextButtonMouseLeave),mouseEnter:()=>{var ji,ii,Ai;(Ai=(ii=(ji=W.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ii.onNextButtonMouseEnter)==null||Ai.call(ii,ra(ri(),oi,"nextButton",e.showControls))},mouseLeave:()=>{var ji,ii,Ai;(Ai=(ii=(ji=W.callbacks)==null?void 0:ji.uiInfo)==null?void 0:ii.onNextButtonMouseLeave)==null||Ai.call(ii,ra(ri(),oi,"nextButton",e.showControls))},tooltipText:Bt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),gr=m(()=>Li&&r(qi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:ld,buttonComponentProps:{disabled:r(nn),click:e.playPrevChapter},tooltipText:Bt("tooltip_interactive_go_back"),disabledTooltipContent:Bt(xi),disabled:r(nn)}:void 0),jn=m(()=>Li&&r(Ao)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:cd,buttonComponentProps:{disabled:r(sr),click:e.seekToInteractive},tooltipText:Bt("tooltip_interactive_seek"),disabled:r(sr),disabledTooltipContent:Bt($e())}:void 0),Ze=m(()=>Li&&r(Cn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:ud,buttonComponentProps:{disabled:r(rr),click:on.toggle,graphIsOpened:E()},tooltipText:r(dr)}:void 0),Dt=m(()=>r(_o)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:pd,buttonComponentProps:{isLiveActive:r($o),ariaLabel:r(qn)},tooltipText:r(qn),disabled:r($o)&&s()===Pf.PLAYING}:void 0),hi=m(()=>[r(vr),r(Po),r(pn),r(qr),r(gr),r(jn),r(Ze),r(Dt)].filter(_t=>!!_t).sort(Xs)),fn=m(()=>r(Un)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:Xl,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:ct},tooltipText:r(Kn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),mn=m(()=>r(Qi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:dd,tooltipText:r(Qn)}:void 0),In=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:rf,buttonComponentProps:{click:so}})),Zn=m(()=>r(Hn)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:Jp,buttonComponentProps:{isSubtitlesEnabled:r(tt),click:Kt},tooltipText:r(cr)}:void 0),Ce=m(()=>r(Er)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:qa,buttonComponentProps:{ref$:Tn},tooltipText:de()?void 0:Bt("tooltip_settings_off")}:void 0),pt=m(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:Sf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(dn)},className:r(Fn)?"":"out-of-view",tooltipText:r(dn)}:void 0),Lt=m(()=>r(no)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:Zl,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Wn)}:void 0),Ht=m(()=>r(zi)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:Jl,buttonComponentProps:{state:_(),click:rn},tooltipText:r(ur)}:void 0),Ki=m(()=>[r(fn),r(mn),r(In),r(Zn),r(Ce),r(pt),r(Lt),r(Ht),...fe()].filter(_t=>!!_t).sort(Xs));var di=Z2(),Gt=ue(di);let Lr;var He=h(Gt);let Tt=m(()=>!r(ln));td(He,{get isHidden(){return r(Tt)},get isAds(){return vt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return oi.timeline},set ref(_t){oi.timeline=_t}});var gi=M(He,2),Mo=h(gi),Wo=h(Mo);_i(Wo,17,()=>r(hi),_t=>_t.id,(_t,gt)=>{Yc(_t,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get tooltipEnabled(){return r(gt).tooltipEnabled},get mouseEnter(){return r(gt).mouseEnter},get mouseLeave(){return r(gt).mouseLeave},get ref(){return oi[r(gt).id]},set ref(Yi){oi[r(gt).id]=Yi}})});var Kr=M(Wo,2);{var kn=_t=>{let gt=m(()=>vt()?Pe():nt()),Yi=m(()=>vt()?mt():at());Yl(_t,{isMobile:!1,get showDuration(){return r(un)},get position(){return r(gt)},get duration(){return r(Yi)},get ref(){return oi.time},set ref(Lo){oi.time=Lo}})};R(Kr,_t=>{r(bo)&&_t(kn)})}var Vr=M(Kr,2);let Xa=m(()=>!r(Uo));So(Vr,{className:"w-max",get disabled(){return r(Xa)},tooltipContent:Mr,get ref(){return oi.episodes},set ref(_t){oi.episodes=_t},children:(_t,gt)=>{var Yi=qe(),Lo=ue(Yi);{var ji=ii=>{id(ii,{get position(){return nt()},get duration(){return at()},timeCodes:Wt})};R(Lo,ii=>{r(Uo)&&ii(ji)})}b(_t,Yi)},$$slots:{default:!0}}),g(Mo);var ks=M(Mo,2);_i(ks,21,()=>r(Ki),_t=>_t.id,(_t,gt)=>{var Yi=qe(),Lo=ue(Yi);{var ji=Ai=>{Yc(Ai,{get buttonComponent(){return r(gt).buttonComponent},get buttonComponentProps(){return r(gt).buttonComponentProps},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(gt).disabled},get className(){return r(gt).className},get ref(){return oi[r(gt).id]},set ref(ls){oi[r(gt).id]=ls}})},ii=Ai=>{let ls=m(()=>!!r(gt).disabled);Af(Ai,{get id(){return r(gt).id},get testId(){return r(gt).testId},get icon(){return r(gt).icon},get ariaLabel(){return r(gt).ariaLabel},get tooltipText(){return r(gt).tooltipText},get disabledTooltipContent(){return r(gt).disabledTooltipContent},get disabled(){return r(ls)},get onClick(){return r(gt).onClick},get ref(){return oi[r(gt).id]},set ref(Ja){oi[r(gt).id]=Ja}})};R(Lo,Ai=>{qh(r(gt))?Ai(ji):Ai(ii,!1)})}b(_t,Yi)}),g(ks),g(gi),dt(gi,_t=>rt(_t),()=>rt()),g(Gt),dt(Gt,_t=>It(_t),()=>It());var hr=M(Gt,2);{var ca=_t=>{sd(_t,{get ref(){return oi.interactiveTimeIndicator},set ref(gt){oi.interactiveTimeIndicator=gt}})};R(hr,_t=>{tn&&_t(ca)})}k(_t=>Lr=te(Gt,1,"wrapper-bottom svelte-1iedtj3",null,Lr,_t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Dr(Mo,"clientWidth",_t=>O(Gn,_t)),b(t,di),K(),o()}import{ChromecastState as Qh,PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";import{noop as Wh}from"@vkontakte/videoplayer-shared/es2018";var J2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ey=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ty={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 Vf(t,e){Q(t,ty);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Wh),n=m(()=>o()===Wh),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Pt(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:(p,f)=>{var _=qe(),u=ue(_);{var $=y=>{var S=J2();b(y,S)},w=y=>{var S=ey();k(()=>Oe(S,"src",e.iconUrl)),kt("error",S,d),Fs(S),b(y,S)};R(u,y=>{r(s)?y($):y(w,!1)})}b(p,_)},$$slots:{default:!0}})}var iy=be('<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 Rf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as oy}from"@vkontakte/videoplayer-shared/es2018";var ny=L('<span class="text svelte-6gmlbk"> </span>'),ry=L('<div aria-hidden="true"><!> <!></div>'),sy={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 jc(t,e){q(e,!0),Q(t,sy);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,oy),a=v(e,"ref",15,void 0),d=we().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=m(()=>o()?Ss:Rf),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Pt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=ry();let w=m(()=>r(p)),y;var S=h($);bi(S,()=>r(w),(P,E)=>{E(P,{})});var I=M(S,2);{var A=P=>{var E=ny(),T=h(E,!0);g(E),k(V=>ve(T,V),[()=>d("mobile_unmute")]),b(P,E)};R(I,P=>{o()&&P(A)})}g($),k(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var ay=be('<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 Nf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ay();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var ly={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Bf(t,e){Q(t,ly);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Nf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as dy}from"@vkontakte/videoplayer-shared/es2018";function Df(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,dy),a=H("menu_pip");Pt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Bf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),K()}import{debounceFn as cy}from"@vkontakte/videoplayer-shared/es2018";var uy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},py=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},fy=L("<div><!></div>"),my=L("<div><!></div>"),vy=L("<div><!></div>"),gy=L("<!> <!> <!>",1),hy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),_y=L("<div><!></div>"),by=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),$y=L("<!> <!> <div><!></div>",1),yy=L('<div aria-hidden="true">\xB7</div> <!>',1),xy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),wy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {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-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
256
256
  .wrapper-middle-left-second.svelte-1afsgkw,
257
257
  .wrapper-middle-right.svelte-1afsgkw {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-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {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;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
258
258
 
@@ -260,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
260
260
  }
261
261
 
262
262
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
263
- }`};function Vf(t,e){var pr,fr;q(e,!0),Q(t,xy);let[i,o]=Fe(),n=()=>C(di,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Ci,"$disabledControls$",i),s=()=>C(ft,"$playbackState$",i),d=()=>C(Lo,"$adPlaybackState",i),l=()=>C(Ne,"$isEnded$",i),p=()=>C(Ke,"$playerSize",i),f=()=>C(Ce,"$scrubbingInProgress",i),_=()=>C(li,"$chromecastState$",i),u=()=>C(dt,"$isPictureInPictureActive",i),$=()=>C(Vt,"$pictureInPictureType$",i),w=()=>C(Oe,"$mobileNotReportControlHidden$",i),y=()=>C(tt,"$playerPhase",i),S=()=>C(Mo,"$currentGridType$",i),I=()=>C(ne,"$isLive$",i),A=()=>C(Xe,"$settingsMenuVisible",i),P=()=>C(pe,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(no,"$isInteractiveTime$",i),R=()=>C(Ht,"$isAudioAvailable$",i),z=()=>C(cn,"$settingButtonRef$",i),Y=()=>C(Oi,"$startedByKeyboard$",i),U=()=>C(H,"$isFullscreen",i),Z=()=>C(vt,"$mobileUnmuteButtonVisible",i),J=()=>C(W,"$muted$",i),oe=()=>C(qe,"$mobileUnmuteButtonExpanded",i),ce=()=>C(ni,"$additionalButtons$",i),le=()=>C(oi,"$crashed$",i),Le=()=>C(yt,"$graphIsOpened$",i),Re=()=>C(yo,"$adPosition",i),X=()=>C($o,"$adDuration",i),Me=()=>C(rt,"$position$",i),j=()=>C(Lt,"$duration$",i),N=v(e,"playerControlsWrapperRef",15,void 0),Ve=v(e,"playerControlsRef",15,void 0),xe=v(e,"isAds",3,!1),re=v(e,"logoTargetUrl",3,""),Be=v(e,"isOneVideoPlaylist",3,!1),ue=v(e,"customFullscreenSupported",3,!0),D=Ie(),de=oo(),Ee=zt(),Qe=D.actions.internal.toggleMuted,at=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,ye=D.actions.internal.prevVideoClick,Pe=D.actions.internal.nextVideoClick,nt=(pr=D.callbacks)==null?void 0:pr.onAudioDoesNotExistHint,pt=(fr=D.callbacks)==null?void 0:fr.onAudioDisabledHint,tt=D.playerPhase,Lt=D.state.duration$,rt=D.state.positionWithScrubbing$,ft=D.state.playbackState$,Ht=D.state.isAudioAvailable$,Ut=D.state.isAudioDisabled,Ne=D.state.isEnded$,ne=D.state.isLive$,W=D.state.muted$,se=D.state.isActiveLive$,pe=D.state.isRewindableLive$,Ce=D.ui.scrubbingInProgress,Oe=D.ui.mobileNotReportControlHidden$,{isActive$:dt,type$:Vt}=de.pictureInPicture$,qe=D.ui.mobileUnmuteButtonExpanded,vt=D.ui.mobileUnmuteButtonVisible,Xe=D.ui.settingsMenu.visible$,$t=D.ui.settingsMenu.openedByBtnKeyboard$,Qt=D.ui.controls,Ye=D.actions.internal.getVideoEpisodes(),wt=D.webApi.pictureInPictureApi,li=D.state.chromecastState$,oi=D.state.crashed$,Ci=Qt.disabledControls$,Oi=D.ui.startedByKeyboard$,Mo=D.ui.currentGridType$,$o=D.ads.duration,yo=D.ads.position,Lo=D.ads.playbackState,H=D.ui.isFullscreen,Ke=D.ui.playerSize,ni=D.ui.additionalButtonsDeprecated$,Hi=D.actions.internal.getVideoElement,Jt=D.actions.internal.replayInteractive,ui=D.state.isInteractive,no=D.state.isInteractiveTime$,ro=D.state.showInteractiveGraph,so=D.state.showSeekToInteractive,zo=D.state.showPlayPrevChapter,Rt=D.state.showInteractiveTimeIndicator,di=de.seekToInteractiveDisabledTooltip$,yt=de.graphIsOpened$,Ft=m(()=>F(D.state.playPrevChapterDisabledTooltip)),zi=m(()=>F(n())),Yt=m(()=>a().has("EPISODE_BUTTON")),yn=m(()=>a().has("GRAPH_BUTTON")),xo=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),qo=m(()=>a().has("PLAY_BUTTON")),ri=m(()=>a().has("REPLAY_BUTTON")),_t=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),qi=m(()=>s()===Kh.PLAYING),yi=m(()=>d()==="paused"),ci=m(()=>l()&&!xe()&&!ui),xn=m(()=>!l()||xe()),Ki=m(()=>e.showNextPrevButtons&&!xe()&&e.prevButtonActive),Fi=m(()=>e.showNextPrevButtons&&!xe()&&e.nextButtonActive),Ko=m(()=>p().width>300),wn=m(()=>p().width>400),Ti=m(f),sn=m(()=>_()!==qh.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ui),an=m(()=>y()==="LiveWaitingStart"),Vo=m(()=>!!wt&&_()!==qh.CONNECTED&&!w()&&($()===1&&r(an)||!r(an))&&!r(Ti)&&!ui),ln=m(()=>!r(Ti)&&Di(S(),"s")),Er=m(()=>!e.logoHidden&&p().width>350),sr=m(()=>Ee.features.fullscreen&&!(u()&&$()===1)&&(ui?ue():!0)&&!r(Ti)),Qn=m(()=>(!I()||xe())&&p().width>260&&!r(Ti)&&!(Ee.features.interactiveHideTime&&ui)),Sn=m(()=>A()||e.showControls),Cn=m(()=>!xe()&&!I()&&!!(Ye!=null&&Ye.length)&&r(Ko)&&!r(Yt)&&!r(Ti)),Tn=m(()=>!P()||!!E()),ao=m(()=>ro&&Di(S(),"m")),Je=he({}),Wo=dy(Uc,260);je(()=>{p(),T(),Wo(Hi(),Qt,Je,e.showControls)});let dn=()=>D.actions.internal.toggleChromecast();function ar(){xs({isAudioDisabled:Ut,audioDisabledHintCallback:pt,isAudioAvailable:R(),audioIsNotExistHintCallback:nt})&&Qe()}async function In(){wt!=null&&wt.isActive()?await(wt==null?void 0:wt.remove()):await(wt==null?void 0:wt.request())}function Qo(){!Ut&&R()&&vt.set(!1),ar()}let Gn=ee(""),Go=(it,ct)=>{if(!it){O(Gn,he(F("tooltip_live")));return}ct&&ct===Kh.PAUSED&&O(Gn,he(F("tooltip_play")))};je(()=>{Go(r(Tn),s())});let cn=ae();je(()=>{z()&&Na(z(),A(),$t)}),je(()=>{zc(Oi,Y(),Je.playButton)});var Pi=yy(),wo=ge(Pi);{var un=it=>{var ct=gy(),xi=ge(ct);let Qi;var Gi=M(xi,2);let Co;var Bo=h(Gi);{var No=et=>{let Dt=m(()=>R()&&!Ut&&oe());Kc(et,{get muted(){return J()},get expanded(){return r(Dt)},click:Qo,get ref(){return Je.volume},set ref($e){Je.volume=$e}})};B(Bo,et=>{(!R()||Z())&&et(No)})}g(Gi);var To=M(Gi,2);let Ze;var Ct=h(To);bi(Ct,1,ce,({iconUrl:et,ariaLabel:Dt,testId:$e,onClick:Et,tooltip:ei})=>et,(et,Dt)=>{let $e=()=>r(Dt).iconUrl,Et=()=>r(Dt).ariaLabel,ei=()=>r(Dt).testId,Gt=()=>r(Dt).onClick,po=()=>r(Dt).tooltip,Ri=m(()=>{var ti;return(ti=Et())!=null?ti:po()});Ef(et,{get iconUrl(){return $e()},get ariaLabel(){return r(Ri)},get testId(){return ei()},get onClick(){return Gt()}})});var Ii=M(Ct,2);{var Mi=et=>{dd(et,{get ref(){return Je.autoplayNextToggle},set ref(Dt){Je.autoplayNextToggle=Dt}})};B(Ii,et=>{e.showAutoplayNext&&!Be()&&et(Mi)})}var Li=M(Ii,2);{var gi=et=>{Jl(et,{isMobile:!0,click:dn,get state(){return _()},get ref(){return Je.chromecast},set ref(Dt){Je.chromecast=Dt}})};B(Li,et=>{r(sn)&&et(gi)})}var Yi=M(Li,2);{var Vi=et=>{Lf(et,{click:In,get isPictureInPictureActive(){return u()},get ref(){return Je.pip},set ref(Dt){Je.pip=Dt}})};B(Yi,et=>{r(Vo)&&et(Vi)})}var Rn=M(Yi,2);{var mr=et=>{Ua(et,{ref$:cn})};B(Rn,et=>{le()&&et(mr)})}var Bn=M(Rn,2);{var Mr=et=>{Xl(et,{click:Ae,get targetUrl(){return re()},get logoClickable(){return e.logoClickable},get ref(){return Je.vkLogo},set ref(Dt){Je.vkLogo=Dt}})};B(Bn,et=>{r(Er)&&et(Mr)})}g(To);var uo=M(To,2);let Lr;var jn=h(uo);{var Vr=et=>{let Dt=m(()=>ye.bind(null,!0));na(et,{get click(){return r(Dt)},type:"prev",isMobile:!0,get ref(){return Je.prevButton},set ref($e){Je.prevButton=$e}})};B(jn,et=>{r(Ki)&&et(Vr)})}var vr=M(jn,2);{var pn=et=>{Wa(et,{get disabled(){return r(qo)},click:at,isMobile:!0,get isPlaying(){return r(qi)},get ref(){return Je.playButton},set ref(Dt){Je.playButton=Dt}})};B(vr,et=>{r(xn)&&et(pn)})}var Zn=M(vr,2);{var gr=et=>{Ka(et,{get disabled(){return r(ri)},click:at,isMobile:!0,get ref(){return Je.replayButton},set ref(Dt){Je.replayButton=Dt}})};B(Zn,et=>{r(ci)&&et(gr)})}var Nn=M(Zn,2);{var Io=et=>{let Dt=m(()=>Pe.bind(null,!0));na(et,{get click(){return r(Dt)},type:"next",isMobile:!0,get ref(){return Je.nextButton},set ref($e){Je.nextButton=$e}})};B(Nn,et=>{r(Fi)&&et(Io)})}g(uo);var Xn=M(uo,2);{var hr=et=>{var Dt=vy(),$e=ge(Dt);{var Et=ti=>{var ai=py();let hi;ai.__click=[cy,_t,e,Ft];var Ui=h(ai);let ko=m(()=>!e.showControls);ld(Ui,{get hidden(){return r(ko)},get disabled(){return r(_t)},get click(){return e.playPrevChapter},get ref(){return Je.playPrevChapterButton},set ref(si){Je.playPrevChapterButton=si}}),g(ai),k(si=>hi=te(ai,1,"wrapper-middle-left svelte-1afsgkw",null,hi,si),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ti,ai)};B($e,ti=>{zo&&ti(Et)})}var ei=M($e,2);{var Gt=ti=>{var ai=fy();let hi;var Ui=h(ai);let ko=m(()=>!e.showControls&&!Le());ud(Ui,{get hidden(){return r(ko)},get disabled(){return r(yn)},get click(){return yt.toggle},get graphIsOpened(){return Le()},get ref(){return Je.interactiveGraphButton},set ref(si){Je.interactiveGraphButton=si}}),g(ai),k(si=>hi=te(ai,1,Tl(zo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",hi,si),[()=>({fullscreen:U(),hidden:!e.showControls&&!Le()})]),b(ti,ai)};B(ei,ti=>{r(ao)&&ti(Gt)})}var po=M(ei,2);{var Ri=ti=>{var ai=my();let hi;ai.__click=[uy,xo,e,zi];var Ui=h(ai);let ko=m(()=>!e.showControls);cd(Ui,{get hidden(){return r(ko)},get disabled(){return r(xo)},get click(){return e.seekToInteractive},get ref(){return Je.seekToInteractiveButton},set ref(si){Je.seekToInteractiveButton=si}}),g(ai),k(si=>hi=te(ai,1,"wrapper-middle-right svelte-1afsgkw",null,hi,si),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ti,ai)};B(po,ti=>{so&&ti(Ri)})}b(et,Dt)};B(Xn,et=>{ui&&!f()&&et(hr)})}k((et,Dt,$e,Et)=>{Qi=te(xi,1,"overlay-mobile svelte-1afsgkw",null,Qi,et),Co=te(Gi,1,"wrapper-top-left svelte-1afsgkw",null,Co,Dt),Ze=te(To,1,"wrapper-top-right svelte-1afsgkw",null,Ze,$e),Lr=te(uo,1,"wrapper-middle svelte-1afsgkw",null,Lr,Et)},[()=>({hidden:!r(Sn)}),()=>({hidden:!e.showControls,fullscreen:U()}),()=>({hidden:!e.showControls&&!w(),fullscreen:U()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(it,ct)};B(wo,it=>{xe()||it(un)})}var kn=M(wo,2);{var lr=it=>{var ct=by(),xi=ge(ct);{var Qi=Ze=>{var Ct=hy();let Ii;var Mi=h(Ct);Kc(Mi,{get muted(){return J()},expanded:!1,click:Qo,get ref(){return Je.volume},set ref(Li){Je.volume=Li}}),g(Ct),k(Li=>Ii=te(Ct,1,"wrapper-top-right svelte-1afsgkw",null,Ii,Li),[()=>({fullscreen:U()})]),b(Ze,Ct)};B(xi,Ze=>{Z()&&Ze(Qi)})}var Gi=M(xi,2);{var Co=Ze=>{var Ct=_y(),Ii=h(Ct);let Mi=m(()=>!r(yi));Wa(Ii,{get disabled(){return r(qo)},click:at,isMobile:!0,get isPlaying(){return r(Mi)},get ref(){return Je.playButton},set ref(Li){Je.playButton=Li}}),g(Ct),b(Ze,Ct)};B(Gi,Ze=>{r(yi)&&Ze(Co)})}var Bo=M(Gi,2);let No;var To=h(Bo);ed(To,{get position(){return Re()},get duration(){return X()}}),g(Bo),k(Ze=>No=te(Bo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,No,Ze),[()=>({fullscreen:U()})]),b(it,ct)};B(kn,it=>{xe()&&d()!=="inactive"&&it(lr)})}var lo=M(kn,2);let Ro;var So=h(lo);let En;var co=h(So);te(co,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Wi=h(co);{var An=it=>{Po(it,{get disabled(){return r(ri)},get ref(){return Je.replayButton},set ref(ct){Je.replayButton=ct},children:(ct,xi)=>{Ka(ct,{get disabled(){return r(ri)},click:Jt})},$$slots:{default:!0}})};B(Wi,it=>{ui&&it(An)})}var Yo=M(Wi,2);{var dr=it=>{Po(it,{get ref(){return Je.liveButton},set ref(ct){Je.liveButton=ct},children:(ct,xi)=>{pd(ct,{get isLiveActive(){return r(Tn)},isMobile:!0,get ariaLabel(){return r(Gn)}})},$$slots:{default:!0}})};B(Yo,it=>{!xe()&&I()&&it(dr)})}var Pn=M(Yo,2);{var cr=it=>{let ct=m(()=>xe()?Re():Me()),xi=m(()=>xe()?X():j());Yl(it,{get showDuration(){return r(wn)},get position(){return r(ct)},get duration(){return r(xi)},isMobile:!0,get ref(){return Je.time},set ref(Qi){Je.time=Qi}})};B(Pn,it=>{r(Qn)&&it(cr)})}var Mn=M(Pn,2);let Ln=m(()=>!r(Cn));Po(Mn,{className:"w-max",get disabled(){return r(Ln)},get ref(){return Je.episodes},set ref(it){Je.episodes=it},children:(it,ct)=>{var xi=Ue(),Qi=ge(xi);{var Gi=Co=>{var Bo=$y(),No=M(ge(Bo),2);id(No,{get position(){return Me()},get duration(){return j()},timeCodes:Ye}),b(Co,Bo)};B(Qi,Co=>{r(Cn)&&Co(Gi)})}b(it,xi)},$$slots:{default:!0}});var Ar=M(Mn,2);{var Yn=it=>{Po(it,{get ref(){return Je.settings},set ref(ct){Je.settings=ct},children:(ct,xi)=>{Ua(ct,{ref$:cn})},$$slots:{default:!0}})};B(Ar,it=>{r(ln)&&it(Yn)})}var ur=M(Ar,2);{var Pr=it=>{Po(it,{get ref(){return Je.fullscreen},set ref(ct){Je.fullscreen=ct},children:(ct,xi)=>{Zl(ct,{get click(){return e.toggleFullscreen},get isFullscreen(){return U()}})},$$slots:{default:!0}})};B(ur,it=>{r(sr)&&it(Pr)})}g(co),lt(co,it=>Ve(it),()=>Ve());var Vn=M(co,2);td(Vn,{get isAds(){return xe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Je.timeline},set ref(it){Je.timeline=it}}),g(So),g(lo),lt(lo,it=>N(it),()=>N());var jt=M(lo,2);{var jo=it=>{sd(it,{get ref(){return Je.interactiveTimeIndicator},set ref(ct){Je.interactiveTimeIndicator=ct}})};B(jt,it=>{Rt&&it(jo)})}k((it,ct)=>{Ro=te(lo,1,"wrapper-bottom svelte-1afsgkw",null,Ro,it),En=te(So,1,"controls-wrapper svelte-1afsgkw",null,En,ct)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:U()})]),b(t,Pi),K(),o()}st(["click"]);function fd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Wh),y=v(e,"onDisabledSeekToInteractiveClick",3,Wh),I=Ie().ui.isMobile,A=ee(!1);Nt(()=>{let R=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(R)});var P=Ue(),E=ge(P);{var T=R=>{var z=Ue(),Y=ge(z);{var U=J=>{Vf(J,{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 p()},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 u()},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 y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},Z=J=>{kf(J,{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 p()},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 u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};B(Y,J=>{n()?J(U):J(Z,!1)})}b(R,z)};B(E,R=>{r(A)&&R(T)})}b(t,P),K(),o()}var wy=be('<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 Rf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=wy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Bf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Rf(t,{get style(){return r(o)}})}var Sy=be('<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 Nf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Cy=be('<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 Df(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Wc(t,e){let i=v(e,"isOff",3,!1);var o=Ue(),n=ge(o);{var a=d=>{Df(d,{})},s=d=>{Nf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Ty=be('<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 Of(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Hf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Of(t,{get style(){return r(o)}})}var Iy=be('<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 Ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function Uf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Ff(t,{get style(){return r(o)}})}var ky=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ey=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Ay=L("<div><!></div>"),Py={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;
263
+ }`};function Of(t,e){var cn,zo;q(e,!0),Q(t,wy);let[i,o]=Fe(),n=()=>C(li,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Co,"$disabledControls$",i),s=()=>C(vt,"$playbackState$",i),d=()=>C(ht,"$adPlaybackState",i),l=()=>C(Be,"$isEnded$",i),p=()=>C(Wt,"$playerSize",i),f=()=>C(Se,"$scrubbingInProgress",i),_=()=>C(Jt,"$chromecastState$",i),u=()=>C(ct,"$isPictureInPictureActive",i),$=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(De,"$mobileNotReportControlHidden$",i),y=()=>C(at,"$playerPhase",i),S=()=>C(To,"$currentGridType$",i),I=()=>C(re,"$isLive$",i),A=()=>C(Xe,"$settingsMenuVisible",i),P=()=>C(he,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(oo,"$isInteractiveTime$",i),V=()=>C(Ut,"$isAudioAvailable$",i),U=()=>C(zi,"$settingButtonRef$",i),Y=()=>C(Di,"$startedByKeyboard$",i),F=()=>C(z,"$isFullscreen",i),j=()=>C(ut,"$mobileUnmuteButtonVisible",i),X=()=>C(W,"$muted$",i),oe=()=>C(je,"$mobileUnmuteButtonExpanded",i),pe=()=>C(Oi,"$additionalButtons$",i),le=()=>C(ki,"$crashed$",i),Ve=()=>C(xt,"$graphIsOpened$",i),Me=()=>C(Mt,"$adPosition",i),J=()=>C(Oo,"$adDuration",i),Le=()=>C(rt,"$position$",i),Z=()=>C(It,"$duration$",i),B=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),ne=v(e,"isAds",3,!1),ke=v(e,"logoTargetUrl",3,""),Ne=v(e,"isOneVideoPlaylist",3,!1),fe=v(e,"customFullscreenSupported",3,!0),D=we(),de=io(),Ee=qt(),Ge=D.actions.internal.toggleMuted,lt=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,$e=D.actions.internal.prevVideoClick,Pe=D.actions.internal.nextVideoClick,nt=(cn=D.callbacks)==null?void 0:cn.onAudioDoesNotExistHint,mt=(zo=D.callbacks)==null?void 0:zo.onAudioDisabledHint,at=D.playerPhase,It=D.state.duration$,rt=D.state.positionWithScrubbing$,vt=D.state.playbackState$,Ut=D.state.isAudioAvailable$,Qt=D.state.isAudioDisabled,Be=D.state.isEnded$,re=D.state.isLive$,W=D.state.muted$,se=D.state.isActiveLive$,he=D.state.isRewindableLive$,Se=D.ui.scrubbingInProgress,De=D.ui.mobileNotReportControlHidden$,{isActive$:ct,type$:Kt}=de.pictureInPicture$,je=D.ui.mobileUnmuteButtonExpanded,ut=D.ui.mobileUnmuteButtonVisible,Xe=D.ui.settingsMenu.visible$,Et=D.ui.settingsMenu.openedByBtnKeyboard$,ni=D.ui.controls,Qe=D.actions.internal.getVideoEpisodes(),it=D.webApi.pictureInPictureApi,Jt=D.state.chromecastState$,ki=D.state.crashed$,Co=ni.disabledControls$,Di=D.ui.startedByKeyboard$,To=D.ui.currentGridType$,Oo=D.ads.duration,Mt=D.ads.position,ht=D.ads.playbackState,z=D.ui.isFullscreen,Wt=D.ui.playerSize,Oi=D.ui.additionalButtonsDeprecated$,Mi=D.actions.internal.getVideoElement,mi=D.actions.internal.replayInteractive,ei=D.state.isInteractive,oo=D.state.isInteractiveTime$,mo=D.state.showInteractiveGraph,Hi=D.state.showSeekToInteractive,Ho=D.state.showPlayPrevChapter,Bt=D.state.showInteractiveTimeIndicator,li=de.seekToInteractiveDisabledTooltip$,xt=de.graphIsOpened$,zt=m(()=>H(D.state.playPrevChapterDisabledTooltip)),Io=m(()=>H(n())),Fi=m(()=>a().has("EPISODE_BUTTON")),ai=m(()=>a().has("GRAPH_BUTTON")),vo=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Fo=m(()=>a().has("PLAY_BUTTON")),ri=m(()=>a().has("REPLAY_BUTTON")),$t=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),vi=m(()=>s()===Gh.PLAYING),Ui=m(()=>d()==="paused"),Li=m(()=>l()&&!ne()&&!ei),go=m(()=>!l()||ne()),yi=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),ho=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),xn=m(()=>p().width>300),tn=m(()=>p().width>400),xi=m(f),wn=m(()=>_()!==Qh.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ei),on=m(()=>y()==="LiveWaitingStart"),ko=m(()=>!!it&&_()!==Qh.CONNECTED&&!w()&&($()===1&&r(on)||!r(on))&&!r(xi)&&!ei),Sn=m(()=>!r(xi)&&Bi(S(),"s")),rr=m(()=>!e.logoHidden&&p().width>350),sr=m(()=>Ee.features.fullscreen&&!(u()&&$()===1)&&(ei?fe():!0)&&!r(xi)),Bn=m(()=>(!I()||ne())&&p().width>260&&!r(xi)&&!(Ee.features.interactiveHideTime&&ei)),Dn=m(()=>A()||e.showControls),nn=m(()=>!ne()&&!I()&&!!(Qe!=null&&Qe.length)&&r(xn)&&!r(Fi)&&!r(xi)),rn=m(()=>!P()||!!E()),ar=m(()=>mo&&Bi(S(),"m")),tt=me({}),Wi=cy(Qc,260);Ke(()=>{p(),T(),Wi(Mi(),ni,tt,e.showControls)});let lr=()=>D.actions.internal.toggleChromecast();function On(){ws({isAudioDisabled:Qt,audioDisabledHintCallback:mt,isAudioAvailable:V(),audioIsNotExistHintCallback:nt})&&Ge()}async function sn(){it!=null&&it.isActive()?await(it==null?void 0:it.remove()):await(it==null?void 0:it.request())}function an(){!Qt&&V()&&ut.set(!1),On()}let Eo=ee(""),_o=(ot,At)=>{if(!ot){O(Eo,me(H("tooltip_live")));return}At&&At===Gh.PAUSED&&O(Eo,me(H("tooltip_play")))};Ke(()=>{_o(r(rn),s())});let zi=ae();Ke(()=>{U()&&Oa(U(),A(),Et)}),Ke(()=>{Gc(Di,Y(),tt.playButton)});var Qi=xy(),Hn=ue(Qi);{var Fn=ot=>{var At=hy(),wi=ue(At);let ti;var Gi=M(wi,2);let yo;var xo=h(Gi);{var qo=Ze=>{let Dt=m(()=>V()&&!Qt&&oe());jc(Ze,{get muted(){return X()},get expanded(){return r(Dt)},click:an,get ref(){return tt.volume},set ref(hi){tt.volume=hi}})};R(xo,Ze=>{(!V()||j())&&Ze(qo)})}g(Gi);var Ko=M(Gi,2);let Je;var Ct=h(Ko);_i(Ct,1,pe,({iconUrl:Ze,ariaLabel:Dt,testId:hi,onClick:fn,tooltip:mn})=>Ze,(Ze,Dt)=>{let hi=()=>r(Dt).iconUrl,fn=()=>r(Dt).ariaLabel,mn=()=>r(Dt).testId,In=()=>r(Dt).onClick,Zn=()=>r(Dt).tooltip,Ce=m(()=>{var pt;return(pt=fn())!=null?pt:Zn()});Vf(Ze,{get iconUrl(){return hi()},get ariaLabel(){return r(Ce)},get testId(){return mn()},get onClick(){return In()}})});var si=M(Ct,2);{var Ei=Ze=>{dd(Ze,{get ref(){return tt.autoplayNextToggle},set ref(Dt){tt.autoplayNextToggle=Dt}})};R(si,Ze=>{e.showAutoplayNext&&!Ne()&&Ze(Ei)})}var Vi=M(si,2);{var Si=Ze=>{Jl(Ze,{isMobile:!0,click:lr,get state(){return _()},get ref(){return tt.chromecast},set ref(Dt){tt.chromecast=Dt}})};R(Vi,Ze=>{r(wn)&&Ze(Si)})}var ro=M(Vi,2);{var Ci=Ze=>{Df(Ze,{click:sn,get isPictureInPictureActive(){return u()},get ref(){return tt.pip},set ref(Dt){tt.pip=Dt}})};R(ro,Ze=>{r(ko)&&Ze(Ci)})}var un=M(ro,2);{var fr=Ze=>{qa(Ze,{ref$:zi})};R(un,Ze=>{le()&&Ze(fr)})}var Tn=M(un,2);{var Ar=Ze=>{Xl(Ze,{click:Ae,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return tt.vkLogo},set ref(Dt){tt.vkLogo=Dt}})};R(Tn,Ze=>{r(rr)&&Ze(Ar)})}g(Ko);var so=M(Ko,2);let Pr;var Yn=h(so);{var zr=Ze=>{let Dt=m(()=>$e.bind(null,!0));sa(Ze,{get click(){return r(Dt)},type:"prev",isMobile:!0,get ref(){return tt.prevButton},set ref(hi){tt.prevButton=hi}})};R(Yn,Ze=>{r(yi)&&Ze(zr)})}var mr=M(Yn,2);{var Mr=Ze=>{Ga(Ze,{get disabled(){return r(Fo)},click:lt,isMobile:!0,get isPlaying(){return r(vi)},get ref(){return tt.playButton},set ref(Dt){tt.playButton=Dt}})};R(mr,Ze=>{r(go)&&Ze(Mr)})}var vr=M(mr,2);{var Po=Ze=>{Qa(Ze,{get disabled(){return r(ri)},click:lt,isMobile:!0,get ref(){return tt.replayButton},set ref(Dt){tt.replayButton=Dt}})};R(vr,Ze=>{r(Li)&&Ze(Po)})}var pn=M(vr,2);{var qr=Ze=>{let Dt=m(()=>Pe.bind(null,!0));sa(Ze,{get click(){return r(Dt)},type:"next",isMobile:!0,get ref(){return tt.nextButton},set ref(hi){tt.nextButton=hi}})};R(pn,Ze=>{r(ho)&&Ze(qr)})}g(so);var gr=M(so,2);{var jn=Ze=>{var Dt=gy(),hi=ue(Dt);{var fn=pt=>{var Lt=fy();let Ht;Lt.__click=[uy,$t,e,zt];var Ki=h(Lt);let di=m(()=>!e.showControls);ld(Ki,{get hidden(){return r(di)},get disabled(){return r($t)},get click(){return e.playPrevChapter},get ref(){return tt.playPrevChapterButton},set ref(Gt){tt.playPrevChapterButton=Gt}}),g(Lt),k(Gt=>Ht=te(Lt,1,"wrapper-middle-left svelte-1afsgkw",null,Ht,Gt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(pt,Lt)};R(hi,pt=>{Ho&&pt(fn)})}var mn=M(hi,2);{var In=pt=>{var Lt=my();let Ht;var Ki=h(Lt);let di=m(()=>!e.showControls&&!Ve());ud(Ki,{get hidden(){return r(di)},get disabled(){return r(ai)},get click(){return xt.toggle},get graphIsOpened(){return Ve()},get ref(){return tt.interactiveGraphButton},set ref(Gt){tt.interactiveGraphButton=Gt}}),g(Lt),k(Gt=>Ht=te(Lt,1,Tl(Ho?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Ht,Gt),[()=>({fullscreen:F(),hidden:!e.showControls&&!Ve()})]),b(pt,Lt)};R(mn,pt=>{r(ar)&&pt(In)})}var Zn=M(mn,2);{var Ce=pt=>{var Lt=vy();let Ht;Lt.__click=[py,vo,e,Io];var Ki=h(Lt);let di=m(()=>!e.showControls);cd(Ki,{get hidden(){return r(di)},get disabled(){return r(vo)},get click(){return e.seekToInteractive},get ref(){return tt.seekToInteractiveButton},set ref(Gt){tt.seekToInteractiveButton=Gt}}),g(Lt),k(Gt=>Ht=te(Lt,1,"wrapper-middle-right svelte-1afsgkw",null,Ht,Gt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(pt,Lt)};R(Zn,pt=>{Hi&&pt(Ce)})}b(Ze,Dt)};R(gr,Ze=>{ei&&!f()&&Ze(jn)})}k((Ze,Dt,hi,fn)=>{ti=te(wi,1,"overlay-mobile svelte-1afsgkw",null,ti,Ze),yo=te(Gi,1,"wrapper-top-left svelte-1afsgkw",null,yo,Dt),Je=te(Ko,1,"wrapper-top-right svelte-1afsgkw",null,Je,hi),Pr=te(so,1,"wrapper-middle svelte-1afsgkw",null,Pr,fn)},[()=>({hidden:!r(Dn)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,At)};R(Hn,ot=>{ne()||ot(Fn)})}var Er=M(Hn,2);{var Un=ot=>{var At=$y(),wi=ue(At);{var ti=Je=>{var Ct=_y();let si;var Ei=h(Ct);jc(Ei,{get muted(){return X()},expanded:!1,click:an,get ref(){return tt.volume},set ref(Vi){tt.volume=Vi}}),g(Ct),k(Vi=>si=te(Ct,1,"wrapper-top-right svelte-1afsgkw",null,si,Vi),[()=>({fullscreen:F()})]),b(Je,Ct)};R(wi,Je=>{j()&&Je(ti)})}var Gi=M(wi,2);{var yo=Je=>{var Ct=by(),si=h(Ct);let Ei=m(()=>!r(Ui));Ga(si,{get disabled(){return r(Fo)},click:lt,isMobile:!0,get isPlaying(){return r(Ei)},get ref(){return tt.playButton},set ref(Vi){tt.playButton=Vi}}),g(Ct),b(Je,Ct)};R(Gi,Je=>{r(Ui)&&Je(yo)})}var xo=M(Gi,2);let qo;var Ko=h(xo);ed(Ko,{get position(){return Me()},get duration(){return J()}}),g(xo),k(Je=>qo=te(xo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,qo,Je),[()=>({fullscreen:F()})]),b(ot,At)};R(Er,ot=>{ne()&&d()!=="inactive"&&ot(Un)})}var no=M(Er,2);let bo;var ln=h(no);let Cn;var Ao=h(ln);te(Ao,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var qi=h(Ao);{var Uo=ot=>{So(ot,{get disabled(){return r(ri)},get ref(){return tt.replayButton},set ref(At){tt.replayButton=At},children:(At,wi)=>{Qa(At,{get disabled(){return r(ri)},click:mi})},$$slots:{default:!0}})};R(qi,ot=>{ei&&ot(Uo)})}var $o=M(qi,2);{var dr=ot=>{So(ot,{get ref(){return tt.liveButton},set ref(At){tt.liveButton=At},children:(At,wi)=>{pd(At,{get isLiveActive(){return r(rn)},isMobile:!0,get ariaLabel(){return r(Eo)}})},$$slots:{default:!0}})};R($o,ot=>{!ne()&&I()&&ot(dr)})}var dn=M($o,2);{var zn=ot=>{let At=m(()=>ne()?Me():Le()),wi=m(()=>ne()?J():Z());Yl(ot,{get showDuration(){return r(tn)},get position(){return r(At)},get duration(){return r(wi)},isMobile:!0,get ref(){return tt.time},set ref(ti){tt.time=ti}})};R(dn,ot=>{r(Bn)&&ot(zn)})}var qn=M(dn,2);let Kn=m(()=>!r(nn));So(qn,{className:"w-max",get disabled(){return r(Kn)},get ref(){return tt.episodes},set ref(ot){tt.episodes=ot},children:(ot,At)=>{var wi=qe(),ti=ue(wi);{var Gi=yo=>{var xo=yy(),qo=M(ue(xo),2);id(qo,{get position(){return Le()},get duration(){return Z()},timeCodes:Qe}),b(yo,xo)};R(ti,yo=>{r(nn)&&yo(Gi)})}b(ot,wi)},$$slots:{default:!0}});var cr=M(qn,2);{var Wn=ot=>{So(ot,{get ref(){return tt.settings},set ref(At){tt.settings=At},children:(At,wi)=>{qa(At,{ref$:zi})},$$slots:{default:!0}})};R(cr,ot=>{r(Sn)&&ot(Wn)})}var ur=M(cr,2);{var Qn=ot=>{So(ot,{get ref(){return tt.fullscreen},set ref(At){tt.fullscreen=At},children:(At,wi)=>{Zl(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};R(ur,ot=>{r(sr)&&ot(Qn)})}g(Ao),dt(Ao,ot=>Re(ot),()=>Re());var Gn=M(Ao,2);td(Gn,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return tt.timeline},set ref(ot){tt.timeline=ot}}),g(ln),g(no),dt(no,ot=>B(ot),()=>B());var oi=M(no,2);{var pr=ot=>{sd(ot,{get ref(){return tt.interactiveTimeIndicator},set ref(At){tt.interactiveTimeIndicator=At}})};R(oi,ot=>{Bt&&ot(pr)})}k((ot,At)=>{bo=te(no,1,"wrapper-bottom svelte-1afsgkw",null,bo,ot),Cn=te(ln,1,"controls-wrapper svelte-1afsgkw",null,Cn,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),b(t,Qi),K(),o()}st(["click"]);function fd(t,e){q(e,!0);let[i,o]=Fe(),n=()=>C(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Yh),y=v(e,"onDisabledSeekToInteractiveClick",3,Yh),I=we().ui.isMobile,A=ee(!1);Ot(()=>{let V=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(V)});var P=qe(),E=ue(P);{var T=V=>{var U=qe(),Y=ue(U);{var F=X=>{Of(X,{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 p()},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 u()},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 y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},j=X=>{Lf(X,{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 p()},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 u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};R(Y,X=>{n()?X(F):X(j,!1)})}b(V,U)};R(E,V=>{r(A)&&V(T)})}b(t,P),K(),o()}var Sy=be('<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 Hf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Ff(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Hf(t,{get style(){return r(o)}})}var Cy=be('<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 Uf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Ty=be('<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 zf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Zc(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=ue(o);{var a=d=>{zf(d,{})},s=d=>{Uf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Iy=be('<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 qf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Kf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);qf(t,{get style(){return r(o)}})}var ky=be('<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 Wf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function Qf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Ey=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ay=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Py=L("<div><!></div>"),My={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;
264
264
  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"],
265
265
  .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"],
266
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -275,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
275
275
  @keyframes svelte-1ad3n06-fadeOut {
276
276
  0% {opacity:1;}
277
277
  100% {opacity:0;}
278
- }`};function zf(t,e){q(e,!0),Q(t,Py);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),s=Ie().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var u=Ay();let $;var w=h(u);{var y=S=>{var I=Ey(),A=ge(I),P=h(A);{var E=ue=>{let D=m(()=>r(f)==="FORWARD_SEEK");Bf(ue,{get reversed(){return r(D)}})};B(P,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ue(E)})}var T=M(P,2);{var R=ue=>{ra(ue,{})};B(T,ue=>{r(f)==="PAUSE"&&ue(R)})}var z=M(T,2);{var Y=ue=>{ss(ue,{})};B(z,ue=>{r(f)==="PLAY"&&ue(Y)})}var U=M(z,2);{var Z=ue=>{ad(ue,{})};B(U,ue=>{r(f)==="REPLAY"&&ue(Z)})}var J=M(U,2);{var oe=ue=>{Wc(ue,{isOff:!0})};B(J,ue=>{r(f)==="SUBTITLES_OFF"&&ue(oe)})}var ce=M(J,2);{var le=ue=>{Wc(ue,{})};B(ce,ue=>{r(f)==="SUBTITLES_ON"&&ue(le)})}var Le=M(ce,2);{var Re=ue=>{let D=m(()=>r(f)==="RATE_UP");Hf(ue,{get reversed(){return r(D)}})};B(Le,ue=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ue(Re)})}var X=M(Le,2);{var Me=ue=>{let D=m(()=>r(f)==="EPISODE_NEXT");Uf(ue,{get reversed(){return r(D)}})};B(X,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ue(Me)})}var j=M(X,2);{var N=ue=>{ws(ue,{volume:0})};B(j,ue=>{r(f)==="MUTE"&&ue(N)})}var Ve=M(j,2);{var xe=ue=>{ws(ue,{volume:1})};B(Ve,ue=>{r(f)==="VOLUME"&&ue(xe)})}g(A);var re=M(A,2);{var Be=ue=>{var D=ky(),de=h(D,!0);g(D),k(()=>fe(de,r(_))),b(ue,D)};B(re,ue=>{r(_)&&ue(Be)})}b(S,I)};B(w,S=>{!r(d)&&r(f)&&S(y)})}g(u),k(S=>$=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),b(t,u),K(),o()}var My=be('<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 qf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=My();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var Ly=be('<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 Kf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function Cs(t,e){q(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=Ue(),l=ge(d);{var p=_=>{let u=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");qf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})},f=_=>{let u=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Kf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})};B(l,_=>{r(n)?_(p):_(f,!1)})}b(t,d),K()}var Vy=(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}},Ry=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},By=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>'),Ny={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 md(t,e){q(e,!0),Q(t,Ny);let i=v(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var _=By();let u;_.__keydown=[Vy,n,a,s,l,d],_.__keyup=[Ry,n,p],De(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=p;var S=h(y);Cs(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=p;var A=h(I);Cs(A,{direction:"up",useBtnColor:!0}),g(I),g(w);var P=M(w,2),E=h(P);E.__mousedown=l,E.__mouseup=p;var T=h(E);Cs(T,{direction:"up",useBtnColor:!0}),g(E);var R=M(E,2);R.__mousedown=s,R.__mouseup=p;var z=h(R);Cs(z,{direction:"up",useBtnColor:!0}),g(R),g(P),g($),g(_),k(Y=>u=te(_,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),It("mouseleave",y,p),It("mouseleave",I,p),It("mouseleave",E,p),It("mouseleave",R,p),b(t,_),K()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Gh,Subscription as Dy,filterChanged as Oy,filter as Hy}from"@vkontakte/videoplayer-shared/es2018";var Qh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Qc=class{constructor(){this.flickeringTimeout=Qh(1e3);this.subscriptions=new Dy;this.isAuto=!1;this.isLive=!1;this.captions$=new Gh([]);this.captionsPrepared$=new Gh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Hy(()=>this.isEnabled()),Oy()).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:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var Fy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),qy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Ky=L("<div><!></div>"),Wy={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;
279
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function vd(t,e){q(e,!0),Q(t,Wy);let[i,o]=Fe(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),p=Ie(),f=zt(),_=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),P=ee(null);je(()=>{var Z,J,oe;(Z=r(P))==null||Z.setIsAuto(r(y)),(J=r(P))==null||J.setIsLive(r(S)),(oe=r(P))==null||oe.setCaptions(e.captions)});let E=ee(he([[]]));Nt(()=>{O(P,he(new Qc().subscribe()));let Z=r(P).captionsPrepared$.subscribe(J=>{O(E,he(J))});return()=>{var J;(J=r(P))==null||J.destroy(),Z.unsubscribe()}}),Nt(()=>{if(r(y)){let Z=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else u.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=Ky();let z;var Y=h(R);{var U=Z=>{var J=qy();let oe;var ce=h(J),le=h(ce);{var Le=X=>{var Me=Fy(),j=h(Me),N=h(j,!0);g(j),g(Me),k(Ve=>{var xe;ot(j,`font-size: ${(xe=r(A))!=null?xe:""}px`),fe(N,Ve)},[()=>F("subtitles_auto_caption")]),b(X,Me)},Re=(X,Me)=>{{var j=Ve=>{var xe=Ue(),re=ge(xe);bi(re,17,()=>r(E),wl,(Be,ue)=>{var D=Uy(),de=h(D);bi(de,21,()=>r(ue),({value:Ee,timeAppeared:Qe})=>Qe,(Ee,Qe)=>{let at=()=>r(Qe).value,Ae=()=>r(Qe).timeAppeared;var ye=Ue(),Pe=ge(ye);{var nt=pt=>{var tt=tr();k(()=>fe(tt,at())),b(pt,tt)};B(Pe,pt=>{(!Ae()||Ae()<=e.position)&&pt(nt)})}b(Ee,ye)}),g(de),g(D),k(()=>{var Ee;return ot(de,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Be,D)}),b(Ve,xe)},N=Ve=>{var xe=Ue(),re=ge(xe);bi(re,17,()=>e.captions,({value:Be})=>Be,(Be,ue)=>{let D=()=>r(ue).value;var de=zy(),Ee=h(de),Qe=h(Ee,!0);g(Ee),g(de),k(()=>{var at;ot(Ee,`font-size: ${(at=r(A))!=null?at:""}px`),fe(Qe,D())}),b(Be,de)}),b(Ve,xe)};B(X,Ve=>{var xe;r(y)&&((xe=r(E))!=null&&xe.length)?Ve(j):Ve(N,!1)},Me)}};B(le,X=>{r(y)&&d()?X(Le):X(Re,!1)})}g(ce),g(J),k(X=>{var Me;oe=te(J,1,"subtitles-caption svelte-c2x749",null,oe,X),ot(J,`--subtitles-caption-margin: ${(Me=r(T))!=null?Me:""}%`)},[()=>({mobile:l()})]),b(Z,J)};B(Y,Z=>{var J;(e.captions.length||(J=r(E))!=null&&J.length)&&Z(U)})}g(R),k(Z=>z=te(R,1,"subtitles-container svelte-c2x749",null,z,Z),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,R),K(),o()}var Qy=L('<div class="text svelte-raurnb"> </div>'),Gy=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>'),Yy={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 gd(t,e){q(e,!0),Q(t,Yy);let i=zt();var o=Gy();let n;var a=M(h(o),2);{var s=d=>{var l=Qy(),p=h(l);g(l),k(()=>{var f;return fe(p,`\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:""}`)}),b(d,l)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),ot(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),K()}var jy=be('<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 Wf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{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})),b(t,o)}var Zy=L('<div class="container svelte-13zpvm8"><!></div>'),Xy={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 hd(t){Q(t,Xy);var e=Zy(),i=h(e);Wf(i,{}),g(e),b(t,e)}var Jy=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),e4={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function _d(t,e){q(e,!0),Q(t,e4);let i=Ie(),o=zt(),n=i.ui.startedByKeyboard$,a=F("tooltip_play"),s=u=>{let $=u.code;["Enter","Space"].includes($)&&(u.stopPropagation(),u.preventDefault(),n.set(!0),e.startVideo())},d=u=>{u.stopPropagation(),e.startVideo()};var l=Jy();let p;l.__click=d;var f=h(l);f.__keydown=s,De(f,"aria-label",a);var _=M(h(f),2);return ss(_,{}),g(f),g(l),k(u=>{p=te(l,1,"container svelte-1xnh9dd",null,p,u),ot(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),K({handlePressKey:s,handleClick:d})}st(["click","keydown"]);var t4=L("<div> </div>"),i4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
278
+ }`};function Gf(t,e){q(e,!0),Q(t,My);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),s=we().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var u=Py();let $;var w=h(u);{var y=S=>{var I=Ay(),A=ue(I),P=h(A);{var E=fe=>{let D=m(()=>r(f)==="FORWARD_SEEK");Ff(fe,{get reversed(){return r(D)}})};R(P,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&fe(E)})}var T=M(P,2);{var V=fe=>{ss(fe,{})};R(T,fe=>{r(f)==="PAUSE"&&fe(V)})}var U=M(T,2);{var Y=fe=>{Ir(fe,{})};R(U,fe=>{r(f)==="PLAY"&&fe(Y)})}var F=M(U,2);{var j=fe=>{ad(fe,{})};R(F,fe=>{r(f)==="REPLAY"&&fe(j)})}var X=M(F,2);{var oe=fe=>{Zc(fe,{isOff:!0})};R(X,fe=>{r(f)==="SUBTITLES_OFF"&&fe(oe)})}var pe=M(X,2);{var le=fe=>{Zc(fe,{})};R(pe,fe=>{r(f)==="SUBTITLES_ON"&&fe(le)})}var Ve=M(pe,2);{var Me=fe=>{let D=m(()=>r(f)==="RATE_UP");Kf(fe,{get reversed(){return r(D)}})};R(Ve,fe=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&fe(Me)})}var J=M(Ve,2);{var Le=fe=>{let D=m(()=>r(f)==="EPISODE_NEXT");Qf(fe,{get reversed(){return r(D)}})};R(J,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&fe(Le)})}var Z=M(J,2);{var B=fe=>{Ss(fe,{volume:0})};R(Z,fe=>{r(f)==="MUTE"&&fe(B)})}var Re=M(Z,2);{var ne=fe=>{Ss(fe,{volume:1})};R(Re,fe=>{r(f)==="VOLUME"&&fe(ne)})}g(A);var ke=M(A,2);{var Ne=fe=>{var D=Ey(),de=h(D,!0);g(D),k(()=>ve(de,r(_))),b(fe,D)};R(ke,fe=>{r(_)&&fe(Ne)})}b(S,I)};R(w,S=>{!r(d)&&r(f)&&S(y)})}g(u),k(S=>$=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),b(t,u),K(),o()}var Ly=be('<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 Yf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var Vy=be('<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 jf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function Is(t,e){q(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=qe(),l=ue(d);{var p=_=>{let u=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Yf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})},f=_=>{let u=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");jf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,_=>{r(n)?_(p):_(f,!1)})}b(t,d),K()}var Ry=(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}},Ny=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},By=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>'),Dy={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 md(t,e){q(e,!0),Q(t,Dy);let i=v(e,"isShifted",3,!1),o=we(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=H("aria_label_spherical_control");var _=By();let u;_.__keydown=[Ry,n,a,s,l,d],_.__keyup=[Ny,n,p],Oe(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=p;var S=h(y);Is(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=p;var A=h(I);Is(A,{direction:"up",useBtnColor:!0}),g(I),g(w);var P=M(w,2),E=h(P);E.__mousedown=l,E.__mouseup=p;var T=h(E);Is(T,{direction:"up",useBtnColor:!0}),g(E);var V=M(E,2);V.__mousedown=s,V.__mouseup=p;var U=h(V);Is(U,{direction:"up",useBtnColor:!0}),g(V),g(P),g($),g(_),k(Y=>u=te(_,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),kt("mouseleave",y,p),kt("mouseleave",I,p),kt("mouseleave",E,p),kt("mouseleave",V,p),b(t,_),K()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Zh,Subscription as Oy,filterChanged as Hy,filter as Fy}from"@vkontakte/videoplayer-shared/es2018";var jh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Xc=class{constructor(){this.flickeringTimeout=jh(1e3);this.subscriptions=new Oy;this.isAuto=!1;this.isLive=!1;this.captions$=new Zh([]);this.captionsPrepared$=new Zh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Fy(()=>this.isEnabled()),Hy()).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:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),qy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Ky=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Wy=L("<div><!></div>"),Qy={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;
279
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function vd(t,e){q(e,!0),Q(t,Qy);let[i,o]=Fe(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),p=we(),f=qt(),_=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),P=ee(null);Ke(()=>{var j,X,oe;(j=r(P))==null||j.setIsAuto(r(y)),(X=r(P))==null||X.setIsLive(r(S)),(oe=r(P))==null||oe.setCaptions(e.captions)});let E=ee(me([[]]));Ot(()=>{O(P,me(new Xc().subscribe()));let j=r(P).captionsPrepared$.subscribe(X=>{O(E,me(X))});return()=>{var X;(X=r(P))==null||X.destroy(),j.unsubscribe()}}),Ot(()=>{if(r(y)){let j=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else u.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=Wy();let U;var Y=h(V);{var F=j=>{var X=Ky();let oe;var pe=h(X),le=h(pe);{var Ve=J=>{var Le=Uy(),Z=h(Le),B=h(Z,!0);g(Z),g(Le),k(Re=>{var ne;et(Z,`font-size: ${(ne=r(A))!=null?ne:""}px`),ve(B,Re)},[()=>H("subtitles_auto_caption")]),b(J,Le)},Me=(J,Le)=>{{var Z=Re=>{var ne=qe(),ke=ue(ne);_i(ke,17,()=>r(E),wl,(Ne,fe)=>{var D=zy(),de=h(D);_i(de,21,()=>r(fe),({value:Ee,timeAppeared:Ge})=>Ge,(Ee,Ge)=>{let lt=()=>r(Ge).value,Ae=()=>r(Ge).timeAppeared;var $e=qe(),Pe=ue($e);{var nt=mt=>{var at=er();k(()=>ve(at,lt())),b(mt,at)};R(Pe,mt=>{(!Ae()||Ae()<=e.position)&&mt(nt)})}b(Ee,$e)}),g(de),g(D),k(()=>{var Ee;return et(de,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Ne,D)}),b(Re,ne)},B=Re=>{var ne=qe(),ke=ue(ne);_i(ke,17,()=>e.captions,({value:Ne})=>Ne,(Ne,fe)=>{let D=()=>r(fe).value;var de=qy(),Ee=h(de),Ge=h(Ee,!0);g(Ee),g(de),k(()=>{var lt;et(Ee,`font-size: ${(lt=r(A))!=null?lt:""}px`),ve(Ge,D())}),b(Ne,de)}),b(Re,ne)};R(J,Re=>{var ne;r(y)&&((ne=r(E))!=null&&ne.length)?Re(Z):Re(B,!1)},Le)}};R(le,J=>{r(y)&&d()?J(Ve):J(Me,!1)})}g(pe),g(X),k(J=>{var Le;oe=te(X,1,"subtitles-caption svelte-c2x749",null,oe,J),et(X,`--subtitles-caption-margin: ${(Le=r(T))!=null?Le:""}%`)},[()=>({mobile:l()})]),b(j,X)};R(Y,j=>{var X;(e.captions.length||(X=r(E))!=null&&X.length)&&j(F)})}g(V),k(j=>U=te(V,1,"subtitles-container svelte-c2x749",null,U,j),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,V),K(),o()}var Gy=L('<div class="text svelte-raurnb"> </div>'),Yy=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>'),jy={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 gd(t,e){q(e,!0),Q(t,jy);let i=qt();var o=Yy();let n;var a=M(h(o),2);{var s=d=>{var l=Gy(),p=h(l);g(l),k(()=>{var f;return ve(p,`\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:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),et(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),K()}var Zy=be('<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 Zf(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{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})),b(t,o)}var Xy=L('<div class="container svelte-13zpvm8"><!></div>'),Jy={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 hd(t){Q(t,Jy);var e=Xy(),i=h(e);Zf(i,{}),g(e),b(t,e)}var e4=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),t4={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function _d(t,e){q(e,!0),Q(t,t4);let i=we(),o=qt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=u=>{let $=u.code;["Enter","Space"].includes($)&&(u.stopPropagation(),u.preventDefault(),n.set(!0),e.startVideo())},d=u=>{u.stopPropagation(),e.startVideo()};var l=e4();let p;l.__click=d;var f=h(l);f.__keydown=s,Oe(f,"aria-label",a);var _=M(h(f),2);return Ir(_,{}),g(f),g(l),k(u=>{p=te(l,1,"container svelte-1xnh9dd",null,p,u),et(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),K({handlePressKey:s,handleClick:d})}st(["click","keydown"]);var i4=L("<div> </div>"),o4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.10) 34%,
284
284
  rgba(0, 0, 0, 0.40) 60%,
285
285
  rgba(0, 0, 0, 0.60) 100%
286
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Qf(t,e){Q(t,i4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=t4();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),fe(s,i())},[()=>({hidden:o()})]),b(t,n)}var 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),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),r4=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),s4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),a4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),l4={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 Gf(t,e){q(e,!0),Q(t,l4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,he(d(E))));let T=Math.floor(P/3600);O(o,he(d(T)));let R=Math.floor(P/60)%60;O(n,he(d(R)));let z=P%60;O(a,he(d(z)))},p=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(p):e.onTimerOver()};Nt(()=>{s=requestAnimationFrame(p)}),_n(()=>{cancelAnimationFrame(s)});var f=a4(),_=h(f);{var u=P=>{var E=o4(),T=ge(E),R=h(T),z=h(R,!0);g(R);var Y=M(R,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(i)),fe(U,oe),fe(J,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,E)};B(_,P=>{r(i)&&P(u)})}var $=M(_,2);{var w=P=>{var E=n4(),T=ge(E),R=h(T),z=h(R,!0);g(R);var Y=M(R,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(o)),fe(U,oe),fe(J,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,E)};B($,P=>{r(o)&&P(w)})}var y=M($,2);{var S=P=>{var E=r4(),T=ge(E),R=h(T),z=h(R,!0);g(R);var Y=M(R,2),U=h(Y,!0);g(Y),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((oe,ce)=>{fe(z,r(n)),fe(U,oe),fe(J,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,E)};B(y,P=>{r(n)&&P(S)})}var I=M(y,2);{var A=P=>{var E=s4(),T=h(E),R=h(T,!0);g(T);var z=M(T,2),Y=h(z,!0);g(z),g(E),k(U=>{fe(R,r(a)),fe(Y,U)},[()=>F("waiting_live_second_value")]),b(P,E)};B(I,P=>{r(a)&&P(A)})}g(f),b(t,f),K()}var d4=be('<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 Yf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=d4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=Se(o,n,{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})),b(t,o)}var c4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),u4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),p4=L('<div class="waiting-container svelte-15pewff"><!></div>'),f4={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 bd(t,e){q(e,!0),Q(t,f4);let i=ee(!1);je(()=>{O(i,he(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=p4(),n=h(o);{var a=d=>{var l=c4(),p=h(l),f=h(p);Yf(f,{}),g(p);var _=M(p,2),u=h(_,!0);g(_),g(l),k($=>fe(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=u4(),p=h(l),f=h(p,!0);g(p);var _=M(p,2);let u=m(()=>e.startTime||0);Gf(_,{get startTime(){return r(u)},onTimerOver:()=>O(i,!0)}),g(l),k($=>fe(f,$),[()=>F("waiting_live_timer_title")]),b(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>ot(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),K()}var m4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),v4={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 aa(t,e){q(e,!0),Q(t,v4);let i=v(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=m4(),s=h(a),d=h(s);Js(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),p=h(l,!0);g(l),g(s),g(a),k(()=>{ot(a,`background-image: url('${i()}')`),fe(p,r(n))}),b(t,a),K()}var g4=be('<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 jf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=g4();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var h4=L('<div class="select-icon svelte-124aexk"><!></div>'),_4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function $d(t){Q(t,_4);var e=h4(),i=h(e);jf(i,{}),g(e),b(t,e)}var b4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},$4=(t,e)=>{Oa(t,()=>e.item.selectItem(e.item.value))},y4=L("<p> </p>"),x4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),w4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),S4={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;
286
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Xf(t,e){Q(t,o4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=i4();let a;var s=h(n,!0);g(n),k(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),ve(s,i())},[()=>({hidden:o()})]),b(t,n)}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),r4=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),s4=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),a4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),l4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),d4={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 Jf(t,e){q(e,!0),Q(t,d4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,me(d(E))));let T=Math.floor(P/3600);O(o,me(d(T)));let V=Math.floor(P/60)%60;O(n,me(d(V)));let U=P%60;O(a,me(d(U)))},p=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(p):e.onTimerOver()};Ot(()=>{s=requestAnimationFrame(p)}),bn(()=>{cancelAnimationFrame(s)});var f=l4(),_=h(f);{var u=P=>{var E=n4(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(i)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(P,E)};R(_,P=>{r(i)&&P(u)})}var $=M(_,2);{var w=P=>{var E=r4(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(o)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(P,E)};R($,P=>{r(o)&&P(w)})}var y=M($,2);{var S=P=>{var E=s4(),T=ue(E),V=h(T),U=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),k((oe,pe)=>{ve(U,r(n)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(P,E)};R(y,P=>{r(n)&&P(S)})}var I=M(y,2);{var A=P=>{var E=a4(),T=h(E),V=h(T,!0);g(T);var U=M(T,2),Y=h(U,!0);g(U),g(E),k(F=>{ve(V,r(a)),ve(Y,F)},[()=>H("waiting_live_second_value")]),b(P,E)};R(I,P=>{r(a)&&P(A)})}g(f),b(t,f),K()}var c4=be('<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 em(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=c4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),k(()=>n=xe(o,n,{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})),b(t,o)}var u4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),p4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),f4=L('<div class="waiting-container svelte-15pewff"><!></div>'),m4={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 bd(t,e){q(e,!0),Q(t,m4);let i=ee(!1);Ke(()=>{O(i,me(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=f4(),n=h(o);{var a=d=>{var l=u4(),p=h(l),f=h(p);em(f,{}),g(p);var _=M(p,2),u=h(_,!0);g(_),g(l),k($=>ve(u,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=p4(),p=h(l),f=h(p,!0);g(p);var _=M(p,2);let u=m(()=>e.startTime||0);Jf(_,{get startTime(){return r(u)},onTimerOver:()=>O(i,!0)}),g(l),k($=>ve(f,$),[()=>H("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>et(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),K()}var v4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),g4={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 la(t,e){q(e,!0),Q(t,g4);let i=v(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=v4(),s=h(a),d=h(s);ta(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),p=h(l,!0);g(l),g(s),g(a),k(()=>{et(a,`background-image: url('${i()}')`),ve(p,r(n))}),b(t,a),K()}var h4=be('<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 tm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=h4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var _4=L('<div class="select-icon svelte-124aexk"><!></div>'),b4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function $d(t){Q(t,b4);var e=_4(),i=h(e);tm(i,{}),g(e),b(t,e)}var $4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},y4=(t,e)=>{Fa(t,()=>e.item.selectItem(e.item.value))},x4=L("<p> </p>"),w4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),S4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),C4={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;
287
287
 
288
288
  /**
289
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
290
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.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Zf(t,e){q(e,!0),Q(t,S4);let i=v(e,"isMobile",3,!1);var o=w4();let n;o.__click=[b4,e],o.__keydown=[$4,e];var a=h(o);{var s=w=>{$d(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var f=w=>{var y=Ue(),S=ge(y);Ai(S,()=>e.item.valueComponent,(I,A)=>{A(I,is(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},_=w=>{var y=y4();let S;var I=h(y,!0);g(y),k(A=>{var P;S=te(y,1,"label svelte-1t7rx2m",null,S,A),fe(I,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};B(p,w=>{e.item.valueComponent?w(f):w(_,!1)})}var u=M(p,2);{var $=w=>{var y=x4(),S=h(y,!0);g(y),k(()=>fe(S,e.item.sublabel)),b(w,y)};B(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=te(o,1,"item",null,n,w),De(o,"data-value",e.item.value),De(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),K()}st(["click","keydown"]);var C4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Xf(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Ic(y,r(n)));var s=C4();let d;s.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},s.__keydown=function(...y){var S;(S=r(a))==null||S.apply(this,y)};var l=h(s);{var p=y=>{$d(y,{})};B(l,y=>{e.item.selected&&y(p)})}var f=M(l,2);let _;var u=h(f);{var $=y=>{var S=Ue();let I=m(()=>e.item.valueComponent);var A=ge(S);Ai(A,()=>r(I),(P,E)=>{E(P,is(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=tr();k(()=>fe(S,e.item.label)),b(y,S)};B(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),lt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,S)=>{var I;d=te(s,1,"item",null,d,y),De(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),K()}st(["click","keydown"]);var kr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var I4=(t,e)=>{gh(t,e.returnFromSubMenu,e.closeSettingsMenu)},k4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},E4=(t,e)=>{Ol(t)&&(rr(t),e.returnFromSubMenu())},A4=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>'),P4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function im(t,e){q(e,!0),Q(t,C4);let i=v(e,"isMobile",3,!1);var o=S4();let n;o.__click=[$4,e],o.__keydown=[y4,e];var a=h(o);{var s=w=>{$d(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var f=w=>{var y=qe(),S=ue(y);bi(S,()=>e.item.valueComponent,(I,A)=>{A(I,is(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},_=w=>{var y=x4();let S;var I=h(y,!0);g(y),k(A=>{var P;S=te(y,1,"label svelte-1t7rx2m",null,S,A),ve(I,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(p,w=>{e.item.valueComponent?w(f):w(_,!1)})}var u=M(p,2);{var $=w=>{var y=w4(),S=h(y,!0);g(y),k(()=>ve(S,e.item.sublabel)),b(w,y)};R(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=te(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),K()}st(["click","keydown"]);var T4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function om(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Mc(y,r(n)));var s=T4();let d;s.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},s.__keydown=function(...y){var S;(S=r(a))==null||S.apply(this,y)};var l=h(s);{var p=y=>{$d(y,{})};R(l,y=>{e.item.selected&&y(p)})}var f=M(l,2);let _;var u=h(f);{var $=y=>{var S=qe();let I=m(()=>e.item.valueComponent);var A=ue(S);bi(A,()=>r(I),(P,E)=>{E(P,is(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=er();k(()=>ve(S,e.item.label)),b(y,S)};R(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),dt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,S)=>{var I;d=te(s,1,"item",null,d,y),Oe(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Oe(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),K()}st(["click","keydown"]);var kr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var k4=(t,e)=>{bh(t,e.returnFromSubMenu,e.closeSettingsMenu)},E4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},A4=(t,e)=>{Ol(t)&&(nr(t),e.returnFromSubMenu())},P4=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>'),M4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
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 {
294
294
  /**
295
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.
@@ -299,16 +299,47 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
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,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function em(t,e){q(e,!0),Q(t,P4);let[i,o]=Fe(),n=()=>C(_,"$isFullscreen",i),a=()=>C(u,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=v(e,"listRef",15);Nt(()=>{let oe=e.items.findIndex(ce=>ce.selected);p().children[oe+1].focus()});let f=Ie(),_=f.ui.isFullscreen,u=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(w)));var A=A4();let P;var E=h(A);let T;E.__keydown=[I4,e];var R=h(E);let z;R.__click=[k4,e],R.__keydown=[E4,e];var Y=h(R);Cs(Y,{direction:"left"});var U=M(Y,2),Z=h(U,!0);g(U),g(R),lt(R,oe=>O($,oe),()=>r($));var J=M(R,2);bi(J,17,()=>e.items,wl,(oe,ce)=>{var le=Ue(),Le=ge(le);{var Re=Me=>{Zf(Me,{get item(){return r(ce)},get isMobile(){return s()}})},X=(Me,j)=>{{var N=Ve=>{Xf(Ve,{get isMobile(){return s()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(Me,Ve=>{r(ce).type==="OPEN_SUB_MENU"&&Ve(N)},j)}};B(Le,Me=>{r(ce).type==="SELECT_VALUE"?Me(Re):Me(X,!1)})}b(oe,le)}),g(E),lt(E,oe=>p(oe),()=>p()),g(A),k((oe,ce,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),De(A,"data-testid",`sub-menu-${e.id}`),ot(A,`min-width: ${r(I)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,ce),ot(E,r(S)),z=te(R,1,"item header back svelte-7dfsuh",null,z,le),De(R,"aria-label",l()),fe(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Or(R,"clientWidth",oe=>O(w,oe)),Or(R,"clientHeight",oe=>O(y,oe)),b(t,A),K(),o()}st(["keydown","click"]);import{noop as M4}from"@vkontakte/videoplayer-shared/es2018";var L4=(t,e)=>Ic(t,e()),V4=(t,e)=>{t.stopPropagation(),e()()},R4=L('<div class="value svelte-1ikfjte"> </div>'),B4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),N4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function tm(t,e){q(e,!0),Q(t,N4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,M4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=B4();let d;s.__click=[V4,o],s.__keydown=[L4,o];var l=h(s),p=h(l);{var f=I=>{sa(I,{get icon(){return e.icon}})},_=I=>{var A=Ue();let P=m(()=>e.icon);var E=ge(A);Ai(E,()=>r(P),(T,R)=>{R(T,{})}),b(I,A)};B(p,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var u=M(l,2),$=h(u,!0);g(u);var w=M(u,2);{var y=I=>{var A=Ue();let P=m(n);var E=ge(A);Ai(E,()=>r(P),(T,R)=>{R(T,{})}),b(I,A)},S=I=>{var A=R4(),P=h(A,!0);g(A),k(()=>fe(P,e.value)),b(I,A)};B(w,I=>{n()?I(y):I(S,!1)})}g(s),lt(s,I=>a(I),()=>a()),k(I=>{d=te(s,1,"item",null,d,I),De(s,"aria-label",e.ariaLabel),De(s,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}st(["click","keydown"]);import{noop as jh}from"@vkontakte/videoplayer-shared/es2018";var D4=(t,e)=>{Oa(t,()=>e())},O4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),H4=L('<img class="icon" aria-hidden="true">'),F4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),U4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function im(t,e){q(e,!0),Q(t,U4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,jh),n=v(e,"closeSettings",3,jh),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=F4();let p;l.__click=d,l.__keydown=[D4,d];var f=h(l),_=h(f);{var u=S=>{var I=Ue(),A=ge(I);{var P=T=>{var R=O4();b(T,R)},E=T=>{var R=H4();k(()=>De(R,"src",e.icon)),It("error",R,s),Hs(R),b(T,R)};B(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=Ue();let A=m(()=>e.icon);var P=ge(I);Ai(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};B(_,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;p=te(l,1,"item",null,p,S),De(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(l,"data-testid",e.id),fe(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}st(["click","keydown"]);import{noop as K4}from"@vkontakte/videoplayer-shared/es2018";var z4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),q4={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 om(t,e){Q(t,q4);let i=v(e,"enabled",3,!1);var o=z4(),n=h(o);let a;_e(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var W4=(t,e,i)=>{hh(t,e(),o=>i()(o))},Q4=(t,e,i)=>{t.stopPropagation(),e()(!i())},G4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Y4=L('<li role="menuitem" tabindex="0"><!></li>');function nm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,K4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=Y4();let l;d.__click=[Q4,o,n],d.__keydown=[W4,n,o];var p=h(d);ea(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var u=G4();let $;var w=h(u),y=h(w);{var S=T=>{sa(T,{get icon(){return e.icon}})},I=T=>{var R=Ue();let z=m(()=>e.icon);var Y=ge(R);Ai(Y,()=>r(z),(U,Z)=>{Z(U,{})}),b(T,R)};B(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);om(E,{get enabled(){return n()}}),g(u),k(T=>{$=te(u,1,"switch-wrapper",null,$,T),fe(P,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=te(d,1,"item switch-item",null,l,f),De(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),K()}st(["click","keydown"]);import{isValidURL as b3,VideoQuality as a1}from"@vkontakte/videoplayer-shared/es2018";var Zh=()=>{let t=ee(he([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,he(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,he([]))}}};var j4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),Z4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),X4={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 la(t,e){q(e,!0),Q(t,X4);let i=v(e,"isSubCase",3,!1),o=m(()=>Mc(e.quality));var n=Z4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=f=>{var _=j4();let u=m(()=>r(o));var $=h(_);Ai($,()=>r(u),(w,y)=>{y(w,{})}),g(_),b(f,_)};B(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}import{VideoQuality as J4}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Xh}from"@vkontakte/videoplayer-core/es2018";var Jh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},e1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Jh({quality:t,availableQualities:e});return i?t===Xh.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},t1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Xh.INVARIANT?i:`${i}${Jh({quality:t,availableQualities:e})}`:"...";var e3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),t3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Qa(t,e){q(e,!0),Q(t,t3);let[i,o]=Fe(),n=()=>C(l,"$currentQuality$",i),a=()=>C(p,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Ie(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",u=m(()=>e.prefix+(e.selected&&n()!==J4.INVARIANT?_:"")),$=m(()=>t1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=e3(),y=h(w);let S=m(()=>e.selected?n():void 0);la(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var i3=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")},o3={br:!0,span:!0},rm=(t,e={})=>{var d,l,p,f,_,u,$;if(!t)return t;let i={...o3,...e},o=Object.keys(i);if(!o.length)return t;let n=i3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let A=(_=w.groups)!=null&&_.childrenhtml?rm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>A||""):y;a.push(t.slice(s,I),P),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function yd(t,e){q(e,!1);let i=v(e,"message",8),o=rm(i());Cr();var n=Ue(),a=ge(n);{var s=d=>{var l=Ue(),p=ge(l);Sl(p,()=>o,!1,!1),b(d,l)};B(a,d=>{o&&d(s)})}b(t,n),K()}var n3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),r3={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 sm(t,e){q(e,!1),Q(t,r3),Cr();var i=n3(),o=h(i);let n=xr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));yd(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var o1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Qa,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},am=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Qa:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),n1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:sm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),lm=({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?Qa:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),dm=({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?Qa:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Gc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Yc=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Dc(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=Gc(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=Gc(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=Gc(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=Gc(t,e);return F("audio_stream_display_unknown",{index:a})};var s3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:am,selected:e&&!o&&!n||!1}),a.push({handler:dm,selected:o},{handler:lm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[n1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),o1(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:la,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:am,selected:((i=gc())==null?void 0:i.type)==="auto_quality"},{handler:dm,selected:((o=gc())==null?void 0:o.type)==="traffic_saving"},{handler:lm,selected:((n=gc())==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:Yc(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}))})},r1=({subMenuId:t,context:e})=>t?[s3[t](e)]:[];var a3=be('<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 cm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=a3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var l3=be('<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 um(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var d3=be('<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 pm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var c3=be('<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 fm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var u3=be('<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 mm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var p3=be('<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 jc(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var f3=be('<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 vm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=f3();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var m3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),v3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function gm(t,e){q(e,!0),Q(t,v3);let[i,o]=Fe(),n=()=>C(p,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),l=Ie(),p=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=m(()=>e1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=m3(),y=h(w);la(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var h3={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:Ql,label:F("menu_quality"),value:e,valueComponent:gm,weight:kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:kr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:cm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Yc(t,e);return{id:"AUDIO_LANGUAGES",weight:kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:um,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:kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:pm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Gl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:kr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:fm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:kr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:mm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:kr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:jc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:kr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:jc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:kr["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:vm,isHiddenFor:["desktop"]})},s1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>h3[n](e)),...i.map(n=>({...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(js)};var $3=(t,e)=>{Tc(t,e)},y3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),x3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),w3=L("<div><!> <!></div>"),S3={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 rm(t,e){q(e,!0),Q(t,M4);let[i,o]=Fe(),n=()=>C(_,"$isFullscreen",i),a=()=>C(u,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),p=v(e,"listRef",15);Ot(()=>{let oe=e.items.findIndex(pe=>pe.selected);p().children[oe+1].focus()});let f=we(),_=f.ui.isFullscreen,u=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(w)));var A=P4();let P;var E=h(A);let T;E.__keydown=[k4,e];var V=h(E);let U;V.__click=[E4,e],V.__keydown=[A4,e];var Y=h(V);Is(Y,{direction:"left"});var F=M(Y,2),j=h(F,!0);g(F),g(V),dt(V,oe=>O($,oe),()=>r($));var X=M(V,2);_i(X,17,()=>e.items,wl,(oe,pe)=>{var le=qe(),Ve=ue(le);{var Me=Le=>{im(Le,{get item(){return r(pe)},get isMobile(){return s()}})},J=(Le,Z)=>{{var B=Re=>{om(Re,{get isMobile(){return s()},get item(){return r(pe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,Re=>{r(pe).type==="OPEN_SUB_MENU"&&Re(B)},Z)}};R(Ve,Le=>{r(pe).type==="SELECT_VALUE"?Le(Me):Le(J,!1)})}b(oe,le)}),g(E),dt(E,oe=>p(oe),()=>p()),g(A),k((oe,pe,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Oe(A,"data-testid",`sub-menu-${e.id}`),et(A,`min-width: ${r(I)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,pe),et(E,r(S)),U=te(V,1,"item header back svelte-7dfsuh",null,U,le),Oe(V,"aria-label",l()),ve(j,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Dr(V,"clientWidth",oe=>O(w,oe)),Dr(V,"clientHeight",oe=>O(y,oe)),b(t,A),K(),o()}st(["keydown","click"]);import{noop as L4}from"@vkontakte/videoplayer-shared/es2018";var V4=(t,e)=>Mc(t,e()),R4=(t,e)=>{t.stopPropagation(),e()()},N4=L('<div class="value svelte-1ikfjte"> </div>'),B4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),D4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){q(e,!0),Q(t,D4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,L4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=B4();let d;s.__click=[R4,o],s.__keydown=[V4,o];var l=h(s),p=h(l);{var f=I=>{aa(I,{get icon(){return e.icon}})},_=I=>{var A=qe();let P=m(()=>e.icon);var E=ue(A);bi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)};R(p,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var u=M(l,2),$=h(u,!0);g(u);var w=M(u,2);{var y=I=>{var A=qe();let P=m(n);var E=ue(A);bi(E,()=>r(P),(T,V)=>{V(T,{})}),b(I,A)},S=I=>{var A=N4(),P=h(A,!0);g(A),k(()=>ve(P,e.value)),b(I,A)};R(w,I=>{n()?I(y):I(S,!1)})}g(s),dt(s,I=>a(I),()=>a()),k(I=>{d=te(s,1,"item",null,d,I),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}st(["click","keydown"]);import{noop as Jh}from"@vkontakte/videoplayer-shared/es2018";var O4=(t,e)=>{Fa(t,()=>e())},H4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F4=L('<img class="icon" aria-hidden="true">'),U4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function am(t,e){q(e,!0),Q(t,z4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Jh),n=v(e,"closeSettings",3,Jh),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=U4();let p;l.__click=d,l.__keydown=[O4,d];var f=h(l),_=h(f);{var u=S=>{var I=qe(),A=ue(I);{var P=T=>{var V=H4();b(T,V)},E=T=>{var V=F4();k(()=>Oe(V,"src",e.icon)),kt("error",V,s),Fs(V),b(T,V)};R(A,T=>{r(a)?T(P):T(E,!1)})}b(S,I)},$=S=>{var I=qe();let A=m(()=>e.icon);var P=ue(I);bi(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,I)};R(_,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;p=te(l,1,"item",null,p,S),Oe(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}st(["click","keydown"]);import{noop as W4}from"@vkontakte/videoplayer-shared/es2018";var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),K4={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 lm(t,e){Q(t,K4);let i=v(e,"enabled",3,!1);var o=q4(),n=h(o);let a;_e(2),g(o),k(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var Q4=(t,e,i)=>{$h(t,e(),o=>i()(o))},G4=(t,e,i)=>{t.stopPropagation(),e()(!i())},Y4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),j4=L('<li role="menuitem" tabindex="0"><!></li>');function dm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,W4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=j4();let l;d.__click=[G4,o,n],d.__keydown=[Q4,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var u=Y4();let $;var w=h(u),y=h(w);{var S=T=>{aa(T,{get icon(){return e.icon}})},I=T=>{var V=qe();let U=m(()=>e.icon);var Y=ue(V);bi(Y,()=>r(U),(F,j)=>{j(F,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);lm(E,{get enabled(){return n()}}),g(u),k(T=>{$=te(u,1,"switch-wrapper",null,$,T),ve(P,e.label)},[()=>({mobile:i()})]),b(f,u)},$$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()})]),b(t,d),K()}st(["click","keydown"]);import{isValidURL as $3,VideoQuality as c1}from"@vkontakte/videoplayer-shared/es2018";var e1=()=>{let t=ee(me([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,me([]))}}};var Z4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),X4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),J4={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 da(t,e){q(e,!0),Q(t,J4);let i=v(e,"isSubCase",3,!1),o=m(()=>Bc(e.quality));var n=X4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=f=>{var _=Z4();let u=m(()=>r(o));var $=h(_);bi($,()=>r(u),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),k(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}import{VideoQuality as e3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as t1}from"@vkontakte/videoplayer-core/es2018";var i1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},o1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=i1({quality:t,availableQualities:e});return i?t===t1.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},n1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===t1.INVARIANT?i:`${i}${i1({quality:t,availableQualities:e})}`:"...";var t3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),i3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ya(t,e){q(e,!0),Q(t,i3);let[i,o]=Fe(),n=()=>C(l,"$currentQuality$",i),a=()=>C(p,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=we(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",u=m(()=>e.prefix+(e.selected&&n()!==e3.INVARIANT?_:"")),$=m(()=>n1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=t3(),y=h(w);let S=m(()=>e.selected?n():void 0);da(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var o3=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},cm=(t,e={})=>{var d,l,p,f,_,u,$;if(!t)return t;let i={...n3,...e},o=Object.keys(i);if(!o.length)return t;let n=o3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let A=(_=w.groups)!=null&&_.childrenhtml?cm(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>A||""):y;a.push(t.slice(s,I),P),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function yd(t,e){q(e,!1);let i=v(e,"message",8),o=cm(i());Sr();var n=qe(),a=ue(n);{var s=d=>{var l=qe(),p=ue(l);Sl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),K()}var r3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),s3={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 um(t,e){q(e,!1),Q(t,s3),Sr();var i=r3(),o=h(i);let n=yr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));yd(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var s1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ya,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Ya:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),a1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:um,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),fm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:H("high_quality"),valueComponent:t?Ya:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),mm=({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:H("traffic_saving_quality"),valueComponent:t?Ya:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var Jc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),eu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=zc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=Jc(t,d);return H("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=Jc(t,d);return H("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=Jc(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=Jc(t,e);return H("audio_stream_display_unknown",{index:a})};var a3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:pm,selected:e&&!o&&!n||!1}),a.push({handler:mm,selected:o},{handler:fm,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[a1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),s1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:da,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:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:pm,selected:((i=yc())==null?void 0:i.type)==="auto_quality"},{handler:mm,selected:((o=yc())==null?void 0:o.type)==="traffic_saving"},{handler:fm,selected:((n=yc())==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:H("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:eu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("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:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},l1=({subMenuId:t,context:e})=>t?[a3[t](e)]:[];var l3=be('<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 vm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var d3=be('<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 gm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var c3=be('<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 hm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var u3=be('<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 _m(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var p3=be('<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 bm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var f3=be('<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 tu(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=f3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var m3=be('<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 $m(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=m3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var v3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ym(t,e){q(e,!0),Q(t,g3);let[i,o]=Fe(),n=()=>C(p,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),l=we(),p=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=m(()=>o1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=v3(),y=h(w);da(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var _3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:Ql,label:H("menu_quality"),value:e,valueComponent:ym,weight:kr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:kr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:vm,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=eu(t,e);return{id:"AUDIO_LANGUAGES",weight:kr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:gm,label:H("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:kr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:hm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:kr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Gl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:kr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:_m}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:kr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:bm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:kr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:tu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:kr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:tu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:kr["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:$m,isHiddenFor:["desktop"]})},d1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>_3[n](e)),...i.map(n=>({...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(Xs)};var y3=(t,e)=>{Pc(t,e)},x3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),w3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),S3=L("<div><!> <!></div>"),C3={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 {
303
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),
304
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),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
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 xd(t,e){q(e,!0),Q(t,S3);let[i,o]=Fe(),n=()=>C(Qe,"$settingsMenuVisible",i),a=()=>C(at,"$settingsMenuOpenedByKeyboard",i),s=()=>C(rt,"$debugPanelVisible",i),d=()=>C(ye,"$isMobile",i),l=()=>C(Lt,"$playerSize",i),p=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),_=()=>C(N,"$autoQualityLimitingAvailable$",i),u=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(nt,"$isLiveWithPlaybackSpeed",i),w=()=>C(X,"$availableAudioStreams$",i),y=()=>C(Be,"$availablePlaybackRates$",i),S=()=>C(Re,"$currentAudioStream$",i),I=()=>C(re,"$currentPlaybackRate$",i),A=()=>C(pt,"$trafficSavingEnabled",i),P=()=>C(Me,"$currentQuality$",i),E=()=>C(Ve,"$isAutoQualityEnabled$",i),T=()=>C(ue,"$currentSubtitle$",i),R=()=>C(Ht,"$additionalSettingsMenuItems$",i),z=()=>C(xe,"$isAutoQualityAvailable$",i),Y=()=>C(j,"$availableQualities$",i),U=()=>C(tt,"$highQualityEnabled",i),Z=v(e,"ref",15,void 0),J=v(e,"playerControlsHeight",3,0),oe=he({}),ce=he({}),le=Ie(),Le=zt(),Re=le.state.audioStream$,X=le.state.availableAudioStreams$,Me=le.state.currentQuality$,j=le.state.availableQualities$,N=le.state.autoQualityLimitingAvailable$,Ve=le.state.isAutoQualityEnabled$,xe=le.state.isAutoQualityAvailable$,re=le.state.currentPlaybackRate$,Be=le.state.availablePlaybackRates$,ue=le.state.currentSubtitle$,D=le.state.availableSubtitlesList$,de=le.state.canDownload,Ee=le.state.hasMpegSources$,Qe=le.ui.settingsMenu.visible$,at=le.ui.settingsMenu.openedByBtnKeyboard$,Ae=le.ui.settingsMenu.ref$,ye=le.ui.isMobile,Pe=le.ui.mobileNotReportControlHidden$,nt=le.state.canChangePlaybackSpeed$,pt=le.state.trafficSavingEnabled$,tt=le.state.highQualityEnabled$,Lt=le.ui.playerSize,rt=le.ui.debugPanelVisible,ft=le.state.isInteractiveTime$,Ht=le.ui.additionalSettingsMenuItems$,Ut=le.ui.t,Ne=le.actions.internal.downloadVideo,ne=le.actions.internal.closeSettingsMenu,W=le.actions.internal.openSettingsSubMenu,se=le.actions.internal.closeSettingsSubMenu,pe=ee(!1),Ce=ee(void 0),Oe=Zh();je(()=>{!n()&&Oe.current&&(se(ce[Oe.current]),Oe.popAllSubMenus())}),je(()=>{n()||O(Ce,void 0)}),je(()=>{!Oe.current&&r(Ce)&&vh(oe,r(Ce))}),je(()=>{Z()&&Ae.set(Z())});async function dt(yt){Oe.pushSubMenu(yt),await go(),W(yt,ce[yt])}function Vt(yt){var Ft;yt==null||yt.stopPropagation(),a()||(Ft=e.returnFocus)==null||Ft.call(e),ne(),O(pe,!1)}function qe(yt,Ft){le.actions.internal.setQuality(yt,{appliesTo:Ft}),Vt()}function vt(yt){le.actions.internal.setAudioStream(yt),Vt()}function Xe(yt,Ft){le.actions.internal.setTrafficSavingEnabled(yt,Ft),Le.features.qualityDetailsSubMenuEnabled&&Vt()}function $t(yt,Ft){le.actions.internal.setHighQualityEnabled(yt,Ft),Vt()}function Qt(yt){le.actions.internal.setPlaybackRate(yt),Vt()}function Ye(yt){le.actions.internal.setSubtitle(yt),Vt()}function wt(){Ne()}function li(){b3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function oi(){Ba(le.actions.internal.getDebugTextData())}let Ci=()=>{let yt=le.actions.internal.getTraceTextData(),Ft=new Blob([...yt],{type:"application/json"}),zi=window.URL.createObjectURL(Ft);qs(zi,"vk_player_trace_info","json")};function Oi(){rt.set(!s())}function Mo(){O(pe,!0)}function $o(){O(pe,!1)}function yo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-J()}px; overflow: auto;`}let Lo=m(()=>de&&p()&&!f()),H=m(()=>Le.features.trafficSaving&&!f()&&_()&&!Le.features.qualityDetailsSubMenuEnabled),Ke=m(()=>u().length>0&&!f()),ni=m(()=>!!$()&&!f()),Hi=m(()=>Le.features.audioLanguages&&w().length>=2&&!f()),Jt=m(()=>!f());Nt(()=>ft.subscribe(yt=>{yt&&!d()&&!r(pe)&&!a()&&Vt()}));let ui=m(()=>{let yt=[r(Jt)&&"QUALITY_SETTINGS",r(Hi)&&"AUDIO_LANGUAGES",r(ni)&&"PLAYBACK_RATE",r(Ke)&&"SUBTITLES",r(H)&&"TRAFFIC_SAVING_SWITCH",r(Lo)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ft=>!!Ft);return s1({items:yt,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:Qt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||a1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:wt,debugPanelVisible:s(),onCopyDataClick:oi,onReportProblemClick:li,onSaveTraceDataClick:Ci,toggleShowDebugInfo:Oi},additionalSettingsMenuItems:R()})}),no=m(()=>r1({subMenuId:Oe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Qt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||a1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:z()||!1,availableQualities:Y(),highQualityEnabled:U(),toggleHighQuality:$t,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:ne,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:vt,selectQuality:qe,selectSubtitle:Ye}}));var ro=w3();let so;var zo=h(ro);{var Rt=yt=>{var Ft=x3();let zi;Ft.__keydown=[$3,ne];var Yt=h(Ft);{var yn=ri=>{var _t=y3();let qi;var yi=h(_t),ci=h(yi,!0);g(yi);var xn=M(yi,2);xn.__click=Vt,g(_t),k((Ki,Fi)=>{qi=te(_t,1,"item header svelte-17or3al",null,qi,Ki),fe(ci,Fi)},[()=>({mobile:d()}),()=>Ut("submenu_settings")]),b(ri,_t)};B(Yt,ri=>{d()&&ri(yn)})}var xo=M(Yt,2);let qo;bi(xo,21,()=>r(ui),ri=>ri.id,(ri,_t)=>{var qi=Ue(),yi=ge(qi);{var ci=Ki=>{tm(Ki,{get isMobile(){return d()},get id(){return r(_t).id},get icon(){return r(_t).icon},get label(){return r(_t).label},get ariaLabel(){return r(_t).ariaLabel},get value(){return r(_t).value},get valueComponent(){return r(_t).valueComponent},onClick:()=>{dt(r(_t).children),O(Ce,he(r(_t).id))},get ref(){return oe[r(_t).id]},set ref(Fi){oe[r(_t).id]=Fi}})},xn=(Ki,Fi)=>{{var Ko=Ti=>{im(Ti,{get isMobile(){return d()},get id(){return r(_t).id},get onClick(){return r(_t).onClick},get icon(){return r(_t).icon},get label(){return r(_t).label},get ariaLabel(){return r(_t).ariaLabel},closeSettings:Vt})},wn=(Ti,sn)=>{{var an=Vo=>{nm(Vo,{get isMobile(){return d()},get id(){return r(_t).id},get onClick(){return r(_t).onClick},get icon(){return r(_t).icon},get label(){return r(_t).label},get ariaLabel(){return r(_t).ariaLabel},get enabled(){return r(_t).enabled},get tooltipText(){return r(_t).tooltipText},get maxTooltipWidth(){return r(_t).maxTooltipWidth}})};B(Ti,Vo=>{r(_t).type==="SWITCH"&&Vo(an)},sn)}};B(Ki,Ti=>{r(_t).type==="CLICK"?Ti(Ko):Ti(wn,!1)},Fi)}};B(yi,Ki=>{r(_t).type==="OPEN_SUB_MENU"?Ki(ci):Ki(xn,!1)})}b(ri,qi)}),g(xo),lt(xo,ri=>Z(ri),()=>Z()),g(Ft),k((ri,_t,qi)=>{zi=te(Ft,1,"settings-menu menu svelte-17or3al",null,zi,ri),qo=te(xo,1,"items",null,qo,_t),ot(xo,qi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Oe.current}),()=>({mobile:d()}),yo]),It("mouseenter",Ft,Mo),It("mouseleave",Ft,$o),b(yt,Ft)};B(zo,yt=>{n()&&yt(Rt)})}var di=M(zo,2);bi(di,17,()=>r(no),yt=>yt.id,(yt,Ft)=>{let zi=m(()=>{var Yt;return(Yt=r(Ft).minWidth)!=null?Yt:137});em(yt,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return Oe.popSubMenu},get id(){return r(Ft).id},get title(){return r(Ft).title},closeSettingsMenu:ne,openSubMenuList:dt,get items(){return r(Ft).items},get minWidth(){return r(zi)},get refMenuItems(){return oe},get listRef(){return ce[r(Ft).id]},set listRef(Yt){ce[r(Ft).id]=Yt}})}),g(ro),k(yt=>so=te(ro,1,"settings-menu-container svelte-17or3al",null,so,yt),[()=>({mobile:d(),hidden:!n()})]),b(t,ro),K(),o()}st(["keydown","click"]);var C3=t=>t;function l1(t,{delay:e=0,duration:i=400,easing:o=C3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var T3=L('<button class="button svelte-1sbbskl"> </button>'),I3={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 hm(t,e){Q(t,I3);var i=T3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>fe(o,e.label)),b(t,i)}st(["click"]);var k3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),E3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
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 xd(t,e){q(e,!0),Q(t,C3);let[i,o]=Fe(),n=()=>C(Ge,"$settingsMenuVisible",i),a=()=>C(lt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(rt,"$debugPanelVisible",i),d=()=>C($e,"$isMobile",i),l=()=>C(It,"$playerSize",i),p=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Pe,"$mobileNotReportControlHidden$",i),_=()=>C(B,"$autoQualityLimitingAvailable$",i),u=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(nt,"$isLiveWithPlaybackSpeed",i),w=()=>C(J,"$availableAudioStreams$",i),y=()=>C(Ne,"$availablePlaybackRates$",i),S=()=>C(Me,"$currentAudioStream$",i),I=()=>C(ke,"$currentPlaybackRate$",i),A=()=>C(mt,"$trafficSavingEnabled",i),P=()=>C(Le,"$currentQuality$",i),E=()=>C(Re,"$isAutoQualityEnabled$",i),T=()=>C(fe,"$currentSubtitle$",i),V=()=>C(Ut,"$additionalSettingsMenuItems$",i),U=()=>C(ne,"$isAutoQualityAvailable$",i),Y=()=>C(Z,"$availableQualities$",i),F=()=>C(at,"$highQualityEnabled",i),j=v(e,"ref",15,void 0),X=v(e,"playerControlsHeight",3,0),oe=me({}),pe=me({}),le=we(),Ve=qt(),Me=le.state.audioStream$,J=le.state.availableAudioStreams$,Le=le.state.currentQuality$,Z=le.state.availableQualities$,B=le.state.autoQualityLimitingAvailable$,Re=le.state.isAutoQualityEnabled$,ne=le.state.isAutoQualityAvailable$,ke=le.state.currentPlaybackRate$,Ne=le.state.availablePlaybackRates$,fe=le.state.currentSubtitle$,D=le.state.availableSubtitlesList$,de=le.state.canDownload,Ee=le.state.hasMpegSources$,Ge=le.ui.settingsMenu.visible$,lt=le.ui.settingsMenu.openedByBtnKeyboard$,Ae=le.ui.settingsMenu.ref$,$e=le.ui.isMobile,Pe=le.ui.mobileNotReportControlHidden$,nt=le.state.canChangePlaybackSpeed$,mt=le.state.trafficSavingEnabled$,at=le.state.highQualityEnabled$,It=le.ui.playerSize,rt=le.ui.debugPanelVisible,vt=le.state.isInteractiveTime$,Ut=le.ui.additionalSettingsMenuItems$,Qt=le.ui.t,Be=le.actions.internal.downloadVideo,re=le.actions.internal.closeSettingsMenu,W=le.actions.internal.openSettingsSubMenu,se=le.actions.internal.closeSettingsSubMenu,he=ee(!1),Se=ee(void 0),De=e1();Ke(()=>{!n()&&De.current&&(se(pe[De.current]),De.popAllSubMenus())}),Ke(()=>{n()||O(Se,void 0)}),Ke(()=>{!De.current&&r(Se)&&_h(oe,r(Se))}),Ke(()=>{j()&&Ae.set(j())});async function ct(xt){De.pushSubMenu(xt),await co(),W(xt,pe[xt])}function Kt(xt){var zt;xt==null||xt.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),re(),O(he,!1)}function je(xt,zt){le.actions.internal.setQuality(xt,{appliesTo:zt}),Kt()}function ut(xt){le.actions.internal.setAudioStream(xt),Kt()}function Xe(xt,zt){le.actions.internal.setTrafficSavingEnabled(xt,zt),Ve.features.qualityDetailsSubMenuEnabled&&Kt()}function Et(xt,zt){le.actions.internal.setHighQualityEnabled(xt,zt),Kt()}function ni(xt){le.actions.internal.setPlaybackRate(xt),Kt()}function Qe(xt){le.actions.internal.setSubtitle(xt),Kt()}function it(){Be()}function Jt(){$3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function ki(){Da(le.actions.internal.getDebugTextData())}let Co=()=>{let xt=le.actions.internal.getTraceTextData(),zt=new Blob([...xt],{type:"application/json"}),Io=window.URL.createObjectURL(zt);Ws(Io,"vk_player_trace_info","json")};function Di(){rt.set(!s())}function To(){O(he,!0)}function Oo(){O(he,!1)}function Mt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-X()}px; overflow: auto;`}let ht=m(()=>de&&p()&&!f()),z=m(()=>Ve.features.trafficSaving&&!f()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),Wt=m(()=>u().length>0&&!f()),Oi=m(()=>!!$()&&!f()),Mi=m(()=>Ve.features.audioLanguages&&w().length>=2&&!f()),mi=m(()=>!f());Ot(()=>vt.subscribe(xt=>{xt&&!d()&&!r(he)&&!a()&&Kt()}));let ei=m(()=>{let xt=[r(mi)&&"QUALITY_SETTINGS",r(Mi)&&"AUDIO_LANGUAGES",r(Oi)&&"PLAYBACK_RATE",r(Wt)&&"SUBTITLES",r(z)&&"TRAFFIC_SAVING_SWITCH",r(ht)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(zt=>!!zt);return d1({items:xt,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:ni,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||c1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:it,debugPanelVisible:s(),onCopyDataClick:ki,onReportProblemClick:Jt,onSaveTraceDataClick:Co,toggleShowDebugInfo:Di},additionalSettingsMenuItems:V()})}),oo=m(()=>l1({subMenuId:De.current,context:{availablePlaybackRates:y(),selectPlaybackRate:ni,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||c1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:U()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:Et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:re,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:ut,selectQuality:je,selectSubtitle:Qe}}));var mo=S3();let Hi;var Ho=h(mo);{var Bt=xt=>{var zt=w3();let Io;zt.__keydown=[y3,re];var Fi=h(zt);{var ai=ri=>{var $t=x3();let vi;var Ui=h($t),Li=h(Ui,!0);g(Ui);var go=M(Ui,2);go.__click=Kt,g($t),k((yi,ho)=>{vi=te($t,1,"item header svelte-17or3al",null,vi,yi),ve(Li,ho)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),b(ri,$t)};R(Fi,ri=>{d()&&ri(ai)})}var vo=M(Fi,2);let Fo;_i(vo,21,()=>r(ei),ri=>ri.id,(ri,$t)=>{var vi=qe(),Ui=ue(vi);{var Li=yi=>{sm(yi,{get isMobile(){return d()},get id(){return r($t).id},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get value(){return r($t).value},get valueComponent(){return r($t).valueComponent},onClick:()=>{ct(r($t).children),O(Se,me(r($t).id))},get ref(){return oe[r($t).id]},set ref(ho){oe[r($t).id]=ho}})},go=(yi,ho)=>{{var xn=xi=>{am(xi,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},closeSettings:Kt})},tn=(xi,wn)=>{{var on=ko=>{dm(ko,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get enabled(){return r($t).enabled},get tooltipText(){return r($t).tooltipText},get maxTooltipWidth(){return r($t).maxTooltipWidth}})};R(xi,ko=>{r($t).type==="SWITCH"&&ko(on)},wn)}};R(yi,xi=>{r($t).type==="CLICK"?xi(xn):xi(tn,!1)},ho)}};R(Ui,yi=>{r($t).type==="OPEN_SUB_MENU"?yi(Li):yi(go,!1)})}b(ri,vi)}),g(vo),dt(vo,ri=>j(ri),()=>j()),g(zt),k((ri,$t,vi)=>{Io=te(zt,1,"settings-menu menu svelte-17or3al",null,Io,ri),Fo=te(vo,1,"items",null,Fo,$t),et(vo,vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!De.current}),()=>({mobile:d()}),Mt]),kt("mouseenter",zt,To),kt("mouseleave",zt,Oo),b(xt,zt)};R(Ho,xt=>{n()&&xt(Bt)})}var li=M(Ho,2);_i(li,17,()=>r(oo),xt=>xt.id,(xt,zt)=>{let Io=m(()=>{var Fi;return(Fi=r(zt).minWidth)!=null?Fi:137});rm(xt,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return De.popSubMenu},get id(){return r(zt).id},get title(){return r(zt).title},closeSettingsMenu:re,openSubMenuList:ct,get items(){return r(zt).items},get minWidth(){return r(Io)},get refMenuItems(){return oe},get listRef(){return pe[r(zt).id]},set listRef(Fi){pe[r(zt).id]=Fi}})}),g(mo),k(xt=>Hi=te(mo,1,"settings-menu-container svelte-17or3al",null,Hi,xt),[()=>({mobile:d(),hidden:!n()})]),b(t,mo),K(),o()}st(["keydown","click"]);var T3=t=>t;function u1(t,{delay:e=0,duration:i=400,easing:o=T3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var I3=L('<button class="button svelte-1sbbskl"> </button>'),k3={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 xm(t,e){Q(t,k3);var i=I3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>ve(o,e.label)),b(t,i)}st(["click"]);var E3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),A3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
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.
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 wd(t,e){q(e,!0),Q(t,E3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=zt(),{ui:{t:n}}=Ie(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=k3(),d=h(s),l=h(d),p=h(l),f=h(p);yd(f,{message:a}),g(p);var _=M(p,2);{var u=w=>{let y=m(()=>n("slow_video_notification_button"));hm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};B(_,w=>{o||w(u)})}g(l);var $=M(l,2);Zs($,{get onClick(){return e.onClose}}),g(d),g(s),ip(3,d,()=>l1,()=>({duration:i})),b(t,s),K()}var Sd="annotation",Zc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",Sd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var A3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},P3=(t,e,i,o,n,a,s,d,l,p,f,_,u,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(p))return f();if((I=_())==null||I.focus(),!u()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==c1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},M3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},L3=L("<div><!></div>"),V3=L('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),R3=L("<div><!></div>"),B3=L('<div class="settings-menu svelte-1b9vdl1"><!></div>'),N3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),D3=L('<div><div data-testid="video-container"></div></div> <!>',1),O3=L('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),H3={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
310
- .video-container.svelte-1b9vdl1,
311
- .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function _m(t,e){q(e,!0),Q(t,H3);let[i,o]=Fe(),n=()=>C(Go,"$notificationsToShow$",i),a=()=>C(Mo,"$playerPhase",i),s=()=>C(no,"$isLoaderVisible",i),d=()=>C(oi,"$adPlaybackState",i),l=()=>C(Ft,"$crashed",i),p=()=>C(xn,"$isInteractiveTime$",i),f=()=>C(H,"$settingsMenuVisible",i),_=()=>C(Ki,"$isInteractiveExpectation$",i),u=()=>C(Lo,"$controlsVisible",i),$=()=>C(Ko,"$touched",i),w=()=>C(Tn,"$graphIsOpened$",i),y=()=>C($o,"$isFullscreen",i),S=()=>C(Qn,"$autoplayNextEnabled$",i),I=()=>C(Rt,"$postrollPassed",i),A=()=>C(ro,"$isEnded$",i),P=()=>C(So,"$cursorInside",i),E=()=>C(yi,"$rotateAlpha",i),T=()=>C(ri,"$playerSize",i),R=()=>C(Sn,"$fakeIsPlaying$",i),z=()=>C(kn,"$bottomNoSmooth",i),Y=()=>C(an,"$interactiveTimeIndicator",i),U=()=>C(_t,"$is3DVideo",i),Z=()=>C(Jt,"$contextMenuVisible$",i),J=()=>C(li,"$playbackState$",i),oe=()=>C(wn,"$hotKeyMapData",i),ce=()=>C(ni,"$scrubbingInProgress",i),le=()=>C(Hi,"$volumeChangingInProgress",i),Le=()=>C(so,"$chromecastConnected$",i),Re=()=>C(lo,"$controlsTimeoutActive",i),X=()=>C(Ke,"$settingsMenuOpenedByKeyboard",i),Me=()=>C(Vr,"$contextMenuOpenedByKeyboard$",i),j=()=>C(vr,"$contextMenuButtonRef$",i),N=()=>C(Zn,"$contextMenuOpenedByHotKey$",i),Ve=()=>C(gr,"$contextMenuLastActiveElem$",i),xe=()=>C(yo,"$isFullscreenOpenedByKeyboard",i),re=()=>C(yt,"$isPlaying$",i),Be=()=>C(wt,"$language$",i),ue=()=>C(qi,"$icon3DVideoVisible",i),D=()=>C(zo,"$chromecastDeviceName$",i),de=()=>C(yn,"$currentSubtitle$",i),Ee=()=>C(xo,"$currentSubtitleCaptions$",i),Qe=()=>C(Ci,"$position$",i),at=()=>C(qo,"$realDuration$",i),Ae=()=>C(di,"$isLive$",i),ye=()=>C(Oi,"$duration$",i),Pe=()=>C(ln,"$contextMenuPosition$",i),nt=()=>C(Ti,"$showHotKeyMap",i),pt=()=>C(ui,"$debugPanelVisible",i),tt=v(e,"videoContainer",15),Lt=v(e,"adsSlotId",3,void 0),rt=v(e,"adsParams",3,void 0),ft=v(e,"adsPreviewParam",3,void 0),Ht=v(e,"adsAutoplayParam",3,void 0),Ut=v(e,"duration",3,void 0),Ne=v(e,"logoTargetUrl",3,""),ne=v(e,"showNextPrevButtons",3,!1),W=v(e,"nextButtonActive",3,!1),se=v(e,"prevButtonActive",3,!1),pe=v(e,"endScreenVideoTitle",3,void 0),Ce=v(e,"endScreenVideoThumb",3,void 0),Oe=v(e,"isOneVideoPlaylist",3,!1),dt=v(e,"shadowRootContainer",3,void 0),Vt=v(e,"outerContainerRef",3,void 0),qe=v(e,"playerStarted",3,!1),vt=v(e,"fullScreenTarget",3,void 0),Xe=v(e,"showMiniTimer",3,!1),$t=v(e,"showEndScreen",3,!0),Qt=v(e,"keyboardControls",15),Ye=e.store.getLogger().createComponentLog("Root component"),wt=e.store.interfaceLanguage$,li=e.store.state.playbackState$,oi=e.store.ads.playbackState,Ci=e.store.state.positionWithScrubbing$,Oi=e.store.state.duration$,Mo=e.store.playerPhase,$o=e.store.ui.isFullscreen,yo=e.store.ui.isFullscreenOpenedByKeyboard,Lo=e.store.ui.controlsVisible,H=e.store.ui.settingsMenu.visible$,Ke=e.store.ui.settingsMenu.openedByBtnKeyboard$,ni=e.store.ui.scrubbingInProgress,Hi=e.store.ui.volumeChangingInProgress,Jt=e.store.ui.contextMenu.visible$,ui=e.store.ui.debugPanelVisible,no=e.store.state.isLoaderVisible,ro=e.store.state.isEnded$,so=e.store.state.chromecastConnected$,zo=e.store.state.chromecastDeviceName$,Rt=e.store.ads.postrollPassed,di=e.store.state.isLive$,yt=e.store.state.isPlaying$,Ft=e.store.state.crashed$,zi=e.store.webApi.annotationsApi,Yt=e.store.webApi.pictureInPictureApi,yn=e.store.state.currentSubtitle$,xo=e.store.state.currentSubtitleCaptions$,qo=e.store.state.duration$,ri=e.store.ui.playerSize,_t=e.store.ui.is3DVideo,qi=e.store.ui.icon3DVideoVisible,yi=e.store.ui.rotateAlpha,ci=e.store.state.isInteractive,xn=e.store.state.isInteractiveTime$,Ki=e.store.state.isInteractiveExpectation$,Fi=e.store.state.hasInteractiveBranches,Ko=e.store.ui.touched,wn=e.store.ui.modals.hotKeyMap.data,Ti=e.store.ui.modals.hotKeyMap.show,sn=e.store.ui.overlayContainer$,an=e.store.ui.controls.interactiveTimeIndicator,Vo=e.store.state.showInteractiveTimeIndicator,ln=e.store.ui.contextMenu.position$,Er=e.store.actions.internal.setQuality,sr=e.store.actions.internal.closeSettingsMenu,Qn=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:Sn,notifications$:Cn,graphIsOpened$:Tn}=oo(),ao=ee(void 0),Je=ee(void 0),Wo=ee(void 0),dn=ee(void 0),ar,In,Qo;wn.set(lh());let{closeNotification:Gn,notificationsToShow$:Go}=Cn,cn=m(()=>!!n().slow_video),Pi=()=>Gn("slow_video"),wo=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),un=ee(void 0),kn=ae(!1),lr,lo=ae(!1),Ro=ae(),So=ae(!1),En=ee(!1),co=ee(!1),Wi=ee(!1),An=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Yo=m(()=>p()&&!f()&&!(r(En)||r(co))&&!(r(Wi)&&!_())),dr=!0,Pn=m(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!u()&&!l()&&!ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),cr=m(()=>a()==="video"&&!w()&&y()),Mn=ee(!1),Ln=m(()=>($t()||e.showAutoplayNext&&S())&&!!pe()&&!!Ce()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(Mn)),Ar=m(()=>P()&&!(u()||r(Ln))&&!p()),Yn=ee(!1),ur=m(()=>tt()&&E()%180?T().height/T().width:1),Pr=m(()=>R()!==null),{toggle:Vn}=Sn,jt=!1,jo=null;Yt==null||Yt.setContext(bl());let pr=()=>{e.autoplay&&!ci&&e.uiConfig.controls.showOnStartupAtAutoplay&&ct(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:pr});let fr=()=>{window.clearTimeout(ar),lo.set(!1)},it=()=>{window.clearTimeout(In),Ro.set(null)},ct=$e=>{fr(),lo.set(!0),ar=window.setTimeout(()=>lo.set(!1),$e);let Et=$e-100;lr=window.setTimeout(()=>{z()&&kn.set(!1)},Et>0?Et:$e)},xi=($e,Et)=>{it(),Ro.set(Et),In=window.setTimeout(()=>Ro.set(null),$e)},Qi=_t.subscribe($e=>{qi.set($e),$e&&(window.clearTimeout(Qo),Qo=window.setTimeout(()=>qi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Gi=async()=>{var Et,ei,Gt,po;let $e=_s();if($e){let Ri=Rl(),ti=No();$e=Ri===ti||Ri===dt()}if($e){ct(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Yt==null?void 0:Yt.remove())}catch(Ri){Ye({message:String(Ri)})}}$o.set($e),e.store.getAdmanWrapper().setFullscreen($e),y()?(ei=(Et=e.store.callbacks)==null?void 0:Et.onFullscreenEnter)==null||ei.call(Et):(po=(Gt=e.store.callbacks)==null?void 0:Gt.onFullscreenExit)==null||po.call(Gt)},Co=$e=>{let{width:Et,height:ei}=$e.target;ri.set({width:Et,height:ei})},Bo=()=>{let{width:$e,height:Et}=r(ao).getBoundingClientRect();ri.set({width:$e,height:Et})};Nt(()=>{var Et;return Sc(Gi),e.uiConfig.features.annotationsInside&&(zi==null||zi.init(r(ao))),Gs(Yt)&&(Yt==null||Yt.assignPlayerContainer(r(ao)),Yt==null||Yt.registryExternalEventHandlers({resize:Co,leavepictureinpicture:Bo})),e.interactiveContainer&&((Et=tt().parentElement)==null||Et.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(ar),window.clearTimeout(lr),window.clearTimeout(In),window.clearTimeout(Qo),Qi(),Yt==null||Yt.dispose().catch(ei=>{Ye({message:String(ei)})}),Cc(Gi)}});let No=()=>{let $e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Vt()?r(ao):Vt(),Et=$e.getRootNode(),ei=Et instanceof ShadowRoot?Et.host:Et,Gt=vt()instanceof HTMLElement&&vt().contains(ei);return e.uiConfig.allowChangingFullscreenTarget&&vt()&&Gt?vt():$e},To=async()=>{_s()?(await wc(document),Ye({message:"exit fullscreen"})):(Ye({message:"request fullscreen"}),await xc(No()))},Ze=()=>{sr(),Jt.set(!1)},Ct=$e=>{w()||($e.preventDefault(),Jt.set(!0),ln.set({left:$e.clientX,top:$e.clientY}))};function Ii(){So.set(!0),ci||ct(e.uiConfig.controls.hideTimeoutCursor)}function Mi(){ci||(kn.set(!0),ct(e.uiConfig.controls.hideTimeoutCursor))}function Li(){So.set(!1),O(co,!1),O(En,!1),jt=!1,e.store.actions.internal.releaseCamera(),ct(e.uiConfig.controls.hideTimeout)}function gi($e){return $e?$e.offsetTop+gi($e.offsetParent):0}function Yi($e){return $e?$e.offsetLeft+Yi($e.offsetParent):0}function Vi($e){if(Y()&&Vo){let Et=$e.currentTarget,ei=gi(Et),Gt=Yi(Et),po=$e.pageX-Gt,Ri=$e.pageY-ei,{left:ti,bottom:ai,right:hi}=Y(),Ui=hi-ti;return po>=ti-Ui&&Ri<=ai+Ui}}function Rn($e){if(r(ao)){let Et=gi($e.currentTarget),ei=T().height,Gt=$e.pageY-Et;if(Vi($e)){O(co,!1);return}Gt<40?O(co,!0):Gt>ei-40?O(En,!0):(O(co,!1),f()||O(En,!1))}}function mr($e){Rn($e),r(Yo)||ct(e.uiConfig.controls.hideTimeoutCursor),U()&&jt&&jo&&e.store.actions.internal.moveCameraFocusPX(jo.clientX-$e.clientX,jo.clientY-$e.clientY,$e.timeStamp-jo.timeStamp),jo=$e}let Bn=$e=>{$e.preventDefault(),$e.button===0&&(jt=!0,e.store.actions.internal.holdCamera()),ct(e.uiConfig.controls.hideTimeoutCursor)},Mr=$e=>{$e.preventDefault(),$e.button===0&&(jo=$e,jt=!1,e.store.actions.internal.releaseCamera()),ct(e.uiConfig.controls.hideTimeoutCursor)},uo=$e=>{Ze(),Ko.set(!0),ct(e.uiConfig.controls.hideTimeout),$e&&xi(e.uiConfig.controls.hideHotKeyHelpers,$e)},Lr=()=>{var $e,Et;Ze(),($e=e.store.callbacks)!=null&&$e.onOpenHotKeyMap?(Et=e.store.callbacks)==null||Et.onOpenHotKeyMap(oe()):Ti.update(ei=>!ei)},jn=()=>{Ko.set(!0)},Vr=e.store.ui.contextMenu.openedByBtnKeyboard$,vr=e.store.ui.contextMenu.btnRef$,pn=ee(void 0),Zn=e.store.ui.contextMenu.openedByHotKey$,gr=e.store.ui.contextMenu.lastActiveElem$;je(()=>{sn.set(r(un))}),je(()=>{O(Wi,he(r(An)&&J()!==c1.PLAYING)),r(An)||ht(()=>O(An,!0))}),je(()=>{Lo.set((r(Wi)||A()||f()||ce()||le()||Le()||Re())&&!r(Yo)&&(a()==="video"||a()==="ads")&&!l())}),je(()=>{!ce()&&r(Yn)&&!p()&&ct(e.uiConfig.controls.hideTimeoutCursor),ht(()=>O(Yn,he(ce())))}),je(()=>{r(dn),f(),X(),ht(()=>Da(r(dn),f(),X()))}),je(()=>{r(pn),Z(),Me(),ht(()=>Da(r(pn),Z(),Me()))}),je(()=>{let $e=j();$e&&(Z(),ht(()=>Na($e,Z(),Vr)))}),je(()=>{r(pn),Z(),N(),ht(()=>Da(r(pn),Z(),N()))}),je(()=>{let $e=Ve();$e&&(Z(),ht(()=>mh($e,Z(),Zn)))}),je(()=>{var $e;!xe()&&y()&&(ht(()=>yo.set(!1)),($e=Qt())==null||$e.focus())}),je(()=>{w()&&Ze()});let Nn=F("video360");var Io=O3();It("blur",Ns,Ze),Io.__mousemove=mr;var Xn=h(Io);let hr=m(()=>a()==="ads"),et=m(()=>r(Pr)?Vn:void 0);lt(Bp(Xn,{toggleFullscreen:To,hideContextMenu:Ze,showHotKeyHelpers:uo,showKeyMap:Lr,get isAds(){return r(hr)},get fakePlayButtonHandler(){return r(et)},get nextButtonActive(){return W()},get prevButtonActive(){return se()},children:($e,Et)=>{var ei=D3(),Gt=ge(ei);let po;Gt.__contextmenu=Ct,Gt.__mousedown=Bn,Gt.__mouseup=Mr,Gt.__click=[P3,Z,Jt,f,H,Ze,A,ro,Fi,Pr,Vn,Qt,qe,e,ct,J,li],Gt.__dblclick=[A3,dr,Ye,To,ct,e];var Ri=h(Gt);let ti;lt(Ri,hi=>tt(hi),()=>tt()),g(Gt);var ai=M(Gt,2);xl(ai,Be,hi=>{var Ui=N3(),ko=ge(Ui);let si=m(()=>a()!=="thumb"||l()||ci&&e.autoplay);_d(ko,{get hidden(){return r(si)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var qr=M(ko,2);{var ze=He=>{let Xt=m(()=>{var fo;return(fo=e.live)==null?void 0:fo.startTime});bd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Xt)}})};B(qr,He=>{a()==="LiveWaitingStart"&&He(ze)})}var Bt=M(qr,2);{var _i=He=>{aa(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Bt,He=>{a()==="LiveWaitingRecover"&&He(_i)})}var Eo=M(Bt,2);{var fn=He=>{aa(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Eo,He=>{a()==="LiveWaitingRecord"&&He(fn)})}var Kr=M(Eo,2);{var Dn=He=>{var Xt=L3();let fo;var ks=h(Xt);Bl(ks,{get adsSlotId(){return Lt()},get adsParams(){return rt()},get adsPreviewParam(){return ft()},get adsAutoplayParam(){return Ht()},get duration(){return Ut()}}),g(Xt),k(Oo=>fo=te(Xt,1,"ads-container svelte-1b9vdl1",null,fo,Oo),[()=>({hidden:a()!=="ads"})]),b(He,Xt)};B(Kr,He=>{e.showAds&&qe()&&He(Dn)})}var Rr=M(Kr,2);{var ja=He=>{let Xt=m(()=>!$t()&&e.showAutoplayNext&&S());Lp(He,{get title(){return pe()},get thumb(){return Ce()},get isHide(){return r(Xt)},clickCloseIcon:()=>O(Mn,!0)})};B(Rr,He=>{r(Ln)&&pe()&&Ce()&&He(ja)})}var Ts=M(Rr,2);{var _r=He=>{let Xt=m(()=>!u());Qf(He,{get title(){return e.title},get isHidden(){return r(Xt)}})};B(Ts,He=>{r(cr)&&He(_r)})}var da=M(Ts,2);{var ca=He=>{let Xt=m(()=>a()==="video"&&u());md(He,{get isShifted(){return r(Xt)}})};B(da,He=>{U()&&He(ca)})}var Is=M(da,2);{var gt=He=>{var Xt=V3(),fo=h(Xt);Vl(fo,{"aria-label":Nn}),g(Xt),b(He,Xt)};B(Is,He=>{ue()&&He(gt)})}var mt=M(Is,2);{var ji=He=>{gd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};B(mt,He=>{Le()&&He(ji)})}var Do=M(mt,2);{var Zi=He=>{vd(He,{get shifted(){return u()},get captions(){return Ee()},get position(){return Qe()},get playerSize(){return T()}})};B(Do,He=>{de().value!=="off"&&He(Zi)})}var ii=M(Do,2);{var ki=He=>{var Xt=R3();Xt.__contextmenu=Ct,Xt.__click=[M3,Z,Jt,f,H,Ze];var fo=h(Xt);hd(fo,{}),g(Xt),b(He,Xt)};B(ii,He=>{l()&&He(ki)})}var ls=M(ii,2);{var Za=He=>{let Xt=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),fo=m(()=>a()==="ads"),ks=m(()=>e.canRewindLive&&at()!==0);fd(He,{get bottomHidden(){return r(Xt)},get bottomNoSmooth(){return z()},get showControls(){return u()},get isAds(){return r(fo)},get canRewindLive(){return r(ks)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ne()},get nextButtonActive(){return W()},get prevButtonActive(){return se()},get isOneVideoPlaylist(){return Oe()},customFullscreenSupported:dr,toggleFullscreen:To,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Je)},set playerControlsWrapperRef(Oo){O(Je,he(Oo))},get playerControlsRef(){return r(Wo)},set playerControlsRef(Oo){O(Wo,he(Oo))}})};B(ls,He=>{qe()&&He(Za)})}var Bd=M(ls,2);{var au=He=>{var Xt=B3(),fo=h(Xt);let ks=m(()=>{var Oo;return(Oo=r(Wo))==null?void 0:Oo.clientHeight});xd(fo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ks)},returnFocus:()=>{var Oo;return(Oo=Qt())==null?void 0:Oo.focus()},get ref(){return r(dn)},set ref(Oo){O(dn,he(Oo))}}),g(Xt),b(He,Xt)};B(Bd,He=>{!Le()&&a()!=="ads"&&He(au)})}var Nd=M(Bd,2);let ua=m(()=>!r(Pn));Dl(Nd,{get isLive(){return Ae()},get isHidden(){return r(ua)},get isPlaying(){return re()},get position(){return Qe()},get duration(){return ye()}});var Dd=M(Nd,2);zf(Dd,{data:Ro});var Xa=M(Dd,2);Mp(Xa,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=Qt())==null?void 0:He.focus()},get visible(){return Z()},get playerContainerRef(){return r(ao)},get controlsContainerRef(){return r(Je)},get position(){return Pe()},get menuElementRef(){return r(pn)},set menuElementRef(He){O(pn,he(He))}});var Ja=M(Xa,2);{var lu=He=>{wd(He,{onClose:Pi,onSelectAutoQuality:()=>{Er("auto"),Pi()}})};B(Ja,He=>{r(cn)&&He(lu)})}var el=M(Ja,2);{var tl=He=>{Js(He,{})};B(el,He=>{r(wo)&&He(tl)})}var il=M(el,2);{var du=He=>{Op(He,{})};B(il,He=>{nt()&&He(du)})}var ol=M(il,2);{var cu=He=>{Ul(He,{})};B(ol,He=>{pt()&&He(cu)})}var uu=M(ol,2);Cl(uu,()=>"slot",!1,(He,Xt)=>{Se(He,null,{name:Sd})}),b(hi,Ui)}),k((hi,Ui)=>{po=te(Gt,1,"video-wrapper svelte-1b9vdl1",null,po,hi),ti=te(Ri,1,"video-container svelte-1b9vdl1",null,ti,Ui),ot(Ri,`transform: rotate(${E()}deg) scale(${r(ur)})`),De(Ri,"data-is-playing",re())},[()=>({hidden:a()!=="video",nocursor:r(Ar)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b($e,ei)},$$slots:{default:!0}}),$e=>Qt($e),()=>Qt());var Dt=M(Xn,2);lt(Dt,$e=>O(un,$e),()=>r(un)),g(Io),lt(Io,$e=>O(ao,$e),()=>r(ao)),It("mouseenter",Io,Ii),It("mouseleave",Io,Li),It("click",Io,jn,!0),It("focusin",Io,Mi,!0),b(t,Io),K(),o()}st(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as Cd,PlaybackState as j3}from"@vkontakte/videoplayer-core/es2018";import{noop as Z3}from"@vkontakte/videoplayer-shared/es2018";var F3=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),U3=L("<div><!></div>"),z3={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;
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 wd(t,e){q(e,!0),Q(t,A3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=we(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=E3(),d=h(s),l=h(d),p=h(l),f=h(p);yd(f,{message:a}),g(p);var _=M(p,2);{var u=w=>{let y=m(()=>n("slow_video_notification_button"));xm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(_,w=>{o||w(u)})}g(l);var $=M(l,2);Js($,{get onClick(){return e.onClose}}),g(d),g(s),lp(3,d,()=>u1,()=>({duration:i})),b(t,s),K()}var Sd="annotation",iu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",Sd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var P3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),M3={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;
310
+
311
+ animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
+
313
+ @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
314
+ from {
315
+ opacity: 0;
316
+ scale: 0.6;
317
+ }
318
+
319
+ 10% {
320
+ opacity: 1;
321
+ scale: 1;
322
+ animation-timing-function: ease-in;
323
+ }
324
+
325
+ 75% {
326
+ opacity: 1;
327
+ scale: 1;
328
+ }
329
+
330
+ 90% {
331
+ opacity: 0;
332
+ scale: 0.4;
333
+ animation-timing-function: ease-out;
334
+ }
335
+
336
+ to {
337
+ opacity: 0;
338
+ scale: 0;
339
+ }
340
+ }`};function wm(t,e){q(e,!0),Q(t,M3);let[i,o]=Fe(),n=()=>C(s,"$isPlaying$",i),a=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=we(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:_}}=qt(),u=0,$=ee(null),w=ee(!1);Ke(()=>{O($,me(n()?Ir:ss))}),Ke(()=>{O($,me(a()?Ts:null))}),Ke(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===Ts&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),O($,null)},r($)!==Ts?f:_),()=>{u&&(window.clearTimeout(u),u=0)}}),Ke(()=>{n()&&!r(w)&&(O(w,!0),O($,null))});var y=qe(),S=ue(y);{var I=A=>{var P=qe(),E=ue(P);zs(E,()=>r($),T=>{var V=P3(),U=h(V),Y=h(U);let F=m(()=>a()==="prev");bi(Y,()=>r($),(j,X)=>{X(j,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(U),g(V),k(()=>et(U,`animation-duration: ${r($)!==Ts?f:_}ms`)),b(T,V)}),b(A,P)};R(S,A=>{r($)&&p&&A(I)})}b(t,y),K(),o()}var L3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},V3=(t,e,i,o,n,a,s,d,l,p,f,_,u,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(p))return f();if((I=_())==null||I.focus(),!u()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==f1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},R3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},N3=L("<div><!></div>"),B3=L('<div class="spherical-video-icon svelte-cy741x"><!></div>'),D3=L("<div><!></div>"),O3=L('<div class="settings-menu svelte-cy741x"><!></div>'),H3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),F3=L('<div><div data-testid="video-container"></div></div> <!>',1),U3=L('<div class="blocked svelte-cy741x"></div>'),z3=L('<div class="player-wrapper svelte-cy741x"><!> <div class="overlay-container"></div></div> <!>',1),q3={hash:"svelte-cy741x",code:`.player-wrapper.svelte-cy741x {position:absolute;width:100%;height:100%;}.blocked.svelte-cy741x {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-cy741x .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-cy741x {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-cy741x,
341
+ .video-container.svelte-cy741x,
342
+ .ads-container.svelte-cy741x {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-cy741x {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-cy741x {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-cy741x {transition:none;}.nocursor.svelte-cy741x {cursor:none;}.ads-container.svelte-cy741x {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-cy741x {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Sm(t,e){q(e,!0),Q(t,q3);let[i,o]=Fe(),n=()=>C(Qi,"$notificationsToShow$",i),a=()=>C(Oo,"$playerPhase",i),s=()=>C(mo,"$isLoaderVisible",i),d=()=>C(Co,"$adPlaybackState",i),l=()=>C(Io,"$crashed",i),p=()=>C(yi,"$isInteractiveTime$",i),f=()=>C(Wt,"$settingsMenuVisible",i),_=()=>C(ho,"$isInteractiveExpectation$",i),u=()=>C(z,"$controlsVisible",i),$=()=>C(tn,"$touched",i),w=()=>C(tt,"$graphIsOpened$",i),y=()=>C(Mt,"$isFullscreen",i),S=()=>C(Dn,"$autoplayNextEnabled$",i),I=()=>C(li,"$postrollPassed",i),A=()=>C(Hi,"$isEnded$",i),P=()=>C(Ao,"$cursorInside",i),E=()=>C(Li,"$rotateAlpha",i),T=()=>C($t,"$playerSize",i),V=()=>C(rn,"$fakeIsPlaying$",i),U=()=>C(no,"$bottomNoSmooth",i),Y=()=>C(ko,"$interactiveTimeIndicator",i),F=()=>C(vi,"$is3DVideo",i),j=()=>C(ei,"$contextMenuVisible$",i),X=()=>C(ki,"$playbackState$",i),oe=()=>C(xi,"$hotKeyMapData",i),pe=()=>C(Mi,"$scrubbingInProgress",i),le=()=>C(mi,"$volumeChangingInProgress",i),Ve=()=>C(Ho,"$chromecastConnected$",i),Me=()=>C(ln,"$controlsTimeoutActive",i),J=()=>C(Oi,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(Mr,"$contextMenuOpenedByKeyboard$",i),Z=()=>C(vr,"$contextMenuButtonRef$",i),B=()=>C(pn,"$contextMenuOpenedByHotKey$",i),Re=()=>C(qr,"$contextMenuLastActiveElem$",i),ne=()=>C(ht,"$isFullscreenOpenedByKeyboard",i),ke=()=>C(zt,"$isPlaying$",i),Ne=()=>C(Jt,"$language$",i),fe=()=>C(Ui,"$icon3DVideoVisible",i),D=()=>C(Bt,"$chromecastDeviceName$",i),de=()=>C(vo,"$currentSubtitle$",i),Ee=()=>C(Fo,"$currentSubtitleCaptions$",i),Ge=()=>C(Di,"$position$",i),lt=()=>C(ri,"$realDuration$",i),Ae=()=>C(xt,"$isLive$",i),$e=()=>C(To,"$duration$",i),Pe=()=>C(rr,"$contextMenuPosition$",i),nt=()=>C(wn,"$showHotKeyMap",i),mt=()=>C(oo,"$debugPanelVisible",i),at=()=>C(nn,"$userActionsDisabled$",i),It=v(e,"videoContainer",15),rt=v(e,"adsSlotId",3,void 0),vt=v(e,"adsParams",3,void 0),Ut=v(e,"adsPreviewParam",3,void 0),Qt=v(e,"adsAutoplayParam",3,void 0),Be=v(e,"duration",3,void 0),re=v(e,"logoTargetUrl",3,""),W=v(e,"showNextPrevButtons",3,!1),se=v(e,"nextButtonActive",3,!1),he=v(e,"prevButtonActive",3,!1),Se=v(e,"endScreenVideoTitle",3,void 0),De=v(e,"endScreenVideoThumb",3,void 0),ct=v(e,"isOneVideoPlaylist",3,!1),Kt=v(e,"shadowRootContainer",3,void 0),je=v(e,"outerContainerRef",3,void 0),ut=v(e,"playerStarted",3,!1),Xe=v(e,"fullScreenTarget",3,void 0),Et=v(e,"showMiniTimer",3,!1),ni=v(e,"showEndScreen",3,!0),Qe=v(e,"keyboardControls",15),it=e.store.getLogger().createComponentLog("Root component"),Jt=e.store.interfaceLanguage$,ki=e.store.state.playbackState$,Co=e.store.ads.playbackState,Di=e.store.state.positionWithScrubbing$,To=e.store.state.duration$,Oo=e.store.playerPhase,Mt=e.store.ui.isFullscreen,ht=e.store.ui.isFullscreenOpenedByKeyboard,z=e.store.ui.controlsVisible,Wt=e.store.ui.settingsMenu.visible$,Oi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Mi=e.store.ui.scrubbingInProgress,mi=e.store.ui.volumeChangingInProgress,ei=e.store.ui.contextMenu.visible$,oo=e.store.ui.debugPanelVisible,mo=e.store.state.isLoaderVisible,Hi=e.store.state.isEnded$,Ho=e.store.state.chromecastConnected$,Bt=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,xt=e.store.state.isLive$,zt=e.store.state.isPlaying$,Io=e.store.state.crashed$,Fi=e.store.webApi.annotationsApi,ai=e.store.webApi.pictureInPictureApi,vo=e.store.state.currentSubtitle$,Fo=e.store.state.currentSubtitleCaptions$,ri=e.store.state.duration$,$t=e.store.ui.playerSize,vi=e.store.ui.is3DVideo,Ui=e.store.ui.icon3DVideoVisible,Li=e.store.ui.rotateAlpha,go=e.store.state.isInteractive,yi=e.store.state.isInteractiveTime$,ho=e.store.state.isInteractiveExpectation$,xn=e.store.state.hasInteractiveBranches,tn=e.store.ui.touched,xi=e.store.ui.modals.hotKeyMap.data,wn=e.store.ui.modals.hotKeyMap.show,on=e.store.ui.overlayContainer$,ko=e.store.ui.controls.interactiveTimeIndicator,Sn=e.store.state.showInteractiveTimeIndicator,rr=e.store.ui.contextMenu.position$,sr=e.store.actions.internal.setQuality,Bn=e.store.actions.internal.closeSettingsMenu,Dn=e.store.ui.autoplayNextEnabled$,nn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:rn,notifications$:ar,graphIsOpened$:tt}=io(),Wi=ee(void 0),lr=ee(void 0),On=ee(void 0),sn=ee(void 0),an,Eo,_o;xi.set(uh());let{closeNotification:zi,notificationsToShow$:Qi}=ar,Hn=m(()=>!!n().slow_video),Fn=()=>zi("slow_video"),Er=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Un=ee(void 0),no=ae(!1),bo,ln=ae(!1),Cn=ae(),Ao=ae(!1),qi=ee(!1),Uo=ee(!1),$o=ee(!1),dr=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),dn=m(()=>p()&&!f()&&!(r(qi)||r(Uo))&&!(r($o)&&!_())),zn=!0,qn=m(()=>e.uiConfig.features.thumbTimer&&Et()&&a()==="video"&&!u()&&!l()&&!go&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Kn=m(()=>a()==="video"&&!w()&&y()),cr=ee(!1),Wn=m(()=>(ni()||e.showAutoplayNext&&S())&&!!Se()&&!!De()&&(e.showAds&&I()||!e.showAds)&&A()&&!l()&&!r(cr)),ur=m(()=>P()&&!(u()||r(Wn))&&!p()),Qn=ee(!1),Gn=m(()=>It()&&E()%180?T().height/T().width:1),oi=m(()=>V()!==null),{toggle:pr}=rn,cn=!1,zo=null;ai==null||ai.setContext($l());let ot=()=>{e.autoplay&&!go&&e.uiConfig.controls.showOnStartupAtAutoplay&&ti(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ot});let At=()=>{window.clearTimeout(an),ln.set(!1)},wi=()=>{window.clearTimeout(Eo),Cn.set(null)},ti=Ce=>{At(),ln.set(!0),an=window.setTimeout(()=>ln.set(!1),Ce);let pt=Ce-100;bo=window.setTimeout(()=>{U()&&no.set(!1)},pt>0?pt:Ce)},Gi=(Ce,pt)=>{wi(),Cn.set(pt),Eo=window.setTimeout(()=>Cn.set(null),Ce)},yo=vi.subscribe(Ce=>{Ui.set(Ce),Ce&&(window.clearTimeout(_o),_o=window.setTimeout(()=>Ui.set(!1),e.uiConfig.controls.hide360IconTimeout))}),xo=async()=>{var pt,Lt,Ht,Ki;let Ce=bs();if(Ce){let di=Rl(),Gt=Je();Ce=di===Gt||di===Kt()}if(Ce){ti(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ai==null?void 0:ai.remove())}catch(di){it({message:String(di)})}}Mt.set(Ce),e.store.getAdmanWrapper().setFullscreen(Ce),y()?(Lt=(pt=e.store.callbacks)==null?void 0:pt.onFullscreenEnter)==null||Lt.call(pt):(Ki=(Ht=e.store.callbacks)==null?void 0:Ht.onFullscreenExit)==null||Ki.call(Ht)},qo=Ce=>{let{width:pt,height:Lt}=Ce.target;$t.set({width:pt,height:Lt})},Ko=()=>{let{width:Ce,height:pt}=r(Wi).getBoundingClientRect();$t.set({width:Ce,height:pt})};Ot(()=>{var pt;return Ec(xo),e.uiConfig.features.annotationsInside&&(Fi==null||Fi.init(r(Wi))),js(ai)&&(ai==null||ai.assignPlayerContainer(r(Wi)),ai==null||ai.registryExternalEventHandlers({resize:qo,leavepictureinpicture:Ko})),e.interactiveContainer&&((pt=It().parentElement)==null||pt.insertBefore(e.interactiveContainer,It().nextSibling)),()=>{window.clearTimeout(an),window.clearTimeout(bo),window.clearTimeout(Eo),window.clearTimeout(_o),yo(),ai==null||ai.dispose().catch(Lt=>{it({message:String(Lt)})}),Ac(xo)}});let Je=()=>{let Ce=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!je()?r(Wi):je(),pt=Ce.getRootNode(),Lt=pt instanceof ShadowRoot?pt.host:pt,Ht=Xe()instanceof HTMLElement&&Xe().contains(Lt);return e.uiConfig.allowChangingFullscreenTarget&&Xe()&&Ht?Xe():Ce},Ct=async()=>{bs()?(await kc(document),it({message:"exit fullscreen"})):(it({message:"request fullscreen"}),await Ic(Je()))},si=()=>{Bn(),ei.set(!1)},Ei=Ce=>{w()||(Ce.preventDefault(),ei.set(!0),rr.set({left:Ce.clientX,top:Ce.clientY}))};function Vi(){Ao.set(!0),go||ti(e.uiConfig.controls.hideTimeoutCursor)}function Si(){go||(no.set(!0),ti(e.uiConfig.controls.hideTimeoutCursor))}function ro(){Ao.set(!1),O(Uo,!1),O(qi,!1),cn=!1,e.store.actions.internal.releaseCamera(),ti(e.uiConfig.controls.hideTimeout)}function Ci(Ce){return Ce?Ce.offsetTop+Ci(Ce.offsetParent):0}function un(Ce){return Ce?Ce.offsetLeft+un(Ce.offsetParent):0}function fr(Ce){if(Y()&&Sn){let pt=Ce.currentTarget,Lt=Ci(pt),Ht=un(pt),Ki=Ce.pageX-Ht,di=Ce.pageY-Lt,{left:Gt,bottom:Lr,right:He}=Y(),Tt=He-Gt;return Ki>=Gt-Tt&&di<=Lr+Tt}}function Tn(Ce){if(r(Wi)){let pt=Ci(Ce.currentTarget),Lt=T().height,Ht=Ce.pageY-pt;if(fr(Ce)){O(Uo,!1);return}Ht<40?O(Uo,!0):Ht>Lt-40?O(qi,!0):(O(Uo,!1),f()||O(qi,!1))}}function Ar(Ce){Tn(Ce),r(dn)||ti(e.uiConfig.controls.hideTimeoutCursor),F()&&cn&&zo&&e.store.actions.internal.moveCameraFocusPX(zo.clientX-Ce.clientX,zo.clientY-Ce.clientY,Ce.timeStamp-zo.timeStamp),zo=Ce}let so=Ce=>{Ce.preventDefault(),Ce.button===0&&(cn=!0,e.store.actions.internal.holdCamera()),ti(e.uiConfig.controls.hideTimeoutCursor)},Pr=Ce=>{Ce.preventDefault(),Ce.button===0&&(zo=Ce,cn=!1,e.store.actions.internal.releaseCamera()),ti(e.uiConfig.controls.hideTimeoutCursor)},Yn=Ce=>{si(),tn.set(!0),ti(e.uiConfig.controls.hideTimeout),Ce&&Gi(e.uiConfig.controls.hideHotKeyHelpers,Ce)},zr=()=>{var Ce,pt;si(),(Ce=e.store.callbacks)!=null&&Ce.onOpenHotKeyMap?(pt=e.store.callbacks)==null||pt.onOpenHotKeyMap(oe()):wn.update(Lt=>!Lt)},mr=()=>{tn.set(!0)},Mr=e.store.ui.contextMenu.openedByBtnKeyboard$,vr=e.store.ui.contextMenu.btnRef$,Po=ee(void 0),pn=e.store.ui.contextMenu.openedByHotKey$,qr=e.store.ui.contextMenu.lastActiveElem$;Ke(()=>{on.set(r(Un))}),Ke(()=>{O($o,me(r(dr)&&X()!==f1.PLAYING)),r(dr)||bt(()=>O(dr,!0))}),Ke(()=>{z.set((r($o)||A()||f()||pe()||le()||Ve()||Me())&&!r(dn)&&(a()==="video"||a()==="ads")&&!l())}),Ke(()=>{!pe()&&r(Qn)&&!p()&&ti(e.uiConfig.controls.hideTimeoutCursor),bt(()=>O(Qn,me(pe())))}),Ke(()=>{r(sn),f(),J(),bt(()=>Ha(r(sn),f(),J()))}),Ke(()=>{r(Po),j(),Le(),bt(()=>Ha(r(Po),j(),Le()))}),Ke(()=>{let Ce=Z();Ce&&(j(),bt(()=>Oa(Ce,j(),Mr)))}),Ke(()=>{r(Po),j(),B(),bt(()=>Ha(r(Po),j(),B()))}),Ke(()=>{let Ce=Re();Ce&&(j(),bt(()=>hh(Ce,j(),pn)))}),Ke(()=>{var Ce;!ne()&&y()&&(bt(()=>ht.set(!1)),(Ce=Qe())==null||Ce.focus())}),Ke(()=>{w()&&si()});let gr=H("video360");var jn=z3();kt("blur",Ds,si);var Ze=ue(jn);Ze.__mousemove=Ar;var Dt=h(Ze);let hi=m(()=>a()==="ads"),fn=m(()=>r(oi)?pr:void 0);dt(Up(Dt,{toggleFullscreen:Ct,hideContextMenu:si,showHotKeyHelpers:Yn,showKeyMap:zr,get isAds(){return r(hi)},get fakePlayButtonHandler(){return r(fn)},get nextButtonActive(){return se()},get prevButtonActive(){return he()},children:(Ce,pt)=>{var Lt=F3(),Ht=ue(Lt);let Ki;Ht.__contextmenu=Ei,Ht.__mousedown=so,Ht.__mouseup=Pr,Ht.__click=[V3,j,ei,f,Wt,si,A,Hi,xn,oi,pr,Qe,ut,e,ti,X,ki],Ht.__dblclick=[L3,zn,it,Ct,ti,e];var di=h(Ht);let Gt;dt(di,He=>It(He),()=>It()),g(Ht);var Lr=M(Ht,2);zs(Lr,Ne,He=>{var Tt=H3(),gi=ue(Tt);let Mo=m(()=>a()!=="thumb"||l()||go&&e.autoplay);_d(gi,{get hidden(){return r(Mo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Wo=M(gi,2);wm(Wo,{});var Kr=M(Wo,2);{var kn=Ue=>{let ze=m(()=>{var Vo;return(Vo=e.live)==null?void 0:Vo.startTime});bd(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ze)}})};R(Kr,Ue=>{a()==="LiveWaitingStart"&&Ue(kn)})}var Vr=M(Kr,2);{var Xa=Ue=>{la(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Vr,Ue=>{a()==="LiveWaitingRecover"&&Ue(Xa)})}var ks=M(Vr,2);{var hr=Ue=>{la(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(ks,Ue=>{a()==="LiveWaitingRecord"&&Ue(hr)})}var ca=M(ks,2);{var ua=Ue=>{var ze=N3();let Vo;var ds=h(ze);Nl(ds,{get adsSlotId(){return rt()},get adsParams(){return vt()},get adsPreviewParam(){return Ut()},get adsAutoplayParam(){return Qt()},get duration(){return Be()}}),g(ze),k(Ro=>Vo=te(ze,1,"ads-container svelte-cy741x",null,Vo,Ro),[()=>({hidden:a()!=="ads"})]),b(Ue,ze)};R(ca,Ue=>{e.showAds&&ut()&&Ue(ua)})}var Es=M(ca,2);{var _t=Ue=>{let ze=m(()=>!ni()&&e.showAutoplayNext&&S());Op(Ue,{get title(){return Se()},get thumb(){return De()},get isHide(){return r(ze)},clickCloseIcon:()=>O(cr,!0)})};R(Es,Ue=>{r(Wn)&&Se()&&De()&&Ue(_t)})}var gt=M(Es,2);{var Yi=Ue=>{let ze=m(()=>!u());Xf(Ue,{get title(){return e.title},get isHidden(){return r(ze)}})};R(gt,Ue=>{r(Kn)&&Ue(Yi)})}var Lo=M(gt,2);{var ji=Ue=>{let ze=m(()=>a()==="video"&&u());md(Ue,{get isShifted(){return r(ze)}})};R(Lo,Ue=>{F()&&Ue(ji)})}var ii=M(Lo,2);{var Ai=Ue=>{var ze=B3(),Vo=h(ze);Vl(Vo,{"aria-label":gr}),g(ze),b(Ue,ze)};R(ii,Ue=>{fe()&&Ue(Ai)})}var ls=M(ii,2);{var Ja=Ue=>{gd(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(ls,Ue=>{Ve()&&Ue(Ja)})}var Rd=M(ls,2);{var fu=Ue=>{vd(Ue,{get shifted(){return u()},get captions(){return Ee()},get position(){return Ge()},get playerSize(){return T()}})};R(Rd,Ue=>{de().value!=="off"&&Ue(fu)})}var Nd=M(Rd,2);{var pa=Ue=>{var ze=D3();ze.__contextmenu=Ei,ze.__click=[R3,j,ei,f,Wt,si];var Vo=h(ze);hd(Vo,{}),g(ze),b(Ue,ze)};R(Nd,Ue=>{l()&&Ue(pa)})}var Bd=M(Nd,2);{var Dd=Ue=>{let ze=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Vo=m(()=>a()==="ads"),ds=m(()=>e.canRewindLive&&lt()!==0);fd(Ue,{get bottomHidden(){return r(ze)},get bottomNoSmooth(){return U()},get showControls(){return u()},get isAds(){return r(Vo)},get canRewindLive(){return r(ds)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return re()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return W()},get nextButtonActive(){return se()},get prevButtonActive(){return he()},get isOneVideoPlaylist(){return ct()},customFullscreenSupported:zn,toggleFullscreen:Ct,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(lr)},set playerControlsWrapperRef(Ro){O(lr,me(Ro))},get playerControlsRef(){return r(On)},set playerControlsRef(Ro){O(On,me(Ro))}})};R(Bd,Ue=>{ut()&&Ue(Dd)})}var el=M(Bd,2);{var mu=Ue=>{var ze=O3(),Vo=h(ze);let ds=m(()=>{var Ro;return(Ro=r(On))==null?void 0:Ro.clientHeight});xd(Vo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ds)},returnFocus:()=>{var Ro;return(Ro=Qe())==null?void 0:Ro.focus()},get ref(){return r(sn)},set ref(Ro){O(sn,me(Ro))}}),g(ze),b(Ue,ze)};R(el,Ue=>{!Ve()&&a()!=="ads"&&Ue(mu)})}var tl=M(el,2);let il=m(()=>!r(qn));Dl(tl,{get isLive(){return Ae()},get isHidden(){return r(il)},get isPlaying(){return ke()},get position(){return Ge()},get duration(){return $e()}});var ol=M(tl,2);Gf(ol,{data:Cn});var Od=M(ol,2);Dp(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=Qe())==null?void 0:Ue.focus()},get visible(){return j()},get playerContainerRef(){return r(Wi)},get controlsContainerRef(){return r(lr)},get position(){return Pe()},get menuElementRef(){return r(Po)},set menuElementRef(Ue){O(Po,me(Ue))}});var nl=M(Od,2);{var vu=Ue=>{wd(Ue,{onClose:Fn,onSelectAutoQuality:()=>{sr("auto"),Fn()}})};R(nl,Ue=>{r(Hn)&&Ue(vu)})}var Hd=M(nl,2);{var gu=Ue=>{ta(Ue,{})};R(Hd,Ue=>{r(Er)&&Ue(gu)})}var Fd=M(Hd,2);{var fa=Ue=>{Kp(Ue,{})};R(Fd,Ue=>{nt()&&Ue(fa)})}var Ud=M(Fd,2);{var zd=Ue=>{Ul(Ue,{})};R(Ud,Ue=>{mt()&&Ue(zd)})}var hu=M(Ud,2);Cl(hu,()=>"slot",!1,(Ue,ze)=>{xe(Ue,null,{name:Sd})}),b(He,Tt)}),k((He,Tt)=>{Ki=te(Ht,1,"video-wrapper svelte-cy741x",null,Ki,He),Gt=te(di,1,"video-container svelte-cy741x",null,Gt,Tt),et(di,`transform: rotate(${E()}deg) scale(${r(Gn)})`),Oe(di,"data-is-playing",ke())},[()=>({hidden:a()!=="video",nocursor:r(ur)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(Ce,Lt)},$$slots:{default:!0}}),Ce=>Qe(Ce),()=>Qe());var mn=M(Dt,2);dt(mn,Ce=>O(Un,Ce),()=>r(Un)),g(Ze),dt(Ze,Ce=>O(Wi,Ce),()=>r(Wi));var In=M(Ze,2);{var Zn=Ce=>{var pt=U3();b(Ce,pt)};R(In,Ce=>{at()&&Ce(Zn)})}kt("mouseenter",Ze,Vi),kt("mouseleave",Ze,ro),kt("click",Ze,mr,!0),kt("focusin",Ze,Si,!0),b(t,jn),K(),o()}st(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as Cd,PlaybackState as ex}from"@vkontakte/videoplayer-core/es2018";import{noop as tx}from"@vkontakte/videoplayer-shared/es2018";var K3=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),W3=L("<div><!></div>"),Q3={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;
312
343
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
313
344
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
314
345
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -324,9 +355,9 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
324
355
  100% {
325
356
  opacity: 0;
326
357
  }
327
- }.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 Xc(t,e){q(e,!0),Q(t,z3);let i=v(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(he(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};_n(()=>{window.clearTimeout(n)});var l=U3();l.__click=d;var p=h(l);{var f=_=>{var u=F3(),$=ge(u),w=M($,2),y=h(w),S=h(y),I=M(S,2),A=M(I,2);g(y);var P=M(y,2),E=h(P,!0);g(P),g(w),k(T=>{var R,z,Y,U;te($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(A,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),fe(E,T)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,u)};B(p,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),K()}st(["click"]);var q3=(t,e,i)=>{e(!1),i()},K3=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),W3={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){q(e,!0),Q(t,W3);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Ie(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Nt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),I=ge(S);{var A=P=>{var E=K3(),T=M(ge(E),2),R=h(T),z=h(R),Y=h(z,!0);g(z);var U=M(z,2);Zs(U,{onClick:y}),g(R);var Z=M(R,2);Z.__click=[q3,p,_];var J=h(Z),oe=h(J),ce=h(oe);let le;var Le=M(ce,2);{var Re=N=>{zl(N,{get isRunning(){return a()},onTimerEnded:w})};B(Le,N=>{n()&&N(Re)})}g(oe),g(J);var X=M(J,2),Me=h(X),j=h(Me,!0);g(Me),g(X),g(Z),g(T),k((N,Ve)=>{fe(Y,N),ot(oe,`background-image: url('${e.thumb}')`),le=te(ce,1,"thumb-overlay svelte-1qdxi6t",null,le,Ve),fe(j,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};B(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}st(["click"]);import{clientChecker as Q3}from"@vkontakte/videoplayer-core/es2018";var u1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Q3.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 G3}from"@vkontakte/videoplayer-core/es2018";var Jc=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 Y3}from"@vkontakte/videoplayer-core/es2018";var p1=({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,p=()=>e().querySelector("video"),f=()=>Y3.device.isIOS&&we(s)===G3.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},u=$=>{if(_(),!f()||!$)return;let w=p();if(!w)return;let y=new Jc(w),S=we(d),I=we(a),A=we(n);for(let T of S)I.some(z=>z.value===T.id)&&y.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let R of T)y.updateSrc(R)}),E=()=>{let T=y.getCurrentShowingId();o(we(a).find(R=>R.value===T))};w.textTracks.addEventListener("change",E),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Nt(()=>i.subscribe(u)),_n(_)};var X3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},J3=L("<!> <!>",1),ex=L("<div><!></div>"),tx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),ix=L("<div><!></div>"),ox=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),nx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),rx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),sx={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);}.video-wrapper.svelte-dtyj47,
358
+ }.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 ou(t,e){q(e,!0),Q(t,Q3);let i=v(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(me(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};bn(()=>{window.clearTimeout(n)});var l=W3();l.__click=d;var p=h(l);{var f=_=>{var u=K3(),$=ue(u),w=M($,2),y=h(w),S=h(y),I=M(S,2),A=M(I,2);g(y);var P=M(y,2),E=h(P,!0);g(P),g(w),k(T=>{var V,U,Y,F;te($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(A,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ve(E,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,u)};R(p,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),K()}st(["click"]);var G3=(t,e,i)=>{e(!1),i()},Y3=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),j3={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 Cm(t,e){q(e,!0),Q(t,j3);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=we(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Ot(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),I=ue(S);{var A=P=>{var E=Y3(),T=M(ue(E),2),V=h(T),U=h(V),Y=h(U,!0);g(U);var F=M(U,2);Js(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[G3,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Me=B=>{zl(B,{get isRunning(){return a()},onTimerEnded:w})};R(Ve,B=>{n()&&B(Me)})}g(oe),g(X);var J=M(X,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(j),g(T),k((B,Re)=>{ve(Y,B),et(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-1qdxi6t",null,le,Re),ve(Z,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};R(I,P=>{e.isHide||P(A)})}b(t,S),K(),o()}st(["click"]);import{clientChecker as Z3}from"@vkontakte/videoplayer-core/es2018";var m1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{Z3.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))}),bn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as X3}from"@vkontakte/videoplayer-core/es2018";var nu=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 J3}from"@vkontakte/videoplayer-core/es2018";var v1=({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,p=()=>e().querySelector("video"),f=()=>J3.device.isIOS&&ye(s)===X3.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},u=$=>{if(_(),!f()||!$)return;let w=p();if(!w)return;let y=new nu(w),S=ye(d),I=ye(a),A=ye(n);for(let T of S)I.some(U=>U.value===T.id)&&y.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let V of T)y.updateSrc(V)}),E=()=>{let T=y.getCurrentShowingId();o(ye(a).find(V=>V.value===T))};w.textTracks.addEventListener("change",E),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Ot(()=>i.subscribe(u)),bn(_)};var ix=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ox=L("<!> <!>",1),nx=L("<div><!></div>"),rx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),sx=L("<div><!></div>"),ax=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),lx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),dx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),cx={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);}.video-wrapper.svelte-dtyj47,
328
359
  .video-container.svelte-dtyj47,
329
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.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 $m(t,e){var No,To;q(e,!0),Q(t,sx);let[i,o]=Fe(),n=()=>C(Qt,"$playerPhase",i),a=()=>C(yo,"$isLoaderVisible",i),s=()=>C(vt,"$adPlaybackState",i),d=()=>C(zo,"$crashed",i),l=()=>C(dn,"$notificationsToShow$",i),p=()=>C(qe,"$playbackState$",i),f=()=>C(Oe,"$graphIsOpened$",i),_=()=>C(li,"$interactiveHideMobileControls",i),u=()=>C(Lo,"$isEnded$",i),$=()=>C(yi,"$isInteractiveExpectation$",i),w=()=>C(wt,"$controlsVisible",i),y=()=>C(Ki,"$touched",i),S=()=>C(Ko,"$autoplayNextEnabled$",i),I=()=>C(ni,"$postrollPassed",i),A=()=>C(ri,"$rotateAlpha",i),P=()=>C(yn,"$playerSize",i),E=()=>C(Qo,"$bottomNoSmooth",i),T=()=>C(yt,"$videoSize",i),R=()=>C(Ye,"$isFullscreen",i),z=()=>C(Xe,"$position$",i),Y=()=>C($t,"$duration$",i),U=()=>C(wn,"$loadedMetadata",i),Z=()=>C(oi,"$settingsMenuVisible",i),J=()=>C(Oi,"$scrubbingInProgress",i),oe=()=>C(Mo,"$volumeChangingInProgress",i),ce=()=>C(H,"$chromecastConnected$",i),le=()=>C(qi,"$isInteractiveTime$",i),Le=()=>C(ro,"$isActiveLive",i),Re=()=>C(Ci,"$settingsMenuOpenedByKeyboard",i),X=()=>C(no,"$isPlaying$",i),Me=()=>C(Vt,"$language$",i),j=()=>C(xn,"$disabledControls$",i),N=()=>C(xo,"$is3DVideo",i),Ve=()=>C(qo,"$icon3DVideoVisible",i),xe=()=>C(Ke,"$chromecastDeviceName$",i),re=()=>C(Ft,"$currentSubtitle$",i),Be=()=>C(zi,"$currentSubtitleCaptions$",i),ue=()=>C(Yt,"$realDuration$",i),D=()=>C(ui,"$isLive$",i),de=()=>C($o,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Qe=v(e,"adsSlotId",3,void 0),at=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),ye=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),nt=v(e,"logoTargetUrl",3,""),pt=v(e,"showNextPrevButtons",3,!1),tt=v(e,"nextButtonActive",3,!1),Lt=v(e,"prevButtonActive",3,!1),rt=v(e,"endScreenVideoTitle",3,void 0),ft=v(e,"endScreenVideoThumb",3,void 0),Ht=v(e,"isOneVideoPlaylist",3,!1),Ut=v(e,"shadowRootContainer",3,void 0),Ne=v(e,"outerContainerRef",3,void 0),ne=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),pe=v(e,"showEndScreen",3,!0),{notifications$:Ce,graphIsOpened$:Oe}=oo(),dt=e.store.getLogger().createComponentLog("Root component"),Vt=e.store.interfaceLanguage$,qe=e.store.state.playbackState$,vt=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,$t=e.store.state.duration$,Qt=e.store.playerPhase,Ye=e.store.ui.isFullscreen,wt=e.store.ui.controlsVisible,li=e.store.ui.interactiveHideMobileControls,oi=e.store.ui.settingsMenu.visible$,Ci=e.store.ui.settingsMenu.openedByBtnKeyboard$,Oi=e.store.ui.scrubbingInProgress,Mo=e.store.ui.volumeChangingInProgress,$o=e.store.ui.debugPanelVisible,yo=e.store.state.isLoaderVisible,Lo=e.store.state.isEnded$,H=e.store.state.chromecastConnected$,Ke=e.store.state.chromecastDeviceName$,ni=e.store.ads.postrollPassed,Hi=e.store.ui.mobileUnmuteButtonExpanded,Jt=e.store.ui.mobileUnmuteButtonVisible,ui=e.store.state.isLive$,no=e.store.state.isPlaying$,ro=e.store.state.isActiveLive$,so=e.store.state.isRewindableLive$,zo=e.store.state.crashed$,Rt=e.store.webApi.annotationsApi,di=e.store.webApi.pictureInPictureApi,yt=e.store.state.videoSize$,Ft=e.store.state.currentSubtitle$,zi=e.store.state.currentSubtitleCaptions$,Yt=e.store.state.duration$,yn=e.store.ui.playerSize,xo=e.store.ui.is3DVideo,qo=e.store.ui.icon3DVideoVisible,ri=e.store.ui.rotateAlpha,_t=e.store.state.isInteractive,qi=e.store.state.isInteractiveTime$,yi=e.store.state.isInteractiveExpectation$,ci=e.store.state.hasInteractiveBranches,xn=e.store.ui.controls.disabledControls$,Ki=e.store.ui.touched,Fi=e.store.ui.overlayContainer$,Ko=e.store.ui.autoplayNextEnabled$,wn=e.store.state.loadedMetadata$,Ti=e.store.actions.internal.closeSettingsMenu,sn=(No=e.store.callbacks)==null?void 0:No.onDisabledPlayPrevChapterClick,an=(To=e.store.callbacks)==null?void 0:To.onDisabledSeekToInteractiveClick,Vo=e.store.actions.internal.setQuality,ln=ee(void 0),Er=ee(void 0),sr=ee(void 0),Qn=ee(void 0),Sn,Cn,Tn,ao=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Je=ee(void 0),{closeNotification:Wo,notificationsToShow$:dn}=Ce,ar=m(()=>!!l().slow_video),In=()=>Wo("slow_video"),Qo=ae(!1),Gn,Go=ee(!1),cn=m(()=>p()!==j3.PLAYING),Pi=ee(!1),wo=m(()=>f()||_()||!r(Go)&&(u()&&!!ci||r(cn)&&$())),un=ee(!0),kn=m(()=>e.uiConfig.features.thumbTimer&&ne()&&n()==="video"&&!w()&&!d()&&!_t&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),lr=ee(!1),lo=m(()=>(pe()||e.showAutoplayNext&&S())&&!!rt()&&!!ft()&&(e.showAds&&I()||!e.showAds)&&u()&&!d()&&!r(lr)),Ro=ee(!1),So=m(()=>Ee()&&A()%180?P().height/P().width:1);di==null||di.setContext(bl());let En=Ze=>{clearTimeout(Cn),Ze&&(Jt.set(!0),Hi.set(!0),Cn=setTimeout(()=>{Hi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),_t||Wi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:En});let co=()=>{clearTimeout(Sn),O(Go,!1),_()&&li.set(!1)},Wi=Ze=>{co(),O(Go,!0),Sn=setTimeout(()=>O(Go,!1),Ze);let Ct=Ze-100;Gn=setTimeout(()=>{E()&&Qo.set(!1)},Ct>0?Ct:Ze)},An=xo.subscribe(Ze=>{qo.set(Ze),Ze&&(clearTimeout(Tn),Tn=setTimeout(()=>qo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Yo=async(Ze=_s())=>{var Ct,Ii,Mi,Li,gi,Yi;if(Ze&&!Cd.device.isIOS){let Vi=Rl(),Rn=Ln(),mr=Cd.browser.isSamsungBrowser&&Vi===Ut();Ze=Vi===Rn||mr}if(Ze){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(di==null?void 0:di.remove())}catch(Vi){dt({message:String(Vi)})}try{let Vi=(Ct=T())!=null&&Ct.width&&((Ii=T())!=null&&Ii.height)?T():P();await sh(Vi)}catch(Vi){dt({message:String(Vi)})}}Ye.set(Ze),e.store.getAdmanWrapper().setFullscreen(Ze),R()?(Li=(Mi=e.store.callbacks)==null?void 0:Mi.onFullscreenEnter)==null||Li.call(Mi):(Yi=(gi=e.store.callbacks)==null?void 0:gi.onFullscreenExit)==null||Yi.call(gi)},dr=Ze=>{let Ct=Ze;yn.set({width:Ct.target.width,height:Ct.target.height})};Nt(()=>{var Ze;return Sc(Yo),e.uiConfig.features.annotationsInside&&(Rt==null||Rt.init(r(ln))),Gs(di)&&(di==null||di.assignPlayerContainer(r(ln)),di==null||di.registryExternalEventHandlers({resize:dr})),O(un,!Cd.device.isIphoneOrOldIpad),e.interactiveContainer&&((Ze=Ee().parentElement)==null||Ze.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(Sn),clearTimeout(Gn),clearTimeout(Cn),clearTimeout(Tn),An(),di==null||di.dispose().catch(Ct=>{dt({message:String(Ct)})}),Cc(Yo)}});let Pn=ee(!0),cr=ee(!0),Mn=Ze=>{let Ct=z()+(Ze==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Ct<0?(O(Pn,!1),Ct=0):Ct>=Y()&&(O(cr,!1),Ct=Y()),O(Pi,!0),e.seekTime(Ct)},Ln=()=>{let Ze=Cd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ne()?r(ln):Ne(),Ct=Ze.getRootNode(),Ii=Ct instanceof ShadowRoot?Ct.host:Ct,Mi=W()instanceof HTMLElement&&W().contains(Ii);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Mi?W():Ze},Ar=async()=>{try{if(_s())await wc(document),dt({message:"exit fullscreen"});else{if(dt({message:"request fullscreen"}),Cd.device.isIOS&&!U())return;await xc(Ln())}}catch(Ze){dt({message:String(Ze)})}},Yn=()=>{Ti()},ur=Ze=>{if(Ze.preventDefault(),Z()){Yn();return}if(!se()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}O(Pi,!1),w()?co():Wi(e.uiConfig.controls.hideTimeoutMobile)},Pr=()=>{Ki.set(!0)},Vn=()=>{_t||(Qo.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))},jt=Ze=>{sn&&(sn(Ze),Wi(e.uiConfig.controls.hideTimeoutMobile))},jo=Ze=>{an&&(an(Ze),Wi(e.uiConfig.controls.hideTimeoutMobile))};je(()=>{Fi.set(r(Je))}),je(()=>{wt.set((r(cn)||Z()||J()||oe()||ce()||!r(lo)&&(u()||r(Go)&&!r(Pi)))&&!r(wo)&&n()==="video"&&!d())}),je(()=>{!J()&&r(Ro)&&!le()&&Wi(e.uiConfig.controls.hideTimeoutMobile),O(Ro,he(J()))}),je(()=>{O(Pn,z()>0),O(cr,he(!Le()&&z()<Y()))}),je(()=>{Da(r(Qn),Z(),Re())});let pr=F("aria_label_video_player"),fr=F("video360");u1({fullScreenChangeHandler:Yo,getFullscreenTarget:Ln}),p1({store:e.store,getFullscreenTarget:Ln});var it=rx();It("blur",Ns,Yn),De(it,"aria-label",pr);var ct=h(it);let xi;ct.__click=ur;var Qi=h(ct);let Gi;lt(Qi,Ze=>Ee(Ze),()=>Ee()),g(ct);var Co=M(ct,2);xl(Co,Me,Ze=>{var Ct=nx(),Ii=ge(Ct);let Mi=m(()=>n()!=="thumb"||d()||_t&&e.autoplay);_d(Ii,{get hidden(){return r(Mi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Li=M(Ii,2);{var gi=ze=>{var Bt=J3(),_i=ge(Bt);{var Eo=Dn=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Xc(Dn,{side:"left",get seekStep(){return r(Rr)},handleSingleFirstClick:ur,handleSecondClick:()=>Mn("backward")})};B(_i,Dn=>{r(Pn)&&Dn(Eo)})}var fn=M(_i,2);{var Kr=Dn=>{let Rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Xc(Dn,{side:"right",get seekStep(){return r(Rr)},handleSingleFirstClick:ur,handleSecondClick:()=>Mn("forward")})};B(fn,Dn=>{r(cr)&&Dn(Kr)})}b(ze,Bt)};B(Li,ze=>{e.canRewindLive&&so&&!j().has("TIMELINE")&&ze(gi)})}var Yi=M(Li,2);{var Vi=ze=>{let Bt=m(()=>{var _i;return(_i=e.live)==null?void 0:_i.startTime});bd(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Bt)}})};B(Yi,ze=>{n()==="LiveWaitingStart"&&ze(Vi)})}var Rn=M(Yi,2);{var mr=ze=>{aa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Rn,ze=>{n()==="LiveWaitingRecover"&&ze(mr)})}var Bn=M(Rn,2);{var Mr=ze=>{aa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Bn,ze=>{n()==="LiveWaitingRecord"&&ze(Mr)})}var uo=M(Bn,2);{var Lr=ze=>{var Bt=ex();let _i;var Eo=h(Bt);Bl(Eo,{get adsSlotId(){return Qe()},get adsParams(){return at()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return ye()},get duration(){return Pe()}}),g(Bt),k(fn=>_i=te(Bt,1,"ads-container svelte-dtyj47",null,_i,fn),[()=>({hidden:n()!=="ads"})]),b(ze,Bt)};B(uo,ze=>{e.showAds&&se()&&ze(Lr)})}var jn=M(uo,2);{var Vr=ze=>{let Bt=m(()=>!pe()&&e.showAutoplayNext&&S());bm(ze,{get title(){return rt()},get thumb(){return ft()},get isHide(){return r(Bt)},clickCloseIcon:()=>O(lr,!0)})};B(jn,ze=>{r(lo)&&rt()&&ft()&&ze(Vr)})}var vr=M(jn,2);{var pn=ze=>{md(ze,{})};B(vr,ze=>{N()&&ze(pn)})}var Zn=M(vr,2);{var gr=ze=>{var Bt=tx(),_i=h(Bt);Vl(_i,{"aria-label":fr}),g(Bt),b(ze,Bt)};B(Zn,ze=>{Ve()&&ze(gr)})}var Nn=M(Zn,2);{var Io=ze=>{gd(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return xe()}})};B(Nn,ze=>{ce()&&ze(Io)})}var Xn=M(Nn,2);{var hr=ze=>{vd(ze,{get shifted(){return w()},get captions(){return Be()},get position(){return z()},get playerSize(){return P()},isMobile:!0})};B(Xn,ze=>{re().value!=="off"&&ze(hr)})}var et=M(Xn,2);{var Dt=ze=>{var Bt=ix();Bt.__click=[X3,Z,oi,Yn];var _i=h(Bt);hd(_i,{}),g(Bt),b(ze,Bt)};B(et,ze=>{d()&&ze(Dt)})}var $e=M(et,2);{var Et=ze=>{let Bt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),_i=m(()=>n()==="ads"),Eo=m(()=>e.canRewindLive&&ue()!==0);fd(ze,{get bottomHidden(){return r(Bt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(_i)},get canRewindLive(){return r(Eo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return nt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return pt()},get nextButtonActive(){return tt()},get prevButtonActive(){return Lt()},get isOneVideoPlaylist(){return Ht()},get customFullscreenSupported(){return r(un)},get endScreenShown(){return r(lo)},toggleFullscreen:Ar,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:jt,onDisabledSeekToInteractiveClick:jo,get playerControlsWrapperRef(){return r(Er)},set playerControlsWrapperRef(fn){O(Er,he(fn))},get playerControlsRef(){return r(sr)},set playerControlsRef(fn){O(sr,he(fn))}})};B($e,ze=>{se()&&ze(Et)})}var ei=M($e,2);{var Gt=ze=>{var Bt=ox(),_i=h(Bt);xd(_i,{get supportLink(){return e.supportLink},returnFocus:Z3,get ref(){return r(Qn)},set ref(Eo){O(Qn,he(Eo))}}),g(Bt),b(ze,Bt)};B(ei,ze=>{Z()&&ze(Gt)})}var po=M(ei,2);let Ri=m(()=>!r(kn));Dl(po,{get isLive(){return D()},get isHidden(){return r(Ri)},get isPlaying(){return X()},get position(){return z()},get duration(){return Y()}});var ti=M(po,2);{var ai=ze=>{Js(ze,{})};B(ti,ze=>{r(ao)&&ze(ai)})}var hi=M(ti,2);{var Ui=ze=>{Ul(ze,{})};B(hi,ze=>{de()&&ze(Ui)})}var ko=M(hi,2);{var si=ze=>{wd(ze,{onClose:In,onSelectAutoQuality:()=>{Vo("auto"),In()}})};B(ko,ze=>{r(ar)&&ze(si)})}var qr=M(ko,2);Cl(qr,()=>"slot",!1,(ze,Bt)=>{Se(ze,null,{name:Sd})}),b(Ze,Ct)});var Bo=M(Co,2);lt(Bo,Ze=>O(Je,Ze),()=>r(Je)),g(it),lt(it,Ze=>O(ln,Ze),()=>r(ln)),k((Ze,Ct)=>{xi=te(ct,1,"video-wrapper svelte-dtyj47",null,xi,Ze),Gi=te(Qi,1,"video-container svelte-dtyj47",null,Gi,Ct),ot(Qi,`transform: rotate(${A()}deg) scale(${r(So)})`),De(Qi,"data-is-playing",X())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),It("click",it,Pr,!0),It("focusin",it,Vn,!0),b(t,it),K(),o()}st(["click"]);function eu(t){let e="";return Wn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Wn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Wn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Wn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Wn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Wn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Wn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Wn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Wn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Wn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Wn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Wn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Wn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Wn(t){return typeof t=="string"&&!t.includes(";")}var ux=L('<div class="root svelte-1cnbt6x"><!></div>'),px={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--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;
360
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.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 Tm(t,e){var qo,Ko;q(e,!0),Q(t,cx);let[i,o]=Fe(),n=()=>C(ni,"$playerPhase",i),a=()=>C(Mt,"$isLoaderVisible",i),s=()=>C(ut,"$adPlaybackState",i),d=()=>C(Ho,"$crashed",i),l=()=>C(lr,"$notificationsToShow$",i),p=()=>C(je,"$playbackState$",i),f=()=>C(De,"$graphIsOpened$",i),_=()=>C(Jt,"$interactiveHideMobileControls",i),u=()=>C(ht,"$isEnded$",i),$=()=>C(Ui,"$isInteractiveExpectation$",i),w=()=>C(it,"$controlsVisible",i),y=()=>C(yi,"$touched",i),S=()=>C(xn,"$autoplayNextEnabled$",i),I=()=>C(Oi,"$postrollPassed",i),A=()=>C(ri,"$rotateAlpha",i),P=()=>C(ai,"$playerSize",i),E=()=>C(an,"$bottomNoSmooth",i),T=()=>C(xt,"$videoSize",i),V=()=>C(Qe,"$isFullscreen",i),U=()=>C(Xe,"$position$",i),Y=()=>C(Et,"$duration$",i),F=()=>C(tn,"$loadedMetadata",i),j=()=>C(ki,"$settingsMenuVisible",i),X=()=>C(Di,"$scrubbingInProgress",i),oe=()=>C(To,"$volumeChangingInProgress",i),pe=()=>C(z,"$chromecastConnected$",i),le=()=>C(vi,"$isInteractiveTime$",i),Ve=()=>C(mo,"$isActiveLive",i),Me=()=>C(Co,"$settingsMenuOpenedByKeyboard",i),J=()=>C(oo,"$isPlaying$",i),Le=()=>C(Kt,"$language$",i),Z=()=>C(go,"$disabledControls$",i),B=()=>C(vo,"$is3DVideo",i),Re=()=>C(Fo,"$icon3DVideoVisible",i),ne=()=>C(Wt,"$chromecastDeviceName$",i),ke=()=>C(zt,"$currentSubtitle$",i),Ne=()=>C(Io,"$currentSubtitleCaptions$",i),fe=()=>C(Fi,"$realDuration$",i),D=()=>C(ei,"$isLive$",i),de=()=>C(Oo,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Ge=v(e,"adsSlotId",3,void 0),lt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),$e=v(e,"adsAutoplayParam",3,void 0),Pe=v(e,"duration",3,void 0),nt=v(e,"logoTargetUrl",3,""),mt=v(e,"showNextPrevButtons",3,!1),at=v(e,"nextButtonActive",3,!1),It=v(e,"prevButtonActive",3,!1),rt=v(e,"endScreenVideoTitle",3,void 0),vt=v(e,"endScreenVideoThumb",3,void 0),Ut=v(e,"isOneVideoPlaylist",3,!1),Qt=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),he=v(e,"showEndScreen",3,!0),{notifications$:Se,graphIsOpened$:De}=io(),ct=e.store.getLogger().createComponentLog("Root component"),Kt=e.store.interfaceLanguage$,je=e.store.state.playbackState$,ut=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,Et=e.store.state.duration$,ni=e.store.playerPhase,Qe=e.store.ui.isFullscreen,it=e.store.ui.controlsVisible,Jt=e.store.ui.interactiveHideMobileControls,ki=e.store.ui.settingsMenu.visible$,Co=e.store.ui.settingsMenu.openedByBtnKeyboard$,Di=e.store.ui.scrubbingInProgress,To=e.store.ui.volumeChangingInProgress,Oo=e.store.ui.debugPanelVisible,Mt=e.store.state.isLoaderVisible,ht=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,Wt=e.store.state.chromecastDeviceName$,Oi=e.store.ads.postrollPassed,Mi=e.store.ui.mobileUnmuteButtonExpanded,mi=e.store.ui.mobileUnmuteButtonVisible,ei=e.store.state.isLive$,oo=e.store.state.isPlaying$,mo=e.store.state.isActiveLive$,Hi=e.store.state.isRewindableLive$,Ho=e.store.state.crashed$,Bt=e.store.webApi.annotationsApi,li=e.store.webApi.pictureInPictureApi,xt=e.store.state.videoSize$,zt=e.store.state.currentSubtitle$,Io=e.store.state.currentSubtitleCaptions$,Fi=e.store.state.duration$,ai=e.store.ui.playerSize,vo=e.store.ui.is3DVideo,Fo=e.store.ui.icon3DVideoVisible,ri=e.store.ui.rotateAlpha,$t=e.store.state.isInteractive,vi=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,Li=e.store.state.hasInteractiveBranches,go=e.store.ui.controls.disabledControls$,yi=e.store.ui.touched,ho=e.store.ui.overlayContainer$,xn=e.store.ui.autoplayNextEnabled$,tn=e.store.state.loadedMetadata$,xi=e.store.actions.internal.closeSettingsMenu,wn=(qo=e.store.callbacks)==null?void 0:qo.onDisabledPlayPrevChapterClick,on=(Ko=e.store.callbacks)==null?void 0:Ko.onDisabledSeekToInteractiveClick,ko=e.store.actions.internal.setQuality,Sn=ee(void 0),rr=ee(void 0),sr=ee(void 0),Bn=ee(void 0),Dn,nn,rn,ar=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),tt=ee(void 0),{closeNotification:Wi,notificationsToShow$:lr}=Se,On=m(()=>!!l().slow_video),sn=()=>Wi("slow_video"),an=ae(!1),Eo,_o=ee(!1),zi=m(()=>p()!==ex.PLAYING),Qi=ee(!1),Hn=m(()=>f()||_()||!r(_o)&&(u()&&!!Li||r(zi)&&$())),Fn=ee(!0),Er=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!$t&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Un=ee(!1),no=m(()=>(he()||e.showAutoplayNext&&S())&&!!rt()&&!!vt()&&(e.showAds&&I()||!e.showAds)&&u()&&!d()&&!r(Un)),bo=ee(!1),ln=m(()=>Ee()&&A()%180?P().height/P().width:1);li==null||li.setContext($l());let Cn=Je=>{clearTimeout(nn),Je&&(mi.set(!0),Mi.set(!0),nn=setTimeout(()=>{Mi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),$t||qi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Cn});let Ao=()=>{clearTimeout(Dn),O(_o,!1),_()&&Jt.set(!1)},qi=Je=>{Ao(),O(_o,!0),Dn=setTimeout(()=>O(_o,!1),Je);let Ct=Je-100;Eo=setTimeout(()=>{E()&&an.set(!1)},Ct>0?Ct:Je)},Uo=vo.subscribe(Je=>{Fo.set(Je),Je&&(clearTimeout(rn),rn=setTimeout(()=>Fo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$o=async(Je=bs())=>{var Ct,si,Ei,Vi,Si,ro;if(Je&&!Cd.device.isIOS){let Ci=Rl(),un=Kn(),fr=Cd.browser.isSamsungBrowser&&Ci===Qt();Je=Ci===un||fr}if(Je){qi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(li==null?void 0:li.remove())}catch(Ci){ct({message:String(Ci)})}try{let Ci=(Ct=T())!=null&&Ct.width&&((si=T())!=null&&si.height)?T():P();await dh(Ci)}catch(Ci){ct({message:String(Ci)})}}Qe.set(Je),e.store.getAdmanWrapper().setFullscreen(Je),V()?(Vi=(Ei=e.store.callbacks)==null?void 0:Ei.onFullscreenEnter)==null||Vi.call(Ei):(ro=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||ro.call(Si)},dr=Je=>{let Ct=Je;ai.set({width:Ct.target.width,height:Ct.target.height})};Ot(()=>{var Je;return Ec($o),e.uiConfig.features.annotationsInside&&(Bt==null||Bt.init(r(Sn))),js(li)&&(li==null||li.assignPlayerContainer(r(Sn)),li==null||li.registryExternalEventHandlers({resize:dr})),O(Fn,!Cd.device.isIphoneOrOldIpad),e.interactiveContainer&&((Je=Ee().parentElement)==null||Je.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(Dn),clearTimeout(Eo),clearTimeout(nn),clearTimeout(rn),Uo(),li==null||li.dispose().catch(Ct=>{ct({message:String(Ct)})}),Ac($o)}});let dn=ee(!0),zn=ee(!0),qn=Je=>{let Ct=U()+(Je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Ct<0?(O(dn,!1),Ct=0):Ct>=Y()&&(O(zn,!1),Ct=Y()),O(Qi,!0),e.seekTime(Ct)},Kn=()=>{let Je=Cd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(Sn):Be(),Ct=Je.getRootNode(),si=Ct instanceof ShadowRoot?Ct.host:Ct,Ei=W()instanceof HTMLElement&&W().contains(si);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Ei?W():Je},cr=async()=>{try{if(bs())await kc(document),ct({message:"exit fullscreen"});else{if(ct({message:"request fullscreen"}),Cd.device.isIOS&&!F())return;await Ic(Kn())}}catch(Je){ct({message:String(Je)})}},Wn=()=>{xi()},ur=Je=>{if(Je.preventDefault(),j()){Wn();return}if(!se()){e.firstStart(),qi(e.uiConfig.controls.hideTimeoutCursor);return}O(Qi,!1),w()?Ao():qi(e.uiConfig.controls.hideTimeoutMobile)},Qn=()=>{yi.set(!0)},Gn=()=>{$t||(an.set(!0),qi(e.uiConfig.controls.hideTimeoutCursor))},oi=Je=>{wn&&(wn(Je),qi(e.uiConfig.controls.hideTimeoutMobile))},pr=Je=>{on&&(on(Je),qi(e.uiConfig.controls.hideTimeoutMobile))};Ke(()=>{ho.set(r(tt))}),Ke(()=>{it.set((r(zi)||j()||X()||oe()||pe()||!r(no)&&(u()||r(_o)&&!r(Qi)))&&!r(Hn)&&n()==="video"&&!d())}),Ke(()=>{!X()&&r(bo)&&!le()&&qi(e.uiConfig.controls.hideTimeoutMobile),O(bo,me(X()))}),Ke(()=>{O(dn,U()>0),O(zn,me(!Ve()&&U()<Y()))}),Ke(()=>{Ha(r(Bn),j(),Me())});let cn=H("aria_label_video_player"),zo=H("video360");m1({fullScreenChangeHandler:$o,getFullscreenTarget:Kn}),v1({store:e.store,getFullscreenTarget:Kn});var ot=dx();kt("blur",Ds,Wn),Oe(ot,"aria-label",cn);var At=h(ot);let wi;At.__click=ur;var ti=h(At);let Gi;dt(ti,Je=>Ee(Je),()=>Ee()),g(At);var yo=M(At,2);zs(yo,Le,Je=>{var Ct=lx(),si=ue(Ct);let Ei=m(()=>n()!=="thumb"||d()||$t&&e.autoplay);_d(si,{get hidden(){return r(Ei)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Vi=M(si,2);{var Si=He=>{var Tt=ox(),gi=ue(Tt);{var Mo=kn=>{let Vr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(kn,{side:"left",get seekStep(){return r(Vr)},handleSingleFirstClick:ur,handleSecondClick:()=>qn("backward")})};R(gi,kn=>{r(dn)&&kn(Mo)})}var Wo=M(gi,2);{var Kr=kn=>{let Vr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(kn,{side:"right",get seekStep(){return r(Vr)},handleSingleFirstClick:ur,handleSecondClick:()=>qn("forward")})};R(Wo,kn=>{r(zn)&&kn(Kr)})}b(He,Tt)};R(Vi,He=>{e.canRewindLive&&Hi&&!Z().has("TIMELINE")&&He(Si)})}var ro=M(Vi,2);{var Ci=He=>{let Tt=m(()=>{var gi;return(gi=e.live)==null?void 0:gi.startTime});bd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Tt)}})};R(ro,He=>{n()==="LiveWaitingStart"&&He(Ci)})}var un=M(ro,2);{var fr=He=>{la(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(un,He=>{n()==="LiveWaitingRecover"&&He(fr)})}var Tn=M(un,2);{var Ar=He=>{la(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Tn,He=>{n()==="LiveWaitingRecord"&&He(Ar)})}var so=M(Tn,2);{var Pr=He=>{var Tt=nx();let gi;var Mo=h(Tt);Nl(Mo,{get adsSlotId(){return Ge()},get adsParams(){return lt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return $e()},get duration(){return Pe()}}),g(Tt),k(Wo=>gi=te(Tt,1,"ads-container svelte-dtyj47",null,gi,Wo),[()=>({hidden:n()!=="ads"})]),b(He,Tt)};R(so,He=>{e.showAds&&se()&&He(Pr)})}var Yn=M(so,2);{var zr=He=>{let Tt=m(()=>!he()&&e.showAutoplayNext&&S());Cm(He,{get title(){return rt()},get thumb(){return vt()},get isHide(){return r(Tt)},clickCloseIcon:()=>O(Un,!0)})};R(Yn,He=>{r(no)&&rt()&&vt()&&He(zr)})}var mr=M(Yn,2);{var Mr=He=>{md(He,{})};R(mr,He=>{B()&&He(Mr)})}var vr=M(mr,2);{var Po=He=>{var Tt=rx(),gi=h(Tt);Vl(gi,{"aria-label":zo}),g(Tt),b(He,Tt)};R(vr,He=>{Re()&&He(Po)})}var pn=M(vr,2);{var qr=He=>{gd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(pn,He=>{pe()&&He(qr)})}var gr=M(pn,2);{var jn=He=>{vd(He,{get shifted(){return w()},get captions(){return Ne()},get position(){return U()},get playerSize(){return P()},isMobile:!0})};R(gr,He=>{ke().value!=="off"&&He(jn)})}var Ze=M(gr,2);{var Dt=He=>{var Tt=sx();Tt.__click=[ix,j,ki,Wn];var gi=h(Tt);hd(gi,{}),g(Tt),b(He,Tt)};R(Ze,He=>{d()&&He(Dt)})}var hi=M(Ze,2);{var fn=He=>{let Tt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),gi=m(()=>n()==="ads"),Mo=m(()=>e.canRewindLive&&fe()!==0);fd(He,{get bottomHidden(){return r(Tt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(gi)},get canRewindLive(){return r(Mo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return nt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return mt()},get nextButtonActive(){return at()},get prevButtonActive(){return It()},get isOneVideoPlaylist(){return Ut()},get customFullscreenSupported(){return r(Fn)},get endScreenShown(){return r(no)},toggleFullscreen:cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:oi,onDisabledSeekToInteractiveClick:pr,get playerControlsWrapperRef(){return r(rr)},set playerControlsWrapperRef(Wo){O(rr,me(Wo))},get playerControlsRef(){return r(sr)},set playerControlsRef(Wo){O(sr,me(Wo))}})};R(hi,He=>{se()&&He(fn)})}var mn=M(hi,2);{var In=He=>{var Tt=ax(),gi=h(Tt);xd(gi,{get supportLink(){return e.supportLink},returnFocus:tx,get ref(){return r(Bn)},set ref(Mo){O(Bn,me(Mo))}}),g(Tt),b(He,Tt)};R(mn,He=>{j()&&He(In)})}var Zn=M(mn,2);let Ce=m(()=>!r(Er));Dl(Zn,{get isLive(){return D()},get isHidden(){return r(Ce)},get isPlaying(){return J()},get position(){return U()},get duration(){return Y()}});var pt=M(Zn,2);{var Lt=He=>{ta(He,{})};R(pt,He=>{r(ar)&&He(Lt)})}var Ht=M(pt,2);{var Ki=He=>{Ul(He,{})};R(Ht,He=>{de()&&He(Ki)})}var di=M(Ht,2);{var Gt=He=>{wd(He,{onClose:sn,onSelectAutoQuality:()=>{ko("auto"),sn()}})};R(di,He=>{r(On)&&He(Gt)})}var Lr=M(di,2);Cl(Lr,()=>"slot",!1,(He,Tt)=>{xe(He,null,{name:Sd})}),b(Je,Ct)});var xo=M(yo,2);dt(xo,Je=>O(tt,Je),()=>r(tt)),g(ot),dt(ot,Je=>O(Sn,Je),()=>r(Sn)),k((Je,Ct)=>{wi=te(At,1,"video-wrapper svelte-dtyj47",null,wi,Je),Gi=te(ti,1,"video-container svelte-dtyj47",null,Gi,Ct),et(ti,`transform: rotate(${A()}deg) scale(${r(ln)})`),Oe(ti,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),kt("click",ot,Qn,!0),kt("focusin",ot,Gn,!0),b(t,ot),K(),o()}st(["click"]);function ru(t){let e="";return Nn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Nn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Nn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Nn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Nn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Nn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Nn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Nn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Nn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Nn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Nn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Nn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Nn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Nn(t){return typeof t=="string"&&!t.includes(";")}var vx=L('<div class="root svelte-1cnbt6x"><!></div>'),gx={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--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;
330
361
 
331
362
  /* USER DEFINED COLORS */
332
363
 
@@ -360,5 +391,5 @@ Try switching the\xA0quality to\xA0Auto.`},Jg=W0;var os=new Map;os.set(th.EN,Jg)
360
391
  /* --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);}
361
392
  /* 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);}
362
393
 
363
- /* \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 ym(t,e){q(e,!0),Q(t,px);let[i,o]=Fe(),n=()=>C(Ht,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),p=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),u=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),R=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),U=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),J=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),ce=v(e,"logoHidden",7),le=v(e,"isMobile",7),Le=v(e,"showNextPrevButtons",7,!1),Re=v(e,"nextButtonActive",7,!1),X=v(e,"prevButtonActive",7,!1),Me=v(e,"endScreenVideoTitle",7,void 0),j=v(e,"endScreenVideoThumb",7,void 0),N=v(e,"isOneVideoPlaylist",7,!1),Ve=v(e,"supportLink",7),xe=v(e,"shadowRootContainer",7,void 0),re=v(e,"outerContainerRef",7,void 0),Be=v(e,"fullScreenTarget",7,void 0),ue=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,f1),Qe=v(e,"playPrevChapter",7,f1),at=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ye=v(e,"showEndScreen",7,!0),Pe=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:pt}=d();$g(p());let tt=zt(),Lt=p().logoLink,rt=s().ui.debugPanelVisible,ft=s().ui.playerSize,Ht=s().state.isLive$,Ne=s().state.isInteractive&&ax.device.isAndroid,ne=ee(void 0),W=null,se=ee(!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}),Ag(s(),pt),je(()=>{s().ui.isMobile.set(le())});let pe=(H=!1)=>{O(se,!0),H?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Ce=()=>{if(tt.features.qualityDetailsSubMenuEnabled){let H=jg(s().videoId);if(H)switch(H.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(H.quality);break}}else{Zg(s().videoId),_p()&&s().actions.internal.setTrafficSavingEnabled(!0);let Ke=mp(s().videoId);Ke&&s().actions.internal.setQuality(Ke)}};function Oe(H){var ui,no,ro;let Ke=a()||H;Ke&&s().initVideo({container:r(ne),sources:Ke,failoverHosts:ue(),subtitles:w(),volumeMultiplier:at()});let ni=lx.get(El)==="true";rt.set(ni),E()>0&&s().actions.external.seekTime(E());let Hi=le()?tt.volumeDefault:(no=(ui=A())!=null?ui:mc())!=null?no:tt.volumeDefault,Jt=(ro=P())!=null?ro:qg();if(s().actions.external.setVolume(Hi),s().actions.external.setMuted(Jt),s().getAdmanWrapper().setInitialVolume(Jt?0:Hi),Ce(),tt.features.saveRate&&de()){let so=Qg();so&&!n()&&s().actions.internal.setPlaybackRate(so)}if(Ae()){let so=Yg();so&&s().actions.internal.setAutoplayNextEnabled(so)}s().ui.isAutoplay.set(I()),I()?pe():S()&&tt.features.preload&&s().actions.internal.preload()}let dt=H=>{if(window.ResizeObserver){let Ke,ni;W=new ResizeObserver(dx(Hi=>{let Jt=Hi[0];if(Jt.contentBoxSize){let ui=Array.isArray(Jt.contentBoxSize)?Jt.contentBoxSize[0]:Jt.contentBoxSize;Ke=ui.inlineSize,ni=ui.blockSize}else Jt.contentRect&&(Ke=Jt.contentRect.width,ni=Jt.contentRect.height);ft.set({width:Ke,height:ni})},300)),W.observe(H)}ft.set({width:H.clientWidth,height:H.clientHeight})},Vt=()=>{document.hidden&&s().actions.external.stop()};Nt(()=>{var ni,Hi,Jt,ui;Ne&&document.addEventListener("visibilitychange",Vt),tt.debugLog&&s().actions.internal.startLogging(),dt(r(ne));let H=nt.map(no=>no.init({store:s(),microStores:pt,config:l(),interactiveController:$(),uiConfig:p()})),Ke=()=>{Ne&&document.removeEventListener("visibilitychange",Vt),W==null||W.disconnect(),H.forEach(no=>no.unsubscribe()),s().destroy()};return((ni=y())==null?void 0:ni.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Ke):((Hi=y())==null?void 0:Hi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Ke):(((Jt=y())==null?void 0:Jt.status)==="finished"||((ui=y())==null?void 0:ui.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Ke):(Oe(),Ke)});function qe(){r(se)?s().actions.external.play():pe(!0)}function vt(){s().actions.external.pause()}function Xe(H){s().actions.external.setMuted(H)}function $t(H){le()||H>=0&&H<=1&&s().actions.external.setVolume(H)}function Qt(H){s().actions.internal.seekTime(H,cx.UNKNOWN)}function Ye(H){s().actions.external.seekEpisodeStartTime(H)}function wt(){s().actions.external.returnFocusToEpisodes()}function li(H){s().actions.external.setPlaybackRate(H)}function oi(H){s().actions.external.setAutoQualityLimits(H)}let Ci=eu(tt.view);var Oi=ux();ot(Oi,Ci);var Mo=h(Oi);{var $o=H=>{$m(H,{get store(){return s()},uiConfig:tt,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Lt,get nextButtonActive(){return Re()},get prevButtonActive(){return X()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ve()},get shadowRootContainer(){return xe()},get outerContainerRef(){return re()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:pe,seekTime:Qt,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ne)},set videoContainer(Ke){O(ne,he(Ke))}})},yo=H=>{_m(H,{get store(){return s()},uiConfig:tt,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return oe()},get logoHidden(){return ce()},logoTargetUrl:Lt,get nextButtonActive(){return Re()},get prevButtonActive(){return X()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ve()},get shadowRootContainer(){return xe()},get outerContainerRef(){return re()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:pe,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(ne)},set videoContainer(Ke){O(ne,he(Ke))},get keyboardControls(){return Pe()},set keyboardControls(Ke){Pe(Ke)}})};B(Mo,H=>{le()?H($o):H(yo,!1)})}g(Oi),b(t,Oi);var Lo=K({initVideo:Oe,play:qe,pause:vt,setMuted:Xe,setVolume:$t,seekTime:Qt,seekEpisodeStartTime:Ye,returnFocusToEpisodes:wt,setPlaybackRate:li,setAutoQualityLimits:oi,get sources(){return a()},set sources(H){a(H)},get store(){return s()},set store(H){s(H)},get microStoresRoot(){return d()},set microStoresRoot(H){d(H)},get videoConfig(){return l()},set videoConfig(H){l(H)},get uiConfig(){return p()},set uiConfig(H){p(H)},get title(){return f()},set title(H){f(H)},get thumbUrl(){return _()},set thumbUrl(H){_(H)},get interactiveContainer(){return u()},set interactiveContainer(H){u(H)},get interactiveController(){return $()},set interactiveController(H){$(H)},get subtitles(){return w()},set subtitles(H){w(H)},get live(){return y()},set live(H){y(H)},get preload(){return S()},set preload(H){S(H)},get autoplay(){return I()},set autoplay(H){I(H)},get volume(){return A()},set volume(H){A(H)},get muted(){return P()},set muted(H){P(H)},get fromTime(){return E()},set fromTime(H){E(H)},get canRewindLive(){return T()},set canRewindLive(H){T(H)},get showAds(){return R()},set showAds(H){R(H)},get adsSlotId(){return z()},set adsSlotId(H){z(H)},get adsParams(){return Y()},set adsParams(H){Y(H)},get adsPreviewParam(){return U()},set adsPreviewParam(H){U(H)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(H){Z(H)},get duration(){return J()},set duration(H){J(H)},get logoClickable(){return oe()},set logoClickable(H){oe(H)},get logoHidden(){return ce()},set logoHidden(H){ce(H)},get isMobile(){return le()},set isMobile(H){le(H)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(H){Le(H)},get nextButtonActive(){return Re()},set nextButtonActive(H){Re(H)},get prevButtonActive(){return X()},set prevButtonActive(H){X(H)},get endScreenVideoTitle(){return Me()},set endScreenVideoTitle(H){Me(H)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(H){j(H)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(H){N(H)},get supportLink(){return Ve()},set supportLink(H){Ve(H)},get shadowRootContainer(){return xe()},set shadowRootContainer(H){xe(H)},get outerContainerRef(){return re()},set outerContainerRef(H){re(H)},get fullScreenTarget(){return Be()},set fullScreenTarget(H){Be(H)},get failoverHosts(){return ue()},set failoverHosts(H){ue(H)},get showMiniTimer(){return D()},set showMiniTimer(H){D(H)},get saveRate(){return de()},set saveRate(H){de(H)},get showAutoplayNext(){return Ae()},set showAutoplayNext(H){Ae(H)},get seekToInteractive(){return Ee()},set seekToInteractive(H){Ee(H)},get playPrevChapter(){return Qe()},set playPrevChapter(H){Qe(H)},get volumeMultiplier(){return at()},set volumeMultiplier(H){at(H)},get showEndScreen(){return ye()},set showEndScreen(H){ye(H)},get keyboardControls(){return Pe()},set keyboardControls(H){Pe(H)}});return o(),Lo}var fx=be('<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 xm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=fx();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function wm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");xm(t,{get style(){return r(o)}})}var mx=L('<div class="title svelte-1y9fytq"> </div>'),vx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),gx={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 Sm(t,e){Q(t,gx);var i=vx(),o=h(i);{var n=d=>{var l=mx(),p=h(l,!0);g(l),k(()=>fe(p,e.title)),b(d,l)};B(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);wm(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>ot(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Ux}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as zx,InterfaceLanguage as qx,isNonNullable as Am,Logger as Kx,Observable as Wx,Subscription as y1,once as Qx,InternalsExposure as Gx,skip as Yx}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as x1,isMobile as jx}from"@vkontakte/videoplayer-core/es2018";import{OneStat as Zx,ThinOneStat as Xx}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as hx,Subscription as _x}from"@vkontakte/videoplayer-shared/es2018";var tu=class{constructor(){this.subscription=new _x,this.logger=new hx,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=we(e.state.currentPlaybackRate$),n=we(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 Im,detectEmbed as Sx}from"@vkontakte/videoplayer-shared/es2018";var bx=be('<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 Cm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=bx();let n;var a=h(o);me(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=Se(o,n,{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})),b(t,o)}var $x=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),yx={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 Tm(t,e){q(e,!0),Q(t,yx);let[i,o]=Fe(),n=()=>C(p,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Ie(),d=zt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,u=m(()=>n()&&_("pip_dummy_title")),$=eu(d.view);var w=$x();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),ot(w,$);var y=h(w);let S;var I=h(y);Cm(I,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),k(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),fe(P,r(u))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var xx=Object.defineProperty,wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ga=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i),Cx=460,Tx=280,Td=class{constructor({enabled:e=!0}={enabled:!0}){Ga(this,"playerDomElement"),Ga(this,"playerParentShadowRoot"),Ga(this,"playerDummyElement"),Ga(this,"svelteContext"),Ga(this,"pipWindow"),Ga(this,"info",{isActive$:new Im(!1),isEnabled$:new Im(!1),type:1}),this.info.isEnabled$=new Im(e)}isSupported(){let{isEmbed:e}=Sx();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}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Cx,height:Tx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
364
- `),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(Tm,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||(Fs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await 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 m1(t){return t instanceof Td}var iu=class{static getLatestSupportedVersion(e){let i=new Qs,o=new Td(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Id(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 v1="Inner error. Unexpectedly root annotation container null reference exception",g1="Annotation with such name already exists",h1="Annotation with such name does not exist";var Ya=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Ix,Subscription as kx,throttleFn as Ex}from"@vkontakte/videoplayer-shared/es2018";var Ax="1",Px=100,ou=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new kx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Ex(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Px);this.subscriptions.add(Ix(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 Ya(v1);if(this.annotations.has(e))throw new Ya(g1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Ax,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 Ya(h1);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 nu,Subscription as Mx}from"@vkontakte/videoplayer-shared/es2018";var Uo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return nu(e),nu(i),nu(n),n.interactiveData&&nu(o),this.subscription=new Mx,this.subscription}};var kd=class extends Uo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(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 Ed=class extends Uo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(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:p,isMobile:f}=a.ui,_=we(f),u=()=>_&&we(p);return o.add(p.subscribe($=>{if(!_)return;let w=we(s);we(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||u())})),o.add(s.subscribe($=>{if($===null)return;let w=we(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ad=class extends Uo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("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 Lx}from"@vkontakte/videoplayer-shared/es2018";var km=ae(!1),ru=null,Pd=class extends Uo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...km,set:(i,o=!1)=>{i!==we(km)&&(this.clearTimeout(),km.set(i),!i&&ru&&(ru=!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:p}=n.ui.controls;o.add(l.subscribe(_=>{we(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Lx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&ru===null&&(ru=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Vx,noop as Rx}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Uo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Rx};this.checkIfShouldHide=i=>Ss(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=async()=>{if(this.checkIfShouldHide(we(s)))return;let l=we(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,u=we(p),$=we(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(ap),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),_.add(ap),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Vx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(_){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as _1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Uo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(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 _1(!1),isEnabled$:new _1(!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 Dx,filterChanged as Ox}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Em}from"@vkontakte/videoplayer-shared/es2018";var b1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Bx({maxCount:t}):void 0,e!==0?Nx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Bx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Em.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}}},Nx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Em.get(e)||"{}")}catch(a){return{}}},o=a=>Em.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...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 Vd=class extends Uo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),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=b1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(Ox(),Dx(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var $1=()=>[kd,Ed,Ad,Pd,Md,Ld,Vd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Rd}from"@vkontakte/videoplayer-shared/es2018";var Hx=Object.defineProperty,Fx=(t,e,i)=>e in t?Hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Zt=(t,e,i)=>Fx(t,typeof e!="symbol"?e+"":e,i),Jx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:qx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:jx(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},$n=ee(void 0),su=class extends HTMLElement{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"shadowRootContainer"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"internalsExposure",null),Zt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:A}=Id(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&T)return new Zx({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:I,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Rd.create("ui"),this.logger=new Kx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new y1,this.interactiveSubscription=new y1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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=he({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=es(Sm,s)}disconnectedCallback(){var e,i,o,n,a;(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(),Rd.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}}createThinOneStat(e,i={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Id(this.videoConfig,i),{unitedVideoId:s}=e;return new Xx.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,p,f,_,u;if(!this.videoConfig)return;let{albumId:$,statPlace:w,statAuthToken:y,preload:S,autoplay:I,volume:A,muted:P,fromTime:E,canRewindLive:T,supportLink:R,showAds:z,adsSlotId:Y,adsParams:U={},adsPreviewParam:Z,adsAutoplayParam:J,interfaceLanguage:oe,isCyrillicRelatedInterface:ce,logoClickable:le,logoHidden:Le,isMobile:Re,isTouch:X,isAudioDisabled:Me,isLiveCatchUpMode:j,fullScreenTarget:N,failoverHosts:Ve,canDownload:xe,callbacks:re,interactiveData:Be,showThumbTimer:ue,additionalButtons:D=[],additionalSettingsMenuItems:de=[],additionalContextMenuItems:Ee=[],repeat:Qe,saveRate:at,volumeMultiplier:Ae,showEndScreen:ye,showAutoplayNext:Pe}=Id(this.videoConfig,i),{sources:nt,title:pt,thumbUrl:tt,unitedVideoId:Lt,isClip:rt=!1,duration:ft,adsParams:Ht={},videoEpisodes:Ut,previewThumbsData:Ne,subtitles:ne,live:W}=e,se={...U,...Ht},pe=this.getNextVideoInfo(),Ce={sources:nt,title:pt,thumbUrl:tt,subtitles:ne,unitedVideoId:Lt,isClip:rt,live:W,albumId:$,statPlace:w,autoplay:I,muted:P,volume:A,fromTime:E,canRewindLive:T,showAds:z,adsSlotId:Y,adsParams:se,adsPreviewParam:Z,adsAutoplayParam:J,duration:ft,logoClickable:le,logoHidden:Le,isTouch:X!=null?X:Re,repeat:Qe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:pe.nextVideoTitle,endScreenVideoThumb:pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ce)}`});let dt=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Vt,qe=this.createThinOneStat(e,i);(Vt||qe)&&(this.statistics=new Oc(Vt,qe,dt==null?void 0:dt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ks(this.uiConfig.sentry,{version:Va,env:uc},{movieId:Lt,albumId:$,place:w,autoplay:(a=I&&!this.interactiveController)!=null?a:!1,mobile:X!=null?X:Re,clip:rt}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...Ks.getInstance()};let Xe=!!Be,$t=[],Qt="tooltip_interactive_go_back_disabled_first";if(Xe&&this.interactiveController){let oi=this.interactiveController.state.isInitialChapter$.getValue(),Ci=this.interactiveController.getHistoryState();oi&&$t.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||$t.push("SEEK_TO_INTERACTIVE_BUTTON"),Ci.hasPrevChapter$.getValue()||($t.push("PLAY_PREV_CHAPTER_BUTTON"),oi||(Ci.isGoBackLimited$.getValue()?Qt="tooltip_interactive_go_back_disabled_limit":Qt="tooltip_interactive_go_back_disabled"))}let Ye=()=>{var oi;this.isInited=!1,this.prevIsid=void 0;let Ci=(o==null?void 0:o.info.isEnded$.getValue())&&((oi=this.interactiveController)==null?void 0:oi.state.isEndChapter$.getValue());re.onReplayInteractiveVideo&&!Ci?re.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Dh({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:ce,videoId:Lt,isClip:rt,isLiveCatchUpMode:j,isAudioDisabled:Me,statAuthToken:y,callbacks:re,webApi:Oe,videoEpisodes:Ut,previewThumbsData:Ne,canDownload:xe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:$t,isInteractive:Xe,saveRate:at,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ye,playPrevChapterDisabledTooltip:Qt,hasInteractiveBranches:!!((u=(_=this.interactiveController)==null?void 0:_.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?D:[],additionalSettingsMenuItems:de!=null?de:[],additionalContextMenuItems:Ee!=null?Ee:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Qe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:wt}=this.microStoresRoot=$1(),li=()=>{var oi,Ci,Oi,Mo,$o,yo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onCurrentFormatChanged)==null?void 0:Ke.call(re,H)})),this.subscription.add(wt.interactiveControlsOpacity$.subscribe(H=>{var Ke;H!==null&&((Ke=this==null?void 0:this.interactiveController)==null||Ke.setDisabledControls(H))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onThroughputEstimationChanged)==null?void 0:Ke.call(re,H)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onTrafficSavingEnabledChanged)==null?void 0:Ke.call(re,H)})),this.subscription.add(new Wx(H=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>H.next(Ke)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Yx(1):H=>H).subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onCurrentPlaybackRateChanged)==null?void 0:Ke.call(re,H)})),this.subscription.add(this.store.state.volume$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onVolumeChange)==null?void 0:Ke.call(re,H)})),this.subscription.add(this.store.state.muted$.subscribe(H=>{var Ke,ni;return H?(Ke=re==null?void 0:re.onMute)==null?void 0:Ke.call(re):(ni=re==null?void 0:re.onUnmute)==null?void 0:ni.call(re)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onVideoBitrateChanged)==null?void 0:Ke.call(re,H)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(H=>{var Ke;let ni=(Ke=this.store)==null?void 0:Ke.ui.controls.disabledControls$;ni&&(H&&!ni.includes(Al)&&ni.add(Al),H||ni.remove(Al))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async H=>{var Ke;if(!x1.browser.isSamsungBrowser||!H||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ke=this.videoConfig)==null?void 0:Ke.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(H=>{var Ke;return(Ke=re==null?void 0:re.onVSIDChanged)==null?void 0:Ke.call(re,H)})),this.initMediaSession(),O($n,he({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:nt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:pt,thumbUrl:tt,subtitles:ne,live:W,preload:S,autoplay:I,muted:P,volume:A,fromTime:E,canRewindLive:T,supportLink:R,showAds:z,adsSlotId:Y,adsParams:se,adsPreviewParam:Z,adsAutoplayParam:J,duration:ft,logoClickable:le,logoHidden:Le,isMobile:X!=null?X:Re,failoverHosts:Ve,fullScreenTarget:N,saveRate:at,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:pe.nextVideoTitle,endScreenVideoThumb:pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:ye,showAutoplayNext:Pe}));let Lo={target:this.playerContainer,props:r($n)};this.svelteRootComponent=es(ym,Lo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Oi=(Ci=(oi=this.videoConfig)==null?void 0:oi.callbacks)==null?void 0:Ci.onInited)==null||Oi.call(Ci)),(Mo=this.internalsExposure)==null||Mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((yo=($o=this.videoConfig)==null?void 0:$o.callbacks)!=null&&yo.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?x1.isInited$.subscribe(oi=>{oi&&(console.log("UI SDK async start"),li())}):li()}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:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Am(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,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:p,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,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var I,A,P,E,T,R;if(!this.store||!this.microStoresRoot)return;let z=u.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Pl)),y==="action-choice-canceled"){let Y=we(this.store.state.isPlaying$)||z;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||R.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(Pl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,f,_,u,$,w,y,S,I,A,P,E,T,R,z,Y,U,Z,J,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Id(Jx,zx(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.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Gx("UI"))),Rd.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:[Ux()]}),Am(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Am(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((J=this.videoConfig.videos)!=null&&J[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ce={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=iu.getLatestSupportedVersion(ce):this.pictureInPictureApi=new Qs(ce)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new tu:void 0,this.slotsApi=this.uiConfig.features.slots?new Zc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ou(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer),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]),m1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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}={...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})}}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)}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)}async setLanguage(e){var i;await((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})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(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)}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(Qx()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Fs(e)}};import{InterfaceLanguage as nZ,VKNumericLanguage as rZ,loadVKLangPack as sZ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as lZ,VideoFormat as dZ}from"@vkontakte/videoplayer-core/es2018";var jj=()=>{window.customElements.define("vk-video-player",su)};export{Hc as ControlButtonType,Fr as GridTypes,nZ as InterfaceLanguage,Hl as MenuItemType,Ws as PlayerPhase,Va as VERSION,rZ as VKNumericLanguage,dZ as VideoFormat,lZ as VideoQuality,sZ as loadVKLangPack,jj as registerPlayerWebComponent};
394
+ /* \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 Im(t,e){q(e,!0),Q(t,gx);let[i,o]=Fe(),n=()=>C(Ut,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),p=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),u=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),U=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),F=v(e,"adsPreviewParam",7,void 0),j=v(e,"adsAutoplayParam",7,void 0),X=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),pe=v(e,"logoHidden",7),le=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Me=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),Z=v(e,"endScreenVideoThumb",7,void 0),B=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),ne=v(e,"shadowRootContainer",7,void 0),ke=v(e,"outerContainerRef",7,void 0),Ne=v(e,"fullScreenTarget",7,void 0),fe=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,g1),Ge=v(e,"playPrevChapter",7,g1),lt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),$e=v(e,"showEndScreen",7,!0),Pe=v(e,"keyboardControls",15,void 0),{subscribers:nt,stores:mt}=d();wg(p());let at=qt(),It=p().logoLink,rt=s().ui.debugPanelVisible,vt=s().ui.playerSize,Ut=s().state.isLive$,Be=s().state.isInteractive&&ux.device.isAndroid,re=ee(void 0),W=null,se=ee(!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}),Lg(s(),mt),Ke(()=>{s().ui.isMobile.set(le())});let he=(z=!1)=>{O(se,!0),z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Se=()=>{if(at.features.qualityDetailsSubMenuEnabled){let z=Jg(s().videoId);if(z)switch(z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(z.quality);break}}else{eh(s().videoId),Sp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Wt=$p(s().videoId);Wt&&s().actions.internal.setQuality(Wt)}};function De(z){var ei,oo,mo;let Wt=a()||z;Wt&&s().initVideo({container:r(re),sources:Wt,failoverHosts:fe(),subtitles:w(),volumeMultiplier:lt()});let Oi=px.get(El)==="true";rt.set(Oi),E()>0&&s().actions.external.seekTime(E());let Mi=le()?at.volumeDefault:(oo=(ei=A())!=null?ei:bc())!=null?oo:at.volumeDefault,mi=(mo=P())!=null?mo:Qg();if(s().actions.external.setVolume(Mi),s().actions.external.setMuted(mi),s().getAdmanWrapper().setInitialVolume(mi?0:Mi),Se(),at.features.saveRate&&de()){let Hi=jg();Hi&&!n()&&s().actions.internal.setPlaybackRate(Hi)}if(Ae()){let Hi=Xg();Hi&&s().actions.internal.setAutoplayNextEnabled(Hi)}s().ui.isAutoplay.set(I()),I()?he():S()&&at.features.preload&&s().actions.internal.preload()}let ct=z=>{if(window.ResizeObserver){let Wt,Oi;W=new ResizeObserver(fx(Mi=>{let mi=Mi[0];if(mi.contentBoxSize){let ei=Array.isArray(mi.contentBoxSize)?mi.contentBoxSize[0]:mi.contentBoxSize;Wt=ei.inlineSize,Oi=ei.blockSize}else mi.contentRect&&(Wt=mi.contentRect.width,Oi=mi.contentRect.height);vt.set({width:Wt,height:Oi})},300)),W.observe(z)}vt.set({width:z.clientWidth,height:z.clientHeight})},Kt=()=>{document.hidden&&s().actions.external.stop()};Ot(()=>{var Oi,Mi,mi,ei;Be&&document.addEventListener("visibilitychange",Kt),at.debugLog&&s().actions.internal.startLogging(),ct(r(re));let z=nt.map(oo=>oo.init({store:s(),microStores:mt,config:l(),interactiveController:$(),uiConfig:p()})),Wt=()=>{Be&&document.removeEventListener("visibilitychange",Kt),W==null||W.disconnect(),z.forEach(oo=>oo.unsubscribe()),s().destroy()};return((Oi=y())==null?void 0:Oi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Wt):((Mi=y())==null?void 0:Mi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Wt):(((mi=y())==null?void 0:mi.status)==="finished"||((ei=y())==null?void 0:ei.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Wt):(De(),Wt)});function je(){r(se)?s().actions.external.play():he(!0)}function ut(){s().actions.external.pause()}function Xe(z){s().actions.external.setMuted(z)}function Et(z){le()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function ni(z){s().actions.internal.seekTime(z,mx.UNKNOWN)}function Qe(z){s().actions.external.seekEpisodeStartTime(z)}function it(){s().actions.external.returnFocusToEpisodes()}function Jt(z){s().actions.external.setPlaybackRate(z)}function ki(z){s().actions.external.setAutoQualityLimits(z)}let Co=ru(at.view);var Di=vx();et(Di,Co);var To=h(Di);{var Oo=z=>{Tm(z,{get store(){return s()},uiConfig:at,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:It,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ge()},firstStart:he,seekTime:ni,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Wt){O(re,me(Wt))}})},Mt=z=>{Sm(z,{get store(){return s()},uiConfig:at,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:It,get nextButtonActive(){return Me()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Ge()},firstStart:he,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Wt){O(re,me(Wt))},get keyboardControls(){return Pe()},set keyboardControls(Wt){Pe(Wt)}})};R(To,z=>{le()?z(Oo):z(Mt,!1)})}g(Di),b(t,Di);var ht=K({initVideo:De,play:je,pause:ut,setMuted:Xe,setVolume:Et,seekTime:ni,seekEpisodeStartTime:Qe,returnFocusToEpisodes:it,setPlaybackRate:Jt,setAutoQualityLimits:ki,get sources(){return a()},set sources(z){a(z)},get store(){return s()},set store(z){s(z)},get microStoresRoot(){return d()},set microStoresRoot(z){d(z)},get videoConfig(){return l()},set videoConfig(z){l(z)},get uiConfig(){return p()},set uiConfig(z){p(z)},get title(){return f()},set title(z){f(z)},get thumbUrl(){return _()},set thumbUrl(z){_(z)},get interactiveContainer(){return u()},set interactiveContainer(z){u(z)},get interactiveController(){return $()},set interactiveController(z){$(z)},get subtitles(){return w()},set subtitles(z){w(z)},get live(){return y()},set live(z){y(z)},get preload(){return S()},set preload(z){S(z)},get autoplay(){return I()},set autoplay(z){I(z)},get volume(){return A()},set volume(z){A(z)},get muted(){return P()},set muted(z){P(z)},get fromTime(){return E()},set fromTime(z){E(z)},get canRewindLive(){return T()},set canRewindLive(z){T(z)},get showAds(){return V()},set showAds(z){V(z)},get adsSlotId(){return U()},set adsSlotId(z){U(z)},get adsParams(){return Y()},set adsParams(z){Y(z)},get adsPreviewParam(){return F()},set adsPreviewParam(z){F(z)},get adsAutoplayParam(){return j()},set adsAutoplayParam(z){j(z)},get duration(){return X()},set duration(z){X(z)},get logoClickable(){return oe()},set logoClickable(z){oe(z)},get logoHidden(){return pe()},set logoHidden(z){pe(z)},get isMobile(){return le()},set isMobile(z){le(z)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(z){Ve(z)},get nextButtonActive(){return Me()},set nextButtonActive(z){Me(z)},get prevButtonActive(){return J()},set prevButtonActive(z){J(z)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(z){Le(z)},get endScreenVideoThumb(){return Z()},set endScreenVideoThumb(z){Z(z)},get isOneVideoPlaylist(){return B()},set isOneVideoPlaylist(z){B(z)},get supportLink(){return Re()},set supportLink(z){Re(z)},get shadowRootContainer(){return ne()},set shadowRootContainer(z){ne(z)},get outerContainerRef(){return ke()},set outerContainerRef(z){ke(z)},get fullScreenTarget(){return Ne()},set fullScreenTarget(z){Ne(z)},get failoverHosts(){return fe()},set failoverHosts(z){fe(z)},get showMiniTimer(){return D()},set showMiniTimer(z){D(z)},get saveRate(){return de()},set saveRate(z){de(z)},get showAutoplayNext(){return Ae()},set showAutoplayNext(z){Ae(z)},get seekToInteractive(){return Ee()},set seekToInteractive(z){Ee(z)},get playPrevChapter(){return Ge()},set playPrevChapter(z){Ge(z)},get volumeMultiplier(){return lt()},set volumeMultiplier(z){lt(z)},get showEndScreen(){return $e()},set showEndScreen(z){$e(z)},get keyboardControls(){return Pe()},set keyboardControls(z){Pe(z)}});return o(),ht}var hx=be('<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 km(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=hx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function Em(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");km(t,{get style(){return r(o)}})}var _x=L('<div class="title svelte-1y9fytq"> </div>'),bx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),$x={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 Am(t,e){Q(t,$x);var i=bx(),o=h(i);{var n=d=>{var l=_x(),p=h(l,!0);g(l),k(()=>ve(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Em(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>et(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Wx}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as Qx,InterfaceLanguage as Gx,isNonNullable as Nm,Logger as Yx,Observable as jx,Subscription as S1,once as Zx,InternalsExposure as Xx,skip as Jx}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as C1,isMobile as e5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as t5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as yx,Subscription as xx}from"@vkontakte/videoplayer-shared/es2018";var su=class{constructor(){this.subscription=new xx,this.logger=new yx,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=ye(e.state.currentPlaybackRate$),n=ye(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 Lm,detectEmbed as kx}from"@vkontakte/videoplayer-shared/es2018";var wx=be('<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 Pm(t,e){let i=Ie(e,["$$slots","$$events","$$legacy","children"]);var o=wx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),k(()=>n=xe(o,n,{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})),b(t,o)}var Sx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Cx={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 Mm(t,e){q(e,!0),Q(t,Cx);let[i,o]=Fe(),n=()=>C(p,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=we(),d=qt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,u=m(()=>n()&&_("pip_dummy_title")),$=ru(d.view);var w=Sx();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),et(w,$);var y=h(w);let S;var I=h(y);Pm(I,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),k(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),ve(P,r(u))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var Tx=Object.defineProperty,Ix=(t,e,i)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ja=(t,e,i)=>Ix(t,typeof e!="symbol"?e+"":e,i),Ex=460,Ax=280,Td=class{constructor({enabled:e=!0}={enabled:!0}){ja(this,"playerDomElement"),ja(this,"playerParentShadowRoot"),ja(this,"playerDummyElement"),ja(this,"svelteContext"),ja(this,"pipWindow"),ja(this,"info",{isActive$:new Lm(!1),isEnabled$:new Lm(!1),type:1}),this.info.isEnabled$=new Lm(e)}isSupported(){let{isEmbed:e}=kx();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}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:Ex,height:Ax,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
395
+ `),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(Mm,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||(Us(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await 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 h1(t){return t instanceof Td}var au=class{static getLatestSupportedVersion(e){let i=new Ys,o=new Td(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lu(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 _1="Inner error. Unexpectedly root annotation container null reference exception",b1="Annotation with such name already exists",$1="Annotation with such name does not exist";var Za=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Px,Subscription as Mx,throttleFn as Lx}from"@vkontakte/videoplayer-shared/es2018";var Vx="1",Rx=100,du=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Mx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Lx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Rx);this.subscriptions.add(Px(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 Za(_1);if(this.annotations.has(e))throw new Za(b1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Vx,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 Za($1);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 cu,Subscription as Nx}from"@vkontakte/videoplayer-shared/es2018";var Do=class{init({store:e,microStores:i,interactiveController:o,config:n}){return cu(e),cu(i),cu(n),n.interactiveData&&cu(o),this.subscription=new Nx,this.subscription}};var Id=class extends Do{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(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 kd=class extends Do{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(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:p,isMobile:f}=a.ui,_=ye(f),u=()=>_&&ye(p);return o.add(p.subscribe($=>{if(!_)return;let w=ye(s);ye(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||u())})),o.add(s.subscribe($=>{if($===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ed=class extends Do{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("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 Bx}from"@vkontakte/videoplayer-shared/es2018";var Vm=ae(!1),uu=null,Ad=class extends Do{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Vm,set:(i,o=!1)=>{i!==ye(Vm)&&(this.clearTimeout(),Vm.set(i),!i&&uu&&(uu=!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:p}=n.ui.controls;o.add(l.subscribe(_=>{ye(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Bx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&uu===null&&(uu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Dx,noop as Ox}from"@vkontakte/videoplayer-shared/es2018";var Pd=class extends Do{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Ox};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=async()=>{if(this.checkIfShouldHide(ye(s)))return;let l=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,u=ye(p),$=ye(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(fp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),_.add(fp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Dx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(_){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as y1}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Do{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(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 y1(!1),isEnabled$:new y1(!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 Ux,filterChanged as zx}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Rm}from"@vkontakte/videoplayer-shared/es2018";var x1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Hx({maxCount:t}):void 0,e!==0?Fx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Hx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Rm.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}}},Fx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Rm.get(e)||"{}")}catch(a){return{}}},o=a=>Rm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...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 Ld=class extends Do{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),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=x1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(zx(),Ux(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var w1=()=>[Id,kd,Ed,Ad,Pd,Md,Ld].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Vd}from"@vkontakte/videoplayer-shared/es2018";var qx=Object.defineProperty,Kx=(t,e,i)=>e in t?qx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>Kx(t,typeof e!="symbol"?e+"":e,i),i5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Gx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:e5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},yn=ee(void 0),pu=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:A}=lu(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new t5({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:I,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Vd.create("ui"),this.logger=new Yx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new S1,this.interactiveSubscription=new S1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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(Am,s)}disconnectedCallback(){var e,i,o,n,a;(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(),Vd.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,p,f,_;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:I,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:j,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:le,isMobile:Ve,isTouch:Me,isAudioDisabled:J,isLiveCatchUpMode:Le,fullScreenTarget:Z,failoverHosts:B,canDownload:Re,callbacks:ne,interactiveData:ke,showThumbTimer:Ne,additionalButtons:fe=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:de=[],repeat:Ee,saveRate:Ge,volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:$e}=lu(this.videoConfig,i),{sources:Pe,title:nt,thumbUrl:mt,unitedVideoId:at,isClip:It=!1,duration:rt,adsParams:vt={},videoEpisodes:Ut,previewThumbsData:Qt,subtitles:Be,live:re}=e,W={...Y,...vt},se=this.getNextVideoInfo(),he={sources:Pe,title:nt,thumbUrl:mt,subtitles:Be,unitedVideoId:at,isClip:It,live:re,albumId:u,statPlace:$,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,showAds:V,adsSlotId:U,adsParams:W,adsPreviewParam:F,adsAutoplayParam:j,duration:rt,logoClickable:pe,logoHidden:le,isTouch:Me!=null?Me:Ve,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(he)}`});let De=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ct=(De==null?void 0:De.oneStat)||this.createOneStat(e,i);ct&&(this.statistics=new qc(ct,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Qs(this.uiConfig.sentry,{version:Na,env:gc},{movieId:at,albumId:u,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ve,clip:It}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Qs.getInstance()};let je=!!ke,ut=[],Xe="tooltip_interactive_go_back_disabled_first";if(je&&this.interactiveController){let it=this.interactiveController.state.isInitialChapter$.getValue(),Jt=this.interactiveController.getHistoryState();it&&ut.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ut.push("SEEK_TO_INTERACTIVE_BUTTON"),Jt.hasPrevChapter$.getValue()||(ut.push("PLAY_PREV_CHAPTER_BUTTON"),it||(Jt.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Et=()=>{var it;this.isInited=!1,this.prevIsid=void 0;let Jt=(o==null?void 0:o.info.isEnded$.getValue())&&((it=this.interactiveController)==null?void 0:it.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!Jt?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Fh({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:at,isClip:It,isLiveCatchUpMode:Le,isAudioDisabled:J,statAuthToken:w,callbacks:ne,webApi:Se,videoEpisodes:Ut,previewThumbsData:Qt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ut,isInteractive:je,saveRate:Ge,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Et,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ni}=this.microStoresRoot=w1(),Qe=()=>{var it,Jt,ki,Co,Di,To;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(ni.interactiveControlsOpacity$.subscribe(Mt=>{var ht;Mt!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(new jx(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>Mt.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Jx(1):Mt=>Mt).subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onVolumeChange)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var ht,z;return Mt?(ht=ne==null?void 0:ne.onMute)==null?void 0:ht.call(ne):(z=ne==null?void 0:ne.onUnmute)==null?void 0:z.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:ht.call(ne,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var ht;let z=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;z&&(Mt&&!z.includes(Al)&&z.add(Al),Mt||z.remove(Al))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Mt=>{var ht;if(!C1.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var ht;return(ht=ne==null?void 0:ne.onVSIDChanged)==null?void 0:ht.call(ne,Mt)})),this.initMediaSession(),O(yn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:nt,thumbUrl:mt,subtitles:Be,live:re,preload:y,autoplay:S,muted:A,volume:I,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:W,adsPreviewParam:F,adsAutoplayParam:j,duration:rt,logoClickable:pe,logoHidden:le,isMobile:Me!=null?Me:Ve,failoverHosts:B,fullScreenTarget:Z,saveRate:Ge,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:lt,showEndScreen:Ae,showAutoplayNext:$e}));let Oo={target:this.playerContainer,props:r(yn)};this.svelteRootComponent=es(Im,Oo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ki=(Jt=(it=this.videoConfig)==null?void 0:it.callbacks)==null?void 0:Jt.onInited)==null||ki.call(Jt)),(Co=this.internalsExposure)==null||Co.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((To=(Di=this.videoConfig)==null?void 0:Di.callbacks)!=null&&To.onDevNullLog)?Vd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Vd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?C1.isInited$.subscribe(it=>{it&&(console.log("UI SDK async start"),Qe())}):Qe()}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:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.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&&Nm(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)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,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:p,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,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var I,A,P,E,T,V;if(!this.store||!this.microStoresRoot)return;let U=u.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Pl)),y==="action-choice-canceled"){let Y=ye(this.store.state.isPlaying$)||U;if(((P=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(Pl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(S=>{var I,A,P;S.length&&((P=(A=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(I)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,f,_,u,$,w,y,S,I,A,P,E,T,V,U,Y,F,j,X,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=lu(i5,Qx(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.uiConfig=xg((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.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Xx("UI"))),Vd.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:[Wx()]}),Nm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Nm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=au.getLatestSupportedVersion(pe):this.pictureInPictureApi=new Ys(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new su:void 0,this.slotsApi=this.uiConfig.features.slots?new iu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new du(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer),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]),h1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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(yn)&&(r(yn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(yn).nextButtonActive=this.isNextButtonActive(),r(yn).prevButtonActive=this.isPrevButtonActive(),r(yn).endScreenVideoTitle=o.nextVideoTitle,r(yn).endScreenVideoThumb=o.nextVideoThumb,r(yn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",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})}}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)}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(yn)&&(r(yn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(yn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(yn).nextButtonActive=this.isNextButtonActive(),r(yn).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)}async setLanguage(e){var i;await((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})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(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)}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()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),s=ye(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(Zx()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}unmountComponent(e){e&&Us(e)}};import{InterfaceLanguage as vZ,VKNumericLanguage as gZ,loadVKLangPack as hZ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as bZ,VideoFormat as $Z}from"@vkontakte/videoplayer-core/es2018";var aZ=()=>{window.customElements.define("vk-video-player",pu)};export{Kc as ControlButtonType,Hr as GridTypes,vZ as InterfaceLanguage,Hl as MenuItemType,Gs as PlayerPhase,Na as VERSION,gZ as VKNumericLanguage,$Z as VideoFormat,bZ as VideoQuality,hZ as loadVKLangPack,aZ as registerPlayerWebComponent};