@vkontakte/videoplayer 1.1.72-dev.752fa0a9.0 → 1.1.72-dev.95df362c.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.cjs.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.72-dev.752fa0a9.0
3
- * Mon, 22 Sep 2025 10:11:23 GMT
2
+ * @vkontakte/videoplayer v1.1.72-dev.95df362c.0
3
+ * Tue, 23 Sep 2025 09:42:39 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-72/doc/
5
5
  */
6
- "use strict";var G0=Object.create;var Wl=Object.defineProperty;var j0=Object.getOwnPropertyDescriptor;var Y0=Object.getOwnPropertyNames;var Z0=Object.getPrototypeOf,X0=Object.prototype.hasOwnProperty;var eg=t=>{throw TypeError(t)};var J0=(t,e,i)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var e_=(t,e)=>{for(var i in e)Wl(t,i,{get:e[i],enumerable:!0})},tg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Y0(e))!X0.call(t,n)&&n!==i&&Wl(t,n,{get:()=>e[n],enumerable:!(o=j0(e,n))||o.enumerable});return t};var ig=(t,e,i)=>(i=t!=null?G0(Z0(t)):{},tg(e||!t||!t.__esModule?Wl(i,"default",{value:t,enumerable:!0}):i,t)),t_=t=>tg(Wl({},"__esModule",{value:!0}),t);var Jn=(t,e,i)=>J0(t,typeof e!="symbol"?e+"":e,i),yp=(t,e,i)=>e.has(t)||eg("Cannot "+i);var Ai=(t,e,i)=>(yp(t,e,"read from private field"),i?i.call(t):e.get(t)),Es=(t,e,i)=>e.has(t)?eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ua=(t,e,i,o)=>(yp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),og=(t,e,i)=>(yp(t,e,"access private method"),i);var b5={};e_(b5,{ControlButtonType:()=>Qd,GridTypes:()=>Fr,InterfaceLanguage:()=>Ol.InterfaceLanguage,MenuItemType:()=>bl,PlayerPhase:()=>ss,VERSION:()=>pa,VKNumericLanguage:()=>Ol.VKNumericLanguage,VideoFormat:()=>dp.VideoFormat,VideoQuality:()=>dp.VideoQuality,loadVKLangPack:()=>Ol.loadVKLangPack,registerPlayerWebComponent:()=>_5});module.exports=t_(b5);var Is="[",ks="[!",Gs="]",Xr={};var Zi=Symbol(),Mn=Symbol("filename"),ng=Symbol("hmr"),rg="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var xp="@attach";var Lc=!0;var ag,lg,sg=(lg=(ag=globalThis.process)==null?void 0:ag.env)==null?void 0:lg.NODE_ENV,Me=sg&&!sg.toLowerCase().startsWith("prod");var er=Array.isArray,dg=Array.prototype.indexOf,Kl=Array.from,wp=Object.keys,ro=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,Sp=Object.prototype,cg=Array.prototype,js=Object.getPrototypeOf,Cp=Object.isExtensible;function Ps(t){return typeof t=="function"}var de=()=>{};function ug(t){return t()}function As(t){for(var e=0;e<t.length;e++)t[e]()}var Do=Symbol("$state"),za=Symbol("legacy props"),pg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,Wa=3,tr=8;function Oc(t){return t===this.v}function Ka(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function fg(t,e){return t!==e}function qa(t){return!Ka(t,this.v)}function mg(){if(Me){let t=new Error(`derived_references_self
6
+ "use strict";var U0=Object.create;var Hl=Object.defineProperty;var z0=Object.getOwnPropertyDescriptor;var W0=Object.getOwnPropertyNames;var K0=Object.getPrototypeOf,q0=Object.prototype.hasOwnProperty;var Wv=t=>{throw TypeError(t)};var Q0=(t,e,i)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var G0=(t,e)=>{for(var i in e)Hl(t,i,{get:e[i],enumerable:!0})},Kv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of W0(e))!q0.call(t,n)&&n!==i&&Hl(t,n,{get:()=>e[n],enumerable:!(o=z0(e,n))||o.enumerable});return t};var qv=(t,e,i)=>(i=t!=null?U0(K0(t)):{},Kv(e||!t||!t.__esModule?Hl(i,"default",{value:t,enumerable:!0}):i,t)),j0=t=>Kv(Hl({},"__esModule",{value:!0}),t);var Yn=(t,e,i)=>Q0(t,typeof e!="symbol"?e+"":e,i),fp=(t,e,i)=>e.has(t)||Wv("Cannot "+i);var Ai=(t,e,i)=>(fp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ts=(t,e,i)=>e.has(t)?Wv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),za=(t,e,i,o)=>(fp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Qv=(t,e,i)=>(fp(t,e,"access private method"),i);var c5={};G0(c5,{ControlButtonType:()=>zd,GridTypes:()=>Hr,InterfaceLanguage:()=>Bl.InterfaceLanguage,MenuItemType:()=>$l,PlayerPhase:()=>ss,VERSION:()=>pa,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>np.VideoFormat,VideoQuality:()=>np.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>d5});module.exports=j0(c5);var Es="[",Is="[!",Gs="]",Xr={};var Xi=Symbol(),Vn=Symbol("filename"),Gv=Symbol("hmr"),jv="http://www.w3.org/1999/xhtml",Ec="http://www.w3.org/2000/svg";var mp="@attach";var Ic=!0;var Zv,Xv,Yv=(Xv=(Zv=globalThis.process)==null?void 0:Zv.env)==null?void 0:Xv.NODE_ENV,Me=Yv&&!Yv.toLowerCase().startsWith("prod");var Zn=Array.isArray,Jv=Array.prototype.indexOf,Fl=Array.from,vp=Object.keys,lo=Object.defineProperty,en=Object.getOwnPropertyDescriptor,kc=Object.getOwnPropertyDescriptors,gp=Object.prototype,eg=Array.prototype,js=Object.getPrototypeOf,hp=Object.isExtensible;function ks(t){return typeof t=="function"}var de=()=>{};function tg(t){return t()}function Ps(t){for(var e=0;e<t.length;e++)t[e]()}var Uo=Symbol("$state"),Wa=Symbol("legacy props"),ig=Symbol(""),Pc=Symbol("proxy path"),Ac=1,Ka=3,Xn=8;function Mc(t){return t===this.v}function qa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function og(t,e){return t!==e}function Qa(t){return!qa(t,this.v)}function ng(){if(Me){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 vg(t){if(Me){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 rg(t){if(Me){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 gg(){if(Me){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 hg(t){if(Me){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 sg(){if(Me){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 ag(t){if(Me){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 _g(){if(Me){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 lg(){if(Me){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 bg(){if(Me){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 dg(){if(Me){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 $g(){if(Me){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 yg(t){if(Me){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 cg(){if(Me){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 ug(t){if(Me){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 xg(t){if(Me){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 pg(t){if(Me){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 wg(t){if(Me){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 fg(t){if(Me){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 Sg(){if(Me){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 Cg(){if(Me){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 Tg(){if(Me){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Jr=!1,es=!1;function Eg(){Jr=!0}var ql=null;function cs(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 mg(){if(Me){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 vg(){if(Me){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 gg(){if(Me){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Jr=!1,es=!1;function hg(){Jr=!0}var Ul=null;function cs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;ro(e,"stack",{value:n.join(`
25
- `)}),ro(e,"name",{value:`${t}Error`})}return e}function Vr(t,e){return t.label=e,Bc(t.v,e),t}function Bc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function Qa(t){if(Me){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;lo(e,"stack",{value:n.join(`
25
+ `)}),lo(e,"name",{value:`${t}Error`})}return e}function Lr(t,e){return t.label=e,Lc(t.v,e),t}function Lc(t,e){var i;return(i=t==null?void 0:t[Pc])==null||i.call(t,e),t}function Ga(t){if(Me){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Bt=null;function Ql(t){Bt=t}var ir=null;function Gl(t){ir=t}function Ga(t){return Ip("getContext").get(t)}function ja(t,e){return Ip("setContext").set(t,e),e}function jl(){return Ip("getAllContexts")}function U(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Jr&&!e&&(Bt.l={s:null,u:null,r1:[],r2:br(!1)}),Ho(()=>{o.d=!0}),Me&&(Bt.function=i,ir=i)}function z(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=It;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];so(s.effect),Ui(s.reaction),So(s.fn)}}finally{so(i),Ui(o)}}Bt=e.p,Me&&(ir=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ts(){return!Jr||Bt!==null&&Bt.l===null}function Ip(t){var e;return Bt===null&&Qa(t),(e=Bt.c)!=null?e:Bt.c=new Map(o_(Bt)||void 0)}function o_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var n_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Do in t)return t;let e=js(t);if(e!==Sp&&e!==cg)return t;var i=new Map,o=er(t),n=Z(0),s=Me&&es?cs("CreatedAt"):null,l=It,d=f=>{var m=It;Ui(l);var u=f();return Ui(m),u};o&&i.set("length",Z(t.length,s));var a="";function p(f){a=f,Vr(n,`${a} version`);for(let[m,u]of i)Vr(u,Ys(a,m))}return new Proxy(t,{defineProperty(f,m,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Sg();var y=i.get(m);return y===void 0?y=d(()=>{var w=Z(u.value,s);return i.set(m,w),Me&&typeof m=="string"&&Vr(w,Ys(a,m)),w}):O(y,u.value,!0),!0},deleteProperty(f,m){var u=i.get(m);if(u===void 0){if(m in f){let x=d(()=>Z(Zi,s));i.set(m,x),kp(n),Me&&Vr(x,Ys(a,m))}}else{if(o&&typeof m=="string"){var y=i.get("length"),w=Number(m);Number.isInteger(w)&&w<y.v&&O(y,w)}O(u,Zi),kp(n)}return!0},get(f,m,u){var S;if(m===Do)return t;if(Me&&m===Rc)return p;var y=i.get(m),w=m in f;if(y===void 0&&(!w||(S=Jo(f,m))!=null&&S.writable)&&(y=d(()=>{var T=ni(w?f[m]:Zi),E=Z(T,s);return Me&&Vr(E,Ys(a,m)),E}),i.set(m,y)),y!==void 0){var x=r(y);return x===Zi?void 0:x}return Reflect.get(f,m,u)},getOwnPropertyDescriptor(f,m){var u=Reflect.getOwnPropertyDescriptor(f,m);if(u&&"value"in u){var y=i.get(m);y&&(u.value=r(y))}else if(u===void 0){var w=i.get(m),x=w==null?void 0:w.v;if(w!==void 0&&x!==Zi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,m){var x;if(m===Do)return!0;var u=i.get(m),y=u!==void 0&&u.v!==Zi||Reflect.has(f,m);if(u!==void 0||gt!==null&&(!y||(x=Jo(f,m))!=null&&x.writable)){u===void 0&&(u=d(()=>{var S=y?ni(f[m]):Zi,T=Z(S,s);return Me&&Vr(T,Ys(a,m)),T}),i.set(m,u));var w=r(u);if(w===Zi)return!1}return y},set(f,m,u,y){var k;var w=i.get(m),x=m in f;if(o&&m==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,Zi):S in f&&(T=d(()=>Z(Zi,s)),i.set(S+"",T),Me&&Vr(T,Ys(a,S)))}if(w===void 0)(!x||(k=Jo(f,m))!=null&&k.writable)&&(w=d(()=>Z(void 0,s)),O(w,ni(u)),i.set(m,w),Me&&Vr(w,Ys(a,m)));else{x=w.v!==Zi;var E=d(()=>ni(u));O(w,E)}var R=Reflect.getOwnPropertyDescriptor(f,m);if(R!=null&&R.set&&R.set.call(y,u),!x){if(o&&typeof m=="string"){var I=i.get("length"),M=Number(m);Number.isInteger(M)&&M>=I.v&&O(I,M+1)}kp(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Zi});for(var[u,y]of i)y.v!==Zi&&!(u in f)&&m.push(u);return m},setPrototypeOf(){Cg()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:n_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function kp(t,e=1){O(t,t.v+e)}function Ya(t){try{if(t!==null&&typeof t=="object"&&Do in t)return t[Do]}catch(e){}return t}function Pp(t,e){return Object.is(Ya(t),Ya(e))}function Rr(t){var e=2050,i=It!==null&&(It.f&2)!==0?It:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Me&&es&&(o.created=cs("CreatedAt")),o}function g(t){let e=Rr(t);return Fc(e),e}function Nr(t){let e=Rr(t);return e.equals=qa,e}function Dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var Ap=[];function r_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Vp(t){var e,i=gt;if(so(r_(t)),Me){let o=Zs;Mp(new Set);try{Ap.includes(t)&&mg(),Ap.push(t),Dc(t),e=Hc(t)}finally{so(i),Mp(o),Ap.pop()}}else try{Dc(t),e=Hc(t)}finally{so(i)}return e}function Rp(t){var e=Vp(t);if(t.equals(e)||(t.v=e,t.wv=Yl()),!us){var i=(ps||(t.f&256)!==0)&&t.deps!==null?4096:1024;gn(t,i)}}var Zs=new Set,Za=new Map;function Mp(t){Zs=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Me&&es&&(i.created=e!=null?e:cs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Z(t,e){let i=br(t,e);return Fc(i),i}function is(t,e=!1,i=!0){var n,s;let o=br(t);return e||(o.equals=qa),Jr&&i&&Bt!==null&&Bt.l!==null&&((s=(n=Bt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;It!==null&&(!rr||(It.f&262144)!==0)&&ts()&&(It.f&262162)!==0&&!((n=Uo)!=null&&n[1].includes(t)&&Uo[0]===It)&&Tg();let o=i?ni(e):e;return Me&&Bc(o,t.label),Xa(t,o)}function Xa(t,e){if(!t.equals(e)){var i=t.v;if(us?Za.set(t,e):Za.set(t,i),t.v=e,Me&&es&&(t.updated=cs("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Vp(t),gn(t,(t.f&256)===0?1024:4096)),t.wv=Yl(),kg(t,2048),ts()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(nr===null?Pg([t]):nr.push(t)),Me&&Zs.size>0){let o=Array.from(Zs);for(let n of o)(n.f&1024)!==0&&gn(n,4096),Js(n)&&Ja(n);Zs.clear()}}return e}function kg(t,e){var i=t.reactions;if(i!==null)for(var o=ts(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Me&&(d&262144)!==0){Zs.add(l);continue}gn(l,e),(d&1280)!==0&&((d&2)!==0?kg(l,4096):Xl(l))}}}var el="font-weight: bold",tl="font-weight: normal";function Ag(t,e,i){Me?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Nt=null;function zl(t){Nt=t}var Jn=null;function Wl(t){Jn=t}function ja(t){return $p("getContext").get(t)}function Ya(t,e){return $p("setContext").set(t,e),e}function Kl(){return $p("getAllContexts")}function U(t,e=!1,i){var o=Nt={p:Nt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Jr&&!e&&(Nt.l={s:null,u:null,r1:[],r2:gr(!1)}),zo(()=>{o.d=!0}),Me&&(Nt.function=i,Jn=i)}function z(t){var l,d;let e=Nt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=_t,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];co(s.effect),Hi(s.reaction),Eo(s.fn)}}finally{co(i),Hi(o)}}Nt=e.p,Me&&(Jn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ts(){return!Jr||Nt!==null&&Nt.l===null}function $p(t){var e;return Nt===null&&Ga(t),(e=Nt.c)!=null?e:Nt.c=new Map(Z0(Nt)||void 0)}function Z0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var X0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Uo in t)return t;let e=js(t);if(e!==gp&&e!==eg)return t;var i=new Map,o=Zn(t),n=j(0),s=Me&&es?cs("CreatedAt"):null,l=Et,d=f=>{var v=Et;Hi(l);var u=f();return Hi(v),u};o&&i.set("length",j(t.length,s));var a="";function p(f){a=f,Lr(n,`${a} version`);for(let[v,u]of i)Lr(u,Ys(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&mg();var y=i.get(v);return y===void 0?y=d(()=>{var w=j(u.value,s);return i.set(v,w),Me&&typeof v=="string"&&Lr(w,Ys(a,v)),w}):O(y,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let x=d(()=>j(Xi,s));i.set(v,x),yp(n),Me&&Lr(x,Ys(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&O(y,w)}O(u,Xi),yp(n)}return!0},get(f,v,u){var S;if(v===Uo)return t;if(Me&&v===Pc)return p;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(S=en(f,v))!=null&&S.writable)&&(y=d(()=>{var T=ni(w?f[v]:Xi),E=j(T,s);return Me&&Lr(E,Ys(a,v)),E}),i.set(v,y)),y!==void 0){var x=r(y);return x===Xi?void 0:x}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var y=i.get(v);y&&(u.value=r(y))}else if(u===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==Xi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return u},has(f,v){var x;if(v===Uo)return!0;var u=i.get(v),y=u!==void 0&&u.v!==Xi||Reflect.has(f,v);if(u!==void 0||_t!==null&&(!y||(x=en(f,v))!=null&&x.writable)){u===void 0&&(u=d(()=>{var S=y?ni(f[v]):Xi,T=j(S,s);return Me&&Lr(T,Ys(a,v)),T}),i.set(v,u));var w=r(u);if(w===Xi)return!1}return y},set(f,v,u,y){var R;var w=i.get(v),x=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,Xi):S in f&&(T=d(()=>j(Xi,s)),i.set(S+"",T),Me&&Lr(T,Ys(a,S)))}if(w===void 0)(!x||(R=en(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,s)),O(w,ni(u)),i.set(v,w),Me&&Lr(w,Ys(a,v)));else{x=w.v!==Xi;var E=d(()=>ni(u));O(w,E)}var V=Reflect.getOwnPropertyDescriptor(f,v);if(V!=null&&V.set&&V.set.call(y,u),!x){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}yp(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==Xi});for(var[u,y]of i)y.v!==Xi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){vg()}})}function Ys(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:X0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function yp(t,e=1){O(t,t.v+e)}function Za(t){try{if(t!==null&&typeof t=="object"&&Uo in t)return t[Uo]}catch(e){}return t}function xp(t,e){return Object.is(Za(t),Za(e))}function Vr(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:Mc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:_t};return Me&&es&&(o.created=cs("CreatedAt")),o}function g(t){let e=Vr(t);return Nc(e),e}function Rr(t){let e=Vr(t);return e.equals=Qa,e}function Vc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Fi(e[i])}}var wp=[];function J0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Tp(t){var e,i=_t;if(co(J0(t)),Me){let o=Zs;Sp(new Set);try{wp.includes(t)&&ng(),wp.push(t),Vc(t),e=Rc(t)}finally{co(i),Sp(o),wp.pop()}}else try{Vc(t),e=Rc(t)}finally{co(i)}return e}function Ep(t){var e=Tp(t);if(t.equals(e)||(t.v=e,t.wv=ql()),!us){var i=(ps||(t.f&256)!==0)&&t.deps!==null?4096:1024;hn(t,i)}}var Zs=new Set,Xa=new Map;function Sp(t){Zs=t}function gr(t,e){var i={f:0,v:t,reactions:null,equals:Mc,rv:0,wv:0};return Me&&es&&(i.created=e!=null?e:cs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=gr(t,e);return Nc(i),i}function is(t,e=!1,i=!0){var n,s;let o=gr(t);return e||(o.equals=Qa),Jr&&i&&Nt!==null&&Nt.l!==null&&((s=(n=Nt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Et!==null&&(!ir||(Et.f&262144)!==0)&&ts()&&(Et.f&262162)!==0&&!((n=Ko)!=null&&n[1].includes(t)&&Ko[0]===Et)&&gg();let o=i?ni(e):e;return Me&&Lc(o,t.label),Ja(t,o)}function Ja(t,e){if(!t.equals(e)){var i=t.v;if(us?Xa.set(t,e):Xa.set(t,i),t.v=e,Me&&es&&(t.updated=cs("UpdatedAt"),_t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Tp(t),hn(t,(t.f&256)===0?1024:4096)),t.wv=ql(),bg(t,2048),ts()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&(tr===null?$g([t]):tr.push(t)),Me&&Zs.size>0){let o=Array.from(Zs);for(let n of o)(n.f&1024)!==0&&hn(n,4096),Js(n)&&el(n);Zs.clear()}}return e}function bg(t,e){var i=t.reactions;if(i!==null)for(var o=ts(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===_t)){if(Me&&(d&262144)!==0){Zs.add(l);continue}hn(l,e),(d&1280)!==0&&((d&2)!==0?bg(l,4096):Gl(l))}}}var tl="font-weight: bold",il="font-weight: normal";function yg(t,e,i){Me?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,el,tl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Mg(t){Me?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,tl,il):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function xg(t){Me?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,el,tl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ms(t){Me?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,tl,il):console.warn("https://svelte.dev/e/hydration_html_changed")}function As(t){Me?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,el,tl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Lg(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,tl,il):console.warn("https://svelte.dev/e/hydration_mismatch")}function wg(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,el,tl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Vg(){Me?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",el,tl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,tl,il):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Sg(){Me?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",tl,il):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Oc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,el,tl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function ao(t){Ze=t}var ht;function bi(t){if(t===null)throw Ms(),Xr;return ht=t}function Wi(){return bi(zo(ht))}function h(t){if(Ze){if(zo(ht)!==null)throw Ms(),Xr;ht=t}}function xe(t=1){if(Ze){for(var e=t,i=ht;e--;)i=zo(i);ht=i}}function ea(){for(var t=0,e=ht;;){if(e.nodeType===tr){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Is||i===ks)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==tr)throw Ms(),Xr;return t.data}function Rg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Ya(this[a])===s){Uc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Ya(this[a])===s){Uc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Ya(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,Ng,Jl,Og,Bg;function Wc(){if(ta===void 0){ta=window,Ng=document,Jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Og=Jo(e,"firstChild").get,Bg=Jo(e,"nextSibling").get,Cp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Cp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Rg())}}function hn(t=""){return document.createTextNode(t)}function xi(t){return Og.call(t)}function zo(t){return Bg.call(t)}function _(t,e){if(!Ze)return xi(t);var i=xi(ht);if(i===null)i=ht.appendChild(hn());else if(e&&i.nodeType!==Wa){var o=hn();return i==null||i.before(o),bi(o),o}return bi(i),i}function ge(t,e){var n,s;if(!Ze){var i=xi(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==Wa){var o=hn();return(s=ht)==null||s.before(o),bi(o),o}return ht}function P(t,e=1,i=!1){let o=Ze?ht:t;for(var n;e--;)n=o,o=zo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Wa){var s=hn();return o===null?n==null||n.after(s):o.before(s),bi(s),s}return bi(o),o}function ed(t){t.textContent=""}function Bp(t){gt===null&&It===null&&hg(t),It!==null&&(It.f&256)!==0&&gt===null&&gg(),us&&vg(t)}function s_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ia(t,e,i,o=!0){var a;var n=gt;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Bt,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(Me&&(s.component_function=ir),i)try{Ja(s),s.f|=32768}catch(p){throw zi(s),p}else e!==null&&Xl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&s_(s,n),It!==null&&(It.f&2)!==0)){var d=It;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ho(t){let e=ia(8,null,!1);return gn(e,1024),e.teardown=t,e}function Qe(t){var n;Bp("$effect");var e=gt!==null&&(gt.f&32)!==0&&Bt!==null&&!Bt.m;if(Me&&ro(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:It})}else{var o=So(t);return o}}function od(t){return Bp("$effect.pre"),Me&&ro(t,"name",{value:"$effect.pre"}),Wo(t)}function Qc(t){let e=ia(64,t,!0);return()=>{zi(e)}}function Hg(t){let e=ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Nn(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function So(t){return ia(4,t,!1)}function Wo(t){return ia(8,t,!0)}function B(t,e=[],i=Rr){if(Me)return Wo(()=>{var n=gt,s=()=>t(...l.map(r));ro(n.fn,"name",{value:"{expression}"}),ro(s,"name",{value:"{expression}"});let l=e.map(i);Ki(s)});let o=e.map(i);return Ki(()=>t(...o.map(r)))}function Ki(t,e=0){return ia(24|e,t,!0)}function Mi(t,e=!0){return ia(40,t,!0,e)}function Dp(t){var e=t.teardown;if(e!==null){let i=us,o=It;Np(!0),Ui(null);try{e.call(null)}finally{Np(i),Ui(o)}}}function Hp(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:zi(i,e),i=o}}function Fg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&zi(e),e=i}}function zi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Fp(t.nodes_start,t.nodes_end),i=!0),Hp(t,e&&!i),nd(t,0),gn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Dp(t);var n=t.parent;n!==null&&n.first!==null&&Up(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Fp(t,e){for(;t!==null;){var i=t===e?null:zo(t);t.remove(),t=i}}function Up(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 Nn(t,e){var i=[];Gc(t,i,!0),zp(i,()=>{zi(t),e&&e()})}function zp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Gc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Gc(o,e,s?i:!1),o=n}}}function ms(t){Ug(t,!0)}function Ug(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ug(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var rd=[],Wp=[];function zg(){var t=rd;rd=[],As(t)}function a_(){var t=Wp;Wp=[],As(t)}function _n(t){rd.length===0&&queueMicrotask(zg),rd.push(t)}function Wg(){rd.length>0&&zg(),Wp.length>0&&a_()}function qg(t){var e=gt;if(Me&&t instanceof Error&&l_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sd(t,e)}function sd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Kg=new WeakSet;function l_(t,e){var l,d;if(Kg.has(t))return;Kg.add(t);let i=Jo(t,"message");if(!(i&&!i.configurable)){for(var o=Jl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,tl,il):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function uo(t){Je=t}var bt;function yi(t){if(t===null)throw As(),Xr;return bt=t}function Ui(){return yi(qo(bt))}function h(t){if(Je){if(qo(bt)!==null)throw As(),Xr;bt=t}}function Ce(t=1){if(Je){for(var e=t,i=bt;e--;)i=qo(i);bt=i}}function ea(){for(var t=0,e=bt;;){if(e.nodeType===Xn){var i=e.data;if(i===Gs){if(t===0)return e;t-=1}else(i===Es||i===Is)&&(t+=1)}var o=qo(e);e.remove(),e=o}}function Bc(t){if(!t||t.nodeType!==Xn)throw As(),Xr;return t.data}function Cg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Za(this[a])===s){Oc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Za(this[a])===s){Oc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Za(this[a])===s){Oc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ta,Tg,jl,Eg,Ig;function Dc(){if(ta===void 0){ta=window,Tg=document,jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Eg=en(e,"firstChild").get,Ig=en(e,"nextSibling").get,hp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),hp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Cg())}}function _n(t=""){return document.createTextNode(t)}function wi(t){return Eg.call(t)}function qo(t){return Ig.call(t)}function _(t,e){if(!Je)return wi(t);var i=wi(bt);if(i===null)i=bt.appendChild(_n());else if(e&&i.nodeType!==Ka){var o=_n();return i==null||i.before(o),yi(o),o}return yi(i),i}function ge(t,e){var n,s;if(!Je){var i=wi(t);return i.nodeType===8&&i.data===""?qo(i):i}if(e&&((n=bt)==null?void 0:n.nodeType)!==Ka){var o=_n();return(s=bt)==null||s.before(o),yi(o),o}return bt}function P(t,e=1,i=!1){let o=Je?bt:t;for(var n;e--;)n=o,o=qo(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==Ka){var s=_n();return o===null?n==null||n.after(s):o.before(s),yi(s),s}return yi(o),o}function Yl(t){t.textContent=""}function Pp(t){_t===null&&Et===null&&ag(t),Et!==null&&(Et.f&256)!==0&&_t===null&&sg(),us&&rg(t)}function e_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ia(t,e,i,o=!0){var a;var n=_t;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Nt,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(Me&&(s.component_function=Jn),i)try{el(s),s.f|=32768}catch(p){throw Fi(s),p}else e!==null&&Gl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&e_(s,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function zo(t){let e=ia(8,null,!1);return hn(e,1024),e.teardown=t,e}function Ke(t){var n;Pp("$effect");var e=_t!==null&&(_t.f&32)!==0&&Nt!==null&&!Nt.m;if(Me&&lo(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:_t,reaction:Et})}else{var o=Eo(t);return o}}function Jl(t){return Pp("$effect.pre"),Me&&lo(t,"name",{value:"$effect.pre"}),Qo(t)}function Uc(t){let e=ia(64,t,!0);return()=>{Fi(e)}}function Pg(t){let e=ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Bn(e,()=>{Fi(e),o(void 0)}):(Fi(e),o(void 0))})}function Eo(t){return ia(4,t,!1)}function Qo(t){return ia(8,t,!0)}function B(t,e=[],i=Vr){if(Me)return Qo(()=>{var n=_t,s=()=>t(...l.map(r));lo(n.fn,"name",{value:"{expression}"}),lo(s,"name",{value:"{expression}"});let l=e.map(i);zi(s)});let o=e.map(i);return zi(()=>t(...o.map(r)))}function zi(t,e=0){return ia(24|e,t,!0)}function Mi(t,e=!0){return ia(40,t,!0,e)}function Ap(t){var e=t.teardown;if(e!==null){let i=us,o=Et;Ip(!0),Hi(null);try{e.call(null)}finally{Ip(i),Hi(o)}}}function Mp(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:Fi(i,e),i=o}}function Ag(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Fi(e),e=i}}function Fi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Lp(t.nodes_start,t.nodes_end),i=!0),Mp(t,e&&!i),ed(t,0),hn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Ap(t);var n=t.parent;n!==null&&n.first!==null&&Vp(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Lp(t,e){for(;t!==null;){var i=t===e?null:qo(t);t.remove(),t=i}}function Vp(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 Bn(t,e){var i=[];zc(t,i,!0),Rp(i,()=>{Fi(t),e&&e()})}function Rp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;zc(o,e,s?i:!1),o=n}}}function ms(t){Mg(t,!0)}function Mg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Mg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var td=[],Np=[];function Lg(){var t=td;td=[],Ps(t)}function t_(){var t=Np;Np=[],Ps(t)}function bn(t){td.length===0&&queueMicrotask(Lg),td.push(t)}function Vg(){td.length>0&&Lg(),Np.length>0&&t_()}function Ng(t){var e=_t;if(Me&&t instanceof Error&&i_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else id(t,e)}function id(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Rg=new WeakSet;function i_(t,e){var l,d;if(Rg.has(t))return;Rg.add(t);let i=en(t,"message");if(!(i&&!i.configurable)){for(var o=jl?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Mn].split("/").pop()}`,s=s.p;ro(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Vn].split("/").pop()}`,s=s.p;lo(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&ro(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&lo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var oa=!1,il=null,na=!1,us=!1;function Np(t){us=t}var ad=[],ld=[],It=null,rr=!1;function Ui(t){It=t}var gt=null;function so(t){gt=t}var Uo=null;function Fc(t){It!==null&&It.f&2097152&&(Uo===null?Uo=[It,[t]]:Uo[1].push(t))}var bn=null,sr=0,nr=null;function Pg(t){nr=t}var jg=1,Yc=0,ps=!1,Zc=null;function Yl(){return++jg}function Js(t){var m,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,s,l=(e&512)!==0,d=o&&gt!==null&&!ps,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Js(s)&&Rp(s),s.wv>t.wv)return!0}(!o||gt!==null&&!ps)&&gn(t,1024)}return!1}function Yg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Uo!=null&&Uo[1].includes(t)&&Uo[0]===It||((s.f&2)!==0?Yg(s,e,!1):e===s&&(i?gn(s,2048):(s.f&1024)!==0&&gn(s,4096),Xl(s)))}}function Hc(t){var y,w;var e=bn,i=sr,o=nr,n=It,s=ps,l=Uo,d=Bt,a=rr,p=t.f;bn=null,sr=0,nr=null,ps=(p&256)!==0&&(rr||!na||It===null),It=(p&96)===0?t:null,Uo=null,Ql(t.ctx),rr=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if(bn!==null){var u;if(nd(t,sr),m!==null&&sr>0)for(m.length=sr+bn.length,u=0;u<bn.length;u++)m[sr+u]=bn[u];else t.deps=m=bn;if(!ps||(p&2)!==0&&t.reactions!==null)for(u=sr;u<m.length;u++)((w=(y=m[u]).reactions)!=null?w:y.reactions=[]).push(t)}else m!==null&&sr<m.length&&(nd(t,sr),m.length=sr);if(ts()&&nr!==null&&!rr&&m!==null&&(t.f&6146)===0)for(u=0;u<nr.length;u++)Yg(nr[u],t);return n!==null&&n!==t&&(Yc++,nr!==null&&(o===null?o=nr:o.push(...nr))),f}catch(x){qg(x)}finally{bn=e,sr=i,nr=o,It=n,ps=s,Uo=l,Ql(d),rr=a,t.f^=2097152}}function d_(t,e){let i=e.reactions;if(i!==null){var o=dg.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&&(bn===null||!bn.includes(e))&&(gn(e,4096),(e.f&768)===0&&(e.f^=512),Dc(e),nd(e,0))}function nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)d_(t,i[o])}function Ja(t){var e=t.f;if((e&16384)===0){gn(t,1024);var i=gt,o=na;if(gt=t,na=!0,Me){var n=ir;Gl(t.component_function)}try{(e&16)!==0?Fg(t):Hp(t),Dp(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=jg,Me&&es&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Yl(),l.set_during_effect=!1);Me&&ld.push(t)}finally{na=o,gt=i,Me&&Gl(n)}}}function Qg(){console.error("Last ten effects were: ",ld.slice(-10).map(t=>t.fn)),ld=[]}function c_(){try{_g()}catch(t){if(Me&&ro(t,"stack",{value:""}),il!==null)if(Me)try{sd(t,il)}catch(e){throw Qg(),e}else sd(t,il);else throw Me&&Qg(),t}}function qp(){var t=na;try{var e=0;for(na=!0;ad.length>0;){e++>1e3&&c_();var i=ad,o=i.length;ad=[];for(var n=0;n<o;n++){var s=p_(i[n]);u_(s)}Za.clear()}}finally{oa=!1,na=t,il=null,Me&&(ld=[])}}function u_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Js(o)&&(Ja(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Up(o):o.fn=null))}}function Xl(t){oa||(oa=!0,queueMicrotask(qp));for(var e=il=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ad.push(e)}function p_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Js(i)&&Ja(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function ol(t){var e;for(t&&(oa=!0,qp(),oa=!0,e=t());;){if(Wg(),ad.length===0)return oa=!1,il=null,Me&&(ld=[]),e;oa=!0,qp()}}async function Co(){await Promise.resolve(),ol()}function r(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),It!==null&&!rr){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==It){var o=It.deps;t.rv<Yc&&(t.rv=Yc,bn===null&&o!==null&&o[sr]===t?sr++:bn===null?bn=[t]:(!ps||!bn.includes(t))&&bn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,Js(n)&&Rp(n)),Me&&es&&!rr&&ql!==null&&It!==null&&ql.reaction===It)if(t.trace)t.trace();else{var l=cs("TracedAt");if(l){var d=ql.entries.get(t);d===void 0&&(d={traces:[]},ql.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return us&&Za.has(t)?Za.get(t):t.v}function xt(t){var e=rr;try{return rr=!0,t()}finally{rr=e}}var f_=-7169;function gn(t,e){t.f=t.f&f_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Xc(i)}}}function Xc(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{Xc(t[o],e)}catch(n){}let i=js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Qp(t,e){if(e){let i=document.body;t.autofocus=!0,_n(()=>{document.activeElement===i&&t.focus()})}}function dd(t){var e=It,i=gt;Ui(null),so(null);try{return t()}finally{Ui(e),so(i)}}var Gp=new Set,eu=new Set;function ra(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function jp(t,e,i,o={}){function n(s){if(o.capture||nl.call(e,s),!s.cancelBubble)return dd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?_n(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var s={capture:o,passive:n},l=jp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ho(()=>{e.removeEventListener(t,l,s)})}function at(t){for(var e=0;e<t.length;e++)Gp.add(t[e]);for(var i of eu)i(t)}function nl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){ro(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=It,m=gt;Ui(null),so(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(er(x)){var[S,...T]=x;S.apply(s,[t,...T])}else x.call(s,t)}catch(R){u?y.push(R):u=R}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let R of y)queueMicrotask(()=>{throw R});throw u}}finally{t.__root=e,delete t.currentTarget,Ui(f),so(m)}}}var v_;function Zg(){v_=void 0}function rl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function To(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Ze)return To(ht,null),ht;n===void 0&&(n=rl(s?t:"<!>"+t),i||(n=xi(n)));var l=o||Jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=xi(l),a=l.lastChild;To(d,a)}else To(l,l);return l}}function __(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return To(ht,null),ht;if(!l){var d=rl(s),a=xi(d);if(n)for(l=document.createDocumentFragment();xi(a);)l.appendChild(xi(a));else l=xi(a)}var p=l.cloneNode(!0);if(n){var f=xi(p),m=p.lastChild;To(f,m)}else To(p,p);return p}}function we(t,e){return __(t,e,"svg")}function os(t=""){if(!Ze){var e=hn(t+"");return To(e,e),e}var i=ht;return i.nodeType!==Wa&&(i.before(i=hn()),bi(i)),To(i,i),i}function qe(){if(Ze)return To(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=hn();return t.append(e,i),To(e,i),t}function $(t,e){if(Ze){gt.nodes_end=ht,Wi();return}t!==null&&t.before(e)}var b_=/\r/g;function Jg(t){t=t.replace(b_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function eh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var $_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function th(t){return $_.includes(t)}var y_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var x_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ih(t){var e;return t=t.toLowerCase(),(e=x_[t])!=null?e:t}var aS=[...y_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var w_=["touchstart","touchmove"];function oh(t){return w_.includes(t)}var S_=["$state","$state.raw","$derived","$derived.by"],lS=[...S_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var C_=["textarea","script","style","title"];function nh(t){return C_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cd=!0;function iu(t){cd=t}function _e(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 ns(t,e){return rh(t,e)}function Zp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=ht;try{for(var s=xi(i);s&&(s.nodeType!==tr||s.data!==Is);)s=zo(s);if(!s)throw Xr;ao(!0),bi(s),Wi();let d=rh(t,{...e,anchor:s});if(ht===null||ht.nodeType!==tr||ht.data!==Gs)throw Ms(),Xr;return ao(!1),d}catch(d){if(d===Xr)return e.recover===!1&&bg(),Wc(),ed(i),ao(!1),ns(t,e);throw d}finally{ao(o),bi(n),Zg()}}var sl=new Map;function rh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Wc();var d=new Set,a=m=>{for(var u=0;u<m.length;u++){var y=m[u];if(!d.has(y)){d.add(y);var w=oh(y);e.addEventListener(y,nl,{passive:w});var x=sl.get(y);x===void 0?(document.addEventListener(y,nl,{passive:w}),sl.set(y,1)):sl.set(y,x+1)}}};a(Kl(Gp)),eu.add(a);var p=void 0,f=Hg(()=>{var m=i!=null?i:e.appendChild(hn());return Mi(()=>{if(s){U({});var u=Bt;u.c=s}n&&(o.$$events=n),Ze&&To(m,null),cd=l,p=t(m,o)||{},cd=!0,Ze&&(gt.nodes_end=ht),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,nl);var y=sl.get(u);--y===0?(document.removeEventListener(u,nl),sl.delete(u)):sl.set(u,y)}eu.delete(a),m!==i&&((w=m.parentNode)==null||w.removeChild(m))}});return Yp.set(p,f),p}var Yp=new WeakMap;function sa(t,e){let i=Yp.get(t);return i?(Yp.delete(t),i(e)):(Me&&Lg(),Promise.resolve())}function $e(t,e,...i){var o=t,n=de,s;Ki(()=>{n!==(n=e())&&(s&&(zi(s),s=null),Me&&n==null&&$g(),s=Mi(()=>n(o,...i)))},65536),Ze&&(o=ht)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;wg(e)},set:o=>{i=o}})}};k_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var k_;function Rt(t){Bt===null&&Qa("onMount"),Jr&&Bt.l!==null?I_(Bt).m.push(t):Qe(()=>{let e=xt(t);if(typeof e=="function")return e})}function on(t){Bt===null&&Qa("onDestroy"),Rt(()=>()=>xt(t))}function I_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var sh=new Map;function ah(t,e){var i=sh.get(t);i||(i=new Set,sh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Ze&&i===0&&Wi();var n=t,s=null,l=null,d=Zi,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,m(y,u)},m=(u,y)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=zc(n);S===Is?o=0:S===ks?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=ea(),bi(n),ao(!1),w=!0,o=-1)}d?(s?ms(s):y&&(s=Mi(()=>y(n))),l&&Nn(l,()=>{l=null})):(l?ms(l):y&&(l=Mi(()=>y(n,[i+1,o]))),s&&Nn(s,()=>{s=null})),w&&ao(!0)};Ki(()=>{p=!1,e(f),p||m(null,null)},a),Ze&&(n=ht)}function aa(t,e,i){Ze&&Wi();var o=t,n=Zi,s,l=ts()?fg:Ka;Ki(()=>{l(n,n=e())&&(s&&Nn(s),s=Mi(()=>i(o)))}),Ze&&(o=ht)}var Vs=null;function ef(t){Vs=t}function ud(t,e){return e}function M_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Gc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ed(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[s-1].next)}zp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Ls(t,f.prev,f.next)),zi(f.e,!d)}})}function Ti(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ze?bi(xi(p)):p.appendChild(hn())}Ze&&Wi();var f=null,m=!1,u=Nr(()=>{var y=i();return er(y)?y:y==null?[]:Kl(y)});Ki(()=>{var y=r(u),w=y.length;if(m&&w===0)return;m=w===0;let x=!1;if(Ze){var S=zc(l)===ks;S!==(w===0)&&(l=ea(),bi(l),ao(!1),x=!0)}if(Ze){for(var T=null,E,R=0;R<w;R++){if(ht.nodeType===tr&&ht.data===Gs){l=ht,x=!0,ao(!1);break}var I=y[R],M=o(I,R);E=ch(ht,d,T,null,I,M,R,n,e,i),d.items.set(M,E),T=E}w>0&&bi(ea())}Ze||L_(y,d,l,n,e,o,i),s!==null&&(w===0?f?ms(f):f=Mi(()=>s(l)):f!==null&&Nn(f,()=>{f=null})),x&&ao(!0),r(u)}),Ze&&(l=ht)}function L_(t,e,i,o,n,s,l){var re,fe,be,me;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,m=e.first,u=m,y,w=null,x,S=[],T=[],E,R,I,M;if(d)for(M=0;M<p;M+=1)E=t[M],R=s(E,M),I=f.get(R),I!==void 0&&((re=I.a)==null||re.measure(),(x!=null?x:x=new Set).add(I));for(M=0;M<p;M+=1){if(E=t[M],R=s(E,M),I=f.get(R),I===void 0){var k=u?u.e.nodes_start:i;w=ch(k,e,w,w===null?e.first:w.next,E,R,M,o,n,l),f.set(R,w),S=[],T=[],u=w.next;continue}if(a&&V_(I,E,M,n),(I.e.f&8192)!==0&&(ms(I.e),d&&((fe=I.a)==null||fe.unfix(),(x!=null?x:x=new Set).delete(I))),I!==u){if(y!==void 0&&y.has(I)){if(S.length<T.length){var G=T[0],H;w=G.prev;var F=S[0],q=S[S.length-1];for(H=0;H<S.length;H+=1)lh(S[H],G,i);for(H=0;H<T.length;H+=1)y.delete(T[H]);Ls(e,F.prev,q.next),Ls(e,w,F),Ls(e,q,G),u=G,w=q,M-=1,S=[],T=[]}else y.delete(I),lh(I,u,i),Ls(e,I.prev,I.next),Ls(e,I,w===null?e.first:w.next),Ls(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==R;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;I=u}S.push(I),w=I,u=I.next}if(u!==null||y!==void 0){for(var Y=y===void 0?[]:Kl(y);u!==null;)(u.e.f&8192)===0&&Y.push(u),u=u.next;var j=Y.length;if(j>0){var ue=(n&4)!==0&&p===0?i:null;if(d){for(M=0;M<j;M+=1)(be=Y[M].a)==null||be.measure();for(M=0;M<j;M+=1)(me=Y[M].a)==null||me.fix()}M_(e,Y,ue,f)}}d&&_n(()=>{var Pe;if(x!==void 0)for(I of x)(Pe=I.a)==null||Pe.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function V_(t,e,i,o){(o&1)!==0&&Xa(t.v,e),(o&2)!==0?Xa(t.i,i):t.i=i}function ch(t,e,i,o,n,s,l,d,a,p){var f=Vs,m=(a&1)!==0,u=(a&16)===0,y=m?u?is(n,!1,!1):br(n):n,w=(a&2)===0?l:br(l);Me&&m&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Vs=x;try{return x.e=Mi(()=>d(t,y,w,p),Ze),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Vs=f}}function lh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=zo(s);n.before(s),s=l}}function Ls(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 R_(t,e,i){var s,l;if(!e||e===Jg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=ir)!=null&&l[Mn]&&(o=`in ${ir[Mn]}`),Mg(tu(o))}function pd(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=gt;if(l===(l=(y=e())!=null?y:"")){Ze&&Wi();return}if(d.nodes_start!==null&&(Fp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=ht.data,p=Wi(),f=p;p!==null&&(p.nodeType!==tr||p.data!=="");)f=p,p=zo(p);if(p===null)throw Ms(),Xr;Me&&!n&&R_(p.parentNode,a,l),To(ht,f),s=bi(p);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var u=rl(m);if((i||o)&&(u=xi(u)),To(xi(u),u.lastChild),i||o)for(;xi(u);)s.before(xi(u));else s.before(u)}})}function Ei(t,e,i){Ze&&Wi();var o=t,n,s;Ki(()=>{n!==(n=e())&&(s&&(Nn(s),s=null),n&&(s=Mi(()=>i(o,n))))},65536),Ze&&(o=ht)}function la(t,e,i,o,n,s){var w;let l=Ze;Ze&&Wi();var d=Me&&s&&((w=Bt)==null?void 0:w.function[Mn]),a,p,f=null;Ze&&ht.nodeType===Nc&&(f=ht,Wi());var m=Ze?ht:t,u,y=Vs;Ki(()=>{let x=e()||null;var S=n?n():i||x==="svg"?Mc:null;if(x!==a){var T=Vs;ef(y),u&&(x===null?Nn(u,()=>{u=null,p=null}):x===p?ms(u):(zi(u),iu(!1))),x&&x!==p&&(u=Mi(()=>{if(f=Ze?f:S?document.createElementNS(S,x):document.createElement(x),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),To(f,f),o){Ze&&nh(x)&&f.append(document.createComment(""));var E=Ze?xi(f):f.appendChild(hn());Ze&&(E===null?ao(!1):bi(E)),o(f,E)}gt.nodes_end=f,m.before(f)})),a=x,a&&(p=a),iu(!0),ef(T)}},65536),l&&(ao(!0),bi(m))}var of;function uh(t){return of=t.target,new tf(t)}var vs,$r,tf=class{constructor(e){Es(this,vs);Es(this,$r);var s,l;var i=new Map,o=(d,a)=>{var p=is(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===za?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return O((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ua(this,$r,(e.hydrate?Zp:ns)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&ol(),Ua(this,vs,n.$$events);for(let d of Object.keys(Ai(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return Ai(this,$r)[d]},set(a){Ai(this,$r)[d]=a},enumerable:!0});Ai(this,$r).$set=d=>{Object.assign(n,d)},Ai(this,$r).$destroy=()=>{sa(Ai(this,$r))}}$set(e){Ai(this,$r).$set(e)}$on(e,i){Ai(this,vs)[e]=Ai(this,vs)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,vs)[e].push(o),()=>{Ai(this,vs)[e]=Ai(this,vs)[e].filter(n=>n!==o)}}$destroy(){Ai(this,$r).$destroy()}};vs=new WeakMap,$r=new WeakMap;function K(t,e){_n(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=of)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&ah(e.hash,d)}})}function gs(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Mi(()=>{So(()=>i(t))})))})}function ph(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=ph(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ph(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?fh(t):t!=null?t:""}var mh=[...`
44
- \r\f\xA0\v\uFEFF`];function gh(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 s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||mh.includes(o[l-1]))&&(d===o.length||mh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function vh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function nf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function hh(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(nf)),n&&a.push(...Object.keys(n).map(nf));var p=0,f=-1;let x=t.length;for(var m=0;m<x;m++){var u=t[m];if(d?u==="/"&&t[m-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[m+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=m;else if(u===";"||m===x-1){if(f!==-1){var y=nf(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&m++;var w=t.substring(p,m).trim();i+=" "+w+";"}}p=m+1,f=-1}}}}return o&&(i+=vh(o)),n&&(i+=vh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,s){var l=t.__className;if(Ze||l!==i||l===void 0){var d=gh(i,o,s);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function rf(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function nt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var s=hh(e,o);(!Ze||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(rf(t,i==null?void 0:i[0],o[0]),rf(t,i==null?void 0:i[1],o[1],"important")):rf(t,i,o));return o}function md(t,e,i){if(t.multiple){if(e==null)return;if(!er(e))return Vg();for(var o of t.options)o.selected=e.includes(_h(o));return}for(o of t.options){var n=_h(o);if(Pp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function sf(t){var e=new MutationObserver(()=>{md(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ho(()=>{e.disconnect()})}function _h(t){return"__value"in t?t.__value:t.value}var al=Symbol("class"),ll=Symbol("style"),yh=Symbol("is custom element"),xh=Symbol("is html");function wh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=Ch(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||z_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[pg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Th(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Sh(t,e,i,o,n=!1){var I;var s=Ch(t),l=s[yh],d=!s[xh];let a=Ze&&l;a&&ao(!1);var p=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=fd(i.class):(o||i[al])&&(i.class=null),i[ll]&&((I=i.style)!=null||(i.style=null));var u=Th(t);for(let M in i){let k=i[M];if(f&&M==="value"&&k==null){t.value=t.__value="",p[M]=k;continue}if(M==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,y,k,o,e==null?void 0:e[al],i[al]),p[M]=k,p[al]=i[al];continue}if(M==="style"){nt(t,k,e==null?void 0:e[ll],i[ll]),p[M]=k,p[ll]=i[ll];continue}var w=p[M];if(!(k===w&&!(k===void 0&&t.hasAttribute(M)))){p[M]=k;var x=M[0]+M[1];if(x!=="$$")if(x==="on"){let G={},H="$$"+M,F=M.slice(2);var S=th(F);if(eh(F)&&(F=F.slice(0,-7),G.capture=!0),!S&&w){if(k!=null)continue;t.removeEventListener(F,p[H],G),p[H]=null}if(k!=null)if(S)t[`__${F}`]=k,at([F]);else{let q=function(Y){p[M].call(this,Y)};var R=q;p[H]=jp(F,t,q,G)}else S&&(t[`__${F}`]=void 0)}else if(M==="style")Ue(t,M,k);else if(M==="autofocus")Qp(t,!!k);else if(!l&&(M==="__value"||M==="value"&&k!=null))t.value=t.__value=k;else if(M==="selected"&&f)wh(t,k);else{var T=M;d||(T=ih(T));var E=T==="defaultValue"||T==="defaultChecked";if(k==null&&!l&&!E)if(s[M]=null,T==="value"||T==="checked"){let G=t,H=e===void 0;if(T==="value"){let F=G.defaultValue;G.removeAttribute(T),G.defaultValue=F,G.value=G.__value=H?F:null}else{let F=G.defaultChecked;G.removeAttribute(T),G.defaultChecked=F,G.checked=H?F:!1}}else t.removeAttribute(M);else E||u.includes(T)&&(l||typeof k!="string")?t[T]=k:typeof k!="function"&&Ue(t,T,k,n)}}}return a&&ao(!0),p}function Ie(t,e,i=[],o,n=!1,s=Rr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Ki(()=>{var u=e(...l.map(r)),y=Sh(t,d,u,o,n);f&&p&&"value"in u&&md(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||zi(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===xp&&(!d||w!==d[x])&&(a[x]&&zi(a[x]),a[x]=Mi(()=>gs(t,()=>w))),y[x]=w}d=y}),p){var m=t;So(()=>{md(m,d.value),sf(m)})}f=!0}function Ch(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[yh]:t.nodeName.includes("-"),[xh]:t.namespaceURI===rg}}var bh=new Map;function Th(t){var e=bh.get(t.nodeName);if(e)return e;bh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=js(o)}return e}function z_(t,e,i){var o;Me&&(e==="srcset"&&W_(t,i)||af((o=t.getAttribute(e))!=null?o:"",i)||Ag(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function af(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function $h(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function W_(t,e){var i=$h(t.srcset),o=$h(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(af(i[l][0],n)||af(n,i[l][0])))}var K_=Lc?()=>performance.now():()=>Date.now(),Dr={tick:t=>(Lc?requestAnimationFrame:de)(t),now:()=>K_(),tasks:new Set};function Eh(){let t=Dr.now();Dr.tasks.forEach(e=>{e.c(t)||(Dr.tasks.delete(e),e.f())}),Dr.tasks.size!==0&&Dr.tick(Eh)}function Ih(t){let e;return Dr.tasks.size===0&&Dr.tick(Eh),{promise:new Promise(i=>{Dr.tasks.add(e={c:t,f:i})}),abort(){Dr.tasks.delete(e)}}}function ou(t,e){dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function j_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function kh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=j_(n.trim());e[l]=s.trim()}return e}var Y_=t=>t;function df(t,e,i,o){var R;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,m=e.style.overflow,u,y;function w(){var k;var I=It,M=gt;Ui(null),so(null);try{return p!=null?p:p=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:a})}finally{Ui(I),so(M)}}var x={is_global:d,in(){var I;if(e.inert=f,!n){y==null||y.abort(),(I=y==null?void 0:y.reset)==null||I.call(y);return}s||u==null||u.abort(),ou(e,"introstart"),u=lf(e,w(),y,1,()=>{ou(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=m})},out(I){if(!s){I==null||I(),p=void 0;return}e.inert=!0,ou(e,"outrostart"),y=lf(e,w(),u,0,()=>{ou(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=gt;if(((R=S.transitions)!=null?R:S.transitions=[]).push(x),n&&cd){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&So(()=>{xt(()=>x.in())})}}function lf(t,e,i,o,n){var s=o===1;if(Ps(e)){var l,d=!1;return _n(()=>{if(!d){var S=e({direction:s?"in":"out"});l=lf(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:p,tick:f,easing:m=Y_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=kh(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var F;x.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),R=[];if(E>0){var I=!1;if(p)for(var M=Math.ceil(E/16.666666666666668),k=0;k<=M;k+=1){var G=S+T*m(k/M),H=kh(p(G,1-G));R.push(H),I||(I=H.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var q=x.currentTime;return S+T*m(q/E)},f&&Ih(()=>{if(x.playState!=="running")return!1;var q=w();return f(q,1-q),!0})}x=t.animate(R,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Rs,dl,vd,ru,Ph,su=class su{constructor(e){Es(this,ru);Es(this,Rs,new WeakMap);Es(this,dl);Es(this,vd);Ua(this,vd,e)}observe(e,i){var o=Ai(this,Rs).get(e)||new Set;return o.add(i),Ai(this,Rs).set(e,o),og(this,ru,Ph).call(this).observe(e,Ai(this,vd)),()=>{var n=Ai(this,Rs).get(e);n.delete(i),n.size===0&&(Ai(this,Rs).delete(e),Ai(this,dl).unobserve(e))}}};Rs=new WeakMap,dl=new WeakMap,vd=new WeakMap,ru=new WeakSet,Ph=function(){var e;return(e=Ai(this,dl))!=null?e:Ua(this,dl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var n of Ai(this,Rs).get(o.target)||[])n(o)}}))},Jn(su,"entries",new WeakMap);var cf=su;var Z_=new cf({box:"border-box"});function ar(t,e,i){var o=Z_.observe(t,()=>i(t[e]));So(()=>(xt(()=>i(t[e])),o))}function Ah(t,e){return t===e||(t==null?void 0:t[Do])===e}function tt(t={},e,i,o){return So(()=>{var n,s;return Wo(()=>{n=s,s=(o==null?void 0:o())||[],xt(()=>{t!==i(...s)&&(e(t,...s),n&&Ah(i(...n),t)&&e(null,...n))})}),()=>{_n(()=>{s&&Ah(i(...s),t)&&e(null,...s)})}}),t}function Hr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let n=0,s={},l=Rr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&od(()=>{Mh(e,o),As(i.b)}),Qe(()=>{let n=xt(()=>i.m.map(ug));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Qe(()=>{Mh(e,o),As(i.a)})}function Mh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var cl=[];function yr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=de){let i=null,o=new Set;function n(d){if(Ka(t,d)&&(t=d,i)){let a=!cl.length;for(let p of o)p[1](),cl.push(p,t);if(a){for(let p=0;p<cl.length;p+=2)cl[p][0](cl[p+1]);cl.length=0}}}function s(d){n(d(t))}function l(d,a=de){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function wi(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 s=e.length<2;return yr(i,(l,d)=>{let a=!1,p=[],f=0,m=de,u=()=>{if(f)return;m();let w=e(o?p[0]:p,l,d);s?l(w):m=typeof w=="function"?w:de},y=n.map((w,x)=>gd(w,S=>{p[x]=S,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){As(y),m(),a=!1}})}function ye(t){let e;return gd(t,i=>e=i)(),e}var au=!1,uf=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:is(void 0),unsubscribe:de};if(o.store!==t&&!(uf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=gd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&uf in i?ye(t):r(o.source)}function He(){let t={};function e(){Ho(()=>{for(var i in t)t[i].unsubscribe();ro(t,uf,{enumerable:!1,value:!0})})}return[t,e]}function pf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var nb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&xg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},nb)}var rb={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 s=Jo(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Jo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===za)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)if(Ps(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function hs(...t){return new Proxy({props:t},rb)}function Lh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var G,H;var n=(i&1)!==0,s=!Jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=pf(()=>t[e]):p=t[e];var f=Do in t||za in t,m=l&&((H=(G=Jo(t,e))==null?void 0:G.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=xt(o):u=o),u);p===void 0&&o!==void 0&&(m&&s&&yg(e),p=x(),m&&m(p));var S;if(s)S=()=>{var F=t[e];return F===void 0?x():(y=!0,w=!1,F)};else{var T=(n?Rr:Nr)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0&&s)return S;if(m){var E=t.$$legacy;return function(F,q){return arguments.length>0?((!s||!q||E||a)&&m(q?S():F),F):S()}}var R=!1,I=!1,M=is(p),k=Rr(()=>{var F=S(),q=r(M);return R?(R=!1,I=!0,q):(I=!1,M.v=F)});return l&&r(k),n||(k.equals=qa),function(F,q){if(Zc!==null&&(R=I,S(),r(M)),arguments.length>0){let Y=q?r(k):s&&l?ni(F):F;if(!k.equals(Y)){if(R=!0,O(M,Y),w&&u!==void 0&&(u=Y),Lh(k))return F;xt(()=>r(k))}return F}return Lh(k)?k.v:r(k)}}var sb;typeof HTMLElement=="function"&&(sb=class extends HTMLElement{constructor(e,i,o){super();Jn(this,"$$ctor");Jn(this,"$$s");Jn(this,"$$c");Jn(this,"$$cn",!1);Jn(this,"$$d",{});Jn(this,"$$r",!1);Jn(this,"$$p_d",{});Jn(this,"$$l",{});Jn(this,"$$l_u",new Map);Jn(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(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=ab(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=ff(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=uh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Qc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of wp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=ff(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=ff(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 wp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function ff(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.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 ab(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Vh="5";var Rh,Nh,Oh;typeof window!="undefined"&&((Oh=(Nh=(Rh=window.__svelte)!=null?Rh:window.__svelte={}).v)!=null?Oh:Nh.v=new Set).add(Vh);var Pl=require("@vkontakte/videoplayer-core/es2018"),Wj=require("@vkontakte/videoplayer-core/es2018"),Da=require("@vkontakte/videoplayer-shared/es2018"),N0=require("@vkontakte/videoplayer-statistics/es2018");var da=require("@vkontakte/videoplayer-shared/es2018");var lb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:da.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:da.VideoQuality.Q_480P,highQualityLimit:da.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,doubleForwardAvailable:!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,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Bh=t=>(0,da.fillWithDefault)(t,lb),Dh=t=>ja("ui-config",t),kt=()=>Ga("ui-config");var hd="vk_player_debug_panel_opened";var Hh="videoplayer",Fh="videoplayer";var rs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wh=new Set(["ShiftRight","ShiftLeft"]);var Kh=["TIMELINE"],_d=[...Kh,"GRAPH_BUTTON"],mf=[...Kh,"PLAY_BUTTON"],bd=[..._d,"PLAY_BUTTON"];var Fr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Fr||{}),ua={xs:0,s:1,m:2,l:3,xl:4};var $d=require("@vkontakte/videoplayer-shared/es2018"),qh=require("@vkontakte/videoplayer-core/es2018"),Qh=require("@vkontakte/videoplayer-statistics/es2018");var lu="prod",pa="1.1.72-dev.752fa0a9.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Gh=Symbol("storeContext"),jh=Symbol("microStoresContext"),Yh=(t,e)=>{ja(Gh,t),ja(jh,e),lu==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ga(Gh);return(0,$d.assertNonNullable)(t,"Store context is empty!"),t},mo=()=>{let t=Ga(jh);return(0,$d.assertNonNullable)(t,"MicroStores context is empty!"),t},ei=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>yr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Zh=(t,e,i,o)=>{var k,G,H,F,q,Y,j,ue;let n=t.info,{width:s,height:l}=ye(i.ui.playerSize),d=(G=(k=n.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?G:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${pa} (core: ${qh.VERSION}, stat: ${Qh.VERSION}, shared: ${$d.VERSION})`,m=ye(i.state.errorLog$),u=m.length?`
45
- `+m.map((re,fe)=>{var se;let be=`${fe}) Type: ${re.id}
46
- `,me=`Message: ${re.message} (${re.thrown})
47
- `,Pe=`Trace: ${(se=re.thrown)==null?void 0:se.stack}
48
- `;return be+me+Pe}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(q=w==null?void 0:w.codec)!=null?q:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&S.push(`Audio: ${(Y=x==null?void 0:x.codec)!=null?Y:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let re=n.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let R=(ue=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ue:0,I=Math.max(R-ye(i.state.positionExact$),0),M={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${ye(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(M).filter(([re,fe])=>fe!==void 0).map(([re,fe])=>`${re}: ${fe}`).join(`
50
- `)},Xh=(t,e,i)=>{var G,H,F,q;let o=t.info,{width:n,height:s}=ye(i.ui.playerSize),l={version:pa,viewport:`${n}x${s}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(m&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-ye(i.state.positionExact$),0)),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=ye(i.vsid);typeof E=="string"&&(l.vsid=E);let R=(G=t.info.currentVideoStream$.getValue())==null?void 0:G.codec;R&&(l.videoCodec=R);let I=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;I&&(l.audioCodec=I),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let k=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.language;return k&&(l.audioLanguage=k),l},Jh=(t,e)=>fa(t,e,"mp4"),e1=t=>!t.type,t1=t=>!!t.type,i1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var hi=require("@vkontakte/videoplayer-shared/es2018"),EA=require("@vkontakte/videoplayer-core/es2018"),o1="vk_player_prefer_traffic_saving_enabled",n1="vk_player_preferred_volume",r1="vk_player_prefer_volume_mute",_f="vk_player_preferred_quality",vf="vk_player_preferred_default_quality_settings",gf="vk_player_preferred_quality_settings_by_video",s1="vk_player_preferred_stream_language",a1="vk_player_preferred_rate",l1="vk_player_preferred_autoplay_next",hf="vk_player_preferred_subtitles_language",d1="vk_player_user_video_prefs",c1=t=>t>1?1:t<0?0:t,bf=t=>hi.safeStorage.set(n1,c1(t).toString(10)),uu=()=>{let t=hi.safeStorage.get(n1);return(0,hi.isNullable)(t)?void 0:c1(parseFloat(t))},$f=(t,e)=>hi.safeStorage.set(_f,JSON.stringify({videoId:t,value:e})),pu=()=>hi.safeStorage.remove(_f),yf=t=>{let e=hi.safeStorage.get(_f);if((0,hi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){pu();return}return o},xf=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},wf=t=>hi.safeStorage.get(t)==="true",Sf=t=>xf(r1,t),u1=()=>wf(r1),yd=t=>xf(o1,t),Cf=()=>wf(o1),p1=()=>hi.safeStorage.get(s1),Tf=t=>hi.safeStorage.set(s1,t),Ef=()=>hi.safeStorage.get(hf),If=t=>{t?hi.safeStorage.set(hf,t):hi.safeStorage.remove(hf)},f1=t=>hi.safeStorage.set(a1,JSON.stringify({rate:t})),m1=()=>{let t=hi.safeStorage.get(a1);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},v1=t=>xf(l1,t),g1=()=>wf(l1),db=()=>{let t=f=>{hi.safeStorage.set(vf,JSON.stringify(f))},e=()=>{try{let f=hi.safeStorage.get(vf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=hi.safeStorage.get(gf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{hi.safeStorage.set(gf,JSON.stringify(f))},n=f=>{p(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return{...m,appliesTo:"to-video"};m&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{hi.safeStorage.remove(gf)},l=()=>{hi.safeStorage.remove(vf)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":yd(!0);break;case"exact_quality":$f(f,m.quality)}s(),l()}},p=f=>{let m=yf(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}Cf()&&t({type:"traffic_saving",videoId:f}),yd(!1),pu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Ef,savePreferredSubtitlesLanguage:If}},{getPreferredQualitySettings:h1,migrateSettingsToLegacyWay:_1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:IA,removePreferredQualitySettingsByVideo:kA,getPreferredDefaultQualitySettings:mu}=db(),cb=3,ub=3,b1=()=>{let t=hi.safeStorage.get(d1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},vu=(t,e)=>{var n,s;let i=b1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},kf=(t,e,i)=>{var l,d,a;let o=(l=b1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=pb(o);hi.safeStorage.set(d1,JSON.stringify(s))};function pb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(ub),e.reduce((o,[n])=>(o[n]=fb(t[n]),o),{})}function fb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(cb),Object.fromEntries(e)}var Nv=require("@vkontakte/videoplayer-core/es2018");var mb=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function xd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=mb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var ul=require("@vkontakte/videoplayer-shared/es2018");var vb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var oa=!1,ol=null,na=!1,us=!1;function Ip(t){us=t}var od=[],nd=[],Et=null,ir=!1;function Hi(t){Et=t}var _t=null;function co(t){_t=t}var Ko=null;function Nc(t){Et!==null&&Et.f&2097152&&(Ko===null?Ko=[Et,[t]]:Ko[1].push(t))}var $n=null,or=0,tr=null;function $g(t){tr=t}var Dg=1,Kc=0,ps=!1,qc=null;function ql(){return++Dg}function Js(t){var v,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,s,l=(e&512)!==0,d=o&&_t!==null&&!ps,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Js(s)&&Ep(s),s.wv>t.wv)return!0}(!o||_t!==null&&!ps)&&hn(t,1024)}return!1}function Hg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Ko!=null&&Ko[1].includes(t)&&Ko[0]===Et||((s.f&2)!==0?Hg(s,e,!1):e===s&&(i?hn(s,2048):(s.f&1024)!==0&&hn(s,4096),Gl(s)))}}function Rc(t){var y,w;var e=$n,i=or,o=tr,n=Et,s=ps,l=Ko,d=Nt,a=ir,p=t.f;$n=null,or=0,tr=null,ps=(p&256)!==0&&(ir||!na||Et===null),Et=(p&96)===0?t:null,Ko=null,zl(t.ctx),ir=!1,Kc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if($n!==null){var u;if(ed(t,or),v!==null&&or>0)for(v.length=or+$n.length,u=0;u<$n.length;u++)v[or+u]=$n[u];else t.deps=v=$n;if(!ps||(p&2)!==0&&t.reactions!==null)for(u=or;u<v.length;u++)((w=(y=v[u]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&or<v.length&&(ed(t,or),v.length=or);if(ts()&&tr!==null&&!ir&&v!==null&&(t.f&6146)===0)for(u=0;u<tr.length;u++)Hg(tr[u],t);return n!==null&&n!==t&&(Kc++,tr!==null&&(o===null?o=tr:o.push(...tr))),f}catch(x){Ng(x)}finally{$n=e,or=i,tr=o,Et=n,ps=s,Ko=l,zl(d),ir=a,t.f^=2097152}}function o_(t,e){let i=e.reactions;if(i!==null){var o=Jv.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&&($n===null||!$n.includes(e))&&(hn(e,4096),(e.f&768)===0&&(e.f^=512),Vc(e),ed(e,0))}function ed(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)o_(t,i[o])}function el(t){var e=t.f;if((e&16384)===0){hn(t,1024);var i=_t,o=na;if(_t=t,na=!0,Me){var n=Jn;Wl(t.component_function)}try{(e&16)!==0?Ag(t):Mp(t),Ap(t);var s=Rc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Dg,Me&&es&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=ql(),l.set_during_effect=!1);Me&&nd.push(t)}finally{na=o,_t=i,Me&&Wl(n)}}}function Og(){console.error("Last ten effects were: ",nd.slice(-10).map(t=>t.fn)),nd=[]}function n_(){try{lg()}catch(t){if(Me&&lo(t,"stack",{value:""}),ol!==null)if(Me)try{id(t,ol)}catch(e){throw Og(),e}else id(t,ol);else throw Me&&Og(),t}}function Bp(){var t=na;try{var e=0;for(na=!0;od.length>0;){e++>1e3&&n_();var i=od,o=i.length;od=[];for(var n=0;n<o;n++){var s=s_(i[n]);r_(s)}Xa.clear()}}finally{oa=!1,na=t,ol=null,Me&&(nd=[])}}function r_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Js(o)&&(el(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Vp(o):o.fn=null))}}function Gl(t){oa||(oa=!0,queueMicrotask(Bp));for(var e=ol=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}od.push(e)}function s_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Js(i)&&el(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function nl(t){var e;for(t&&(oa=!0,Bp(),oa=!0,e=t());;){if(Vg(),od.length===0)return oa=!1,ol=null,Me&&(nd=[]),e;oa=!0,Bp()}}async function Io(){await Promise.resolve(),nl()}function r(t){var e=t.f,i=(e&2)!==0;if(qc!==null&&qc.add(t),Et!==null&&!ir){if(!(Ko!=null&&Ko[1].includes(t))||Ko[0]!==Et){var o=Et.deps;t.rv<Kc&&(t.rv=Kc,$n===null&&o!==null&&o[or]===t?or++:$n===null?$n=[t]:(!ps||!$n.includes(t))&&$n.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,Js(n)&&Ep(n)),Me&&es&&!ir&&Ul!==null&&Et!==null&&Ul.reaction===Et)if(t.trace)t.trace();else{var l=cs("TracedAt");if(l){var d=Ul.entries.get(t);d===void 0&&(d={traces:[]},Ul.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return us&&Xa.has(t)?Xa.get(t):t.v}function wt(t){var e=ir;try{return ir=!0,t()}finally{ir=e}}var a_=-7169;function hn(t,e){t.f=t.f&a_|e}function Gc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Uo in t)Qc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Uo in i&&Qc(i)}}}function Qc(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{Qc(t[o],e)}catch(n){}let i=js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=kc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Dp(t,e){if(e){let i=document.body;t.autofocus=!0,bn(()=>{document.activeElement===i&&t.focus()})}}function rd(t){var e=Et,i=_t;Hi(null),co(null);try{return t()}finally{Hi(e),co(i)}}var Hp=new Set,jc=new Set;function ra(t){if(!Je)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Fp(t,e,i,o={}){function n(s){if(o.capture||rl.call(e,s),!s.cancelBubble)return rd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?bn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var s={capture:o,passive:n},l=Fp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&zo(()=>{e.removeEventListener(t,l,s)})}function dt(t){for(var e=0;e<t.length;e++)Hp.add(t[e]);for(var i of jc)i(t)}function rl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){lo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Et,v=_t;Hi(null),co(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Zn(x)){var[S,...T]=x;S.apply(s,[t,...T])}else x.call(s,t)}catch(V){u?y.push(V):u=V}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let V of y)queueMicrotask(()=>{throw V});throw u}}finally{t.__root=e,delete t.currentTarget,Hi(f),co(v)}}}var d_;function Fg(){d_=void 0}function sl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ko(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Je)return ko(bt,null),bt;n===void 0&&(n=sl(s?t:"<!>"+t),i||(n=wi(n)));var l=o||jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=wi(l),a=l.lastChild;ko(d,a)}else ko(l,l);return l}}function p_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return ko(bt,null),bt;if(!l){var d=sl(s),a=wi(d);if(n)for(l=document.createDocumentFragment();wi(a);)l.appendChild(wi(a));else l=wi(a)}var p=l.cloneNode(!0);if(n){var f=wi(p),v=p.lastChild;ko(f,v)}else ko(p,p);return p}}function Te(t,e){return p_(t,e,"svg")}function os(t=""){if(!Je){var e=_n(t+"");return ko(e,e),e}var i=bt;return i.nodeType!==Ka&&(i.before(i=_n()),yi(i)),ko(i,i),i}function We(){if(Je)return ko(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),ko(e,i),t}function $(t,e){if(Je){_t.nodes_end=bt,Ui();return}t!==null&&t.before(e)}var f_=/\r/g;function zg(t){t=t.replace(f_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Wg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var m_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Kg(t){return m_.includes(t)}var v_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var g_={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 qg(t){var e;return t=t.toLowerCase(),(e=g_[t])!=null?e:t}var X6=[...v_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var h_=["touchstart","touchmove"];function Qg(t){return h_.includes(t)}var __=["$state","$state.raw","$derived","$derived.by"],J6=[...__,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var b_=["textarea","script","style","title"];function Gg(t){return b_.includes(t)}function Yc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function Zc(t){sd=t}function be(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 ns(t,e){return jg(t,e)}function zp(t,e){var l;Dc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=bt;try{for(var s=wi(i);s&&(s.nodeType!==Xn||s.data!==Es);)s=qo(s);if(!s)throw Xr;uo(!0),yi(s),Ui();let d=jg(t,{...e,anchor:s});if(bt===null||bt.nodeType!==Xn||bt.data!==Gs)throw As(),Xr;return uo(!1),d}catch(d){if(d===Xr)return e.recover===!1&&dg(),Dc(),Yl(i),uo(!1),ns(t,e);throw d}finally{uo(o),yi(n),Fg()}}var al=new Map;function jg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Dc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var y=v[u];if(!d.has(y)){d.add(y);var w=Qg(y);e.addEventListener(y,rl,{passive:w});var x=al.get(y);x===void 0?(document.addEventListener(y,rl,{passive:w}),al.set(y,1)):al.set(y,x+1)}}};a(Fl(Hp)),jc.add(a);var p=void 0,f=Pg(()=>{var v=i!=null?i:e.appendChild(_n());return Mi(()=>{if(s){U({});var u=Nt;u.c=s}n&&(o.$$events=n),Je&&ko(v,null),sd=l,p=t(v,o)||{},sd=!0,Je&&(_t.nodes_end=bt),s&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,rl);var y=al.get(u);--y===0?(document.removeEventListener(u,rl),al.delete(u)):al.set(u,y)}jc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Up.set(p,f),p}var Up=new WeakMap;function sa(t,e){let i=Up.get(t);return i?(Up.delete(t),i(e)):(Me&&wg(),Promise.resolve())}function ye(t,e,...i){var o=t,n=de,s;zi(()=>{n!==(n=e())&&(s&&(Fi(s),s=null),Me&&n==null&&cg(),s=Mi(()=>n(o,...i)))},65536),Je&&(o=bt)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;fg(e)},set:o=>{i=o}})}};w_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var w_;function Mt(t){Nt===null&&Ga("onMount"),Jr&&Nt.l!==null?x_(Nt).m.push(t):Ke(()=>{let e=wt(t);if(typeof e=="function")return e})}function nn(t){Nt===null&&Ga("onDestroy"),Mt(()=>()=>wt(t))}function x_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Yg=new Map;function Zg(t,e){var i=Yg.get(t);i||(i=new Set,Yg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Je&&i===0&&Ui();var n=t,s=null,l=null,d=Xi,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,v(y,u)},v=(u,y)=>{if(d===(d=u))return;let w=!1;if(Je&&o!==-1){if(i===0){let S=Bc(n);S===Es?o=0:S===Is?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=ea(),yi(n),uo(!1),w=!0,o=-1)}d?(s?ms(s):y&&(s=Mi(()=>y(n))),l&&Bn(l,()=>{l=null})):(l?ms(l):y&&(l=Mi(()=>y(n,[i+1,o]))),s&&Bn(s,()=>{s=null})),w&&uo(!0)};zi(()=>{p=!1,e(f),p||v(null,null)},a),Je&&(n=bt)}function aa(t,e,i){Je&&Ui();var o=t,n=Xi,s,l=ts()?og:qa;zi(()=>{l(n,n=e())&&(s&&Bn(s),s=Mi(()=>i(o)))}),Je&&(o=bt)}var Ls=null;function qp(t){Ls=t}function ad(t,e){return e}function T_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)zc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Yl(a),a.append(i),o.clear(),Ms(t,e[0].prev,e[s-1].next)}Rp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),Ms(t,f.prev,f.next)),Fi(f.e,!d)}})}function Ti(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Je?yi(wi(p)):p.appendChild(_n())}Je&&Ui();var f=null,v=!1,u=Rr(()=>{var y=i();return Zn(y)?y:y==null?[]:Fl(y)});zi(()=>{var y=r(u),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(Je){var S=Bc(l)===Is;S!==(w===0)&&(l=ea(),yi(l),uo(!1),x=!0)}if(Je){for(var T=null,E,V=0;V<w;V++){if(bt.nodeType===Xn&&bt.data===Gs){l=bt,x=!0,uo(!1);break}var k=y[V],I=o(k,V);E=eh(bt,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&yi(ea())}Je||E_(y,d,l,n,e,o,i),s!==null&&(w===0?f?ms(f):f=Mi(()=>s(l)):f!==null&&Bn(f,()=>{f=null})),x&&uo(!0),r(u)}),Je&&(l=bt)}function E_(t,e,i,o,n,s,l){var ie,ue,$e,fe;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,y,w=null,x,S=[],T=[],E,V,k,I;if(d)for(I=0;I<p;I+=1)E=t[I],V=s(E,I),k=f.get(V),k!==void 0&&((ie=k.a)==null||ie.measure(),(x!=null?x:x=new Set).add(k));for(I=0;I<p;I+=1){if(E=t[I],V=s(E,I),k=f.get(V),k===void 0){var R=u?u.e.nodes_start:i;w=eh(R,e,w,w===null?e.first:w.next,E,V,I,o,n,l),f.set(V,w),S=[],T=[],u=w.next;continue}if(a&&I_(k,E,I,n),(k.e.f&8192)!==0&&(ms(k.e),d&&((ue=k.a)==null||ue.unfix(),(x!=null?x:x=new Set).delete(k))),k!==u){if(y!==void 0&&y.has(k)){if(S.length<T.length){var Y=T[0],H;w=Y.prev;var F=S[0],W=S[S.length-1];for(H=0;H<S.length;H+=1)Xg(S[H],Y,i);for(H=0;H<T.length;H+=1)y.delete(T[H]);Ms(e,F.prev,W.next),Ms(e,w,F),Ms(e,W,Y),u=Y,w=W,I-=1,S=[],T=[]}else y.delete(k),Xg(k,u,i),Ms(e,k.prev,k.next),Ms(e,k,w===null?e.first:w.next),Ms(e,w,k),w=k;continue}for(S=[],T=[];u!==null&&u.k!==V;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;k=u}S.push(k),w=k,u=k.next}if(u!==null||y!==void 0){for(var J=y===void 0?[]:Fl(y);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var G=J.length;if(G>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<G;I+=1)($e=J[I].a)==null||$e.measure();for(I=0;I<G;I+=1)(fe=J[I].a)==null||fe.fix()}T_(e,J,ce,f)}}d&&bn(()=>{var ke;if(x!==void 0)for(k of x)(ke=k.a)==null||ke.apply()}),_t.first=e.first&&e.first.e,_t.last=w&&w.e}function I_(t,e,i,o){(o&1)!==0&&Ja(t.v,e),(o&2)!==0?Ja(t.i,i):t.i=i}function eh(t,e,i,o,n,s,l,d,a,p){var f=Ls,v=(a&1)!==0,u=(a&16)===0,y=v?u?is(n,!1,!1):gr(n):n,w=(a&2)===0?l:gr(l);Me&&v&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ls=x;try{return x.e=Mi(()=>d(t,y,w,p),Je),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ls=f}}function Xg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=qo(s);n.before(s),s=l}}function Ms(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 k_(t,e,i){var s,l;if(!e||e===zg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Jn)!=null&&l[Vn]&&(o=`in ${Jn[Vn]}`),xg(Yc(o))}function ld(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=_t;if(l===(l=(y=e())!=null?y:"")){Je&&Ui();return}if(d.nodes_start!==null&&(Lp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=bt.data,p=Ui(),f=p;p!==null&&(p.nodeType!==Xn||p.data!=="");)f=p,p=qo(p);if(p===null)throw As(),Xr;Me&&!n&&k_(p.parentNode,a,l),ko(bt,f),s=yi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=sl(v);if((i||o)&&(u=wi(u)),ko(wi(u),u.lastChild),i||o)for(;wi(u);)s.before(wi(u));else s.before(u)}})}function Ei(t,e,i){Je&&Ui();var o=t,n,s;zi(()=>{n!==(n=e())&&(s&&(Bn(s),s=null),n&&(s=Mi(()=>i(o,n))))},65536),Je&&(o=bt)}function la(t,e,i,o,n,s){var w;let l=Je;Je&&Ui();var d=Me&&s&&((w=Nt)==null?void 0:w.function[Vn]),a,p,f=null;Je&&bt.nodeType===Ac&&(f=bt,Ui());var v=Je?bt:t,u,y=Ls;zi(()=>{let x=e()||null;var S=n?n():i||x==="svg"?Ec:null;if(x!==a){var T=Ls;qp(y),u&&(x===null?Bn(u,()=>{u=null,p=null}):x===p?ms(u):(Fi(u),Zc(!1))),x&&x!==p&&(u=Mi(()=>{if(f=Je?f:S?document.createElementNS(S,x):document.createElement(x),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),ko(f,f),o){Je&&Gg(x)&&f.append(document.createComment(""));var E=Je?wi(f):f.appendChild(_n());Je&&(E===null?uo(!1):yi(E)),o(f,E)}_t.nodes_end=f,v.before(f)})),a=x,a&&(p=a),Zc(!0),qp(T)}},65536),l&&(uo(!0),yi(v))}var Gp;function th(t){return Gp=t.target,new Qp(t)}var vs,hr,Qp=class{constructor(e){Ts(this,vs);Ts(this,hr);var s,l;var i=new Map,o=(d,a)=>{var p=is(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Wa?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return O((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});za(this,hr,(e.hydrate?zp:ns)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&nl(),za(this,vs,n.$$events);for(let d of Object.keys(Ai(this,hr)))d==="$set"||d==="$destroy"||d==="$on"||lo(this,d,{get(){return Ai(this,hr)[d]},set(a){Ai(this,hr)[d]=a},enumerable:!0});Ai(this,hr).$set=d=>{Object.assign(n,d)},Ai(this,hr).$destroy=()=>{sa(Ai(this,hr))}}$set(e){Ai(this,hr).$set(e)}$on(e,i){Ai(this,vs)[e]=Ai(this,vs)[e]||[];let o=(...n)=>i.call(this,...n);return Ai(this,vs)[e].push(o),()=>{Ai(this,vs)[e]=Ai(this,vs)[e].filter(n=>n!==o)}}$destroy(){Ai(this,hr).$destroy()}};vs=new WeakMap,hr=new WeakMap;function q(t,e){bn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=Gp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&Zg(e.hash,d)}})}function gs(t,e){var i=void 0,o;zi(()=>{i!==(i=e())&&(o&&(Fi(o),o=null),i&&(o=Mi(()=>{Eo(()=>i(t))})))})}function ih(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=ih(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function oh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ih(t))&&(o&&(o+=" "),o+=e);return o}function dd(t){return typeof t=="object"?oh(t):t!=null?t:""}var nh=[...`
44
+ \r\f\xA0\v\uFEFF`];function sh(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 s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||nh.includes(o[l-1]))&&(d===o.length||nh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function rh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function jp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ah(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(jp)),n&&a.push(...Object.keys(n).map(jp));var p=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===x-1){if(f!==-1){var y=jp(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=rh(o)),n&&(i+=rh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,s){var l=t.__className;if(Je||l!==i||l===void 0){var d=sh(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function Yp(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function st(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=ah(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Yp(t,i==null?void 0:i[0],o[0]),Yp(t,i==null?void 0:i[1],o[1],"important")):Yp(t,i,o));return o}function cd(t,e,i){if(t.multiple){if(e==null)return;if(!Zn(e))return Sg();for(var o of t.options)o.selected=e.includes(lh(o));return}for(o of t.options){var n=lh(o);if(xp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Zp(t){var e=new MutationObserver(()=>{cd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),zo(()=>{e.disconnect()})}function lh(t){return"__value"in t?t.__value:t.value}var ll=Symbol("class"),dl=Symbol("style"),uh=Symbol("is custom element"),ph=Symbol("is html");function fh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=vh(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||O_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[ig]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function mh(t,e,i,o,n=!1){var k;var s=vh(t),l=s[uh],d=!s[ph];let a=Je&&l;a&&uo(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=dd(i.class):(o||i[ll])&&(i.class=null),i[dl]&&((k=i.style)!=null||(i.style=null));var u=gh(t);for(let I in i){let R=i[I];if(f&&I==="value"&&R==null){t.value=t.__value="",p[I]=R;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,y,R,o,e==null?void 0:e[ll],i[ll]),p[I]=R,p[ll]=i[ll];continue}if(I==="style"){st(t,R,e==null?void 0:e[dl],i[dl]),p[I]=R,p[dl]=i[dl];continue}var w=p[I];if(!(R===w&&!(R===void 0&&t.hasAttribute(I)))){p[I]=R;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let Y={},H="$$"+I,F=I.slice(2);var S=Kg(F);if(Wg(F)&&(F=F.slice(0,-7),Y.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(F,p[H],Y),p[H]=null}if(R!=null)if(S)t[`__${F}`]=R,dt([F]);else{let W=function(J){p[I].call(this,J)};var V=W;p[H]=Fp(F,t,W,Y)}else S&&(t[`__${F}`]=void 0)}else if(I==="style")Fe(t,I,R);else if(I==="autofocus")Dp(t,!!R);else if(!l&&(I==="__value"||I==="value"&&R!=null))t.value=t.__value=R;else if(I==="selected"&&f)fh(t,R);else{var T=I;d||(T=qg(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Y=t,H=e===void 0;if(T==="value"){let F=Y.defaultValue;Y.removeAttribute(T),Y.defaultValue=F,Y.value=Y.__value=H?F:null}else{let F=Y.defaultChecked;Y.removeAttribute(T),Y.defaultChecked=F,Y.checked=H?F:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Fe(t,T,R,n)}}}return a&&uo(!0),p}function Pe(t,e,i=[],o,n=!1,s=Vr){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(zi(()=>{var u=e(...l.map(r)),y=mh(t,d,u,o,n);f&&p&&"value"in u&&cd(t,u.value,!1);for(let x of Object.getOwnPropertySymbols(a))u[x]||Fi(a[x]);for(let x of Object.getOwnPropertySymbols(u)){var w=u[x];x.description===mp&&(!d||w!==d[x])&&(a[x]&&Fi(a[x]),a[x]=Mi(()=>gs(t,()=>w))),y[x]=w}d=y}),p){var v=t;Eo(()=>{cd(v,d.value),Zp(v)})}f=!0}function vh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[uh]:t.nodeName.includes("-"),[ph]:t.namespaceURI===jv}}var dh=new Map;function gh(t){var e=dh.get(t.nodeName);if(e)return e;dh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=kc(o);for(var s in i)i[s].set&&e.push(s);o=js(o)}return e}function O_(t,e,i){var o;Me&&(e==="srcset"&&B_(t,i)||Xp((o=t.getAttribute(e))!=null?o:"",i)||yg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Xp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ch(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function B_(t,e){var i=ch(t.srcset),o=ch(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Xp(i[l][0],n)||Xp(n,i[l][0])))}var D_=Ic?()=>performance.now():()=>Date.now(),Br={tick:t=>(Ic?requestAnimationFrame:de)(t),now:()=>D_(),tasks:new Set};function hh(){let t=Br.now();Br.tasks.forEach(e=>{e.c(t)||(Br.tasks.delete(e),e.f())}),Br.tasks.size!==0&&Br.tick(hh)}function _h(t){let e;return Br.tasks.size===0&&Br.tick(hh),{promise:new Promise(i=>{Br.tasks.add(e={c:t,f:i})}),abort(){Br.tasks.delete(e)}}}function Xc(t,e){rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function z_(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 bh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=z_(n.trim());e[l]=s.trim()}return e}var W_=t=>t;function ef(t,e,i,o){var V;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,y;function w(){var R;var k=Et,I=_t;Hi(null),co(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Hi(k),co(I)}}var x={is_global:d,in(){var k;if(e.inert=f,!n){y==null||y.abort(),(k=y==null?void 0:y.reset)==null||k.call(y);return}s||u==null||u.abort(),Xc(e,"introstart"),u=Jp(e,w(),y,1,()=>{Xc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),p=void 0;return}e.inert=!0,Xc(e,"outrostart"),y=Jp(e,w(),u,0,()=>{Xc(e,"outroend"),k==null||k()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=_t;if(((V=S.transitions)!=null?V:S.transitions=[]).push(x),n&&sd){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Eo(()=>{wt(()=>x.in())})}}function Jp(t,e,i,o,n){var s=o===1;if(ks(e)){var l,d=!1;return bn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Jp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=W_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=bh(p(0,1));u.push(y,y)}var w=()=>1-o,x=t.animate(u,{duration:a,fill:"forwards"});return x.onfinish=()=>{var F;x.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),V=[];if(E>0){var k=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),R=0;R<=I;R+=1){var Y=S+T*v(R/I),H=bh(p(Y,1-Y));V.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var W=x.currentTime;return S+T*v(W/E)},f&&_h(()=>{if(x.playState!=="running")return!1;var W=w();return f(W,1-W),!0})}x=t.animate(V,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Vs,cl,ud,eu,$h,tu=class tu{constructor(e){Ts(this,eu);Ts(this,Vs,new WeakMap);Ts(this,cl);Ts(this,ud);za(this,ud,e)}observe(e,i){var o=Ai(this,Vs).get(e)||new Set;return o.add(i),Ai(this,Vs).set(e,o),Qv(this,eu,$h).call(this).observe(e,Ai(this,ud)),()=>{var n=Ai(this,Vs).get(e);n.delete(i),n.size===0&&(Ai(this,Vs).delete(e),Ai(this,cl).unobserve(e))}}};Vs=new WeakMap,cl=new WeakMap,ud=new WeakMap,eu=new WeakSet,$h=function(){var e;return(e=Ai(this,cl))!=null?e:za(this,cl,new ResizeObserver(i=>{for(var o of i){tu.entries.set(o.target,o);for(var n of Ai(this,Vs).get(o.target)||[])n(o)}}))},Yn(tu,"entries",new WeakMap);var tf=tu;var K_=new tf({box:"border-box"});function nr(t,e,i){var o=K_.observe(t,()=>i(t[e]));Eo(()=>(wt(()=>i(t[e])),o))}function yh(t,e){return t===e||(t==null?void 0:t[Uo])===e}function ot(t={},e,i,o){return Eo(()=>{var n,s;return Qo(()=>{n=s,s=(o==null?void 0:o())||[],wt(()=>{t!==i(...s)&&(e(t,...s),n&&yh(i(...n),t)&&e(null,...n))})}),()=>{bn(()=>{s&&yh(i(...s),t)&&e(null,...s)})}}),t}function Dr(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Gc(e.s);if(t){let n=0,s={},l=Vr(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Jl(()=>{xh(e,o),Ps(i.b)}),Ke(()=>{let n=wt(()=>i.m.map(tg));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ke(()=>{xh(e,o),Ps(i.a)})}function xh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ul=[];function _r(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=de){let i=null,o=new Set;function n(d){if(qa(t,d)&&(t=d,i)){let a=!ul.length;for(let p of o)p[1](),ul.push(p,t);if(a){for(let p=0;p<ul.length;p+=2)ul[p][0](ul[p+1]);ul.length=0}}}function s(d){n(d(t))}function l(d,a=de){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function Si(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return _r(i,(l,d)=>{let a=!1,p=[],f=0,v=de,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);s?l(w):v=typeof w=="function"?w:de},y=n.map((w,x)=>pd(w,S=>{p[x]=S,f&=~(1<<x),a&&u()},()=>{f|=1<<x}));return a=!0,u(),function(){Ps(y),v(),a=!1}})}function xe(t){let e;return pd(t,i=>e=i)(),e}var iu=!1,of=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:is(void 0),unsubscribe:de};if(o.store!==t&&!(of in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&of in i?xe(t):r(o.source)}function He(){let t={};function e(){zo(()=>{for(var i in t)t[i].unsubscribe();lo(t,of,{enumerable:!1,value:!0})})}return[t,e]}function nf(t){var e=iu;try{return iu=!1,[t(),iu]}finally{iu=e}}var X_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&pg(`${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 Ne(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},X_)}var J_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];ks(n)&&(n=n());let s=en(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=en(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Uo||e===Wa)return!1;for(let i of t.props)if(ks(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ks(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function hs(...t){return new Proxy({props:t},J_)}function wh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Y,H;var n=(i&1)!==0,s=!Jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=nf(()=>t[e]):p=t[e];var f=Uo in t||Wa in t,v=l&&((H=(Y=en(t,e))==null?void 0:Y.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,u=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?u=wt(o):u=o),u);p===void 0&&o!==void 0&&(v&&s&&ug(e),p=x(),v&&v(p));var S;if(s)S=()=>{var F=t[e];return F===void 0?x():(y=!0,w=!1,F)};else{var T=(n?Vr:Rr)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(F,W){return arguments.length>0?((!s||!W||E||a)&&v(W?S():F),F):S()}}var V=!1,k=!1,I=is(p),R=Vr(()=>{var F=S(),W=r(I);return V?(V=!1,k=!0,W):(k=!1,I.v=F)});return l&&r(R),n||(R.equals=Qa),function(F,W){if(qc!==null&&(V=k,S(),r(I)),arguments.length>0){let J=W?r(R):s&&l?ni(F):F;if(!R.equals(J)){if(V=!0,O(I,J),w&&u!==void 0&&(u=J),wh(R))return F;wt(()=>r(R))}return F}return wh(R)?R.v:r(R)}}var eb;typeof HTMLElement=="function"&&(eb=class extends HTMLElement{constructor(e,i,o){super();Yn(this,"$$ctor");Yn(this,"$$s");Yn(this,"$$c");Yn(this,"$$cn",!1);Yn(this,"$$d",{});Yn(this,"$$r",!1);Yn(this,"$$p_d",{});Yn(this,"$$l",{});Yn(this,"$$l_u",new Map);Yn(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(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=tb(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=rf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=th({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Uc(()=>{Qo(()=>{var s;this.$$r=!0;for(let l of vp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=rf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=rf(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 vp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function rf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.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 tb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sh="5";var Ch,Th,Eh;typeof window!="undefined"&&((Eh=(Th=(Ch=window.__svelte)!=null?Ch:window.__svelte={}).v)!=null?Eh:Th.v=new Set).add(Sh);var Al=require("@vkontakte/videoplayer-core/es2018"),Ij=require("@vkontakte/videoplayer-core/es2018"),Da=require("@vkontakte/videoplayer-shared/es2018"),T0=require("@vkontakte/videoplayer-statistics/es2018");var da=require("@vkontakte/videoplayer-shared/es2018");var ib={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:da.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:da.VideoQuality.Q_480P,highQualityLimit:da.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!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,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Ih=t=>(0,da.fillWithDefault)(t,ib),kh=t=>Ya("ui-config",t),kt=()=>ja("ui-config");var fd="vk_player_debug_panel_opened";var Ph="videoplayer",Ah="videoplayer";var rs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Mh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Lh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Vh=new Set(["ShiftRight","ShiftLeft"]);var Rh=["TIMELINE"],md=[...Rh,"GRAPH_BUTTON"],sf=[...Rh,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var Hr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Hr||{}),ua={xs:0,s:1,m:2,l:3,xl:4};var gd=require("@vkontakte/videoplayer-shared/es2018"),Nh=require("@vkontakte/videoplayer-core/es2018"),Oh=require("@vkontakte/videoplayer-statistics/es2018");var ou="prod",pa="1.1.72-dev.95df362c.0";var fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Bh=Symbol("storeContext"),Dh=Symbol("microStoresContext"),Hh=(t,e)=>{Ya(Bh,t),Ya(Dh,e),ou==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=ja(Bh);return(0,gd.assertNonNullable)(t,"Store context is empty!"),t},ho=()=>{let t=ja(Dh);return(0,gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ti=(t,e)=>ru(t,t.getValue(),e),ru=(t,e,i)=>_r(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Fh=(t,e,i,o)=>{var R,Y,H,F,W,J,G,ce;let n=t.info,{width:s,height:l}=xe(i.ui.playerSize),d=(Y=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Y:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${pa} (core: ${Nh.VERSION}, stat: ${Oh.VERSION}, shared: ${gd.VERSION})`,v=xe(i.state.errorLog$),u=v.length?`
45
+ `+v.map((ie,ue)=>{var ne;let $e=`${ue}) Type: ${ie.id}
46
+ `,fe=`Message: ${ie.message} (${ie.thrown})
47
+ `,ke=`Trace: ${(ne=ie.thrown)==null?void 0:ne.stack}
48
+ `;return $e+fe+ke}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(W=w==null?void 0:w.codec)!=null?W:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&S.push(`Audio: ${(J=x==null?void 0:x.codec)!=null?J:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let ie=n.availableQualitiesFps$.getValue()[T];E=ie?`${ie}fps`:""}let V=(ce=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?ce:0,k=Math.max(V-xe(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(I).filter(([ie,ue])=>ue!==void 0).map(([ie,ue])=>`${ie}: ${ue}`).join(`
50
+ `)},Uh=(t,e,i)=>{var Y,H,F,W;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:pa,viewport:`${n}x${s}`,volume:Math.round(xe(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-xe(i.state.positionExact$),0)),l.position=xe(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=xe(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.codec;V&&(l.videoCodec=V);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let R=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.language;return R&&(l.audioLanguage=R),l},zh=(t,e)=>fa(t,e,"mp4"),Wh=t=>!t.type,Kh=t=>!!t.type,qh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},nu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var gi=require("@vkontakte/videoplayer-shared/es2018"),_A=require("@vkontakte/videoplayer-core/es2018"),Qh="vk_player_prefer_traffic_saving_enabled",Gh="vk_player_preferred_volume",jh="vk_player_prefer_volume_mute",cf="vk_player_preferred_quality",af="vk_player_preferred_default_quality_settings",lf="vk_player_preferred_quality_settings_by_video",Yh="vk_player_preferred_stream_language",Zh="vk_player_preferred_rate",Xh="vk_player_preferred_autoplay_next",df="vk_player_preferred_subtitles_language",Jh="vk_player_user_video_prefs",e1=t=>t>1?1:t<0?0:t,uf=t=>gi.safeStorage.set(Gh,e1(t).toString(10)),su=()=>{let t=gi.safeStorage.get(Gh);return(0,gi.isNullable)(t)?void 0:e1(parseFloat(t))},pf=(t,e)=>gi.safeStorage.set(cf,JSON.stringify({videoId:t,value:e})),au=()=>gi.safeStorage.remove(cf),ff=t=>{let e=gi.safeStorage.get(cf);if((0,gi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){au();return}return o},mf=(t,e)=>{e?gi.safeStorage.set(t,"true"):gi.safeStorage.remove(t)},vf=t=>gi.safeStorage.get(t)==="true",gf=t=>mf(jh,t),t1=()=>vf(jh),hd=t=>mf(Qh,t),hf=()=>vf(Qh),i1=()=>gi.safeStorage.get(Yh),_f=t=>gi.safeStorage.set(Yh,t),bf=()=>gi.safeStorage.get(df),$f=t=>{t?gi.safeStorage.set(df,t):gi.safeStorage.remove(df)},o1=t=>gi.safeStorage.set(Zh,JSON.stringify({rate:t})),n1=()=>{let t=gi.safeStorage.get(Zh);if((0,gi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},r1=t=>mf(Xh,t),s1=()=>vf(Xh),ob=()=>{let t=f=>{gi.safeStorage.set(af,JSON.stringify(f))},e=()=>{try{let f=gi.safeStorage.get(af);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=gi.safeStorage.get(lf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{gi.safeStorage.set(lf,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{gi.safeStorage.remove(lf)},l=()=>{gi.safeStorage.remove(af)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":hd(!0);break;case"exact_quality":pf(f,v.quality)}s(),l()}},p=f=>{let v=ff(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}hf()&&t({type:"traffic_saving",videoId:f}),hd(!1),au()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:bf,savePreferredSubtitlesLanguage:$f}},{getPreferredQualitySettings:a1,migrateSettingsToLegacyWay:l1,savePreferredQualitySettings:lu,savePreferredDefaultQualitySettings:bA,removePreferredQualitySettingsByVideo:$A,getPreferredDefaultQualitySettings:du}=ob(),nb=3,rb=3,d1=()=>{let t=gi.safeStorage.get(Jh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},cu=(t,e)=>{var n,s;let i=d1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},yf=(t,e,i)=>{var l,d,a;let o=(l=d1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=sb(o);gi.safeStorage.set(Jh,JSON.stringify(s))};function sb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(rb),e.reduce((o,[n])=>(o[n]=ab(t[n]),o),{})}function ab(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(nb),Object.fromEntries(e)}var Tv=require("@vkontakte/videoplayer-core/es2018");var lb=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function _d(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=lb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var pl=require("@vkontakte/videoplayer-shared/es2018");var db={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x"},$1=vb;var gb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},c1=db;var cb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _s=new Map;_s.set(ul.InterfaceLanguage.EN,y1);_s.set(ul.InterfaceLanguage.RU,$1);var x1=new Map,Pf=({language:t,pack:e,fallback:i})=>{if(_s.has(t)){let o=_s.get(t);_s.set(t,{...o,...e})}else _s.set(t,e);x1.set(t,i)},Af=t=>_s.has(t),Mf=(t,e,i,o)=>{var l;let n=_s.get(t),s=n==null?void 0:n[e];if((0,ul.isNullable)(s)){let d=(l=x1.get(t))!=null?l:o,a=d?_s.get(d):void 0;s=a==null?void 0:a[e]}return(0,ul.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},W=(t,e)=>{let{interfaceLanguage$:i}=Te(),o=ye(i),n=kt();return Mf(o,t,e,n.defaultLanguage)};var GA=require("@vkontakte/videoplayer-core/es2018");var pl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(pl||(pl={}));var hb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_b=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,bb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",$b="X-Sentry-Auth",yb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function xb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let s=0;s<i.length;++s){if(o=hb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=bb.exec(i[s]))n={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=_b.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=gu),e.push(n)}return e.length?{value:w1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function w1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function wb(t){try{let e=xb(t);if(e)return e}catch(e){}return{value:w1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Sb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=yb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/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:[wb(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($b,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Sb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function S1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Cb(){return window}var _u=class t extends hu{constructor(e,i=Cb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}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=>S1(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=>S1(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],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ma=require("@vkontakte/videoplayer-shared/es2018");var bu=null,va=class{constructor(e,i,o={}){!bu&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ma.Subscription,this.options=e,this.context=o,bu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),bu=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:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:u,category:y}=i;if((0,ma.isNonNullable)(y)&&m.includes(y)||(0,ma.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ma.isNonNullable)(y)&&p.includes(y)||(0,ma.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?pl.fatal:pl.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return bu}};var ss=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ss||{});var $u=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},yu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),C1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},wd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ns=()=>!!wd(),xu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},wu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},T1=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))};var Lf=require("@vkontakte/videoplayer-core/es2018"),E1=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")},{description:W("hotkey_map_item_next_video_description"),value:W("hotkey_map_item_next_video_value")},{description:W("hotkey_map_item_prev_video_description"),value:W("hotkey_map_item_prev_video_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:Lf.clientChecker.device.isApple?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:Lf.clientChecker.device.isApple?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});var fl=require("@vkontakte/videoplayer-shared/es2018"),ga=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,fl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new fl.ValueSubject(!1),isEnabled$:new fl.ValueSubject(!1),type:0};this.info.isEnabled$=new fl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ha(t){return t instanceof ga}var ml=require("@vkontakte/videoplayer-shared/es2018");Eg();function Rf(t,e){U(e,!1);let i=Te();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Hr(),z()}var I1=require("@vkontakte/videoplayer-shared/es2018");var Tb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Eb=A('<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>'),Ib=A("<div><!></div>"),kb={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 Nf(t,e){U(e,!0),K(t,kb);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,I1.noop),p=Te().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=Ib();let u;m.__click=[Tb,f,d];var y=_(m);{var w=S=>{var T=Eb(),E=_(T);xe(),h(T),B(R=>_e(E,`${R!=null?R:""} `),[()=>W("skip_ads_now")]),$(S,T)},x=S=>{var T=os();B(E=>_e(T,E),[()=>W("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};V(y,S=>{r(f)?S(w):S(x,!1)})}h(m),B(S=>u=ie(m,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,m),z(),o()}at(["click"]);var Pb=A('<button class="svelte-1wy3dql"> </button>'),Ab={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 Of(t,e){U(e,!1),K(t,Ab),Hr();var i=Pb(),o=_(i,!0);h(i),B(n=>_e(o,n),[()=>W("visit_advertiser")],Nr),$(t,i),z()}var Mb=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),Lb=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Vb={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(
54
+ Try switching the\xA0quality to\xA0Auto.`},u1=cb;var _s=new Map;_s.set(pl.InterfaceLanguage.EN,u1);_s.set(pl.InterfaceLanguage.RU,c1);var p1=new Map,xf=({language:t,pack:e,fallback:i})=>{if(_s.has(t)){let o=_s.get(t);_s.set(t,{...o,...e})}else _s.set(t,e);p1.set(t,i)},wf=t=>_s.has(t),Sf=(t,e,i,o)=>{var l;let n=_s.get(t),s=n==null?void 0:n[e];if((0,pl.isNullable)(s)){let d=(l=p1.get(t))!=null?l:o,a=d?_s.get(d):void 0;s=a==null?void 0:a[e]}return(0,pl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},K=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=xe(i),n=kt();return Sf(o,t,e,n.defaultLanguage)};var DA=require("@vkontakte/videoplayer-core/es2018");var fl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(fl||(fl={}));var ub=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,fb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,uu="?",mb="X-Sentry-Auth",vb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function gb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let s=0;s<i.length;++s){if(o=ub.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||uu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=fb.exec(i[s]))n={filename:o[2],function:o[1]||uu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=pb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||uu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=uu),e.push(n)}return e.length?{value:f1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function f1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function hb(t){try{let e=gb(t);if(e)return e}catch(e){}return{value:f1(t),type:t&&t.name,stacktrace:{frames:[]}}}function _b(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var pu=class{constructor(e){if(e&&e.dsn){let i=vb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/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:[hb(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(mb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:_b(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function m1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function bb(){return window}var fu=class t extends pu{constructor(e,i=bb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}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=>m1(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=>m1(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],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var ma=require("@vkontakte/videoplayer-shared/es2018");var mu=null,va=class{constructor(e,i,o={}){!mu&&e.dsn&&(this.sentryClient=new fu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ma.Subscription,this.options=e,this.context=o,mu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),mu=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:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:y}=i;if((0,ma.isNonNullable)(y)&&v.includes(y)||(0,ma.isNonNullable)(u)&&f.includes(u))return;if(Math.random()<=d||(0,ma.isNonNullable)(y)&&p.includes(y)||(0,ma.isNonNullable)(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?fl.fatal:fl.error),n.report(e)}catch(x){console.error(x)}}}static getInstance(){return mu}};var ss=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ss||{});var vu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),v1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},bd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Rs=()=>!!bd(),hu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},_u=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},g1=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))};var Cf=require("@vkontakte/videoplayer-core/es2018"),h1=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_context_menu_description"),value:K("hotkey_map_item_show_context_menu_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")},{description:K("hotkey_map_item_next_video_description"),value:K("hotkey_map_item_next_video_value")},{description:K("hotkey_map_item_prev_video_description"),value:K("hotkey_map_item_prev_video_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:Cf.clientChecker.device.isApple?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:Cf.clientChecker.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});var ml=require("@vkontakte/videoplayer-shared/es2018"),ga=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,ml.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ml.ValueSubject(!1),isEnabled$:new ml.ValueSubject(!1),type:0};this.info.isEnabled$=new ml.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ha(t){return t instanceof ga}var vl=require("@vkontakte/videoplayer-shared/es2018");hg();function Ef(t,e){U(e,!1);let i=Ee();Mt(()=>{i.getAdmanWrapper().startPostroll()}),Dr(),z()}var _1=require("@vkontakte/videoplayer-shared/es2018");var $b=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},yb=M('<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>'),xb=M("<div><!></div>"),wb={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 If(t,e){U(e,!0),q(t,wb);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,_1.noop),p=Ee().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=xb();let u;v.__click=[$b,f,d];var y=_(v);{var w=S=>{var T=yb(),E=_(T);Ce(),h(T),B(V=>be(E,`${V!=null?V:""} `),[()=>K("skip_ads_now")]),$(S,T)},x=S=>{var T=os();B(E=>be(T,E),[()=>K("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};L(y,S=>{r(f)?S(w):S(x,!1)})}h(v),B(S=>u=ee(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),z(),o()}dt(["click"]);var Sb=M('<button class="svelte-1wy3dql"> </button>'),Cb={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 kf(t,e){U(e,!1),q(t,Cb),Dr();var i=Sb(),o=_(i,!0);h(i),B(n=>be(o,n),[()=>K("visit_advertiser")],Rr),$(t,i),z()}var Tb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Eb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ib={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Cd(t,e){U(e,!0),K(t,Vb);let[i,o]=He(),n=()=>C(H,"$canSkipAd",i),s=()=>C(G,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(q,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),u=v(e,"adsPreviewParam",3,void 0),y=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),x=Te(),S=kt(),T=x.state.isEnded$,E=x.ui.isMobile,R=S.ads.isMobileGoToSiteButton,I=Z(void 0),M=Z(void 0),k=!1,G=x.ads.playbackState,H=x.ads.canSkip,F=x.ads.position,q=x.ads.secondsToWatchBeforeSkip,Y=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&R);Rt(()=>{var Ae;let Be=x.getAdmanWrapper();if(ml.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ml.now)(),f()]}),!f()){Be.onAdmanLoadingError();return}let ce=ke=>{Be.initAdman(ke),k=!0},he=new AbortController,oe=()=>{he.abort()},{width:ve,height:De}=ye(x.ui.playerSize),pe=ye(x.ui.isFullscreen),st=(Ae=y())!=null?Ae:ye(x.ui.isAutoplay),X={width:ve,height:De,isFullscreen:pe,isAutoplay:st,adsContainer:r(I),adsVideoElement:r(M),slotId:f(),params:m(),previewParam:u(),duration:w()};return window.AdmanHTML?ce(X):Be.loadAdman(he.signal).then(()=>{ce(X)}).catch(()=>{Be.onAdmanLoadingError()}),()=>{ml.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ml.now)(),f()]}),!k&&oe()}});var ue=Lb(),re=_(ue);{var fe=Be=>{var ce=Mb();$(Be,ce)};V(re,Be=>{l()&&Be(fe)})}var be=P(re,2);tt(be,Be=>O(M,Be),()=>r(M));var me=P(be,2);{var Pe=Be=>{Nf(Be,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};V(me,Be=>{r(Y)&&Be(Pe)})}var se=P(me,2);{var Le=Be=>{Rf(Be,{})};V(se,Be=>{p()&&Be(Le)})}var ae=P(se,2);{var N=Be=>{Of(Be,{})};V(ae,Be=>{r(j)&&Be(N)})}h(ue),tt(ue,Be=>O(I,Be),()=>r(I)),$(t,ue),z(),o()}var $n=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Rb=we('<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 Bf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var Nb=we('<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 Df(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Td(t,e){let i=v(e,"isActive",3,!1);var o=qe(),n=ge(o);{var s=d=>{Df(d,{})},l=d=>{Bf(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Ob=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Bb=A('<div class="live-icon svelte-1s15d2i"><!></div>'),Db=A('<span class="text svelte-1s15d2i"> </span>'),Hb=A("<div><!> <!></div>"),Fb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function yd(t,e){U(e,!0),q(t,Ib);let[i,o]=He(),n=()=>C(H,"$canSkipAd",i),s=()=>C(Y,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(W,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),x=Ee(),S=kt(),T=x.state.isEnded$,E=x.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=j(void 0),I=j(void 0),R=!1,Y=x.ads.playbackState,H=x.ads.canSkip,F=x.ads.position,W=x.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&s()!=="inactive"),G=g(()=>l()&&s()!=="inactive"&&V);Mt(()=>{var Ae;let Be=x.getAdmanWrapper();if(vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,vl.now)(),f()]}),!f()){Be.onAdmanLoadingError();return}let le=Ie=>{Be.initAdman(Ie),R=!0},ve=new AbortController,te=()=>{ve.abort()},{width:me,height:De}=xe(x.ui.playerSize),pe=xe(x.ui.isFullscreen),at=(Ae=y())!=null?Ae:xe(x.ui.isAutoplay),Z={width:me,height:De,isFullscreen:pe,isAutoplay:at,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?le(Z):Be.loadAdman(ve.signal).then(()=>{le(Z)}).catch(()=>{Be.onAdmanLoadingError()}),()=>{vl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,vl.now)(),f()]}),!R&&te()}});var ce=Eb(),ie=_(ce);{var ue=Be=>{var le=Tb();$(Be,le)};L(ie,Be=>{l()&&Be(ue)})}var $e=P(ie,2);ot($e,Be=>O(I,Be),()=>r(I));var fe=P($e,2);{var ke=Be=>{If(Be,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};L(fe,Be=>{r(J)&&Be(ke)})}var ne=P(fe,2);{var Ve=Be=>{Ef(Be,{})};L(ne,Be=>{p()&&Be(Ve)})}var re=P(ne,2);{var N=Be=>{kf(Be,{})};L(re,Be=>{r(G)&&Be(N)})}h(ce),ot(ce,Be=>O(k,Be),()=>r(k)),$(t,ce),z(),o()}var yn=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var kb=Te('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Pf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=kb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var Pb=Te('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Af(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function xd(t,e){let i=m(e,"isActive",3,!1);var o=We(),n=ge(o);{var s=d=>{Af(d,{})},l=d=>{Pf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var Ab=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Mb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Lb=M('<span class="text svelte-1s15d2i"> </span>'),Vb=M("<div><!> <!></div>"),Rb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ed(t,e){K(t,Fb);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=Hb();let l;var d=_(s);{var a=u=>{var y=Ob();$(u,y)};V(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var y=Bb(),w=_(y);Td(w,{isActive:!0}),h(y),$(u,y)},m=u=>{var y=Db(),w=_(y,!0);h(y),B(()=>_e(w,e.time)),$(u,y)};V(p,u=>{o()?u(f):u(m,!1)})}h(s),B(u=>l=ie(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var vl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ub=A('<div role="timer" data-testid="thumb-timer"><!></div>'),zb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function Id(t,e){U(e,!0),K(t,zb);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=kt(),p=g(()=>$n(e.duration-e.position)),f=le(!1);var m=Ub();let u;var y=_(m);Ed(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),gs(m,()=>vl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>u=ie(m,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,m),z(),o()}var gl=t=>{if(!navigator.clipboard){k1(t);return}navigator.clipboard.writeText(t).catch(()=>k1(t))};function k1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var B1=require("@vkontakte/videoplayer-core/es2018");var Ff=require("@vkontakte/videoplayer-core/es2018");var Hf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},Uf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Hf)},Kb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},qb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Qb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Gb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},P1=t=>t.code==="Escape",jb=t=>t.code==="ArrowLeft",kd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},A1=t=>{Qb(t)?(xr(t),qb(t.target)):Gb(t)&&(xr(t),Kb(t.target))},Ds=t=>!Ff.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Ff.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",hl=async(t,e,i)=>{await Co(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await Co(),i.set(!1),t.focus())},M1=async(t,e,i)=>{await Co(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Pd=async(t,e,i,o=!1)=>{if(await Co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Hf,!i),s==null||s.focus()}},L1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Su=(t,e)=>{A1(t),Uf(t.target),P1(t)&&(xr(t),e())},Cu=async(t,e)=>{kd(t,["ArrowRight"])&&(xr(t),e())},V1=async(t,e,i)=>{if(A1(t),jb(t)){xr(t),e();return}P1(t)&&(xr(t),i())},_l=(t,e)=>{kd(t)&&(xr(t),e())},R1=(t,e,i)=>{if(kd(t))xr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),xr(t);return}o==="ArrowRight"&&!e&&(i(!0),xr(t))}},N1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},O1=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}};var $a=require("@vkontakte/videoplayer-shared/es2018");var Ur={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var zf=require("@vkontakte/videoplayer-shared/es2018");var Zb=(t,e)=>{_l(t,()=>e())},Xb=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Jb={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 Wf(t,e){U(e,!0),K(t,Jb);let i=v(e,"onClick",3,zf.noop),o=v(e,"closeContextMenu",3,zf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Xb();s.__click=n,s.__keydown=[Zb,n];var l=_(s,!0);h(s),B(()=>{var d;Ue(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(s,"data-testid",e.id),_e(l,e.label)}),$(t,s),z()}at(["click","keydown"]);var ba=(t,e)=>t.weight-e.weight;var bl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(bl||{});var e$=(t,e)=>{Su(t,e)},t$=t=>{t.preventDefault()},i$=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),o$={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 Kf(t,e){U(e,!0),K(t,o$);let[i,o]=He(),n=()=>C(Y,"$isLive$",i),s=()=>C(fe,"$isPiPEnabled$",i),l=()=>C(q,"$chromecastState$",i),d=()=>C(be,"$pictureInPictureApiIsActive$",i),a=()=>C(re,"$isLooped$",i),p=()=>C(j,"$positionExact$",i),f=()=>C(G,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),u=v(e,"position",19,()=>({top:0,left:0})),y=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),x=v(e,"menuElementRef",15,void 0),S=Z(0),T=Z(0),E=Te(),{pictureInPicture$:R}=mo(),I=kt(),M=E.ui.contextMenu.visible$,k=E.ui.debugPanelVisible,G=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,q=E.state.chromecastState$,Y=E.state.isLive$,j=E.state.positionExact$,ue=E.state.isInteractive,re=E.state.looped$,{isEnabled$:fe,isActive$:be}=R,me=g(()=>{var Re;return I.features.copyVideoLink&&((Re=E.callbacks)==null?void 0:Re.onCopyVideoLink)}),Pe=g(()=>r(me)&&!n()&&!ue),se=g(()=>{var Re;return!!((Re=E.callbacks)!=null&&Re.onCopyEmbedCodeClicked)}),Le=g(()=>s()&&l()!==B1.ChromecastState.CONNECTED&&!ue),ae=g(()=>!ue),N=g(()=>I.features.videoRotate&&!ue),Be=g(()=>I.showSupport&&!d()),ce=g(()=>I.features.saveTraceInfoToFile),he=()=>{var Re;M.set(!1),(Re=e.returnFocus)==null||Re.call(e)},oe=(Re,We)=>{if(!x()||!y()||!w())return;let Ne=x().getBoundingClientRect(),et=y().getBoundingClientRect();O(S,Re-et.left),O(T,We-et.top),r(S)+Ne.width>et.width&&O(S,et.width-Ne.width),r(T)+Ne.height>et.height&&O(T,et.height-Ne.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Qe(()=>{(async()=>{if(x()&&y()&&w()){await Co();let{top:We,left:Ne,bottom:et,right:zt}=u(),qt=Ne!=null?Ne:0,Et=We!=null?We:0,$i=x().getBoundingClientRect();(0,$a.isNullable)(Ne)&&!(0,$a.isNullable)(zt)&&(qt=zt-$i.width),(0,$a.isNullable)(We)&&!(0,$a.isNullable)(et)&&(Et=et-$i.height),qt=Math.max(qt,0),Et=Math.max(Et,0),oe(qt,Et)}})()});let ve=()=>{E.actions.internal.videoRotate()},De=()=>{(0,$a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},pe=()=>{let Re=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let We=new Blob([...Re],{type:"plain/text"}),Ne=window.URL.createObjectURL(We);fa(Ne,"vk_player_debug_info","txt")}else gl(E.actions.internal.getDebugTextData())},st=()=>{let Re=E.actions.internal.getTraceTextData(),We=new Blob([...Re],{type:"application/json"}),Ne=window.URL.createObjectURL(We);fa(Ne,"vk_player_trace_info","json")},X=()=>{k.set(!0)},Ae=async()=>{var Re;try{F()}finally{(Re=e.returnFocus)==null||Re.call(e)}},ke=()=>{E.actions.internal.setLooped(!a())},ze=()=>{var Re,We;if(r(se)){let Ne=(We=(Re=E.callbacks)==null?void 0:Re.onCopyEmbedCodeClicked)==null?void 0:We.call(Re);Ne&&gl(Ne)}},rt=(Re=!1)=>{var We,Ne;if((We=E.callbacks)!=null&&We.onCopyVideoLink){let et=(Ne=E.callbacks)==null?void 0:Ne.onCopyVideoLink(Re,p());et&&gl(et)}},bt=g(()=>I.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),lt=g(()=>r(me)?{id:"copy-link",weight:Ur["copy-link"],label:H("menu_copy_video_link"),onClick:()=>rt()}:void 0),wt=g(()=>r(Pe)?{id:"copy-link-timestamp",weight:Ur["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>rt(!0)}:void 0),Je=g(()=>r(se)?{id:"copy-embed-code",weight:Ur["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:ze}:void 0),Ut=g(()=>r(Le)?{id:"pip",weight:Ur.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>r(ae)?{id:"video-loop",weight:Ur["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Ht=g(()=>r(N)?{id:"rotate",weight:Ur.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ve}:void 0),jt=g(()=>r(Be)?{id:"report",weight:Ur.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:De}:void 0),Ee=g(()=>({id:"save-debug",weight:Ur["save-debug"],label:r(bt),onClick:pe})),Kt=g(()=>r(ce)?{id:"save-trace",weight:Ur["save-trace"],label:H("menu_save_debug"),onClick:st}:void 0),Se=g(()=>({id:"debug-info",weight:Ur["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:X})),te=g(()=>[r(lt),r(wt),r(Je),r(Ut),r(Xt),r(Ht),r(jt),r(Ee),r(Kt),r(Se),...f()].filter(Re=>!!Re).sort(ba));var ne=qe(),Ve=ge(ne);{var Fe=Re=>{var We=i$();We.__contextmenu=[t$],We.__keydown=[e$,he],Ti(We,21,()=>r(te),Ne=>Ne.id,(Ne,et)=>{Wf(Ne,{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:he})}),h(We),tt(We,Ne=>x(Ne),()=>x()),B(()=>{var Ne,et;return nt(We,`top: ${(Ne=r(T))!=null?Ne:""}px; left: ${(et=r(S))!=null?et:""}px;`)}),$(Re,We)};V(Ve,Re=>{m()&&Re(Fe)})}$(t,ne),z(),o()}at(["contextmenu","keydown"]);var Tu=class{constructor(e){this.value=e,this.next=null}};var $l=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Tu(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$=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),r$={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 Ad(t,e){U(e,!0),K(t,r$);let i=v(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),s=16,l=120,d=60,a=l/d;Rt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,x,S)}Qe(()=>{let u="";if(r(n)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);r(n).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let S=w*a,T=y>0?s*(i()[x]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=n$(),m=_(f);tt(m,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}var qf=require("@vkontakte/videoplayer-shared/es2018");var s$=(t,e)=>{t.stopPropagation(),qf.safeStorage.remove(hd),e.set(!1)},a$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),l$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),d$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),c$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),u$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),p$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),f$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),m$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),v$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),g$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),h$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),_$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),b$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),$$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),y$=A('<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 Md(t,e){U(e,!0),K(t,x$);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Te(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Z(ni(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=Z(0),m=Z(0),u=Z(0),y=new $l(60),w=new $l(60),x=new $l(60),S=Z(ni([])),T=Z(ni([])),E=Z(ni([])),R=W("aria_label_debug_panel");Rt(()=>{qf.safeStorage.set(hd,"true"),s.actions.internal.startLogging(),p&&(O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),te;return p&&(te=window.setInterval(()=>{if(p){O(m,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ne=p.getVideoPlaybackQuality().totalVideoFrames;O(u,ne-r(f)),O(f,ne,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),O(S,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),te&&clearInterval(te)}});var I=y$();let M;var k=_(I);k.__click=[s$,l];var G=P(k,2),H=_(G),F=P(_(H),2),q=_(F,!0);h(F),h(H);var Y=P(H,2);{var j=Se=>{var te=a$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).id)),$(Se,te)};V(Y,Se=>{r(a).id&&Se(j)})}var ue=P(Y,2);{var re=Se=>{var te=l$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).vsid)),$(Se,te)};V(ue,Se=>{r(a).vsid&&Se(re)})}var fe=P(ue,2);{var be=Se=>{var te=d$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).provider)),$(Se,te)};V(fe,Se=>{r(a).provider&&Se(be)})}var me=P(fe,2);{var Pe=Se=>{var te=c$(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(()=>{var Fe,Re;return _e(Ve,`Video: ${(Fe=r(a).videoCodec||"")!=null?Fe:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function wd(t,e){q(t,Rb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Vb();let l;var d=_(s);{var a=u=>{var y=Ab();$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var y=Mb(),w=_(y);xd(w,{isActive:!0}),h(y),$(u,y)},v=u=>{var y=Lb(),w=_(y,!0);h(y),B(()=>be(w,e.time)),$(u,y)};L(p,u=>{o()?u(f):u(v,!1)})}h(s),B(u=>l=ee(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var gl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Nb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Ob={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function Sd(t,e){U(e,!0),q(t,Ob);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=kt(),p=g(()=>yn(e.duration-e.position)),f=se(!1);var v=Nb();let u;var y=_(v);wd(y,{get time(){return r(p)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),gs(v,()=>gl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>u=ee(v,1,"thumb-timer svelte-c6gowj",null,u,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,v),z(),o()}var hl=t=>{if(!navigator.clipboard){b1(t);return}navigator.clipboard.writeText(t).catch(()=>b1(t))};function b1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var I1=require("@vkontakte/videoplayer-core/es2018");var Lf=require("@vkontakte/videoplayer-core/es2018");var Mf="focus-hidden";var br=t=>{t.stopPropagation(),t.preventDefault()},Vf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Mf)},Db=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Hb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Fb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ub=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},$1=t=>t.code==="Escape",zb=t=>t.code==="ArrowLeft",Cd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},y1=t=>{Fb(t)?(br(t),Hb(t.target)):Ub(t)&&(br(t),Db(t.target))},Bs=t=>!Lf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Lf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",_l=async(t,e,i)=>{await Io(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(await Io(),i.set(!1),t.focus())},x1=async(t,e,i)=>{await Io(),t&&!e&&xe(i)&&(i.set(!1),t.focus())},Td=async(t,e,i,o=!1)=>{if(await Io(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Mf,!i),s==null||s.focus()}},w1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},bu=(t,e)=>{y1(t),Vf(t.target),$1(t)&&(br(t),e())},$u=async(t,e)=>{Cd(t,["ArrowRight"])&&(br(t),e())},S1=async(t,e,i)=>{if(y1(t),zb(t)){br(t),e();return}$1(t)&&(br(t),i())},bl=(t,e)=>{Cd(t)&&(br(t),e())},C1=(t,e,i)=>{if(Cd(t))br(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),br(t);return}o==="ArrowRight"&&!e&&(i(!0),br(t))}},T1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},E1=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}};var $a=require("@vkontakte/videoplayer-shared/es2018");var Fr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Rf=require("@vkontakte/videoplayer-shared/es2018");var Kb=(t,e)=>{bl(t,()=>e())},qb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),Qb={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 Nf(t,e){U(e,!0),q(t,Qb);let i=m(e,"onClick",3,Rf.noop),o=m(e,"closeContextMenu",3,Rf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=qb();s.__click=n,s.__keydown=[Kb,n];var l=_(s,!0);h(s),B(()=>{var d;Fe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(s,"data-testid",e.id),be(l,e.label)}),$(t,s),z()}dt(["click","keydown"]);var ba=(t,e)=>t.weight-e.weight;var $l=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))($l||{});var Gb=(t,e)=>{bu(t,e)},jb=t=>{t.preventDefault()},Yb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),Zb={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 Of(t,e){U(e,!0),q(t,Zb);let[i,o]=He(),n=()=>C(J,"$isLive$",i),s=()=>C(ue,"$isPiPEnabled$",i),l=()=>C(W,"$chromecastState$",i),d=()=>C($e,"$pictureInPictureApiIsActive$",i),a=()=>C(ie,"$isLooped$",i),p=()=>C(G,"$positionExact$",i),f=()=>C(Y,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),x=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),E=Ee(),{pictureInPicture$:V}=ho(),k=kt(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Y=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,J=E.state.isLive$,G=E.state.positionExact$,ce=E.state.isInteractive,ie=E.state.looped$,{isEnabled$:ue,isActive$:$e}=V,fe=g(()=>{var Le;return k.features.copyVideoLink&&((Le=E.callbacks)==null?void 0:Le.onCopyVideoLink)}),ke=g(()=>r(fe)&&!n()&&!ce),ne=g(()=>{var Le;return!!((Le=E.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),Ve=g(()=>s()&&l()!==I1.ChromecastState.CONNECTED&&!ce),re=g(()=>!ce),N=g(()=>k.features.videoRotate&&!ce),Be=g(()=>k.showSupport&&!d()),le=g(()=>k.features.saveTraceInfoToFile),ve=()=>{var Le;I.set(!1),(Le=e.returnFocus)==null||Le.call(e)},te=(Le,Ye)=>{if(!x()||!y()||!w())return;let Oe=x().getBoundingClientRect(),et=y().getBoundingClientRect();O(S,Le-et.left),O(T,Ye-et.top),r(S)+Oe.width>et.width&&O(S,et.width-Oe.width),r(T)+Oe.height>et.height&&O(T,et.height-Oe.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};Ke(()=>{(async()=>{if(x()&&y()&&w()){await Io();let{top:Ye,left:Oe,bottom:et,right:Lt}=u(),Kt=Oe!=null?Oe:0,tt=Ye!=null?Ye:0,xi=x().getBoundingClientRect();(0,$a.isNullable)(Oe)&&!(0,$a.isNullable)(Lt)&&(Kt=Lt-xi.width),(0,$a.isNullable)(Ye)&&!(0,$a.isNullable)(et)&&(tt=et-xi.height),Kt=Math.max(Kt,0),tt=Math.max(tt,0),te(Kt,tt)}})()});let me=()=>{E.actions.internal.videoRotate()},De=()=>{(0,$a.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},pe=()=>{let Le=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ye=new Blob([...Le],{type:"plain/text"}),Oe=window.URL.createObjectURL(Ye);fa(Oe,"vk_player_debug_info","txt")}else hl(E.actions.internal.getDebugTextData())},at=()=>{let Le=E.actions.internal.getTraceTextData(),Ye=new Blob([...Le],{type:"application/json"}),Oe=window.URL.createObjectURL(Ye);fa(Oe,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Ae=async()=>{var Le;try{F()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ie=()=>{E.actions.internal.setLooped(!a())},ze=()=>{var Le,Ye;if(r(ne)){let Oe=(Ye=(Le=E.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:Ye.call(Le);Oe&&hl(Oe)}},lt=(Le=!1)=>{var Ye,Oe;if((Ye=E.callbacks)!=null&&Ye.onCopyVideoLink){let et=(Oe=E.callbacks)==null?void 0:Oe.onCopyVideoLink(Le,p());et&&hl(et)}},vt=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),gt=g(()=>r(fe)?{id:"copy-link",weight:Fr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>lt()}:void 0),Ct=g(()=>r(ke)?{id:"copy-link-timestamp",weight:Fr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>lt(!0)}:void 0),Ge=g(()=>r(ne)?{id:"copy-embed-code",weight:Fr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:ze}:void 0),Ht=g(()=>r(Ve)?{id:"pip",weight:Fr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Ae}:void 0),Xt=g(()=>r(re)?{id:"video-loop",weight:Fr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ie}:void 0),Gt=g(()=>r(N)?{id:"rotate",weight:Fr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:me}:void 0),Wt=g(()=>r(Be)?{id:"report",weight:Fr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:De}:void 0),oe=g(()=>({id:"save-debug",weight:Fr["save-debug"],label:r(vt),onClick:pe})),Ft=g(()=>r(le)?{id:"save-trace",weight:Fr["save-trace"],label:H("menu_save_debug"),onClick:at}:void 0),he=g(()=>({id:"debug-info",weight:Fr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Z})),we=g(()=>[r(gt),r(Ct),r(Ge),r(Ht),r(Xt),r(Gt),r(Wt),r(oe),r(Ft),r(he),...f()].filter(Le=>!!Le).sort(ba));var ae=We(),Re=ge(ae);{var qe=Le=>{var Ye=Yb();Ye.__contextmenu=[jb],Ye.__keydown=[Gb,ve],Ti(Ye,21,()=>r(we),Oe=>Oe.id,(Oe,et)=>{Nf(Oe,{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:ve})}),h(Ye),ot(Ye,Oe=>x(Oe),()=>x()),B(()=>{var Oe,et;return st(Ye,`top: ${(Oe=r(T))!=null?Oe:""}px; left: ${(et=r(S))!=null?et:""}px;`)}),$(Le,Ye)};L(Re,Le=>{v()&&Le(qe)})}$(t,ae),z(),o()}dt(["contextmenu","keydown"]);var yu=class{constructor(e){this.value=e,this.next=null}};var yl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new yu(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 Xb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Jb={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Ed(t,e){U(e,!0),q(t,Jb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),s=16,l=120,d=60,a=l/d;Mt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function p(u,y,w,x,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,x,S)}Ke(()=>{let u="";if(r(n)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);r(n).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let S=w*a,T=y>0?s*(i()[x]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=Xb(),v=_(f);ot(v,u=>O(o,u),()=>r(o)),h(f),$(t,f),z()}var Bf=require("@vkontakte/videoplayer-shared/es2018");var e$=(t,e)=>{t.stopPropagation(),Bf.safeStorage.remove(fd),e.set(!1)},t$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),i$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),o$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),n$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),r$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),s$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),a$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),l$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),d$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),c$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),u$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),p$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),f$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),m$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),v$=M('<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>'),g$={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 Id(t,e){U(e,!0),q(t,g$);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Ee(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(ni(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),y=new yl(60),w=new yl(60),x=new yl(60),S=j(ni([])),T=j(ni([])),E=j(ni([])),V=K("aria_label_debug_panel");Mt(()=>{Bf.safeStorage.set(fd,"true"),s.actions.internal.startLogging(),p&&(O(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let he=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),we;return p&&(we=window.setInterval(()=>{if(p){O(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let ae=p.getVideoPlaybackQuality().totalVideoFrames;O(u,ae-r(f)),O(f,ae,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&x.push(r(a).bitrate),O(S,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(he),we&&clearInterval(we)}});var k=v$();let I;var R=_(k);R.__click=[e$,l];var Y=P(R,2),H=_(Y),F=P(_(H),2),W=_(F,!0);h(F),h(H);var J=P(H,2);{var G=he=>{var we=t$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).id)),$(he,we)};L(J,he=>{r(a).id&&he(G)})}var ce=P(J,2);{var ie=he=>{var we=i$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).vsid)),$(he,we)};L(ce,he=>{r(a).vsid&&he(ie)})}var ue=P(ce,2);{var $e=he=>{var we=o$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).provider)),$(he,we)};L(ue,he=>{r(a).provider&&he($e)})}var fe=P(ue,2);{var ke=he=>{var we=n$(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(()=>{var qe,Le;return be(Re,`Video: ${(qe=r(a).videoCodec||"")!=null?qe:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Re=r(a).audioCodec||"")!=null?Re:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(Se,te)};V(me,Se=>{(r(a).videoCodec||r(a).audioCodec)&&Se(Pe)})}var se=P(me,2);{var Le=Se=>{var te=u$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).viewport)),$(Se,te)};V(se,Se=>{r(a).viewport&&Se(Le)})}var ae=P(se,2);{var N=Se=>{var te=p$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).videoSize)),$(Se,te)};V(ae,Se=>{r(a).videoSize&&Se(N)})}var Be=P(ae,2);{var ce=Se=>{var te=f$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(()=>_e(Ve,r(a).cdn)),$(Se,te)};V(Be,Se=>{r(a).cdn&&Se(ce)})}var he=P(Be,2);{var oe=Se=>{var te=m$(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(()=>{var Fe;return _e(Ve,`${(Fe=r(a).volume)!=null?Fe:""} %`)}),$(Se,te)};V(he,Se=>{r(a).volume&&Se(oe)})}var ve=P(he,2);{var De=Se=>{var te=v$(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).position.toFixed(2)]),$(Se,te)};V(ve,Se=>{r(a).position&&Se(De)})}var pe=P(ve,2);{var st=Se=>{var te=g$(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(Se,te)};V(pe,Se=>{r(a).buffer&&Se(st)})}var X=P(pe,2);{var Ae=Se=>{var te=h$(),ne=P(_(te),2),Ve=_(ne);h(ne),h(te),B(Fe=>_e(Ve,`${Fe!=null?Fe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(Se,te)};V(X,Se=>{r(a).liveLatency&&Se(Ae)})}var ke=P(X,2);{var ze=Se=>{var te=_$(),ne=P(_(te),2),Ve=_(ne,!0);h(ne),h(te),B(Fe=>_e(Ve,Fe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Fe})=>Fe).map(({value:Fe,title:Re})=>`${Re} ${((Fe!=null?Fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Se,te)};V(ke,Se=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Se(ze)})}var rt=P(ke,2),bt=P(_(rt),2),lt=_(bt);h(bt),h(rt);var wt=P(rt,2);{var Je=Se=>{var te=b$(),ne=P(_(te),2);Ad(ne,{get values(){return r(T)}});var Ve=P(ne,2),Fe=_(Ve);h(Ve),h(te),B(Re=>_e(Fe,`${Re!=null?Re:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(Se,te)};V(wt,Se=>{r(a).speed&&Se(Je)})}var Ut=P(wt,2);{var Xt=Se=>{var te=$$(),ne=P(_(te),2);Ad(ne,{get values(){return r(E)}});var Ve=P(ne,2),Fe=_(Ve);h(Ve),h(te),B(Re=>_e(Fe,`${Re!=null?Re:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(Se,te)};V(Ut,Se=>{r(a).bitrate&&Se(Xt)})}var Ht=P(Ut,2),jt=P(_(Ht),2);Ad(jt,{get values(){return r(S)}});var Ee=P(jt,2),Kt=_(Ee,!0);h(Ee),h(Ht),h(G),h(I),B(Se=>{var te,ne;M=ie(I,1,"container svelte-4deykz",null,M,Se),Ue(I,"aria-label",R),_e(q,r(a).version),_e(lt,`${(te=r(m))!=null?te:""} / ${(ne=r(f))!=null?ne:""} frames`),_e(Kt,r(u))},[()=>({"container-mobile":n()})]),$(t,I),z(),o()}at(["click"]);var D1=require("@vkontakte/videoplayer-shared/es2018"),w$=(t,e)=>{t.stopPropagation(),e()()},S$=A('<div class="close svelte-1ome55p"></div>'),C$={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 ya(t,e){U(e,!0),K(t,C$);let i=v(e,"onClick",3,D1.noop);var o=S$();o.__click=[w$,i],$(t,o),z()}at(["click"]);var H1=require("@vkontakte/videoplayer-shared/es2018"),T$=A('<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>'),E$={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 Ld(t,e){U(e,!0),K(t,E$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,H1.noop),n=5e3,s=Z(void 0),l,d,a=0,p;Qe(()=>{i()&&xt(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Rt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),on(()=>{f()});var u=T$(),y=_(u);tt(y,w=>O(s,w),()=>r(s)),xe(2),h(u),$(t,u),z()}var I$=(t,e,i)=>{e(!1),i()},k$=A('<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),P$={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 Qf(t,e){U(e,!0),K(t,P$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},x=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=R=>{var I=k$(),M=P(ge(I),2),k=_(M),G=_(k),H=_(G,!0);h(G);var F=P(G,2);ya(F,{onClick:x}),h(k);var q=P(k,2);q.__click=[I$,p,m];var Y=_(q),j=_(Y),ue=_(j);let re;var fe=P(ue,2);{var be=Le=>{let ae=g(()=>s()&&n());Ld(Le,{get isRunning(){return r(ae)},onTimerEnded:w})};V(fe,Le=>{n()&&Le(be)})}h(j),h(Y);var me=P(Y,2),Pe=_(me),se=_(Pe,!0);h(Pe),h(me),h(q),h(M),B((Le,ae)=>{_e(H,Le),nt(j,`background-image: url('${e.thumb}')`),re=ie(ue,1,"thumb-overlay svelte-jfbaax",null,re,ae),_e(se,e.title)},[()=>W("end_screen_next_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}at(["click"]);var Fs=require("@vkontakte/videoplayer-core/es2018"),F1=require("@vkontakte/videoplayer-shared/es2018"),yn=require("@vkontakte/videoplayer-statistics/es2018");var Gf=(t,e)=>Math.min(+(t+e).toFixed(2),1),jf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Eu=(t,e,i)=>{let o=Gf(e,i);e<1?t.actions.internal.setVolume(o):ye(t.state.muted$)&&t.actions.internal.setMuted(!1)},Iu=(t,e,i)=>{let o=jf(e,i);e>0&&t.actions.internal.setVolume(o)};var Hs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var M$=(t,e)=>{e(t)},L$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),V$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Yf(t,e){var Kt,Se;U(e,!0),K(t,V$);let[i,o]=He(),n=()=>C(re,"$disabledControls$",i),s=()=>C(N,"$doubleForwardOn$",i),l=()=>C(st,"$isInteractiveTime$",i),d=()=>C(X,"$showInteractiveTimeIndicatorTooltip$",i),a=()=>C(F,"$playbackState$",i),p=()=>C(ce,"$isEnded$",i),f=()=>C(q,"$adPlaybackState",i),m=()=>C(Y,"$positionExact$",i),u=()=>C(j,"$duration$",i),y=()=>C(De,"$isAudioAvailable$",i),w=()=>C(ue,"$volume$",i),x=()=>C(Pe,"$availablePlaybackRates$",i),S=()=>C(me,"$currentPlaybackRate$",i),T=()=>C(fe,"$muted$",i),E=()=>C(be,"$currentSubtitle$",i),R=()=>C(he,"$overlayContainer$",i),I=v(e,"nextButtonActive",3,!1),M=v(e,"prevButtonActive",3,!1),k=Te(),G=kt(),H=k.getLogger().createComponentLog("KeyboardControls component"),F=k.state.playbackState$,q=k.ads.playbackState,Y=k.state.positionExact$,j=k.state.duration$,ue=k.state.volume$,re=k.ui.controls.disabledControls$,fe=k.state.muted$,be=k.state.currentSubtitle$,me=k.state.currentPlaybackRate$,Pe=k.state.availablePlaybackRates$,se=k.ui.contextMenu.openedByHotKey$,Le=k.ui.contextMenu.lastActiveElem$,ae=k.ui.contextMenu.visible$,N=k.ui.doubleForwardOn$,Be=k.ui.contextMenu.position$,ce=k.state.isEnded$,he=k.ui.overlayContainer$,oe=(Kt=k.callbacks)==null?void 0:Kt.onAudioDoesNotExistHint,ve=(Se=k.callbacks)==null?void 0:Se.onAudioDisabledHint,De=k.state.isAudioAvailable$,pe=k.state.isAudioDisabled,st=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:X}=mo(),Ae=0,ke=!0,ze=Z(void 0),rt=te=>(te!==ke&&(ke=te,Ae=0),Ae+=1,(G.controls.seekStepKeyboard+G.controls.seekStepKeyboard*Ae)/1e3),bt=(te,ne)=>{let Ve=()=>{if(!n().has("PLAY_BUTTON")&&!s())if(l()&&d()&&X.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Fe="PLAY";a()===Fs.PlaybackState.PAUSED?Fe="PAUSE":p()&&(Fe="REPLAY"),e.showHotKeyHelpers({type:Fe})}};if(!G.features.doubleForwardAvailable){Ve();return}te==="down"?!ne&&e.startDoubleForwardActivationTimer():(e.stopDoubleForward(),Ve())},lt=(te,ne=!1)=>{var Vi,Yt;let Ve=te.target,Fe=(Vi=Ve==null?void 0:Ve.getAttribute("role"))==null?void 0:Vi.includes("menuitem"),Re=Ve.classList.contains("btn"),We=te.code;if(Re&&We==="Space")return!1;let Ne=zh.has(We);if(Fe&&Ne)return!1;let et=!Uh.has(We);if(te.ctrlKey&&et||te.altKey&&et||te.metaKey)return!1;let zt=Fe&&We==="Escape";Wh.has(We)||zt||e.hideContextMenu();let qt=a()===Fs.PlaybackState.PLAYING||a()===Fs.PlaybackState.PAUSED,Et=e.isAds&&(f()==="paused"||f()==="playing"),$i=!Et&&!n().has("TIMELINE");if(!(qt||Et))return!1;H({message:`key down, code: ${We}, isExternal = ${ne}`});let _i=!1,ct=()=>{_i=!0,ne||te.preventDefault()};switch(We){case"KeyJ":case"ArrowLeft":{if(!$i)break;if(te.ctrlKey||te.altKey){let dt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:dt.text}),ct()}else{let dt=te.shiftKey?rt(!1):G.controls.seekStepKeyboard/1e3,si=Math.max(m()-dt,0);m()>0&&(k.actions.internal.seekTime(si,yn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:dt.toString()}),ct())}break}case"KeyL":case"ArrowRight":{if(!$i)break;if(te.ctrlKey||te.altKey){let dt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:dt.text}),ct()}else{let dt=te.shiftKey?rt(!0):G.controls.seekStepKeyboard/1e3,si=Math.min(m()+dt,u());Math.round(m())<Math.round(u())&&(k.actions.internal.seekTime(si,yn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:dt.toString()}),ct())}break}case"ArrowUp":{if(Hs({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})){let dt=w(),si=G.controls.volumeStepKeyboard,Ri=dt<=1;if(Eu(k,dt,si),Ri){let Mt=Math.round(Gf(dt,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mt}})}}ct();break}case"ArrowDown":{if(Hs({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})){let dt=w(),si=G.controls.volumeStepKeyboard,Ri=dt>=0;if(Iu(k,dt,si),Ri){let Mt=Math.round(jf(dt,si)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mt}})}}ct();break}case"Comma":{if(te.shiftKey){k.actions.internal.decrementPlaybackRate();let dt=x().find(si=>si.value===S());e.showHotKeyHelpers({type:"RATE_DOWN",text:dt==null?void 0:dt.displayValue}),ct()}else{if(Et||a()!==Fs.PlaybackState.PAUSED)break;let dt=Math.max(m()-G.controls.seekStepFrame/1e3,0);m()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(dt,yn.SeekAction.DOUBLE_TAP),ct())}break}case"Period":{if(te.shiftKey){k.actions.internal.incrementPlaybackRate();let dt=x().find(si=>si.value===S());e.showHotKeyHelpers({type:"RATE_UP",text:dt==null?void 0:dt.displayValue}),ct()}else{if(Et||a()!==Fs.PlaybackState.PAUSED)break;let dt=Math.min(m()+G.controls.seekStepFrame/1e3,u());m()<u()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(dt,yn.SeekAction.DOUBLE_TAP),ct())}break}case"KeyK":case"Space":bt("down",te.repeat),ct();break;case"KeyM":{Hs({isAudioDisabled:pe,audioDisabledHintCallback:ve,isAudioAvailable:y(),audioIsNotExistHintCallback:oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),ct();break}case"KeyF":e.toggleFullscreen(),ct();break;case"KeyC":k.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Yt=E())==null?void 0:Yt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ct();break;case"KeyI":k.actions.internal.togglePictureInPicture(),ct();break;case"Digit1":case"Numpad1":if(te.shiftKey){let dt=O1(R());Be.set(dt),Le.set(Ve),se.set(!0),ae.set(!0),ct();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,yn.SeekAction.DOUBLE_TAP),ct();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,yn.SeekAction.DOUBLE_TAP),ct();break;case"Slash":{te.shiftKey&&G.features.hotKeyMapModal&&(e.showKeyMap(),ct());break}case"KeyN":te.shiftKey&&I()&&(k.actions.internal.nextVideoClick(),ct());break;case"KeyP":te.shiftKey&&M()&&(k.actions.internal.prevVideoClick(),ct());break;case"ShiftLeft":case"ShiftRight":ct();break;case"Tab":case"Escape":case"Enter":break;default:(0,F1.checkNever)(We);break}return _i},wt=te=>{let ne=te.code;if(te.ctrlKey||te.altKey||te.metaKey)return;let Ve=a()===Fs.PlaybackState.PLAYING||a()===Fs.PlaybackState.PAUSED,Fe=e.isAds&&(f()==="paused"||f()==="playing");if(Ve||Fe)switch(ne){case"ShiftLeft":case"ShiftRight":Ae=0;break;case"Space":bt("up");break}},Je=W("aria_label_video_player"),Ut=()=>{var te;return(te=r(ze))==null?void 0:te.focus()},Xt=te=>te.type==="keydown"?lt(te,!0):(te.type==="keyup"&&wt(te),!1);var Ht=L$();Ht.__keyup=wt,Ht.__keydown=[M$,lt];var jt=_(Ht);$e(jt,()=>{var te;return(te=e.children)!=null?te:de}),h(Ht),tt(Ht,te=>O(ze,te),()=>r(ze)),B(()=>Ue(Ht,"aria-label",Je)),$(t,Ht);var Ee=z({focus:Ut,handleExternalKeyboardEvent:Xt});return o(),Ee}at(["keyup","keydown"]);var R$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),N$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Le=r(a).audioCodec||"")!=null?Le:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(he,we)};L(fe,he=>{(r(a).videoCodec||r(a).audioCodec)&&he(ke)})}var ne=P(fe,2);{var Ve=he=>{var we=r$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).viewport)),$(he,we)};L(ne,he=>{r(a).viewport&&he(Ve)})}var re=P(ne,2);{var N=he=>{var we=s$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).videoSize)),$(he,we)};L(re,he=>{r(a).videoSize&&he(N)})}var Be=P(re,2);{var le=he=>{var we=a$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(()=>be(Re,r(a).cdn)),$(he,we)};L(Be,he=>{r(a).cdn&&he(le)})}var ve=P(Be,2);{var te=he=>{var we=l$(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(()=>{var qe;return be(Re,`${(qe=r(a).volume)!=null?qe:""} %`)}),$(he,we)};L(ve,he=>{r(a).volume&&he(te)})}var me=P(ve,2);{var De=he=>{var we=d$(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).position.toFixed(2)]),$(he,we)};L(me,he=>{r(a).position&&he(De)})}var pe=P(me,2);{var at=he=>{var we=c$(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(he,we)};L(pe,he=>{r(a).buffer&&he(at)})}var Z=P(pe,2);{var Ae=he=>{var we=u$(),ae=P(_(we),2),Re=_(ae);h(ae),h(we),B(qe=>be(Re,`${qe!=null?qe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(he,we)};L(Z,he=>{r(a).liveLatency&&he(Ae)})}var Ie=P(Z,2);{var ze=he=>{var we=p$(),ae=P(_(we),2),Re=_(ae,!0);h(ae),h(we),B(qe=>be(Re,qe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:qe})=>qe).map(({value:qe,title:Le})=>`${Le} ${((qe!=null?qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(he,we)};L(Ie,he=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&he(ze)})}var lt=P(Ie,2),vt=P(_(lt),2),gt=_(vt);h(vt),h(lt);var Ct=P(lt,2);{var Ge=he=>{var we=f$(),ae=P(_(we),2);Ed(ae,{get values(){return r(T)}});var Re=P(ae,2),qe=_(Re);h(Re),h(we),B(Le=>be(qe,`${Le!=null?Le:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(he,we)};L(Ct,he=>{r(a).speed&&he(Ge)})}var Ht=P(Ct,2);{var Xt=he=>{var we=m$(),ae=P(_(we),2);Ed(ae,{get values(){return r(E)}});var Re=P(ae,2),qe=_(Re);h(Re),h(we),B(Le=>be(qe,`${Le!=null?Le:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(he,we)};L(Ht,he=>{r(a).bitrate&&he(Xt)})}var Gt=P(Ht,2),Wt=P(_(Gt),2);Ed(Wt,{get values(){return r(S)}});var oe=P(Wt,2),Ft=_(oe,!0);h(oe),h(Gt),h(Y),h(k),B(he=>{var we,ae;I=ee(k,1,"container svelte-4deykz",null,I,he),Fe(k,"aria-label",V),be(W,r(a).version),be(gt,`${(we=r(v))!=null?we:""} / ${(ae=r(f))!=null?ae:""} frames`),be(Ft,r(u))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}dt(["click"]);var k1=require("@vkontakte/videoplayer-shared/es2018"),h$=(t,e)=>{t.stopPropagation(),e()()},_$=M('<div class="close svelte-1ome55p"></div>'),b$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function ya(t,e){U(e,!0),q(t,b$);let i=m(e,"onClick",3,k1.noop);var o=_$();o.__click=[h$,i],$(t,o),z()}dt(["click"]);var P1=require("@vkontakte/videoplayer-shared/es2018"),$$=M('<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>'),y$={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 kd(t,e){U(e,!0),q(t,y$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,P1.noop),n=5e3,s=j(void 0),l,d,a=0,p;Ke(()=>{i()&&wt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Mt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),nn(()=>{f()});var u=$$(),y=_(u);ot(y,w=>O(s,w),()=>r(s)),Ce(2),h(u),$(t,u),z()}var x$=(t,e,i)=>{e(!1),i()},w$=M('<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),S$={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 Df(t,e){U(e,!0),q(t,S$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},x=()=>{e.clickCloseIcon(),y()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=We(),T=ge(S);{var E=V=>{var k=w$(),I=P(ge(k),2),R=_(I),Y=_(R),H=_(Y,!0);h(Y);var F=P(Y,2);ya(F,{onClick:x}),h(R);var W=P(R,2);W.__click=[x$,p,v];var J=_(W),G=_(J),ce=_(G);let ie;var ue=P(ce,2);{var $e=Ve=>{let re=g(()=>s()&&n());kd(Ve,{get isRunning(){return r(re)},onTimerEnded:w})};L(ue,Ve=>{n()&&Ve($e)})}h(G),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(W),h(I),B((Ve,re)=>{be(H,Ve),st(G,`background-image: url('${e.thumb}')`),ie=ee(ce,1,"thumb-overlay svelte-jfbaax",null,ie,re),be(ne,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}dt(["click"]);var Hs=require("@vkontakte/videoplayer-core/es2018"),A1=require("@vkontakte/videoplayer-shared/es2018"),xn=require("@vkontakte/videoplayer-statistics/es2018");var Hf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Ff=(t,e)=>Math.max(+(t-e).toFixed(2),0),xu=(t,e,i)=>{let o=Hf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},wu=(t,e,i)=>{let o=Ff(e,i);e>0&&t.actions.internal.setVolume(o)};var Ds=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var T$=(t,e)=>{e(t)},E$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),I$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Uf(t,e){var Gt,Wt;U(e,!0),q(t,I$);let[i,o]=He(),n=()=>C(H,"$playbackState$",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(W,"$positionExact$",i),a=()=>C(J,"$duration$",i),p=()=>C(te,"$isAudioAvailable$",i),f=()=>C(G,"$volume$",i),v=()=>C(fe,"$availablePlaybackRates$",i),u=()=>C($e,"$currentPlaybackRate$",i),y=()=>C(De,"$isInteractiveTime$",i),w=()=>C(pe,"$showInteractiveTimeIndicatorTooltip$",i),x=()=>C(N,"$isEnded$",i),S=()=>C(ie,"$muted$",i),T=()=>C(ue,"$currentSubtitle$",i),E=()=>C(Be,"$overlayContainer$",i),V=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=Ee(),R=kt(),Y=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,W=I.state.positionExact$,J=I.state.duration$,G=I.state.volume$,ce=I.ui.controls.disabledControls$,ie=I.state.muted$,ue=I.state.currentSubtitle$,$e=I.state.currentPlaybackRate$,fe=I.state.availablePlaybackRates$,ke=I.ui.contextMenu.openedByHotKey$,ne=I.ui.contextMenu.lastActiveElem$,Ve=I.ui.contextMenu.visible$,re=I.ui.contextMenu.position$,N=I.state.isEnded$,Be=I.ui.overlayContainer$,le=(Gt=I.callbacks)==null?void 0:Gt.onAudioDoesNotExistHint,ve=(Wt=I.callbacks)==null?void 0:Wt.onAudioDisabledHint,te=I.state.isAudioAvailable$,me=I.state.isAudioDisabled,De=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:pe}=ho(),at=0,Z=!0,Ae=j(void 0),Ie=oe=>(oe!==Z&&(Z=oe,at=0),at+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*at)/1e3),ze=(oe,Ft=!1)=>{var xi,hi;let he=oe.target,we=(xi=he==null?void 0:he.getAttribute("role"))==null?void 0:xi.includes("menuitem"),ae=he.classList.contains("btn"),Re=oe.code;if(ae&&Re==="Space")return!1;let qe=Lh.has(Re);if(we&&qe)return!1;let Le=!Mh.has(Re);if(oe.ctrlKey&&Le||oe.altKey&&Le||oe.metaKey)return!1;let Ye=we&&Re==="Escape";Vh.has(Re)||Ye||e.hideContextMenu();let Oe=n()===Hs.PlaybackState.PLAYING||n()===Hs.PlaybackState.PAUSED,et=e.isAds&&(s()==="paused"||s()==="playing"),Lt=!et&&!l().has("TIMELINE");if(!(Oe||et))return!1;Y({message:`key down, code: ${Re}, isExternal = ${Ft}`});let Kt=!1,tt=()=>{Kt=!0,Ft||oe.preventDefault()};switch(Re){case"KeyJ":case"ArrowLeft":{if(!Lt)break;if(oe.ctrlKey||oe.altKey){let it=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),tt()}else{let it=oe.shiftKey?Ie(!1):R.controls.seekStepKeyboard/1e3,ii=Math.max(d()-it,0);d()>0&&(I.actions.internal.seekTime(ii,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),tt())}break}case"KeyL":case"ArrowRight":{if(!Lt)break;if(oe.ctrlKey||oe.altKey){let it=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),tt()}else{let it=oe.shiftKey?Ie(!0):R.controls.seekStepKeyboard/1e3,ii=Math.min(d()+it,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ii,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),tt())}break}case"ArrowUp":{if(Ds({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let it=f(),ii=R.controls.volumeStepKeyboard,jt=it<=1;if(xu(I,it,ii),jt){let _i=Math.round(Hf(it,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_i}})}}tt();break}case"ArrowDown":{if(Ds({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})){let it=f(),ii=R.controls.volumeStepKeyboard,jt=it>=0;if(wu(I,it,ii),jt){let _i=Math.round(Ff(it,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_i}})}}tt();break}case"Comma":{if(oe.shiftKey){I.actions.internal.decrementPlaybackRate();let it=v().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),tt()}else{if(et||n()!==Hs.PlaybackState.PAUSED)break;let it=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(it,xn.SeekAction.DOUBLE_TAP),tt())}break}case"Period":{if(oe.shiftKey){I.actions.internal.incrementPlaybackRate();let it=v().find(ii=>ii.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),tt()}else{if(et||n()!==Hs.PlaybackState.PAUSED)break;let it=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(it,xn.SeekAction.DOUBLE_TAP),tt())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&pe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let it="PLAY";n()===Hs.PlaybackState.PAUSED?it="PAUSE":x()&&(it="REPLAY"),e.showHotKeyHelpers({type:it})}tt();break;case"KeyM":{Ds({isAudioDisabled:me,audioDisabledHintCallback:ve,isAudioAvailable:p(),audioIsNotExistHintCallback:le,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),tt();break}case"KeyF":e.toggleFullscreen(),tt();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(hi=T())==null?void 0:hi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),tt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),tt();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let it=E1(E());re.set(it),ne.set(he),ke.set(!0),Ve.set(!0),tt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,xn.SeekAction.DOUBLE_TAP),tt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,xn.SeekAction.DOUBLE_TAP),tt();break;case"Slash":{oe.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),tt());break}case"KeyN":oe.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),tt());break;case"KeyP":oe.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),tt());break;case"ShiftLeft":case"ShiftRight":tt();break;case"Tab":case"Escape":case"Enter":break;default:(0,A1.checkNever)(Re);break}return Kt},lt=oe=>{let Ft=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let he=n()===Hs.PlaybackState.PLAYING||n()===Hs.PlaybackState.PAUSED,we=e.isAds&&(s()==="paused"||s()==="playing");if(he||we)switch(Ft){case"ShiftLeft":case"ShiftRight":at=0;break}},vt=K("aria_label_video_player"),gt=()=>{var oe;return(oe=r(Ae))==null?void 0:oe.focus()},Ct=oe=>oe.type==="keydown"?ze(oe,!0):(oe.type==="keyup"&&lt(oe),!1);var Ge=E$();Ge.__keyup=lt,Ge.__keydown=[T$,ze];var Ht=_(Ge);ye(Ht,()=>{var oe;return(oe=e.children)!=null?oe:de}),h(Ge),ot(Ge,oe=>O(Ae,oe),()=>r(Ae)),B(()=>Fe(Ge,"aria-label",vt)),$(t,Ge);var Xt=z({focus:gt,handleExternalKeyboardEvent:Ct});return o(),Xt}dt(["keyup","keydown"]);var k$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),P$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,29 +150,29 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function xa(t,e){K(t,N$);let i=v(e,"style",3,"");var o=R$();B(()=>nt(o,i())),$(t,o)}var O$=we('<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 Zf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var wa=require("@vkontakte/videoplayer-shared/es2018"),B$=t=>{t.stopPropagation()},D$=A("<button><!></button>"),H$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function xa(t,e){q(t,P$);let i=m(e,"style",3,"");var o=k$();B(()=>st(o,i())),$(t,o)}var A$=Te('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function zf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=A$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var wa=require("@vkontakte/videoplayer-shared/es2018"),M$=t=>{t.stopPropagation()},L$=M("<button><!></button>"),V$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-ut3f27 {width:100%;}.btn--live.svelte-ut3f27 {padding:10px 4px;}.btn-jc-l.svelte-ut3f27 {justify-content:left;}
156
156
 
157
157
  /* mobile */
158
158
  /* container mobile */.btn-m.svelte-ut3f27 {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-ut3f27 {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-ut3f27 svg {transform:scale(2);}.btn-m--prev.svelte-ut3f27,
159
159
  .btn-m--next.svelte-ut3f27 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-ut3f27 {right:calc(100% + 35px);}.btn-m--next.svelte-ut3f27 {left:calc(100% + 35px);}.btn.svelte-ut3f27:disabled {cursor:default;
160
- /* \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-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Dt(t,e){U(e,!0),K(t,H$);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),s=v(e,"testId",3,void 0),l=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),a=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),m=v(e,"tabIndex",3,0),u=v(e,"click",3,wa.noop),y=v(e,"focus",3,wa.noop),w=v(e,"blur",3,wa.noop),x=g(()=>u()===wa.noop?null:I=>{I.stopPropagation(),u()(I)}),S=g(()=>y()===wa.noop?null:I=>{I.preventDefault(),y()()}),T=g(()=>w()===wa.noop?null:I=>{I.preventDefault(),w()()});var E=D$();E.__pointerdown=[B$],E.__click=function(...I){var M;(M=r(x))==null||M.apply(this,I)};var R=_(E);$e(R,()=>{var I;return(I=e.children)!=null?I:de}),h(E),tt(E,I=>a(I),()=>a()),B(()=>{var I,M,k,G,H,F,q,Y;ie(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-ut3f27"),nt(E,o()||null),E.disabled=(M=n())!=null?M:null,Ue(E,"aria-hidden",(k=l())!=null?k:null),Ue(E,"aria-label",(G=d())!=null?G:null),Ue(E,"aria-keyshortcuts",(H=p())!=null?H:null),Ue(E,"aria-expanded",(F=f())!=null?F:null),Ue(E,"data-testid",(q=s())!=null?q:null),Ue(E,"tabindex",m()),Ue(E,"role",e.role),Ue(E,"aria-checked",(Y=e.areaChecked)!=null?Y:null)}),Ct("focus",E,function(...I){var M;(M=r(S))==null||M.apply(this,I)}),Ct("blur",E,function(...I){var M;(M=r(T))==null||M.apply(this,I)}),$(t,E),z()}at(["pointerdown","click"]);var F$=A('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),U$=A('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),z$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Xf(t,e){U(e,!0),K(t,z$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=W("hotkey_map_modal_close_btn_text");var s=U$(),l=_(s),d=_(l);{var a=u=>{var y=F$(),w=_(y),x=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(R,I)=>{Zf(R,{})},$$slots:{default:!0}})};V(S,E=>{o()&&E(T)})}h(y),B(()=>_e(x,e.title)),$(u,y)};V(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),m=_(f);$e(m,()=>{var u;return(u=e.children)!=null?u:de}),h(f),h(p),h(l),h(s),$(t,s),z()}var W$=new Set(["BR"]),U1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;W$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var K$=A('<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>'),q$=A('<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>'),Q$=A('<div class="hot-key-map svelte-quklnq"></div>'),G$={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,
160
+ /* \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-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Ot(t,e){U(e,!0),q(t,V$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,wa.noop),y=m(e,"focus",3,wa.noop),w=m(e,"blur",3,wa.noop),x=g(()=>u()===wa.noop?null:k=>{k.stopPropagation(),u()(k)}),S=g(()=>y()===wa.noop?null:k=>{k.preventDefault(),y()()}),T=g(()=>w()===wa.noop?null:k=>{k.preventDefault(),w()()});var E=L$();E.__pointerdown=[M$],E.__click=function(...k){var I;(I=r(x))==null||I.apply(this,k)};var V=_(E);ye(V,()=>{var k;return(k=e.children)!=null?k:de}),h(E),ot(E,k=>a(k),()=>a()),B(()=>{var k,I,R,Y,H,F,W,J;ee(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),st(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(R=l())!=null?R:null),Fe(E,"aria-label",(Y=d())!=null?Y:null),Fe(E,"aria-keyshortcuts",(H=p())!=null?H:null),Fe(E,"aria-expanded",(F=f())!=null?F:null),Fe(E,"data-testid",(W=s())!=null?W:null),Fe(E,"tabindex",v()),Fe(E,"role",e.role),Fe(E,"aria-checked",(J=e.areaChecked)!=null?J:null)}),St("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),St("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),z()}dt(["pointerdown","click"]);var R$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),N$=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),O$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Wf(t,e){U(e,!0),q(t,O$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=N$(),l=_(s),d=_(l);{var a=u=>{var y=R$(),w=_(y),x=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Ot(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,k)=>{zf(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(y),B(()=>be(x,e.title)),$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);ye(v,()=>{var u;return(u=e.children)!=null?u:de}),h(f),h(p),h(l),h(s),$(t,s),z()}var B$=new Set(["BR"]),M1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;B$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var D$=M('<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>'),H$=M('<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>'),F$=M('<div class="hot-key-map svelte-quklnq"></div>'),U$={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,
161
161
  .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,
162
- .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 Jf(t,e){U(e,!1),K(t,G$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Te(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Hr(),Xf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var m=Q$();Ti(m,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var S=q$(),T=_(S),E=_(T,!0);h(T);var R=P(T,2);Ti(R,5,x,({description:I,value:M})=>M,(I,M)=>{let k=()=>r(M).description,G=()=>r(M).value;var H=K$(),F=_(H),q=_(F);pd(q,()=>U1(k())),h(F);var Y=P(F,2),j=_(Y,!0);h(Y),h(H),B(()=>_e(j,G())),$(I,H)}),h(R),h(S),B(()=>_e(E,w())),$(u,S)}),h(m),$(p,m)},$$slots:{default:!0}}),z(),o()}var Gm=require("@vkontakte/videoplayer-shared/es2018");var Pa=require("@vkontakte/videoplayer-core/es2018");var eR=require("@vkontakte/videoplayer-shared/es2018");var j$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),Y$={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 em(t,e){K(t,Y$);var i=j$(),o=_(i);$e(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}var yl=require("@vkontakte/videoplayer-shared/es2018");var Z$=we('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var X$=we('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var J$=we('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function om(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var e2=we('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Vd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var t2=we('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Rd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var ku=t=>{switch(t){case yl.VideoQuality.Q_720P:return om;case yl.VideoQuality.Q_1080P:return Vd;case yl.VideoQuality.Q_1440P:return Rd;case yl.VideoQuality.Q_2160P:return tm;case yl.VideoQuality.Q_4320P:return im}};var i2=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var o2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function rm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var n2=A('<div aria-hidden="true"><!> <!></div>'),r2={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 Nd(t,e){U(e,!0),K(t,r2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>ku(o())),s=g(()=>!!r(n)&&[Vd,Rd].includes(r(n)));var l=qe(),d=ge(l);{var a=f=>{nm(f,{})},p=f=>{var m=n2();let u;var y=_(m);{var w=T=>{em(T,{children:(E,R)=>{var I=qe(),M=ge(I);Ei(M,()=>r(n),(k,G)=>{G(k,{})}),$(E,I)},$$slots:{default:!0}})};V(y,T=>{r(n)&&T(w)})}var x=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");rm(x,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(m),B(T=>u=ie(m,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,m)};V(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var s2=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),a2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function xl(t,e){U(e,!0),K(t,a2);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Te(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=Z(void 0);Qe(()=>{r(w)&&xt(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function S(E){let R=Ds(E);n()?m():f(R,Co)}let T=g(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,R)=>{var I=s2(),M=_(I);Nd(M,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),z(),o()}var l2=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function sm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var d2=we('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Od(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function am(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyC},role:"button",children:(l,d)=>{var a=qe(),p=ge(a);{var f=u=>{sm(u,{})},m=u=>{Od(u,{})};V(p,u=>{i()?u(f):u(m,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var c2=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),u2=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),p2={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 Bd(t,e){U(e,!0),K(t,p2);let i=v(e,"isMobile",3,!1),o=v(e,"isHidden",3,!1),n=v(e,"showDuration",3,!0),s=v(e,"ref",15),l=kt(),d=le(!1),a=g(()=>$n(e.duration)),p=g(()=>$n(e.position));var f=u2();let m;var u=_(f),y=_(u,!0);h(u);var w=P(u,2);{var x=S=>{var T=c2(),E=_(T,!0);h(T),B(()=>_e(E,r(a))),$(S,T)};V(w,S=>{n()&&S(x)})}h(f),gs(f,()=>vl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),tt(f,S=>s(S),()=>s()),B(S=>{m=ie(f,1,"time svelte-sz9er7",null,m,S),_e(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}var Hd=require("@vkontakte/videoplayer-shared/es2018");var f2=we('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),m2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
162
+ .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 Kf(t,e){U(e,!1),q(t,U$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Ee(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Dr(),Wf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=F$();Ti(v,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,x=()=>r(y).items;var S=H$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);Ti(V,5,x,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,Y=()=>r(I).value;var H=D$(),F=_(H),W=_(F);ld(W,()=>M1(R())),h(F);var J=P(F,2),G=_(J,!0);h(J),h(H),B(()=>be(G,Y())),$(k,H)}),h(V),h(S),B(()=>be(E,w())),$(u,S)}),h(v),$(p,v)},$$slots:{default:!0}}),z(),o()}var Hm=require("@vkontakte/videoplayer-shared/es2018");var Pa=require("@vkontakte/videoplayer-core/es2018");var KV=require("@vkontakte/videoplayer-shared/es2018");var z$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),W$={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 qf(t,e){q(t,W$);var i=z$(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),$(t,i)}var xl=require("@vkontakte/videoplayer-shared/es2018");var K$=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Qf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=K$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var q$=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Gf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var Q$=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function jf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Q$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var G$=Te('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Pd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=G$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var j$=Te('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Ad(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=j$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var Su=t=>{switch(t){case xl.VideoQuality.Q_720P:return jf;case xl.VideoQuality.Q_1080P:return Pd;case xl.VideoQuality.Q_1440P:return Ad;case xl.VideoQuality.Q_2160P:return Qf;case xl.VideoQuality.Q_4320P:return Gf}};var Y$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function Yf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var Z$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Zf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var X$=M('<div aria-hidden="true"><!> <!></div>'),J$={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 Md(t,e){U(e,!0),q(t,J$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>Su(o())),s=g(()=>!!r(n)&&[Pd,Ad].includes(r(n)));var l=We(),d=ge(l);{var a=f=>{Yf(f,{})},p=f=>{var v=X$();let u;var y=_(v);{var w=T=>{qf(T,{children:(E,V)=>{var k=We(),I=ge(k);Ei(I,()=>r(n),(R,Y)=>{Y(R,{})}),$(E,k)},$$slots:{default:!0}})};L(y,T=>{r(n)&&T(w)})}var x=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");Zf(x,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(v),B(T=>u=ee(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}$(t,l),z()}var e2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),t2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function wl(t,e){U(e,!0),q(t,t2);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=j(void 0);Ke(()=>{r(w)&&wt(()=>{e.ref$.set(r(w))})});let x=y("aria_label_settings");async function S(E){let V=Bs(E);n()?v():f(V,Io)}let T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return x},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{var k=e2(),I=_(k);Md(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var i2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Xf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var o2=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Ld(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Jf(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ot(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyC},role:"button",children:(l,d)=>{var a=We(),p=ge(a);{var f=u=>{Xf(u,{})},v=u=>{Ld(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var n2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),r2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),s2={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 Vd(t,e){U(e,!0),q(t,s2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),s=m(e,"ref",15),l=kt(),d=se(!1),a=g(()=>yn(e.duration)),p=g(()=>yn(e.position));var f=r2();let v;var u=_(f),y=_(u,!0);h(u);var w=P(u,2);{var x=S=>{var T=n2(),E=_(T,!0);h(T),B(()=>be(E,r(a))),$(S,T)};L(w,S=>{n()&&S(x)})}h(f),gs(f,()=>gl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(f,S=>s(S),()=>s()),B(S=>{v=ee(f,1,"time svelte-sz9er7",null,v,S),be(y,r(p))},[()=>({mobile:i()})]),$(t,f),z()}var Nd=require("@vkontakte/videoplayer-shared/es2018");var a2=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),l2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
163
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Us(t,e){K(t,m2);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=f2();B(()=>{var d;Ue(l,"data-value",r(s)),Ue(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var Io=require("@vkontakte/videoplayer-shared/es2018");var Pu=require("@vkontakte/videoplayer-shared/es2018");var z1=require("@vkontakte/videoplayer-shared/es2018");var v2=A('<div class="overlay"><!></div>');function lm(t,e){U(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Te().ui.overlayContainer$,d=Z(void 0),a=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))};Qe(()=>{p(n())}),Rt(()=>(p(n()),()=>a(n())));var f=v2(),m=_(f);$e(m,()=>{var u;return(u=e.children)!=null?u:de}),h(f),tt(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var g2=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),h2=A("<div><!></div> <!>",1),_2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Sa(t,e){U(e,!0),K(t,_2);let[i,o]=He(),n=()=>C(q,"$overlayContainer$",i),s=()=>C(F,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),y=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,z1.noop),x=5,S=Z(void 0),T=Z(void 0),E,R=Z(0),I=Z(0),M=Z(0),k=Z(0),G=kt(),H=Te(),F=H.ui.playerSize,q=H.ui.overlayContainer$;Qe(()=>{xt(()=>{w()(a())})});let Y=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(I,x);let X=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),ke=Ae.width,ze=r(T).clientWidth,rt=s().width,bt=(ke-ze)/2,lt=Ae.left+p()-X.left,wt=lt+bt,Je=Ae.top+f()-X.top,Ut=ze/2-x,Xt=wt<8,Ht=wt+ze>rt-8;Xt&&(wt=8,Ut=lt+Ae.width/2-2.5*x),Ht&&(wt=rt-8-ze,Ut=Ae.left-X.left+Ae.width/2-wt-x),O(M,wt,!0),O(k,Je),O(R,Ut,!0)},ue=()=>{!n()||!r(T)||!r(S)||O(I,-x)},re=()=>{if(!n()||!r(T)||!r(S))return;O(R,x);let X=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),ke=Ae.height,ze=r(T).clientHeight,rt=(ke-ze)/2+ze,bt=Ae.left+p()-X.left-r(T).clientWidth,lt=2,wt=bt-x;wt<8&&(wt=8);let Ut=Ae.top+f()-X.top+rt,Xt=lt-rt/2,Ht=lt-x;O(M,wt,!0),O(k,Ut),O(I,Xt),O(R,Ht)},fe=()=>{!n()||!r(T)||!r(S)||O(R,-x)},be=()=>{switch(y()){case"top":j();break;case"bottom":ue();break;case"left":re();break;default:fe()}},me=()=>{try{if(!n()||!r(S))return;be(),a(!0)}catch(X){Y({message:String(X)})}},Pe=()=>{a(!1)},se=()=>{r(T)&&(E||(E=window.setTimeout(me,G.controls.hideTimeoutTooltips)),a()&&me())},Le=()=>{Pe(),window.clearTimeout(E),E=void 0},ae=(X,Ae,ke)=>{let ze="";switch(y()){case"top":ze=`transform: translate(${X}px, ${Ae}px);`;break;case"bottom":ze=`transform: translate(${X}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${X}px, ${Ae}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${X}px, ${Ae}px);`}return ze+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,ze+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,ze},N=(X,Ae)=>{let ke="";switch(y()){case"top":ke=`transform: translate(${X}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${X}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${X}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${X}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},Be=g(()=>ae(r(M),r(k),a())),ce=g(()=>N(r(R),r(I)));Rt(be),on(()=>window.clearTimeout(E));var he=h2(),oe=ge(he);let ve;oe.__mousemove=se,oe.__mousedown=Le,oe.__mouseup=function(...X){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:se)==null||Ae.apply(this,X)};var De=_(oe);$e(De,()=>{var X;return(X=e.children)!=null?X:de}),h(oe),tt(oe,X=>O(S,X),()=>r(S));var pe=P(oe,2);{var st=X=>{lm(X,{children:(Ae,ke)=>{var ze=g2(),rt=_(ze),bt=_(rt,!0);h(rt);var lt=P(rt,2);h(ze),tt(ze,wt=>O(T,wt),()=>r(T)),B(()=>{nt(ze,r(Be)),_e(bt,d()),nt(lt,r(ce))}),$(Ae,ze)},$$slots:{default:!0}})};V(pe,X=>{d()&&!l()&&X(st)})}B(X=>ve=ie(oe,1,"tooltip-wrapper svelte-hxlyne",null,ve,X),[()=>({"full-width":m()})]),Ct("mouseenter",oe,se),Ct("mouseleave",oe,Le),$(t,he),z(),o()}at(["mousemove","mousedown","mouseup"]);var W1=t=>{t.stopPropagation()},b2=A("<div><!></div>"),$2={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 Eo(t,e){U(e,!0),K(t,$2);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Te(),d=mo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),u=v(e,"disabled",3,!1),y=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),x=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),T=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),R=v(e,"tooltipPlacement",3,"top"),I=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),M=v(e,"isAriaHidden",3,!1),k=v(e,"onTooltipVisibilityChange",3,Pu.noop),G=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Pu.noop),q=v(e,"mouseLeave",3,Pu.noop),Y=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var j=b2();j.__pointerdown=[W1],j.__click=[W1];var ue=_(j);{var re=be=>{Sa(be,{get content(){return r(Y)},get translateX(){return G()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return R()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,Pe)=>{var se=qe(),Le=ge(se);$e(Le,()=>{var ae;return(ae=e.children)!=null?ae:de}),$(me,se)},$$slots:{default:!0}})},fe=be=>{var me=qe(),Pe=ge(me);$e(Pe,()=>{var se;return(se=e.children)!=null?se:de}),$(be,me)};V(ue,be=>{y()&&r(Y)&&!s()?be(re):be(fe,!1)})}h(j),tt(j,be=>w(be),()=>w()),B(()=>{var be;ie(j,1,`btn-container ${(be=m())!=null?be:""}`,"svelte-p9r045"),Ue(j,"aria-hidden",M()||null)}),Ct("mouseenter",j,function(...be){var me;(me=F())==null||me.apply(this,be)}),Ct("mouseleave",j,function(...be){var me;(me=q())==null||me.apply(this,be)}),ar(j,"clientWidth",x),$(t,j),z(),o()}at(["pointerdown","click"]);var y2=we('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Dd(t,e){"use strict";var i=y2(),o=_(i),n=P(o);h(i),B(()=>{Ue(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ue(o,"fill-opacity",e.completed?1:.24),Ue(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var x2=A("<div><!></div>"),w2={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 dm(t,e){U(e,!0),K(t,w2);let o=Te().ui.t,n=Z(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=x2();let p;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);Dd(f,{get completed(){return r(m)}}),h(a),B(u=>{p=ie(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),nt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ar(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var S2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),C2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),T2={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,
164
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Fs(t,e){q(t,l2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=a2();B(()=>{var d;Fe(l,"data-value",r(s)),Fe(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var Ao=require("@vkontakte/videoplayer-shared/es2018");var Cu=require("@vkontakte/videoplayer-shared/es2018");var L1=require("@vkontakte/videoplayer-shared/es2018");var d2=M('<div class="overlay"><!></div>');function em(t,e){U(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=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())}),Mt(()=>(p(n()),()=>a(n())));var f=d2(),v=_(f);ye(v,()=>{var u;return(u=e.children)!=null?u:de}),h(f),ot(f,u=>O(d,u),()=>r(d)),$(t,f),z(),o()}var c2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),u2=M("<div><!></div> <!>",1),p2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Sa(t,e){U(e,!0),q(t,p2);let[i,o]=He(),n=()=>C(W,"$overlayContainer$",i),s=()=>C(F,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,L1.noop),x=5,S=j(void 0),T=j(void 0),E,V=j(0),k=j(0),I=j(0),R=j(0),Y=kt(),H=Ee(),F=H.ui.playerSize,W=H.ui.overlayContainer$;Ke(()=>{wt(()=>{w()(a())})});let J=H.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!r(T)||!r(S))return;O(k,x);let Z=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),Ie=Ae.width,ze=r(T).clientWidth,lt=s().width,vt=(Ie-ze)/2,gt=Ae.left+p()-Z.left,Ct=gt+vt,Ge=Ae.top+f()-Z.top,Ht=ze/2-x,Xt=Ct<8,Gt=Ct+ze>lt-8;Xt&&(Ct=8,Ht=gt+Ae.width/2-2.5*x),Gt&&(Ct=lt-8-ze,Ht=Ae.left-Z.left+Ae.width/2-Ct-x),O(I,Ct,!0),O(R,Ge),O(V,Ht,!0)},ce=()=>{!n()||!r(T)||!r(S)||O(k,-x)},ie=()=>{if(!n()||!r(T)||!r(S))return;O(V,x);let Z=n().getBoundingClientRect(),Ae=r(S).getBoundingClientRect(),Ie=Ae.height,ze=r(T).clientHeight,lt=(Ie-ze)/2+ze,vt=Ae.left+p()-Z.left-r(T).clientWidth,gt=2,Ct=vt-x;Ct<8&&(Ct=8);let Ht=Ae.top+f()-Z.top+lt,Xt=gt-lt/2,Gt=gt-x;O(I,Ct,!0),O(R,Ht),O(k,Xt),O(V,Gt)},ue=()=>{!n()||!r(T)||!r(S)||O(V,-x)},$e=()=>{switch(y()){case"top":G();break;case"bottom":ce();break;case"left":ie();break;default:ue()}},fe=()=>{try{if(!n()||!r(S))return;$e(),a(!0)}catch(Z){J({message:String(Z)})}},ke=()=>{a(!1)},ne=()=>{r(T)&&(E||(E=window.setTimeout(fe,Y.controls.hideTimeoutTooltips)),a()&&fe())},Ve=()=>{ke(),window.clearTimeout(E),E=void 0},re=(Z,Ae,Ie)=>{let ze="";switch(y()){case"top":ze=`transform: translate(${Z}px, ${Ae}px);`;break;case"bottom":ze=`transform: translate(${Z}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":ze=`transform: translate(${Z}px, ${Ae}px); left: 0; right: auto;`;break;default:ze=`transform: translate(${Z}px, ${Ae}px);`}return ze+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,ze+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,ze},N=(Z,Ae)=>{let Ie="";switch(y()){case"top":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${Z}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${Z}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},Be=g(()=>re(r(I),r(R),a())),le=g(()=>N(r(V),r(k)));Mt($e),nn(()=>window.clearTimeout(E));var ve=u2(),te=ge(ve);let me;te.__mousemove=ne,te.__mousedown=Ve,te.__mouseup=function(...Z){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:ne)==null||Ae.apply(this,Z)};var De=_(te);ye(De,()=>{var Z;return(Z=e.children)!=null?Z:de}),h(te),ot(te,Z=>O(S,Z),()=>r(S));var pe=P(te,2);{var at=Z=>{em(Z,{children:(Ae,Ie)=>{var ze=c2(),lt=_(ze),vt=_(lt,!0);h(lt);var gt=P(lt,2);h(ze),ot(ze,Ct=>O(T,Ct),()=>r(T)),B(()=>{st(ze,r(Be)),be(vt,d()),st(gt,r(le))}),$(Ae,ze)},$$slots:{default:!0}})};L(pe,Z=>{d()&&!l()&&Z(at)})}B(Z=>me=ee(te,1,"tooltip-wrapper svelte-hxlyne",null,me,Z),[()=>({"full-width":v()})]),St("mouseenter",te,ne),St("mouseleave",te,Ve),$(t,ve),z(),o()}dt(["mousemove","mousedown","mouseup"]);var V1=t=>{t.stopPropagation()},f2=M("<div><!></div>"),m2={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){U(e,!0),q(t,m2);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ee(),d=ho(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),x=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),V=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Cu.noop),Y=m(e,"initialTranslateXPx",3,0),H=m(e,"initialTranslateYPx",19,()=>-18),F=m(e,"mouseEnter",3,Cu.noop),W=m(e,"mouseLeave",3,Cu.noop),J=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):k():T());var G=f2();G.__pointerdown=[V1],G.__click=[V1];var ce=_(G);{var ie=$e=>{Sa($e,{get content(){return r(J)},get translateX(){return Y()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(fe,ke)=>{var ne=We(),Ve=ge(ne);ye(Ve,()=>{var re;return(re=e.children)!=null?re:de}),$(fe,ne)},$$slots:{default:!0}})},ue=$e=>{var fe=We(),ke=ge(fe);ye(ke,()=>{var ne;return(ne=e.children)!=null?ne:de}),$($e,fe)};L(ce,$e=>{y()&&r(J)&&!s()?$e(ie):$e(ue,!1)})}h(G),ot(G,$e=>w($e),()=>w()),B(()=>{var $e;ee(G,1,`btn-container ${($e=v())!=null?$e:""}`,"svelte-p9r045"),Fe(G,"aria-hidden",I()||null)}),St("mouseenter",G,function(...$e){var fe;(fe=F())==null||fe.apply(this,$e)}),St("mouseleave",G,function(...$e){var fe;(fe=W())==null||fe.apply(this,$e)}),nr(G,"clientWidth",x),$(t,G),z(),o()}dt(["pointerdown","click"]);var v2=Te('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Rd(t,e){"use strict";var i=v2(),o=_(i),n=P(o);h(i),B(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var g2=M("<div><!></div>"),h2={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 tm(t,e){U(e,!0),q(t,h2);let o=Ee().ui.t,n=j(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=g2();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Rd(f,{get completed(){return r(v)}}),h(a),B(u=>{p=ee(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),nr(a,"clientWidth",u=>O(n,u)),$(l,a)},$$slots:{default:!0}}),z()}var _2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),b2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),$2={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,
165
165
  .video-episode-loaded.svelte-1u6kv8l,
166
- .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 cm(t,e){K(t,T2);let i=v(e,"videoEpisodes",19,()=>[]);var o=C2();Ti(o,21,i,n=>n.from,(n,s)=>{var l=S2();let d;var a=_(l),p=_(a),f=P(p,2);let m;h(a),h(l),B((u,y)=>{d=ie(l,1,"video-episode svelte-1u6kv8l",null,d,u),nt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),nt(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,m,y),nt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function E2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function I2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,r(s).width),r(l)&&d()(a)}function k2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function P2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function A2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var M2=A("<div></div>"),L2=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),V2=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),R2={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 {
166
+ .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 im(t,e){q(t,$2);let i=m(e,"videoEpisodes",19,()=>[]);var o=b2();Ti(o,21,i,n=>n.from,(n,s)=>{var l=_2();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),B((u,y)=>{d=ee(l,1,"video-episode svelte-1u6kv8l",null,d,u),st(l,`left: ${r(s).from}%; width: ${r(s).width}%`),st(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=ee(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),st(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function y2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function x2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,r(s).width),r(l)&&d()(a)}function w2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function S2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function C2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var T2=M("<div></div>"),E2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),I2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),k2={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 {
167
167
  /* 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,
168
168
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
169
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
170
  .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),
171
- .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 Ca(t,e){U(e,!0),K(t,R2);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),y=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),x=v(e,"onPointerDown",3,Io.noop),S=v(e,"onHandleMove",3,Io.noop),T=v(e,"onPointerUp",3,Io.noop),E=v(e,"onPointerEnter",3,Io.noop),R=v(e,"onPointerMove",3,Io.noop),I=v(e,"onPointerLeave",3,Io.noop),M=v(e,"onMouseEnter",3,Io.noop),k=v(e,"onMouseLeave",3,Io.noop),G=v(e,"onWheelUp",3,Io.noop),H=v(e,"onWheelDown",3,Io.noop),F=v(e,"onWheelLeft",3,Io.noop),q=v(e,"onWheelRight",3,Io.noop),Y=v(e,"onDisabledClick",3,Io.noop),j=v(e,"loadedProgress",3,0),ue=v(e,"filledProgress",3,0),re=v(e,"handleProgress",3,0),fe=v(e,"ariaLabel",3,""),be=v(e,"ariaValueMin",3,void 0),me=v(e,"ariaValueMax",3,void 0),Pe=v(e,"ariaValueNow",3,void 0),se=v(e,"ariaValueText",3,""),Le=v(e,"onContextMenu",3,Io.noop),ae=kt(),N=Z(void 0),Be=Z(!1),ce=g(()=>{var ne;return(ne=me())!=null?ne:0}),he=g(()=>{var ne;return(0,Io.isNonNullable)(f())&&((ne=f()[f().length-1])==null?void 0:ne.time)<r(ce)}),oe=g(()=>(0,Io.isNonNullable)(f())&&f().length&&r(he)&&r(ce)?ze(j()*100,ue()*100):[]);function ve(ne){if(ne.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),y())return;let Ve=Ae(ne.clientX,ne.clientY),Fe=ke(ne.clientX);E()(Ve,Fe,r(N).width)}function De(ne){ne.preventDefault(),!y()&&I()()}function pe(){M()()}function st(){k()()}function X(ne){y()||m()&&(ne.preventDefault(),ne.deltaY<0?G()():ne.deltaY>0?H()():ne.deltaX>0?q()():F()())}function Ae(ne,Ve){return l()?Math.max(0,Math.min(1,(r(N).height-(Ve-r(N).top))/r(N).height)):Math.min(Math.max(ne-r(N).x,0),r(N).width)/r(N).width}function ke(ne){return Math.min(Math.max(ne-r(N).x,0),r(N).width)}function ze(ne,Ve){let Fe=ae.features.episodesClustering&&!u()?ae.episodeMinWidthPc:0,Re=[],We=f()[0].time/r(ce)*100,Ne=0,et=0;for(let Et=1;Et<f().length;Et++)Ne=f()[Et].time/r(ce)*100,Ne-We>Fe&&(Re.push({from:We,width:Math.max(0,Ne-We),loadedWidth:Math.max(0,Math.min(Ne,ne)-We),filledWidth:Math.max(0,Math.min(Ne,Ve)-We),interactive:f()[Et-1].interactive,completed:f()[Et-1].completed}),We=f()[Et].time/r(ce)*100,et++);let zt={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(ne,100)-We),filledWidth:Math.max(0,Math.min(Ve,100)-We),interactive:f()[et].interactive,completed:f()[et].completed};100-We<Fe?(et-=1,Re[et].width+=100-We,Re[et].loadedWidth+=Math.max(0,Math.min(ne,100)-We),Re[et].filledWidth+=Math.max(0,Math.min(Ve,100)-We)):Re[et]=zt;let qt=f()[0].time;if(qt!==0){let Et=qt/r(ce)*100;Re.unshift({from:0,width:Et,loadedWidth:Math.min(Et,ne),filledWidth:Math.min(Et,Ve)})}return Re}function rt(ne){return Math.max(0,Math.min(100,ne*100))}var bt=V2(),lt=ge(bt);{var wt=ne=>{var Ve=M2();let Fe;Ti(Ve,21,()=>r(oe),Re=>Re.from,(Re,We)=>{var Ne=qe(),et=ge(Ne);{var zt=qt=>{dm(qt,{get videoEpisode(){return r(We)},get disabled(){return y()}})};V(et,qt=>{r(We).interactive&&qt(zt)})}$(Re,Ne)}),h(Ve),B(Re=>Fe=ie(Ve,1,"interactive-icons svelte-1tpemng",null,Fe,Re),[()=>({mobile:a(),hidden:a()&&!r(Be)})]),$(ne,Ve)};V(lt,ne=>{u()&&ne(wt)})}var Je=P(lt,2);let Ut;Je.__pointerdown=[E2,i,N,y,Be,Ae,x],Je.__pointermove=[I2,y,Ae,ke,R,N,Be,S],Je.__pointerup=[k2,y,Be,Ae,T],Je.__click=[P2,y,Y,Ae],Je.__contextmenu=[A2,Ae,y,Y,Be,Le];var Xt=_(Je);{var Ht=ne=>{cm(ne,{get videoEpisodes(){return r(oe)},get disabled(){return y()},get isMobile(){return a()}})},jt=ne=>{var Ve=L2(),Fe=_(Ve),Re=P(Fe,2);let We;h(Ve),B((Ne,et,zt)=>{nt(Fe,Ne),We=ie(Re,1,"filled svelte-1tpemng",null,We,et),nt(Re,zt)},[()=>`transform: translateX(${rt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${rt(ue())}%);`]),$(ne,Ve)};V(Xt,ne=>{r(oe).length?ne(Ht):ne(jt,!1)})}var Ee=P(Xt,2);let Kt;var Se=_(Ee);let te;h(Ee),h(Je),tt(Je,ne=>i(ne),()=>i()),B((ne,Ve,Fe,Re)=>{var We,Ne;Ut=ie(Je,1,`slider ${(We=o())!=null?We:""}`,"svelte-1tpemng",Ut,ne),Ue(Je,"aria-label",fe()),Ue(Je,"aria-valuemin",be()),Ue(Je,"aria-valuemax",me()),Ue(Je,"aria-valuenow",Pe()),Ue(Je,"aria-valuetext",se()),Ue(Je,"data-testid",(Ne=n())!=null?Ne:null),Kt=ie(Ee,1,"handleWrap svelte-1tpemng",null,Kt,Ve),nt(Ee,Fe),te=ie(Se,1,"handle svelte-1tpemng",null,te,Re)},[()=>({disabled:y(),"slider-dragging":r(Be),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${rt(re())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",Je,ve),Ct("pointerleave",Je,De),Ct("mouseenter",Je,pe),Ct("mouseleave",Je,st),Ct("wheel",Je,X),$(t,bt),z()}at(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Xi=(t,e)=>ua[t]>=ua[e],K1=(t,e)=>ua[t]<ua[e],zs=(t,e)=>ua[t]<=ua[e],q1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var O2=A("<div><!></div>"),B2=A("<div><!> <!></div>"),D2={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 um(t,e){var X,Ae;U(e,!0),K(t,D2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Te(),p=kt(),f=a.state.volume$,m=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,S=(X=a.callbacks)==null?void 0:X.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,E=a.state.isAudioAvailable$,R=a.state.isAudioDisabled,I=a.ui.t,M=Z(!1),k,G=g(()=>e.isAds||n()),H=g(()=>!r(G)||s()||l()===0),F=g(()=>zs(d(),"s")),q=g(()=>r(F)?"":r(H)?!n()||R?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),Y=g(()=>r(H)?I("tooltip_volume"):I("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),ue=!1,re=g(()=>e.isAds?!1:R?!T:n()?!1:!S);function fe(ke){y(),u(ke)}function be(){Eu(a,l(),p.controls.volumeStepWheel)}function me(){Iu(a,l(),p.controls.volumeStepWheel)}function Pe(ke){u(ke)}function se(ke){u(ke),w()}function Le(){ue=!0}function ae(){ue=!1,ce()}function N(){clearTimeout(k),O(M,!0)}function Be(){ce()}function ce(){k=window.setTimeout(()=>{ue||O(M,!1)},p.controls.volumeBarTimeout)}function he(ke){ke.preventDefault(),ke.deltaY<0?be():ke.deltaY>0&&me()}var oe=B2();let ve;var De=_(oe);Sa(De,{get content(){return r(q)},translateY:-18,children:(ke,ze)=>{let rt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Dt(ke,{className:"btn-full-opacity",get disabled(){return r(re)},get testId(){return r(rt)},get ariaLabel(){return r(Y)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyM},role:"button",children:(bt,lt)=>{Us(bt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var pe=P(De,2);{var st=ke=>{var ze=O2();let rt;var bt=_(ze);let lt=g(()=>r(F)?"volumeBar-slider-vertical":""),wt=g(()=>r(F)&&!r(M)),Je=g(()=>r(F)?Le:Hd.noop),Ut=g(()=>r(F)?ae:Hd.noop),Xt=g(()=>Math.round(r(j)*100)),Ht=g(()=>`${Math.round(r(j)*100)}%`),jt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");Ca(bt,{get className(){return r(lt)},get isHidden(){return r(wt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:be,onWheelDown:me,onPointerDown:fe,onHandleMove:Pe,onPointerUp:se,get onPointerEnter(){return r(Je)},get onPointerLeave(){return r(Ut)},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(Xt)},get ariaValueText(){return r(Ht)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(jt)}}),h(ze),B(Ee=>rt=ie(ze,1,"volumeBar svelte-1auih1j",null,rt,Ee),[()=>({"volumeBar-vertical":r(F)})]),$(ke,ze)};V(pe,ke=>{r(G)&&ke(st)})}h(oe),B(ke=>ve=ie(oe,1,"volumeBar-container svelte-1auih1j",null,ve,ke),[()=>({vertical:r(F)})]),Ct("mouseenter",oe,function(...ke){var ze;(ze=r(F)?N:Hd.noop)==null||ze.apply(this,ke)}),Ct("mouseleave",oe,function(...ke){var ze;(ze=r(F)?Be:Hd.noop)==null||ze.apply(this,ke)}),Ct("wheel",oe,he),$(t,oe),z(),o()}var Q1=require("@vkontakte/videoplayer-shared/es2018");var H2=we('<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 pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var F2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function fm(t,e){K(t,F2);let i=v(e,"isFullscreen",8,!1),o=Nr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");pm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Fd(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,Q1.noop),n=Te(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Ds(p);s.set(f),o()()},get ariaKeyShortCut(){return rs.KeyF},role:"button",children:(p,f)=>{fm(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var U2=we('<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 mm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=U2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var z2=we('<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 vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(4),h(o),$(t,o)}var W2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
171
+ .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 Ca(t,e){U(e,!0),q(t,k2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),x=m(e,"onPointerDown",3,Ao.noop),S=m(e,"onHandleMove",3,Ao.noop),T=m(e,"onPointerUp",3,Ao.noop),E=m(e,"onPointerEnter",3,Ao.noop),V=m(e,"onPointerMove",3,Ao.noop),k=m(e,"onPointerLeave",3,Ao.noop),I=m(e,"onMouseEnter",3,Ao.noop),R=m(e,"onMouseLeave",3,Ao.noop),Y=m(e,"onWheelUp",3,Ao.noop),H=m(e,"onWheelDown",3,Ao.noop),F=m(e,"onWheelLeft",3,Ao.noop),W=m(e,"onWheelRight",3,Ao.noop),J=m(e,"onDisabledClick",3,Ao.noop),G=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),ie=m(e,"handleProgress",3,0),ue=m(e,"ariaLabel",3,""),$e=m(e,"ariaValueMin",3,void 0),fe=m(e,"ariaValueMax",3,void 0),ke=m(e,"ariaValueNow",3,void 0),ne=m(e,"ariaValueText",3,""),Ve=m(e,"onContextMenu",3,Ao.noop),re=kt(),N=j(void 0),Be=j(!1),le=g(()=>{var ae;return(ae=fe())!=null?ae:0}),ve=g(()=>{var ae;return(0,Ao.isNonNullable)(f())&&((ae=f()[f().length-1])==null?void 0:ae.time)<r(le)}),te=g(()=>(0,Ao.isNonNullable)(f())&&f().length&&r(ve)&&r(le)?ze(G()*100,ce()*100):[]);function me(ae){if(ae.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),y())return;let Re=Ae(ae.clientX,ae.clientY),qe=Ie(ae.clientX);E()(Re,qe,r(N).width)}function De(ae){ae.preventDefault(),!y()&&k()()}function pe(){I()()}function at(){R()()}function Z(ae){y()||v()&&(ae.preventDefault(),ae.deltaY<0?Y()():ae.deltaY>0?H()():ae.deltaX>0?W()():F()())}function Ae(ae,Re){return l()?Math.max(0,Math.min(1,(r(N).height-(Re-r(N).top))/r(N).height)):Math.min(Math.max(ae-r(N).x,0),r(N).width)/r(N).width}function Ie(ae){return Math.min(Math.max(ae-r(N).x,0),r(N).width)}function ze(ae,Re){let qe=re.features.episodesClustering&&!u()?re.episodeMinWidthPc:0,Le=[],Ye=f()[0].time/r(le)*100,Oe=0,et=0;for(let tt=1;tt<f().length;tt++)Oe=f()[tt].time/r(le)*100,Oe-Ye>qe&&(Le.push({from:Ye,width:Math.max(0,Oe-Ye),loadedWidth:Math.max(0,Math.min(Oe,ae)-Ye),filledWidth:Math.max(0,Math.min(Oe,Re)-Ye),interactive:f()[tt-1].interactive,completed:f()[tt-1].completed}),Ye=f()[tt].time/r(le)*100,et++);let Lt={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(ae,100)-Ye),filledWidth:Math.max(0,Math.min(Re,100)-Ye),interactive:f()[et].interactive,completed:f()[et].completed};100-Ye<qe?(et-=1,Le[et].width+=100-Ye,Le[et].loadedWidth+=Math.max(0,Math.min(ae,100)-Ye),Le[et].filledWidth+=Math.max(0,Math.min(Re,100)-Ye)):Le[et]=Lt;let Kt=f()[0].time;if(Kt!==0){let tt=Kt/r(le)*100;Le.unshift({from:0,width:tt,loadedWidth:Math.min(tt,ae),filledWidth:Math.min(tt,Re)})}return Le}function lt(ae){return Math.max(0,Math.min(100,ae*100))}var vt=I2(),gt=ge(vt);{var Ct=ae=>{var Re=T2();let qe;Ti(Re,21,()=>r(te),Le=>Le.from,(Le,Ye)=>{var Oe=We(),et=ge(Oe);{var Lt=Kt=>{tm(Kt,{get videoEpisode(){return r(Ye)},get disabled(){return y()}})};L(et,Kt=>{r(Ye).interactive&&Kt(Lt)})}$(Le,Oe)}),h(Re),B(Le=>qe=ee(Re,1,"interactive-icons svelte-1tpemng",null,qe,Le),[()=>({mobile:a(),hidden:a()&&!r(Be)})]),$(ae,Re)};L(gt,ae=>{u()&&ae(Ct)})}var Ge=P(gt,2);let Ht;Ge.__pointerdown=[y2,i,N,y,Be,Ae,x],Ge.__pointermove=[x2,y,Ae,Ie,V,N,Be,S],Ge.__pointerup=[w2,y,Be,Ae,T],Ge.__click=[S2,y,J,Ae],Ge.__contextmenu=[C2,Ae,y,J,Be,Ve];var Xt=_(Ge);{var Gt=ae=>{im(ae,{get videoEpisodes(){return r(te)},get disabled(){return y()},get isMobile(){return a()}})},Wt=ae=>{var Re=E2(),qe=_(Re),Le=P(qe,2);let Ye;h(Re),B((Oe,et,Lt)=>{st(qe,Oe),Ye=ee(Le,1,"filled svelte-1tpemng",null,Ye,et),st(Le,Lt)},[()=>`transform: translateX(${lt(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${lt(ce())}%);`]),$(ae,Re)};L(Xt,ae=>{r(te).length?ae(Gt):ae(Wt,!1)})}var oe=P(Xt,2);let Ft;var he=_(oe);let we;h(oe),h(Ge),ot(Ge,ae=>i(ae),()=>i()),B((ae,Re,qe,Le)=>{var Ye,Oe;Ht=ee(Ge,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",Ht,ae),Fe(Ge,"aria-label",ue()),Fe(Ge,"aria-valuemin",$e()),Fe(Ge,"aria-valuemax",fe()),Fe(Ge,"aria-valuenow",ke()),Fe(Ge,"aria-valuetext",ne()),Fe(Ge,"data-testid",(Oe=n())!=null?Oe:null),Ft=ee(oe,1,"handleWrap svelte-1tpemng",null,Ft,Re),st(oe,qe),we=ee(he,1,"handle svelte-1tpemng",null,we,Le)},[()=>({disabled:y(),"slider-dragging":r(Be),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${lt(ie())}%);`,()=>({"active-live":d()})]),St("pointerenter",Ge,me),St("pointerleave",Ge,De),St("mouseenter",Ge,pe),St("mouseleave",Ge,at),St("wheel",Ge,Z),$(t,vt),z()}dt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Ji=(t,e)=>ua[t]>=ua[e],R1=(t,e)=>ua[t]<ua[e],Us=(t,e)=>ua[t]<=ua[e],N1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var A2=M("<div><!></div>"),M2=M("<div><!> <!></div>"),L2={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 om(t,e){var Z,Ae;U(e,!0),q(t,L2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(x,"$currentGridType$",i),a=Ee(),p=kt(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,S=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Ae=a.callbacks)==null?void 0:Ae.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=j(!1),R,Y=g(()=>e.isAds||n()),H=g(()=>!r(Y)||s()||l()===0),F=g(()=>Us(d(),"s")),W=g(()=>r(F)?"":r(H)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),J=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),G=g(()=>r(H)?0:l()),ce=!1,ie=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function ue(Ie){y(),u(Ie)}function $e(){xu(a,l(),p.controls.volumeStepWheel)}function fe(){wu(a,l(),p.controls.volumeStepWheel)}function ke(Ie){u(Ie)}function ne(Ie){u(Ie),w()}function Ve(){ce=!0}function re(){ce=!1,le()}function N(){clearTimeout(R),O(I,!0)}function Be(){le()}function le(){R=window.setTimeout(()=>{ce||O(I,!1)},p.controls.volumeBarTimeout)}function ve(Ie){Ie.preventDefault(),Ie.deltaY<0?$e():Ie.deltaY>0&&fe()}var te=M2();let me;var De=_(te);Sa(De,{get content(){return r(W)},translateY:-18,children:(Ie,ze)=>{let lt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Ie,{className:"btn-full-opacity",get disabled(){return r(ie)},get testId(){return r(lt)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyM},role:"button",children:(vt,gt)=>{Fs(vt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var pe=P(De,2);{var at=Ie=>{var ze=A2();let lt;var vt=_(ze);let gt=g(()=>r(F)?"volumeBar-slider-vertical":""),Ct=g(()=>r(F)&&!r(I)),Ge=g(()=>r(F)?Ve:Nd.noop),Ht=g(()=>r(F)?re:Nd.noop),Xt=g(()=>Math.round(r(G)*100)),Gt=g(()=>`${Math.round(r(G)*100)}%`),Wt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");Ca(vt,{get className(){return r(gt)},get isHidden(){return r(Ct)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:$e,onWheelDown:fe,onPointerDown:ue,onHandleMove:ke,onPointerUp:ne,get onPointerEnter(){return r(Ge)},get onPointerLeave(){return r(Ht)},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(Xt)},get ariaValueText(){return r(Gt)},get filledProgress(){return r(G)},get handleProgress(){return r(G)},get testId(){return r(Wt)}}),h(ze),B(oe=>lt=ee(ze,1,"volumeBar svelte-1auih1j",null,lt,oe),[()=>({"volumeBar-vertical":r(F)})]),$(Ie,ze)};L(pe,Ie=>{r(Y)&&Ie(at)})}h(te),B(Ie=>me=ee(te,1,"volumeBar-container svelte-1auih1j",null,me,Ie),[()=>({vertical:r(F)})]),St("mouseenter",te,function(...Ie){var ze;(ze=r(F)?N:Nd.noop)==null||ze.apply(this,Ie)}),St("mouseleave",te,function(...Ie){var ze;(ze=r(F)?Be:Nd.noop)==null||ze.apply(this,Ie)}),St("wheel",te,ve),$(t,te),z(),o()}var O1=require("@vkontakte/videoplayer-shared/es2018");var V2=Te('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function nm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=V2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var R2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function rm(t,e){q(t,R2);let i=m(e,"isFullscreen",8,!1),o=Rr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");nm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Od(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,O1.noop),n=Ee(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Bs(p);s.set(f),o()()},get ariaKeyShortCut(){return rs.KeyF},role:"button",children:(p,f)=>{rm(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var N2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function sm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=N2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var O2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function am(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=O2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(4),h(o),$(t,o)}var B2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
173
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
174
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function gm(t,e){K(t,W2);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);vm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Ud(t,e){U(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=kt(),m=Te(),u=m.ui.currentGridType$,y=m.ui.isMobile,w=m.ui.t,x=m.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||zs(s(),"l"))&&r(T)),R=()=>{var k,G;e.click(),(k=m.callbacks)!=null&&k.onLogoClicked?(G=m.callbacks)==null||G.onLogoClicked():p()&&window.open(p(),"_blank")},I=g(()=>!a()),M=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:R,get testId(){return r(M)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(k){d(k)},children:(k,G)=>{var H=qe(),F=ge(H);{var q=j=>{gm(j,{get short(){return r(E)},get isCyrillic(){return l()}})},Y=j=>{mm(j,{})};V(F,j=>{r(T)?j(q):j(Y,!1)})}$(k,H)},$$slots:{default:!0}}),z(),o()}var G1=require("@vkontakte/videoplayer-core/es2018");var hm=require("@vkontakte/videoplayer-core/es2018"),q2=we('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),Q2=we('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),G2={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) {
175
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function lm(t,e){q(t,B2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);am(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Bd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(x,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=kt(),v=Ee(),u=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Us(s(),"l"))&&r(T)),V=()=>{var R,Y;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Y=v.callbacks)==null||Y.onLogoClicked():p()&&window.open(p(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:V,get testId(){return r(I)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Y)=>{var H=We(),F=ge(H);{var W=G=>{lm(G,{get short(){return r(E)},get isCyrillic(){return l()}})},J=G=>{sm(G,{})};L(F,G=>{r(T)?G(W):G(J,!1)})}$(R,H)},$$slots:{default:!0}}),z(),o()}var B1=require("@vkontakte/videoplayer-core/es2018");var dm=require("@vkontakte/videoplayer-core/es2018"),H2=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),F2=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),U2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
176
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,9 +220,9 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
220
220
  100% {
221
221
  opacity: 1;
222
222
  }
223
- }`};function _m(t,e){U(e,!0),K(t,G2);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===hm.ChromecastState.CONNECTED),n=g(()=>e.iconState===hm.ChromecastState.CONNECTING);var s=qe(),l=ge(s);{var d=p=>{var f=q2(),m=_(f),u=_(m),y=_(u);xe(),h(u);var w=P(u);xe(),h(m);var x=P(m),S=_(x),T=_(S);h(S),xe(),h(x),h(f),B(()=>{Ue(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=Q2();let m;var u=_(f),y=P(_(u),5);let w;h(u),h(f),B((x,S)=>{m=ie(f,0,"svelte-8z1bf5",null,m,x),w=ie(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};V(l,p=>{i()?p(d):p(a,!1)})}$(t,s),z()}var j1=require("@vkontakte/videoplayer-shared/es2018");function zd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,j1.noop),l=Te().ui.t,d=g(()=>e.state===G1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{_m(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var j2=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),Y2={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 bm(t,e){K(t,Y2);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=Z(void 0),p=Z(void 0);function f(S){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let m=g(()=>f(n()));var u=j2(),y=_(u);let w;var x=_(y);$e(x,()=>{var S;return(S=e.children)!=null?S:de}),h(y),tt(y,S=>O(p,S),()=>r(p)),h(u),tt(u,S=>O(a,S),()=>r(a)),B(S=>{nt(u,`transform: translate(${r(m)}px, ${s()}px);`),w=ie(y,1,"tooltip svelte-5ygsa2",null,w,S),nt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Au=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Y1=t=>!!(Math.round(Math.abs(t)/90)%2),Z1=t=>Math.abs(t)/90%4===1;var Z2=A('<div class="preview svelte-1wqg760"></div>'),X2=A('<div class="time svelte-1wqg760"> </div>'),J2=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),ey={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 $m(t,e){U(e,!0),K(t,ey);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),y=Te(),w=y.ui.rotateAlpha,x=y.ui.playerSize,S=Z(0),T=Z(0),E=Z(""),R=Z(0),I=Z(0),M=Z(0),k=Z(0),G=g(()=>Au(f(),m(),p())),H=g(()=>Y1(n())),F=g(()=>Z1(n())),q=g(ue),Y=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),j=g(()=>r(Y)*-1);Qe(()=>{(oe=>{O(S,oe.width,!0),O(T,oe.height,!0)})(fe())}),Qe(()=>{(oe=>{O(E,oe.imgSrc,!0),O(R,oe.imgWidth,!0),O(I,oe.imgHeight,!0),O(M,oe.imgOffsetX,!0),O(k,oe.imgOffsetY,!0)})(be(f()))});function ue(){var pe;let oe=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=re(),De=30;return(pe=r(G))!=null&&pe.text&&(De+=16),(ve||r(H))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),oe)}function re(){let oe=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,De=ve>oe;return{width:oe,height:ve,isHorizontal:!De,isVertical:De}}function fe(){let{height:oe,isHorizontal:ve,isVertical:De,width:pe}=re();return ve&&(oe=oe/pe*r(q),pe=r(q)),De&&(pe=pe/oe*r(q),oe=r(q)),{width:pe,height:oe}}function be(oe){let ve;e.previewThumbsData.isUV?ve=Math.floor(m()*oe/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*oe)));let De=Math.floor(ve/e.previewThumbsData.countPerImage),pe=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=ve%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(S)*Ae,ze=r(T)*X,rt=-st*r(S),bt=-pe*r(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:ke,imgHeight:ze,imgOffsetX:rt,imgOffsetY:bt}}var me=J2();let Pe;var se=_(me);{var Le=oe=>{var ve=Z2();B(()=>nt(ve,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(R)}px ${r(I)}px; background-position: ${r(M)}px ${r(k)}px;
224
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(Y)}px, ${r(j)}px)`:""};
225
- `)),$(oe,ve)};V(se,oe=>{r(E)&&oe(Le)})}var ae=P(se,2),N=_(ae);{var Be=oe=>{var ve=qe(),De=ge(ve);{var pe=X=>{var Ae=os();B(ke=>_e(Ae,ke),[()=>W("tooltip_episode_unfinished")]),$(X,Ae)},st=X=>{var Ae=os();B(()=>_e(Ae,r(G).text||"")),$(X,Ae)};V(De,X=>{u()&&r(G).completed===!1?X(pe):X(st,!1)})}$(oe,ve)};V(N,oe=>{r(G)&&oe(Be)})}h(ae);var ce=P(ae,2);{var he=oe=>{var ve=X2(),De=_(ve,!0);h(ve),B(()=>_e(De,d())),$(oe,ve)};V(ce,oe=>{u()||oe(he)})}h(me),B(oe=>{Pe=ie(me,1,"timeline-preview svelte-1wqg760",null,Pe,oe),nt(me,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,me),z(),o()}var ty=A('<span class="time svelte-1jr6obn"> </span>'),iy=A("<!> <!>",1),oy={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 ym(t,e){var ne,Ve,Fe,Re,We;U(e,!0),K(t,oy);let[i,o]=He(),n=()=>C(Y,"$interactiveEpisodes$",i),s=()=>C(M,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(re,"$isInteractiveExpectation$",i),a=()=>C(ue,"$isInteractiveTime$",i),p=()=>C(k,"$isLive$",i),f=()=>C(H,"$isMobile",i),m=()=>C(G,"$isActiveLive$",i),u=()=>C(R,"$bufferedProgress$",i),y=()=>C(me,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),x=v(e,"withEpisodes",3,!0),S=v(e,"ref",15,void 0),T=Te(),E=kt(),R=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,M=T.state.duration$,k=T.state.isLive$,G=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,q=T.actions.internal.getPreviewThumbsData(),Y=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,re=T.state.isInteractiveExpectation$,fe=T.actions.internal.correctSeekTimeToInteractive,be=(ne=T.callbacks)==null?void 0:ne.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,Pe=(Fe=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Fe.onTimelineMouseEnter,se=(We=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:We.onTimelineMouseLeave,Le=T.ui.t,ae=E.features.interactiveResponsiveUi,N=g(()=>j?n():F),Be=g(()=>$n(s())),ce=g(()=>$n(l())),he=g(()=>l()/s()),oe=g(()=>d()||a()),ve=Z(!1),De=Z(""),pe=Z(0),st=Z(0),X=Z(0),Ae=g(()=>({containerWidth:r(st),translateXPx:r(pe),translateYPx:j&&q?-36:-16,active:r(ve)&&w()&&!r(oe)&&!ae,pointer:!E.features.timelinePreview||!q||p()})),ke=Le("aria_timeline"),ze=g(()=>Le("aria_timeline_value",{position:r(ce),duration:r(Be)}));function rt(Ne){return!fe||!j?Ne:fe(Ne*s())/s()}function bt(Ne){T.actions.internal.startScrubbing(rt(Ne))}function lt(Ne){a()||T.actions.internal.progressScrubbing(rt(Ne))}function wt(Ne){T.actions.internal.completeScrubbing(rt(Ne)),O(ve,!1)}function Je(Ne,et,zt){Ht(Ne,et,zt),O(ve,!0)}function Ut(Ne,et,zt){Ht(Ne,et,zt),O(ve,!0)}function Xt(){O(ve,!1)}function Ht(Ne,et,zt){O(X,rt(Ne),!0),O(pe,et,!0),zt&&O(st,zt,!0),O(De,jt(Ne),!0)}function jt(Ne){let et=$n((p()?1-Ne:Ne)*s());return p()?`-${et}`:et}var Ee=iy(),Kt=ge(Ee);bm(Kt,hs(()=>r(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Ne,et)=>{var zt=qe(),qt=ge(zt);{var Et=_i=>{$m(_i,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return q},get progress(){return r(X)},get duration(){return s()},get isInteractive(){return j}})},$i=_i=>{var ct=ty(),Vi=_(ct,!0);h(ct),B(()=>_e(Vi,r(De))),$(_i,ct)};V(qt,_i=>{E.features.timelinePreview&&q&&!p()?_i(Et):_i($i,!1)})}$(Ne,zt)},$$slots:{default:!0}}));var Se=P(Kt,2);let te=g(()=>y().has("TIMELINE"));Ca(Se,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(ze)},get loadedProgress(){return u()},get filledProgress(){return r(he)},get handleProgress(){return r(he)},get videoEpisodes(){return r(N)},onPointerDown:bt,onHandleMove:lt,onPointerMove:Ut,onPointerUp:wt,onPointerEnter:Je,onPointerLeave:Xt,get onMouseEnter(){return Pe},get onMouseLeave(){return se},get onDisabledClick(){return be},get isInteractive(){return j},get disabled(){return r(te)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:wt,get ref(){return S()},set ref(Ne){S(Ne)}}),$(t,Ee),z(),o()}var ny={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 Wd(t,e){U(e,!0),K(t,ny);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Te(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>$n(l())),m=g(()=>$n(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(m),duration:r(f)})),w=g(()=>Math.round(r(u)*100));Ca(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var ry=A("<div><!></div>"),sy=A("<div></div>"),ay={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ta(t,e){U(e,!0),K(t,ay);let[i,o]=He(),n=()=>C(S,"$isLive$",i),s=()=>C(R,"$isMobile",i),l=()=>C(I,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$adDuration",i),p=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),u=v(e,"needPadding",3,!0),y=v(e,"ref",15,void 0),w=Te(),x=kt(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,R=w.ui.isMobile,I=le(!1),M=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var k=qe(),G=ge(k);{var H=q=>{var Y=ry();let j;var ue=_(Y);{var re=be=>{Wd(be,{get position(){return d()},get duration(){return a()}})},fe=be=>{ym(be,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(M)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(me){y(me)}})};V(ue,be=>{p()?be(re):be(fe,!1)})}h(Y),gs(Y,()=>vl(f()&&x.features.usePerformanceFix,I,x.disableInvisibleComponentsTimeout)),B(be=>j=ie(Y,1,"timeline svelte-41cp6d",null,j,be),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(q,Y)},F=q=>{var Y=sy();let j;B(ue=>j=ie(Y,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),$(q,Y)};V(G,q=>{r(M)?q(H):q(F,!1)})}$(t,k),z(),o()}var X1=require("@vkontakte/videoplayer-shared/es2018");var ly=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var dy=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=dy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var cy=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),uy=A('<span class="text svelte-1yhs2ga"> </span>'),py=A('<span class="text count svelte-1yhs2ga"> </span>'),fy=A("<!> <!>",1),my={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Kd(t,e){var re,fe,be;U(e,!0),K(t,my);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Te(),u=(fe=(re=m.callbacks)==null?void 0:re.onEpisodeChanged)!=null?fe:X1.noop,y=!!((be=m.callbacks)!=null&&be.onEpisodeClicked),w=m.ui.currentGridType$,x=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,T=m.ui.isMobile,E=m.ui.t,R=Z(void 0),I=me=>{var se,Le,ae;if(!!((se=m.callbacks)!=null&&se.onEpisodeClicked)){let N=Ds(me);x.set(N),S.set(!0),(ae=(Le=m.callbacks)==null?void 0:Le.onEpisodeClicked)==null||ae.call(Le,N)}},M=Z(null),k=g(()=>a()/p());Qe(()=>{var Pe;let me=Au(r(k),p(),f());me?((Pe=r(M))==null?void 0:Pe.time)!==me.time&&(u(me),O(M,me,!0)):O(M,null)});let G=g(()=>{var me;return((me=r(M))==null?void 0:me.text)||""}),H=g(()=>Xi(n(),"xl")?"FULL":Xi(n(),"m")&&K1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(G)}`),q=async(me,Pe,se)=>{await Co(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&Pe&&!se&&xt(()=>{x.set(!1),me.focus()})};Qe(()=>{q(r(R),s(),l())});var Y=qe(),j=ge(Y);{var ue=me=>{let Pe=g(()=>d()?"px-0":""),se=g(()=>!y);Dt(me,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=r(Pe))!=null?Le:""}`},testId:"btn-episodes",click:I,get disabled(){return r(se)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(R)},set ref(Le){O(R,Le,!0)},children:(Le,ae)=>{var N=qe(),Be=ge(N);{var ce=oe=>{var ve=cy(),De=ge(ve),pe=_(De,!0);h(De);var st=P(De,2),X=_(st);wm(X,{}),h(st),B(()=>_e(pe,r(G))),$(oe,ve)},he=oe=>{var ve=fy(),De=ge(ve);xm(De,{});var pe=P(De,2);{var st=Ae=>{var ke=uy(),ze=_(ke,!0);h(ke),B(()=>_e(ze,r(G))),$(Ae,ke)},X=(Ae,ke)=>{{var ze=rt=>{var bt=py(),lt=_(bt,!0);h(bt),B(()=>_e(lt,f().length)),$(rt,bt)};V(Ae,rt=>{r(H)==="COUNT"&&rt(ze)},ke)}};V(pe,Ae=>{r(H)==="FULL"?Ae(st):Ae(X,!1)})}$(oe,ve)};V(Be,oe=>{d()?oe(ce):oe(he,!1)})}$(Le,N)},$$slots:{default:!0}})};V(j,me=>{r(M)&&me(ue)})}$(t,Y),z(),o()}var Bm=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),pt=require("@vkontakte/videoplayer-shared/es2018"),ls=require("@vkontakte/videoplayer-statistics/es2018");var je=require("@vkontakte/videoplayer-shared/es2018"),Ji=require("@vkontakte/videoplayer-shared/es2018");var J1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var vy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Mu=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 Ji.Subject,loadStarted$:new Ji.Subject,loadEnded$:new Ji.Subject,loadError$:new Ji.Subject,ready$:new Ji.Subject,slotRequested$:new Ji.Subject,started$:new Ji.Subject,timeRemained$:new Ji.Subject,paused$:new Ji.Subject,resumed$:new Ji.Subject,ended$:new Ji.Subject,empty$:new Ji.Subject,skipped$:new Ji.Subject,clicked$:new Ji.Subject,closed$:new Ji.Subject,error$:new Ji.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,Ji.addScript)(vy,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?ye(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var R;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:m}=e,u,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=(0,je.detectEmbed)(),S=(R=w?x:window.location.href)!=null?R:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:m,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:J1(i,o),puid11:n?0:1}:{}};m||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(E),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,p,f,m,u;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,Ji.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var e0=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 Sm=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 s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new Lu,{startTime:f,endTime:m}=p.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let p=new Cm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Lu=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Cm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,m)=>{let u=l.indexOf(m,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new Lu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},t0=Sm;var Ru=require("@vkontakte/videoplayer-shared/es2018"),Ea,Ii,Tm=0,Em=!1,i0="",o0=(t,e=0,i=0)=>t<e&&t<i,Vu=(t,e=0,i=0)=>t>=e&&t<=i,gy=(t,e=0,i=0)=>t>e&&t>i,n0=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>Vu(t,p,f));let s=t>=Tm,l=t<Tm;if(Tm=t,l&&(Em=!1),(0,Ru.isNonNullable)(Ea)&&Vu(t,Ea.startTime,Ea.endTime)&&i0===e.value)return Ea;if(!(0,Ru.isNonNullable)(Ii)&&(n!=null&&n.length)&&!Em){Ii=n.find(({startTime:p,endTime:f})=>Vu(t,p,f)||s&&o0(t,p,f)),Ea=void 0,!(0,Ru.isNonNullable)(Ii)&&n[n.length-1].endTime<t&&(Em=!0);return}else{if(Vu(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return Ea=Ii,Ii=void 0,i0=e.value,Ea;(s&&gy(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||l&&o0(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var Nu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},hy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},qd=t=>{var e,i;return(i=(e=Nu[t])!=null?e:Nu[hy[t]])!=null?i:void 0};var r0=require("@vkontakte/videoplayer-shared/es2018"),cB=require("@vkontakte/videoplayer-statistics/es2018"),Ou=class{constructor(e,i,o,n=new r0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Qd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qd||{});var as=t=>t!=null?t:0,bs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(as(i==null?void 0:i.top)-as(o==null?void 0:o.top)),left:Math.round(as(i==null?void 0:i.left)-as(o==null?void 0:o.left)),bottom:Math.round(as(i==null?void 0:i.bottom)-as(o==null?void 0:o.top)),right:Math.round(as(i==null?void 0:i.right)-as(o==null?void 0:o.left))}},wl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:as(e==null?void 0:e.width),height:as(e==null?void 0:e.height)}};var Bu="off";var s0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:m,uiConfig:u,coreConfig:y,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:R,stopPlayer:I,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,additionalButtons:G,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:q,playNextVideo:Y,looped:j=!1,statistics:ue,saveRate:re,internalsExposure:fe,playerView:be,playerId:me})=>{var Zv,Xv,Jv;let Pe={...y,configName:[...(Zv=y.configName)!=null?Zv:[],"ui"],isAudioDisabled:l,live:{...(Xv=y.live)!=null?Xv:{},isLiveCatchUpMode:!!n}},se=u,Le=pt.TracerFactory.createRootTracer(se.features.tracer),ae=Le.createComponentTracer("Store"),N=w||new fi.Player(Pe,Le,{playerId:me});fe==null||fe.expose({corePlayer:N});let Be=new pt.Logger,ce=new Mu(Be,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal,usePuid:se.ads.usePuid}),he=va.getInstance(),oe=p==null?void 0:p.pictureInPictureApi,ve=p==null?void 0:p.annotationsApi,De=p==null?void 0:p.slotsApi,pe=Be.createComponentLog("Store"),st,X,Ae={},ke=new du,ze=new pt.Subscription,rt=ue&&ue.oneStat?ei(ue.oneStat.vsid$):yr(void 0),bt=le(Ns()),lt=le(!1),wt=(Jv=oe==null?void 0:oe.info.isActive$)!=null?Jv:new pt.ValueSubject(!1),Je=le(0),Ut=le(!1),Xt=le(!1),Ht=le([]),jt=(0,pt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Ht.update(b=>[...b,c])),Ee=yr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Kt=async c=>{var ee;let b=Object.values(pt.InterfaceLanguage).includes(c);if(se.downloadVKLanguages&&(b&&se.updateBuiltinLanguages||!Af(c))){let Ce;try{Ce=await(0,pt.loadVKLangPack)(c,Hh,Fh)}catch(ot){(ee=ue==null?void 0:ue.oneStat)==null||ee.logError({errorType:"VKLangPack",fatal:!1}),he==null||he.report(ot,{errorType:"VKLangPack",fatal:!1})}Ce&&(Pf({language:c,pack:Ce,fallback:se.defaultLanguage}),Se.set(c))}Af(c)&&Se.set(c)},Se=le(t),te=le(e);Kt(t);let ne=(c,b)=>{let L=ye(Se);return Mf(L,c,b,se.defaultLanguage)},Ve=le("thumb");Ve.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&We()});let Fe=(()=>{let c=wi([Ee,Ve],([b,L])=>b?"crashed":L);return{...c,is:b=>ye(c)===b}})(),Re=le(),We=()=>{Re.set({muted:N.info.muted$.getValue()})},Ne=(()=>{let c=le(new Set(x));return{...c,add:b=>{c.update(L=>new Set([...L].concat(b)))},remove:b=>{c.update(L=>{let ee=[...L];return new Set(Array.isArray(b)?ee.filter(Ce=>!b.includes(Ce)):ee.filter(Ce=>Ce!==b))})},includes:b=>{let L=ye(c);return Array.isArray(b)?b.every(ee=>L.has(ee)):L.has(b)}}})(),et=le({width:0,height:0});ae.log("create store"),pe({message:"create store"});let zt=c=>{let b=c.container,L=()=>{Yt=new MutationObserver(Ce=>{let{removedNodes:ot}=Ce[0];ot.length&&b.append(N.experimental.element$.getValue())}),Yt.observe(b,{childList:!0})},ee=N.experimental.element$.getValue();if(ee)b.append(ee),L();else{let Ce=N.experimental.element$.pipe((0,pt.filter)(ot=>!!ot),(0,pt.once)()).subscribe(ot=>{b.append(ot),L()});ze.add(Ce)}},qt=c=>{pe({message:`init video, config: ${JSON.stringify(c)}`}),S?zt(c):(pt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,pt.now)()]}),N.initVideo(c)),ae.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),st=c},Et=new pt.Subject,$i=c=>Et.next(c),_i=new pt.Subject,ct=new pt.Subject,Vi=new pt.Subject,Yt=null,dt={actionRewind$:_i,actionSeek$:ct,inPiP$:wt,inFullscreen$:new pt.Observable(c=>bt.subscribe(b=>c.next(b))),actionSetSubtitle$:Vi,nextMovie$:Et},si={actionSeek$:ct,playerSize$:new pt.Observable(c=>et.subscribe(b=>c.next(b)))};if(ue){let{oneStat:c,thinOneStat:b,mediascopePixel:L,statSubscription:ee}=ue;c&&(S||ee.add(c.attachTo(N)),ee.add(c.attachToUi(dt)),ee.add(c.attachToAds(ce.events)),c.authorize(s).catch(Ce=>{pe({message:`onestat auth error ${String(Ce)}`})}),L&&L.attachTo(N)),b&&(ee.add(b.attachTo(N,ce.events)),ee.add(b.attachToUi(si)),ee.add(b.attachToAds(ce.events)),b.authorize(s))}if(he){let c=new pt.Subscription,b=(L,ee)=>c.add(L.subscribe(ee));if(b(N.events.managedError$,L=>{he.logIError(L)}),b(N.events.fatalError$,L=>{he.logIError(L,!0)}),ue){let{oneStat:L}=ue;L&&b(L.experimental.error$,ee=>{he.logIError(ee)})}he.sentrySubscription.add(c)}let Ri=()=>{if(fi.clientChecker.device.isIOS&&X)try{C1(X)}catch(c){pe({message:`exitIosSafariFullscreen failed: ${c}`})}};ze.add(N.experimental.element$.subscribe(c=>{c&&(X=c,c.classList.add("player-media"),ha(oe)&&oe.updateVideoElement(),S&&c.setAttribute("pip","false"),be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Ri(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var b,L;ha(oe)&&await(oe==null?void 0:oe.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(L=Ae.onStarted)==null||L.call(Ae,c)})).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,b)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var L;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,b,c),ce.setPosition(c,b))})).add(N.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Ut.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Xt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Ne.add(bd),Ne.add("PLAY_BUTTON")):Ne.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(ce.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(ce.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(ce.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(ce.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(ce.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(ce.events.started$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:L.call(b,c)})).add(ce.events.timeRemained$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:L.call(b,c)})).add(ce.events.ended$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:L.call(b,c)})).add(ce.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(ce.events.clicked$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:L.call(b,c)})).add(ce.events.closed$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:L.call(b,c)})).add(ce.events.error$.subscribe(c=>{var b,L;return(L=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:L.call(b,c)})).add(ce.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(ce.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Mt=new pt.Subscription,ri=()=>{var ot,Nt,Ot;let{debugLog:c}=se,b,L="#9df7b7",ee="#efd169";if(c&&c!==!0){let{colors:Ft}=c;b=c.tag,L=(ot=Ft==null?void 0:Ft[0])!=null?ot:L,ee=(Ot=(Nt=Ft==null?void 0:Ft[1])!=null?Nt:Ft==null?void 0:Ft[0])!=null?Ot:ee}let Ce=b?`: ${b}`:"";Mt.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ce} `,`background:${L};`,`sdk component: ${Ft.component}`,Ft.message)})).add(Be.log$.subscribe(Ft=>{console.debug(`%c ui${Ce} `,`background:${ee};`,`ui component: ${Ft.component}.`,Ft.message)}))},rn=()=>{Mt.unsubscribe()},Lt=(c,b)=>{ae.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},ft=(c=!1)=>{ae.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},di=(c,b,L)=>{ae.log("move camera focus px",{xpx:c,ypx:b,dt:L}),N.moveCameraFocusPX(c,b,L)},ko=()=>{N.holdCamera()},qi=()=>{N.releaseCamera()},ti=yr(N.info.position$.getValue(),c=>{let b,L,ee=()=>{let Ce=N.info.playbackState$.getValue(),ot=N.info.isLive$.getValue(),Nt=N.info.duration$.getValue(),Ot=N.info.position$.getValue();if(Ce&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Ce)){let Ft=ot?Ot-Nt:N.getExactTime();Ft!==L&&c(Ft),L=Ft}b=requestAnimationFrame(ee)};return ee(),()=>cancelAnimationFrame(b)}),Ko=ei(N.info.playbackState$),Dn=ei(N.info.currentBuffer$),D=ei(N.info.isEnded$),Ke=ei(N.info.isLive$),ut=se.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):yr(!1),Qt=ei(N.info.liveBufferTime$),Pt=ei(N.info.volume$),At=ei(N.info.muted$),ci=cu(N.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),qo=cu(N.info.predefinedQualityLimitType$.pipe((0,pt.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),ai=ei(N.info.autoQualityLimitingAvailable$),St=ei(N.info.availableQualities$),to=ei(N.info.availableQualitiesFps$),Qi=ei(N.info.chromecastState$),Hn=ei(N.info.chromecastDeviceName$),Ni=ei(N.info.currentFormat$),vo=ei(N.info.throughputEstimation$),go=ei(N.info.videoBitrate$),xn=ei(N.info.intrinsicVideoSize$),sn=ei(N.info.duration$),ki=ei(N.info.isAudioAvailable$),Gi=null,an=N.info.isBuffering$,Po=yr(an.getValue(),c=>{let b=an.subscribe(L=>{L&&Gi===null?Gi=window.setTimeout(()=>{c(an.getValue()),Gi=null},se.loaderDelay):c(L)});return()=>{b.unsubscribe(),Gi&&clearTimeout(Gi)}}),ln=()=>{Gi&&clearTimeout(Gi),Gi=null},dn=wi([sn,Ke],([c,b])=>b?-c:c),wr=wi([Ko],([c])=>c===fi.PlaybackState.PLAYING),Fn=ei(N.info.atLiveEdge$),Sr=ei(N.info.atLiveDurationEdge$),lr=ei(N.info.position$),Kr=wi([lr,sn],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),cn=wi([Qi],([c])=>c===fi.ChromecastState.CONNECTED),Un=ei(N.info.availableVideoStreams$),dr=se.features.audioLanguages?ei(N.info.availableAudioStreams$):yr([]),wn=ei(N.info.currentVideoStream$),lo=ei(N.info.currentAudioStream$),zn=c=>{c.language&&Tf(c.language),N.setVideoStream(c)},Cr=(c,b)=>{N.setAudioStream(c),$t(b)&&(c.language&&Tf(c.language),se.features.userVideoPrefs&&i&&kf(se.userSalt,String(i),{audioTrackId:c.id}))},Sn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ee=>"isDefault"in ee&&ee.isDefault)),se.features.userVideoPrefs&&i){let ee=vu(se.userSalt,String(i));if(ee!=null&&ee.audioTrackId){let Ce=c.find(ot=>ot.id===ee.audioTrackId);b=Ce!=null?Ce:b}}let L=p1();return L&&(b!=null||(b=c.find(({language:ee})=>L===ee))),b!=null||(b=c.at(0)),b},cr=!1;ze.add(N.info.availableAudioStreams$.subscribe(c=>{if(!cr&&c.length){let b=Sn(c);b&&(N.setAudioStream(b),cr=!0)}}));let Wn=!1;ze.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Wn&&c.length){let b=Sn(c);b&&(N.setVideoStream(b),Wn=!0)}}));let Qo=le(void 0),Kn=ei(N.info.isAutoQualityEnabled$,c=>c&&Qo.set(void 0)),qr=ei(N.info.currentQuality$,()=>Qo.set(void 0)),Tr=wi([Qo,qr],([c,b])=>c!=null?c:b),ho=wi(Ni,c=>c!==fi.VideoFormat.MPEG),mt=wi([St,to,Kn,Tr,ho],([c,b,L,ee,Ce])=>{let ot=[];Ce&&ot.push({value:"auto",displayValue:ne("auto_quality_option"),selected:L});let Nt=c.filter(Ot=>!(0,pt.isInvariantQuality)(Ot));for(let Ot of Nt){let Ft=b[Ot];ot.push({value:Ot,displayValue:`${Ot}${Ft?e0(Ft):""}`,selected:L?!1:Ot===ee})}return ot}),Zt=ei(N.info.currentPlaybackRate$),Cn=wi([Zt,Fn,Sr],([c,b,L])=>{let ee=L||S?1:se.controls.playbackRateMin,Ce=b?1:se.controls.playbackRateMax,ot=se.controls.playbackRateStep,Nt=[];for(let Ot=ee;Ot<=Ce;Ot+=ot)Nt.push({value:Ot,displayValue:Ot===1?ne("playback_rate_1"):ne("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return Nt}),ji={displayValue:ne("subtitles_off"),value:Bu,language:""},Oi=le({...ji}),Go=se.features.subtitles?ei(N.info.availableTextTracks$):yr([]),Tn=i1(),co=wi([Go,Oi],([c,b],L)=>{var ot;let ee=[],Ce=c.find(({id:Nt})=>Nt===b.value);if(Ce!=null&&Ce.url){let[,Nt]=(ot=Tn.find(Ce.url))!=null?ot:[];if(Nt){L(Nt);return}ke.download(Ce.url).then(Ot=>{if(!Ot||ke.isDestroyed())return;let Ft=new t0,Ts=Ce.language;if(Ts){let q0=!!Ce.isAuto,Q0=Ft.parse(Ot,Ts);ee.push({lang:Ts,subtitles:Q0,isAuto:q0,id:Ce.id})}Tn.add(Ce.url,ee),ye(Oi).value===b.value&&L(ee)}).catch(Ot=>{var Ft;(Ft=ue==null?void 0:ue.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),he==null||he.report(Ot,{errorType:"Subtitles download",fatal:!1})})}L(ee)}),un=wi([Zt,wr,Oi],([c,b,L],ee)=>{let Nt;if(N.info.isLive$.getValue()&&b&&L.value!==ji.value){let Ft=()=>{let Ts=1e3/(3*c);Nt=setTimeout(Ft,Ts),ee(Date.now())};return Ft(),()=>clearTimeout(Nt)}}),jo=wi([Go,Oi],([c,b])=>{if(!c.length)return[];let L=[];for(let{language:ee,isAuto:Ce,id:ot}of c){let Nt=ee&&qd(ee);ee&&Nt&&L.push({displayValue:Ce?ne("subtitles_auto",{language:Nt}):Nt,value:ot,selected:(b==null?void 0:b.value)===ot,isAuto:Ce,language:ee})}return L.length?(L.unshift({...ji,selected:(b==null?void 0:b.value)===ji.value}),L):[]}),_o={available:[],prev:[]},Er=()=>{var b,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(b=c==null?void 0:c())!=null?b:X==null?void 0:X.currentTime)!=null?L:0},Ir=wi([ti,Oi,co,un],([c,b,L,ee])=>{var ot;let Ce=N.info.isLive$.getValue();if(Ce&&_o.prev!==L){let Nt=L.find(({id:Ft})=>Ft===b.value),Ot=_o.prev.find(({id:Ft})=>Ft===b.value);if(Nt){let Ft={...Nt,subtitles:[...(ot=Ot==null?void 0:Ot.subtitles)!=null?ot:[],...Nt.subtitles]};_o.available=[Ft],_o.prev=L}}if(b&&b.value!==ji.value){let Nt=Ce?Er():c,Ot=Ce?_o.available:L;return n0(Nt,b,Ot,Ce)}}),Qr=wi([Ir],([c])=>c!=null&&c.texts?c.texts:[]);ze.add(Oi.subscribe(c=>{var b,L;if(c.value===ji.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ee=Object.entries(Nu).find(([Ce,ot])=>ot===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ee?ee[0]:"",c.value)}}));let ds=le(!0),En=wi([Dn,dn,lr,Qt],([c,b,L,ee])=>{var Ot;let Ce=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!ee)return Ce/b;let Nt=-L+ee-b;return(Ce-Nt)/b}),ur=ei(N.info.availableSources$),kr=wi([ur],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),bo=()=>{var L,ee,Ce;let c=Object.keys(((ee=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ee[fi.VideoFormat.MPEG])||{}),b=(0,pt.getHighestQuality)(c)||pt.VideoQuality.Q_144P;return(Ce=st.sources[fi.VideoFormat.MPEG])==null?void 0:Ce[b]},ii=()=>{var b;let c=bo();if(c)ae.log("download video",{url:c}),Jh(c,((b=st==null?void 0:st.meta)==null?void 0:b.title)||"video");else{let L="There is no URL for download video";ae.log("download video",{message:L}),pe({message:L})}},pn=()=>{pe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?io(vt(),!1):Bi(!c,!1)},fn=()=>{var c;if(Vt.ui.settingsMenu.visible$.set(!1),!ye(Vt.ui.settingsSubMenu.visible$)){let b=ye(Vt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ee=wl(b),Ce={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ee,position:Ce,name:"settings"})}}ae.log("close settings menu")},In=async(c,b=()=>Promise.resolve())=>{var Ce;Vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Vt.ui.settingsMenu.visible$.set(!0),await b();let L=ye(Vt.ui.settingsMenu.ref$),ee=Fa();if((Ce=a==null?void 0:a.uiInfo)!=null&&Ce.onSettingsMenu&&L&&ee){let Nt=wl(L),Ot=bs(L,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ot,name:"settings"})}ae.log("open settings menu",{wasOpenedByKeyboard:c})},Pr=(c,b=!1)=>{var ot;Vt.ui.settingsSubMenu.visible$.set(!1);let L=ye(Vt.ui.settingsMenu.ref$),ee=Fa(),Ce=ye(Vt.ui.settingsMenu.visible$);if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&L&&ee)if(Ce&&!b){let Ot=wl(L),Ft=bs(L,ee);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Ft,name:"settings"})}else{let Ot=wl(c),Ft={top:0,left:0,bottom:0,right:0},Ts=ye(Vt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Ft,name:Ts})}ae.log("close settings sub menu")},Ar=(c,b)=>{var ee;Vt.ui.settingsSubMenu.visible$.set(!0),Vt.ui.settingsSubMenu.ref$.set(b),Vt.ui.settingsSubMenu.name$.set(c);let L=Fa();if((ee=a==null?void 0:a.uiInfo)!=null&&ee.onSettingsMenu&&b&&L){let ot=wl(b),Nt=bs(b,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Nt})}ae.log("open settings sub menu",{name:c})},vt=()=>{var b;let c=Math.max(se.volumeMinRestore,(b=uu())!=null?b:0);return c===0?se.volumeDefault:c},$t=c=>{let b=se.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},io=(c,b)=>{let L=c===0?vt():c,ee=N.info.muted$.getValue();pe({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Ce=!l||Fe.is("ads");ee&&c>0&&Ce&&(ee=!1,$t(b)&&Sf(!1)),N.setVolume(c,ee),ce.setVolume(c),$t(b)&&bf(L)},Bi=(c,b)=>{let L=N.info.volume$.getValue();pe({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ee=Fe.is("ads");if(N.setMuted(c,ee),ce.setVolume(c?0:L),$t(b)&&(!ee||!c)&&Sf(c),!c&&L===0){let Ce=vt();N.setVolume(Ce),$t(b)&&bf(Ce),ce.setVolume(Ce)}},uo=le(!1),po=c=>{var b,L;ae.log("set looped",{isLooped:c}),uo.set(c),N.setLooped(c),(L=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||L.call(b,c)};po(j);let Yo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},oo=(c,b=!1)=>{var L;pe({message:`set autoplayNextEnabled, value: ${c}`}),ae.log("set autoplay next enabled",{autoplayNextEnabled:c}),Vt.ui.autoplayNextEnabled$.set(c),v1(c),b&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},qn=c=>{pe({message:`set timerNextVideoRunning, value: ${c}`}),ae.log("set timer next video running",{timerNextVideoRunning:c}),Vt.ui.timerNextVideoRunning$.set(c)},Ao=(c=!0)=>{var ee;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(ee=a==null?void 0:a.onPrevVideoClick)==null?void 0:ee.call(a)}catch(Ce){pe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Mr("prev")||q()},pr=(c=!0)=>{var ee;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(ee=a==null?void 0:a.onNextVideoClick)==null?void 0:ee.call(a)}catch(Ce){pe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Mr("next")||Y()},Mr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:L,playbackStatusShow:ee}}=se;return L&&ee&&!b?(Vt.ui.aboutToGoNextVideo.set(c),Vt.ui.userActionsDisabled.set(!0),!0):!1},Gr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Qn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Gn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},fr=()=>{N.prepare()},it=()=>{(0,pt.assertNonNullable)(Vt);let c=ye(Vt.ui.controls.disabledControls$),b=ye(Vt.playerPhase),L={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(pe({message:"toggle play"}),b==="ads"){L.action="play",ae.log("toggle adman play",L),ce.togglePlay();return}let ee=()=>{var ot;pe({message:"toggle play, call player.play"}),L.action="play",N.play(),(ot=a==null?void 0:a.onPlay)==null||ot.call(a)},Ce=()=>{var ot;pe({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(ot=a==null?void 0:a.onPause)==null||ot.call(a)};if(N.info.isEnded$.getValue()){if(pe({message:"toggle play, video ended, seek to 0"}),_i.next(),ct.next(ls.SeekAction.REWIND),S){R==null||R();return}N.seekTime(0),ee()}else N.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?ee():Ce();ae.log("toggle play",L)},Tt=(c,{changeReason:b="default",appliesTo:L="to-video"}={},ee)=>{pe({message:`set quality, quality: ${c}`}),ae.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ce}=se.features;pu(),c!=="auto"?(Ce?(fu({type:"exact_quality",quality:c,videoId:i},L),N.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):$f(i,c),Qo.set(c),N.setQuality(c)):Ce&&b==="default"&&(no("auto_quality",L,ee),ye(ci)&&mi(!1,void 0,ee),ye(qo)&&Di(!1,void 0,ee))},mi=(c,b="as-default",L)=>{pe({message:`set trafficSavingEnabled, value: ${c}`}),ae.log("set traffic saving enabled",{trafficSavingEnabled:c});let ee=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?($o(ee,b,L),yd(!1)):(N.setPredefinedQualityLimits(ee),$t(L)&&yd(c))},Di=(c,b="as-default",L)=>{pe({message:`set highQualityEnabled, value: ${c}`}),ae.log("set high quality enabled",{highQualityEnabled:c}),$o(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,b,L)},$o=(c,b,L)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(ye(ai)&&!ye(Kn)&&Tt("auto",{appliesTo:b,changeReason:"limit-changed"},L),no(c,b,L)),N.setPredefinedQualityLimits(c)},no=(c,b,L)=>{$t(L)&&(fu({type:c,videoId:i},b),b==="as-default"&&fu({type:c,videoId:i},"to-video"))},Pi=(c,b=!0)=>{ae.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),se.features.saveRate&&re&&!N.info.isLive$.getValue()&&b&&f1(c)},Lo=()=>{let c=ye(Cn),b=c.findIndex(({selected:ee})=>ee);if(b===c.length-1)return;let L=c[b+1];Pi(L.value)},jn=()=>{let c=ye(Cn),b=c.findIndex(({selected:ee})=>ee);if(b===0)return;let L=c[b-1];Pi(L.value)},mn=(c={...ji,selected:!1},b)=>{ae.log("set subtitles",{...c}),c.value!==ji.value&&Vi.next(c.isAuto?c.value+"_auto":c.value),Oi.set(c),$t(b)&&(If(c.value===ji.value?void 0:c.language),se.features.userVideoPrefs&&i&&kf(se.userSalt,String(i),{subtitleTrackId:c.value===ji.value?void 0:c.value}))},yo=c=>{ae.log("toggle subtitles");let b=ye(Oi);(b==null?void 0:b.value)===ji.value?mr(c):kn(c)},Vo=(c,b)=>{ae.log("change subtitle",{enabled:c}),c?mr(!0,b):kn(!0)},mr=(c,b)=>{ae.log("subtitle on");let L=ye(jo),ee=ye(Se),Ce;b&&(Ce=L.find(ot=>ot.value===b)),Ce!=null||(Ce=L.filter(ot=>ot.value!==ji.value).find(ot=>ot.value===ee)||L[1]),mn(Ce,c)},kn=c=>{ae.log("subtitle off"),mn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var L;function b(){let ee=[];for(let{language:Ce,isAuto:ot,id:Nt}of c){let Ot=Ce&&qd(Ce);Ce&&Ot&&ee.push({id:Nt,language:Ce,title:ot?ne("subtitles_auto",{language:Ot}):Ot})}return ee}(L=a==null?void 0:a.onAvailableSubtitlesChanged)==null||L.call(a,b())});let Yn=le(!0),vr=c=>{Yn.set(c)},Ro=(c,b,L=!0)=>{var ee;if(pe({message:`seek to time, time: ${c}`}),ae.log("seek to time",{time:c,action:b,forcePrecise:L}),ct.next(b),N.info.isLive$.getValue()){let Ce=N.info.duration$.getValue(),ot=Math.min(0,Ce+c);N.seekTime(ot,L)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(pe({message:"seek after ended, call callbacks.onPlay"}),(ee=a==null?void 0:a.onPlay)==null||ee.call(a)),N.seekTime(Cs(c),L)}},Lr=c=>{pe({message:`seek to episode start time: ${c}`}),ae.log("seek to episode start time",{time:c}),Ro(c,ls.SeekAction.EPISODE,!0)},jr=(c,b)=>{pe({message:`seek to percent, percent: ${c}`}),ae.log("seek to percent",{percent:c,action:b});let L=ye(dn)*c;Ro(L,b,!1)},Zn=c=>{pe({message:`seek external, time: ${c}`}),ae.log("seek external",{time:c}),ct.next(ls.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},gr=c=>{var ee,Ce;let b=(ee=c.max)!=null?ee:"none",L=(Ce=c.min)!=null?Ce:"none";pe({message:`set auto quality limitation. Max: ${b}. Min: ${L}`}),ae.log("set auto quality limits",{max:b,min:L}),N.setAutoQualityLimits(c)},Ye=c=>{pe({message:`seek external to episode start time: ${c}`}),ae.log("seek external to episode start time",{time:c}),Ro(c,ls.SeekAction.EPISODE,!0)},Jt=c=>{pe({message:`set playback rate to: ${c}`}),ae.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},vi=le(void 0),yi=le(!1),No=c=>{pe({message:`start scrubbing, progress: ${c}`}),ae.log("start scrubbing",{progress:c}),yi.set(!0),Yr(c)},Yr=c=>{vi.set(c)},Oo,Pn,Xn=()=>{vi.set(void 0),yi.set(!1)},Zr=()=>{clearTimeout(Pn),clearTimeout(Oo),Oo=window.setTimeout(()=>{Xn()},500),X==null||X.removeEventListener("seeked",Zr)},J=c=>{pe({message:`complete scrubbing, progress: ${c}`}),ae.log("complete scrubbing",{progress:c}),jr(c,ls.SeekAction.SLIDER),ye(Vt.ui.isMobile)&&ye(Vt.state.currentFormat$)===fi.VideoFormat.HLS?(X==null||X.addEventListener("seeked",Zr),Pn=window.setTimeout(()=>{Zr()},300)):Xn()},Xe=wi([ti,dn,vi],([c,b,L],ee)=>{ee((0,pt.isNonNullable)(L)?L*b:c)}),Wt=le(!1),pi=()=>{Wt.set(!0)},Hi=()=>{Wt.set(!1)},Fi=wi([et],([{width:c}],b)=>{let L=q1(c);b(L)}),Si=le(!1),An=G.filter(c=>e1(c)),Ci=wi([Fi,Si],([c,b])=>b?An.filter(L=>!L.hideOnMobile):An.filter(L=>{var ee;return!((ee=L.hideOnDesktopGridTypes)!=null&&ee.includes(c))})),li=le(G.filter(c=>t1(c))),Zo=wi([li,Fi],([c,b])=>c.filter(L=>{var ee;return!((ee=L.hideOnDesktopGridTypes)!=null&&ee.includes(b))})),hr=wi([Zo,Ci],([c,b])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?b.map((L,ee)=>{var Ce;return{id:ee,weight:ee,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Ce=L.ariaLabel)!=null?Ce:L.tooltip,tooltipText:L.tooltip}}):[]]),xo=le(H),wo=wi([xo],([c])=>se.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),Qs=(c,b)=>{let L=ye(li).map(ee=>ee.id!==c?ee:{...ee,...b});li.set(L)},yt=c=>{let b=ye(li);if(b.some(L=>L.id===c.id)){pe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),li.set(b)},_t=c=>{let b=ye(li);if(!b.some(L=>L.id===c)){pe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),li.set(b)},fo=c=>{ct.next(ls.SeekAction.LIVE),pe({message:"live switch to low latency "+c}),ae.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Xo=(c,b)=>{let L=ye(xo).map(ee=>ee.id!==c?ee:{...ee,...b});xo.set(L)},Yi=c=>{let b=ye(xo);if(b.some(L=>L.id===c.id)){pe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),xo.set(b)},ui=c=>{let b=ye(xo);if(!b.some(L=>L.id===c)){pe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),xo.set(b)},gi=le(F),Ss=wi([gi],([c])=>se.features.additionalContextMenuItems?c:[]),Bl=(c,b)=>{let L=ye(gi).map(ee=>ee.id!==c?ee:{...ee,...b});gi.set(L)},yc=c=>{let b=ye(gi);if(b.some(L=>L.id===c.id)){pe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),gi.set(b)},cp=c=>{let b=ye(gi);if(!b.some(L=>L.id===c)){pe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(L=>L.id!==c),gi.set(b)},xc=wi([Si,Ee],([c,b],L)=>{L(c&&b)}),up=()=>{ct.next(ls.SeekAction.LIVE),pe({message:"switch to active live"}),ae.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Vt.actions.internal.togglePlay()},wc=()=>{ae.log("skip adman"),ce.skip()},pp=(c=!0)=>{var ee;(0,pt.assertNonNullable)(Vt),pe({message:`switch from ads to video, callPlay: ${c}`}),ae.log("switch from ads to video",{callPlay:c}),Ve.set("video"),c&&N.play(),l&&Bi(!0,!0);let b=(ee=ye(Re))==null?void 0:ee.muted,L=!N.info.muted$.getValue();b!==void 0&&!L&&Bi(b,!0),Re.set(void 0)},Sc=()=>{(0,pt.assertNonNullable)(Vt),pe({message:"switch from video to ads"}),ae.log("switch from video to ads"),Vt.actions.internal.pause(),Ri(),Ve.set("ads")},fp=c=>{(0,pt.assertNonNullable)(Vt);let b=c?"LiveWaitingStart":"thumb";ae.log("set live waiting start",{state:c,playerPhase:b}),Ve.set(b)},Cc=c=>{(0,pt.assertNonNullable)(Vt);let b=c?"LiveWaitingRecover":"thumb";ae.log("set live waiting recover",{state:c,playerPhase:b}),Ve.set(b)},mp=c=>{(0,pt.assertNonNullable)(Vt);let b=c?"LiveWaitingRecord":"thumb";ae.log("set live waiting record",{state:c,playerPhase:b}),Ve.set(b)},Tc=()=>((0,pt.assertNonNullable)(Vt),ae.log("get debug text data"),Zh(N,st,Vt,Le.getTraceId())),vp=()=>((0,pt.assertNonNullable)(Vt),JSON.stringify(Le.getFinishedSpans())),Ec=()=>((0,pt.assertNonNullable)(Vt),Xh(N,st,Vt)),Fa=()=>X,Ic=()=>{pe({message:"toggle chromecast"}),ae.log("toggle chromecast"),N.toggleChromecast()},kc=c=>{var L;if((0,pt.assertNonNullable)(Vt),N.info.isEnded$.getValue())return;let b=!c;if(ye(Vt.playerPhase)==="ads"){pe({message:`pause ads, internalCall: ${b}`}),ae.log("pause ads",{internalCall:b}),ce.pause();return}pe({message:`pause video, internalCall: ${b}`}),ae.log("pause video",{internalCall:b}),b&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},Dl=c=>{var L;(0,pt.assertNonNullable)(Vt);let b=!c;if(ye(Vt.playerPhase)==="ads"){pe({message:`play ads, internalCall: ${b}`}),ae.log("play ads",{internalCall:b}),ce.play();return}pe({message:`play video, internalCall: ${b}`}),ae.log("play video",{internalCall:b}),b&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},Pc=c=>{(0,pt.assertNonNullable)(Vt);let b=!c;if(ye(Vt.playerPhase)==="ads"){pe({message:"player cannot be stopped during ads via external method"});return}pe({message:`player will be stopped, internalCall: ${b}`}),I==null||I()},Hl=(c,b)=>{(0,pt.assertNonNullable)(Vt),pe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),ae.log("first start",{showAds:c,external:b}),c?Ve.set("ads"):(Ve.set("video"),b?N.play():Vt.actions.internal.togglePlay())},Fl=()=>(pe({message:"getting time codes"}),f),Ul=()=>{let c=Fl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(L=>L.time>b)},gp=c=>{let b=c;b||(b=Ul());let L=N.info.position$.getValue();ae.log("seek to next episode",{currentTime:L,...b}),b&&(pe({message:"seek to next episode"}),Ro(b.time,ls.SeekAction.EPISODE,!0))},zl=()=>{let c=Fl();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),L=c.findIndex(Ce=>Ce.time>b),ee=L===-1?c.length-2:L-2;if(!(ee<0))return c[ee]},hp=c=>{let b=c;b||(b=zl());let L=N.info.position$.getValue();ae.log("seek to prev episode",{currentTime:L,...b}),b&&(pe({message:"seek to prev episode"}),Ro(b.time,ls.SeekAction.EPISODE,!0))},_p=()=>(pe({message:"getting preview thumbs data"}),ae.log("get preview thumbs data",{...m}),m),bp=async()=>{let c=oe==null?void 0:oe.isActive(),b="none";oe!=null&&oe.isActive()?(b="exit",await(oe==null?void 0:oe.exit())):(b="request",await(oe==null?void 0:oe.request())),ae.log("toggle picture in picture",{isActive:c,action:b})},Ge=(c=-90)=>{ae.log("rotate video",{alphaDiff:c}),Je.update(b=>b+c)},oi=le([]);T==null||T.subscribe(c=>{let b=[];for(let L=0;L<c.length;L++){let{range:[ee,Ce],subjects:ot}=c[L];L===0&&ee!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ee/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!ot.length||ot.every(Nt=>Nt.isRemoved):!ot.length}),Ce!==1/0&&b.push({time:Ce/1e3,text:"",interactive:!1,completed:!0})}oi.set(b)});let Bo=le(!1);E==null||E.subscribe(c=>{c&&ye(yi)&&Xn()});let Cs=c=>{if(!S)return c;let b=ye(oi),L=ye(dn),Ce=ye(lr)/L,ot=b.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Ce);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},vn=()=>{Vt.ui.episodes.panelOpened$.set(!1)},W0=()=>{ae.log("destroy store"),clearTimeout(Pn),clearTimeout(Oo),ze.unsubscribe(),Mt.unsubscribe(),N.destroy(),ce.destroy(),ue==null||ue.destroy(),he==null||he.destroy(),jt.unsubscribe(),Yt==null||Yt.disconnect(),Yt=null,ke.destroy()},$p=le(!1),Yv=2,Ac=null,K0=c=>{if(!ye(wr))return;let b=N.info.currentPlaybackRate$.getValue();c?b!==Yv&&(Ac=b,Pi(Yv,!1),$p.set(!0)):(Ac&&Pi(Ac,!1),$p.set(!1),Ac=null)},Vt={interfaceLanguage$:Se,isCyrillicRelatedInterface$:te,initVideo:qt,videoId:i,isClip:o,playerPhase:Fe,vsid:rt,state:{positionExact$:ti,positionWithScrubbing$:Xe,duration$:dn,playbackState$:Ko,isPlaying$:wr,isLoaderVisible:Po,bufferedProgress$:En,isLive$:Ke,canChangePlaybackSpeed$:ut,isActiveLive$:Fn,isOldestAvailableLive$:Sr,isRewindableLive$:Kr,isEnded$:D,muted$:At,volume$:Pt,trafficSavingEnabled$:ci,highQualityEnabled$:qo,autoQualityLimitingAvailable$:ai,availableVideoStreams$:Un,availableAudioStreams$:dr,videoStream$:wn,audioStream$:lo,currentQuality$:Tr,isAutoQualityEnabled$:Kn,availableQualities$:mt,currentPlaybackRate$:Zt,availablePlaybackRates$:Cn,currentSubtitle$:Oi,availableTextTracks$:Go,availableSubtitlesList$:jo,currentSubtitleCaptions$:Qr,isAutoSubtitleCaptionVisible$:ds,chromecastState$:Qi,chromecastDeviceName$:Hn,chromecastConnected$:cn,currentFormat$:Ni,throughputEstimation$:vo,videoBitrate$:go,videoSize$:xn,errorLog$:Ht,crashed$:Ee,isAudioAvailable$:ki,isAudioDisabled:!!l,canDownload:se.features.download&&!!d,availableSources$:ur,hasMpegSources$:kr,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ye(oi).length,interactiveEpisodes$:oi,isInteractiveTime$:E?ei(E):le(!1),isInteractiveExpectation$:Bo,hasInteractiveBranches:M,playPrevChapterDisabledTooltip:k,looped$:uo,loadedMetadata$:Ut,isAutoQualityAvailable$:ho},ui:{t:ne,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:G.length?G.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Ne},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:bt,isFullscreenOpenedByKeyboard:lt,rotateAlpha:Je,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:et,isMobile:Si,mobileNotReportControlHidden$:xc,icon3DVideoVisible:le(!1),scrubbingInProgress:yi,volumeChangingInProgress:Wt,is3DVideo:Xt,currentGridType$:Fi,additionalButtonsDeprecated$:Ci,additionalDesktopControlPanelRightButtons$:hr,additionalSettingsMenuItems$:wo,additionalContextMenuItems$:Ss,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:Yn,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:$p},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:ve,slotsApi:De},actions:{internal:{preload:fr,firstStart:c=>Hl(c,!1),play:()=>Dl(!1),pause:()=>kc(!1),togglePlay:it,toggleMuted:pn,openSettingsMenu:In,closeSettingsMenu:fn,openSettingsSubMenu:Ar,closeSettingsSubMenu:Pr,setVolume:c=>io(c,!1),setMuted:c=>Bi(c,!1),startVolumeChanging:pi,stopVolumeChanging:Hi,setVideoStream:zn,setAudioStream:c=>Cr(c,!1),setQuality:(c,b)=>Tt(c,b,!1),setTrafficSavingEnabled:(c,b)=>mi(c,b,!1),setHighQualityEnabled:(c,b)=>Di(c,b,!1),setPlaybackRate:Pi,incrementPlaybackRate:Lo,decrementPlaybackRate:jn,setSubtitle:c=>mn(c,!1),toggleSubtitle:()=>yo(!1),togglePictureInPicture:bp,startScrubbing:No,progressScrubbing:Yr,completeScrubbing:J,toggleChromecast:Ic,switchToActiveLive:up,switchFromAdsToVideo:pp,switchFromVideoToAds:Sc,skipAd:wc,setLiveWaitingStart:fp,setLiveWaitingRecover:Cc,setLiveWaitingRecord:mp,getDebugTextData:Tc,getTraceTextData:vp,getDebugPanelData:Ec,getVideoElement:Fa,seekTime:(c,b,L)=>Ro(c,b,L),clearDelayedBufferingCheckTimeout:ln,seekEpisodeStartTime:Lr,seekToPercent:jr,getNextEpisode:Ul,seekToNextEpisode:gp,getPrevEpisode:zl,seekToPrevEpisode:hp,startLogging:ri,stopLogging:rn,startCameraManualRotation:Lt,stopCameraManualRotation:ft,moveCameraFocusPX:di,holdCamera:ko,releaseCamera:qi,getVideoEpisodes:Fl,getPreviewThumbsData:_p,downloadVideo:ii,addLanguage:Pf,setLanguage:Kt,nextMovie:$i,videoRotate:Ge,correctSeekTimeToInteractive:Cs,replayInteractive:R,setLooped:po,reportProblem:Yo,setAutoplayNextEnabled:oo,setTimerNextVideoRunning:qn,prevVideoClick:Ao,nextVideoClick:pr,nextVideoAnnouncementShow:Gr,nextVideoAnnouncementClick:Mo,nextVideoAnnouncementAuto:Qn,nextVideoAnnouncementCancel:Gn,changeDoubleForwardOn:K0},external:{firstStart:c=>Hl(c,!0),play:()=>Dl(!0),pause:()=>kc(!0),stop:()=>Pc(!0),seekTime:c=>Zn(c),seekEpisodeStartTime:c=>Ye(c),setPlaybackRate:c=>Jt(c),setAutoQualityLimits:c=>gr(c),setMuted:c=>Bi(c,!0),toggleSubtitle:()=>yo(!0),changeSubtitle:Vo,setVolume:c=>io(c,!0),returnFocusToEpisodes:vn,updateAdditionalSettingsItem:Xo,addAdditionalSettingsItem:Yi,removeAdditionalSettingsItem:ui,updateAdditionalContextItem:Bl,addAdditionalContextItem:yc,removeAdditionalContextItem:cp,updateAdditionalButton:Qs,addAdditionalButton:yt,removeAdditionalButton:_t,setLiveLowLatency:fo,hideControls:()=>vr(!1),showControls:()=>vr(!0),setQuality:c=>Tt(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>mi(c,"to-video",!0),setHighQualityEnabled:c=>Di(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>ce,getLogger:()=>Be,getPlayer:()=>N,destroy:W0};return Vt};function On(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=bs(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var _y=["disabledControls$","additionalButtons"],by=["interactiveTimeIndicator"],Cl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!_y.includes(n)){let l=o||by.includes(n);s.set(On(t,i,n,l))}}};var Du=async(t,e,i)=>{await Co(),e&&i&&(i.focus(),t.set(!1))};var $y=we('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function km(t,e){U(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Te(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=Z(void 0);Qe(()=>{r(y)&&xt(()=>{u.set(r(y))})});let w=E=>{let R=Ds(E),I=N1(r(y));m.set(I),p.set(R),a.set(!n())},x=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,R)=>{Im(E,{})},$$slots:{default:!0}}),z(),o()}var yy=t=>{t.stopPropagation()},xy=A("<div><!> <div></div> <div></div></div>"),wy={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
223
+ }`};function cm(t,e){U(e,!0),q(t,U2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===dm.ChromecastState.CONNECTED),n=g(()=>e.iconState===dm.ChromecastState.CONNECTING);var s=We(),l=ge(s);{var d=p=>{var f=H2(),v=_(f),u=_(v),y=_(u);Ce(),h(u);var w=P(u);Ce(),h(v);var x=P(v),S=_(x),T=_(S);h(S),Ce(),h(x),h(f),B(()=>{Fe(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=F2();let v;var u=_(f),y=P(_(u),5);let w;h(u),h(f),B((x,S)=>{v=ee(f,0,"svelte-8z1bf5",null,v,x),w=ee(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}$(t,s),z()}var D1=require("@vkontakte/videoplayer-shared/es2018");function Dd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,D1.noop),l=Ee().ui.t,d=g(()=>e.state===B1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ot(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{cm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var z2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),W2={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 um(t,e){q(t,W2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(S){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let v=g(()=>f(n()));var u=z2(),y=_(u);let w;var x=_(y);ye(x,()=>{var S;return(S=e.children)!=null?S:de}),h(y),ot(y,S=>O(p,S),()=>r(p)),h(u),ot(u,S=>O(a,S),()=>r(a)),B(S=>{st(u,`transform: translate(${r(v)}px, ${s()}px);`),w=ee(y,1,"tooltip svelte-5ygsa2",null,w,S),st(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var Tu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var H1=t=>!!(Math.round(Math.abs(t)/90)%2),F1=t=>Math.abs(t)/90%4===1;var K2=M('<div class="preview svelte-1wqg760"></div>'),q2=M('<div class="time svelte-1wqg760"> </div>'),Q2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),G2={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 pm(t,e){U(e,!0),q(t,G2);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),y=Ee(),w=y.ui.rotateAlpha,x=y.ui.playerSize,S=j(0),T=j(0),E=j(""),V=j(0),k=j(0),I=j(0),R=j(0),Y=g(()=>Tu(f(),v(),p())),H=g(()=>H1(n())),F=g(()=>F1(n())),W=g(ce),J=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),G=g(()=>r(J)*-1);Ke(()=>{(te=>{O(S,te.width,!0),O(T,te.height,!0)})(ue())}),Ke(()=>{(te=>{O(E,te.imgSrc,!0),O(V,te.imgWidth,!0),O(k,te.imgHeight,!0),O(I,te.imgOffsetX,!0),O(R,te.imgOffsetY,!0)})($e(f()))});function ce(){var pe;let te=a()?l.MOBILE:l.DESKTOP,{isVertical:me}=ie(),De=30;return(pe=r(Y))!=null&&pe.text&&(De+=16),(me||r(H))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),te)}function ie(){let te=e.previewThumbsData.frameWidth,me=e.previewThumbsData.frameHeight,De=me>te;return{width:te,height:me,isHorizontal:!De,isVertical:De}}function ue(){let{height:te,isHorizontal:me,isVertical:De,width:pe}=ie();return me&&(te=te/pe*r(W),pe=r(W)),De&&(pe=pe/te*r(W),te=r(W)),{width:pe,height:te}}function $e(te){let me;e.previewThumbsData.isUV?me=Math.floor(v()*te/e.previewThumbsData.frequency):me=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*te)));let De=Math.floor(me/e.previewThumbsData.countPerImage),pe=Math.floor(me%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),at=me%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(S)*Ae,ze=r(T)*Z,lt=-at*r(S),vt=-pe*r(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ie,imgHeight:ze,imgOffsetX:lt,imgOffsetY:vt}}var fe=Q2();let ke;var ne=_(fe);{var Ve=te=>{var me=K2();B(()=>st(me,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(k)}px; background-position: ${r(I)}px ${r(R)}px;
224
+ transform: rotate(${n()}deg) ${r(H)?`translate(${r(J)}px, ${r(G)}px)`:""};
225
+ `)),$(te,me)};L(ne,te=>{r(E)&&te(Ve)})}var re=P(ne,2),N=_(re);{var Be=te=>{var me=We(),De=ge(me);{var pe=Z=>{var Ae=os();B(Ie=>be(Ae,Ie),[()=>K("tooltip_episode_unfinished")]),$(Z,Ae)},at=Z=>{var Ae=os();B(()=>be(Ae,r(Y).text||"")),$(Z,Ae)};L(De,Z=>{u()&&r(Y).completed===!1?Z(pe):Z(at,!1)})}$(te,me)};L(N,te=>{r(Y)&&te(Be)})}h(re);var le=P(re,2);{var ve=te=>{var me=q2(),De=_(me,!0);h(me),B(()=>be(De,d())),$(te,me)};L(le,te=>{u()||te(ve)})}h(fe),B(te=>{ke=ee(fe,1,"timeline-preview svelte-1wqg760",null,ke,te),st(fe,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,fe),z(),o()}var j2=M('<span class="time svelte-1jr6obn"> </span>'),Y2=M("<!> <!>",1),Z2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function fm(t,e){var ae,Re,qe,Le,Ye;U(e,!0),q(t,Z2);let[i,o]=He(),n=()=>C(J,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(ie,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(H,"$isMobile",i),v=()=>C(Y,"$isActiveLive$",i),u=()=>C(V,"$bufferedProgress$",i),y=()=>C(fe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),x=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),E=kt(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,Y=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,G=T.state.isInteractive,ce=T.state.isInteractiveTime$,ie=T.state.isInteractiveExpectation$,ue=T.actions.internal.correctSeekTimeToInteractive,$e=(ae=T.callbacks)==null?void 0:ae.onDisabledTimelineClick,fe=T.ui.controls.disabledControls$,ke=(qe=(Re=T.callbacks)==null?void 0:Re.uiInfo)==null?void 0:qe.onTimelineMouseEnter,ne=(Ye=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:Ye.onTimelineMouseLeave,Ve=T.ui.t,re=E.features.interactiveResponsiveUi,N=g(()=>G?n():F),Be=g(()=>yn(s())),le=g(()=>yn(l())),ve=g(()=>l()/s()),te=g(()=>d()||a()),me=j(!1),De=j(""),pe=j(0),at=j(0),Z=j(0),Ae=g(()=>({containerWidth:r(at),translateXPx:r(pe),translateYPx:G&&W?-36:-16,active:r(me)&&w()&&!r(te)&&!re,pointer:!E.features.timelinePreview||!W||p()})),Ie=Ve("aria_timeline"),ze=g(()=>Ve("aria_timeline_value",{position:r(le),duration:r(Be)}));function lt(Oe){return!ue||!G?Oe:ue(Oe*s())/s()}function vt(Oe){T.actions.internal.startScrubbing(lt(Oe))}function gt(Oe){a()||T.actions.internal.progressScrubbing(lt(Oe))}function Ct(Oe){T.actions.internal.completeScrubbing(lt(Oe)),O(me,!1)}function Ge(Oe,et,Lt){Gt(Oe,et,Lt),O(me,!0)}function Ht(Oe,et,Lt){Gt(Oe,et,Lt),O(me,!0)}function Xt(){O(me,!1)}function Gt(Oe,et,Lt){O(Z,lt(Oe),!0),O(pe,et,!0),Lt&&O(at,Lt,!0),O(De,Wt(Oe),!0)}function Wt(Oe){let et=yn((p()?1-Oe:Oe)*s());return p()?`-${et}`:et}var oe=Y2(),Ft=ge(oe);um(Ft,hs(()=>r(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Oe,et)=>{var Lt=We(),Kt=ge(Lt);{var tt=hi=>{pm(hi,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return W},get progress(){return r(Z)},get duration(){return s()},get isInteractive(){return G}})},xi=hi=>{var it=j2(),ii=_(it,!0);h(it),B(()=>be(ii,r(De))),$(hi,it)};L(Kt,hi=>{E.features.timelinePreview&&W&&!p()?hi(tt):hi(xi,!1)})}$(Oe,Lt)},$$slots:{default:!0}}));var he=P(Ft,2);let we=g(()=>y().has("TIMELINE"));Ca(he,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ie},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(ze)},get loadedProgress(){return u()},get filledProgress(){return r(ve)},get handleProgress(){return r(ve)},get videoEpisodes(){return r(N)},onPointerDown:vt,onHandleMove:gt,onPointerMove:Ht,onPointerUp:Ct,onPointerEnter:Ge,onPointerLeave:Xt,get onMouseEnter(){return ke},get onMouseLeave(){return ne},get onDisabledClick(){return $e},get isInteractive(){return G},get disabled(){return r(we)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Ct,get ref(){return S()},set ref(Oe){S(Oe)}}),$(t,oe),z(),o()}var X2={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 Hd(t,e){U(e,!0),q(t,X2);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>yn(l())),v=g(()=>yn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(u)*100));Ca(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var J2=M("<div><!></div>"),ey=M("<div></div>"),ty={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Ta(t,e){U(e,!0),q(t,ty);let[i,o]=He(),n=()=>C(S,"$isLive$",i),s=()=>C(V,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$adDuration",i),p=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),u=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),w=Ee(),x=kt(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,V=w.ui.isMobile,k=se(!1),I=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||p()));var R=We(),Y=ge(R);{var H=W=>{var J=J2();let G;var ce=_(J);{var ie=$e=>{Hd($e,{get position(){return d()},get duration(){return a()}})},ue=$e=>{fm($e,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(fe){y(fe)}})};L(ce,$e=>{p()?$e(ie):$e(ue,!1)})}h(J),gs(J,()=>gl(f()&&x.features.usePerformanceFix,k,x.disableInvisibleComponentsTimeout)),B($e=>G=ee(J,1,"timeline svelte-41cp6d",null,G,$e),[()=>({withoutPadding:!u(),mobile:s(),"out-of-flow":l()})]),$(W,J)},F=W=>{var J=ey();let G;B(ce=>G=ee(J,1,"timeline-stub svelte-41cp6d",null,G,ce),[()=>({mobile:s()})]),$(W,J)};L(Y,W=>{r(I)?W(H):W(F,!1)})}$(t,R),z(),o()}var U1=require("@vkontakte/videoplayer-shared/es2018");var iy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function mm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),$(t,o)}var oy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function vm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=oy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var ny=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),ry=M('<span class="text svelte-1yhs2ga"> </span>'),sy=M('<span class="text count svelte-1yhs2ga"> </span>'),ay=M("<!> <!>",1),ly={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 Fd(t,e){var ie,ue,$e;U(e,!0),q(t,ly);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(x,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(ue=(ie=v.callbacks)==null?void 0:ie.onEpisodeChanged)!=null?ue:U1.noop,y=!!(($e=v.callbacks)!=null&&$e.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,V=j(void 0),k=fe=>{var ne,Ve,re;if(!!((ne=v.callbacks)!=null&&ne.onEpisodeClicked)){let N=Bs(fe);x.set(N),S.set(!0),(re=(Ve=v.callbacks)==null?void 0:Ve.onEpisodeClicked)==null||re.call(Ve,N)}},I=j(null),R=g(()=>a()/p());Ke(()=>{var ke;let fe=Tu(r(R),p(),f());fe?((ke=r(I))==null?void 0:ke.time)!==fe.time&&(u(fe),O(I,fe,!0)):O(I,null)});let Y=g(()=>{var fe;return((fe=r(I))==null?void 0:fe.text)||""}),H=g(()=>Ji(n(),"xl")?"FULL":Ji(n(),"m")&&R1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(Y)}`),W=async(fe,ke,ne)=>{await Io(),(fe==null?void 0:fe.getAttribute("aria-expanded"))==="false"&&ke&&!ne&&wt(()=>{x.set(!1),fe.focus()})};Ke(()=>{W(r(V),s(),l())});var J=We(),G=ge(J);{var ce=fe=>{let ke=g(()=>d()?"px-0":""),ne=g(()=>!y);Ot(fe,{get className(){var Ve;return`w-max btn-full-opacity btn-jc-l ${(Ve=r(ke))!=null?Ve:""}`},testId:"btn-episodes",click:k,get disabled(){return r(ne)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(V)},set ref(Ve){O(V,Ve,!0)},children:(Ve,re)=>{var N=We(),Be=ge(N);{var le=te=>{var me=ny(),De=ge(me),pe=_(De,!0);h(De);var at=P(De,2),Z=_(at);vm(Z,{}),h(at),B(()=>be(pe,r(Y))),$(te,me)},ve=te=>{var me=ay(),De=ge(me);mm(De,{});var pe=P(De,2);{var at=Ae=>{var Ie=ry(),ze=_(Ie,!0);h(Ie),B(()=>be(ze,r(Y))),$(Ae,Ie)},Z=(Ae,Ie)=>{{var ze=lt=>{var vt=sy(),gt=_(vt,!0);h(vt),B(()=>be(gt,f().length)),$(lt,vt)};L(Ae,lt=>{r(H)==="COUNT"&&lt(ze)},Ie)}};L(pe,Ae=>{r(H)==="FULL"?Ae(at):Ae(Z,!1)})}$(te,me)};L(Be,te=>{d()?te(le):te(ve,!1)})}$(Ve,N)},$$slots:{default:!0}})};L(G,fe=>{r(I)&&fe(ce)})}$(t,J),z(),o()}var Pm=require("@vkontakte/videoplayer-shared/es2018");var mi=require("@vkontakte/videoplayer-core/es2018"),ft=require("@vkontakte/videoplayer-shared/es2018"),ls=require("@vkontakte/videoplayer-statistics/es2018");var je=require("@vkontakte/videoplayer-shared/es2018"),eo=require("@vkontakte/videoplayer-shared/es2018");var z1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var dy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Eu=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 eo.Subject,loadStarted$:new eo.Subject,loadEnded$:new eo.Subject,loadError$:new eo.Subject,ready$:new eo.Subject,slotRequested$:new eo.Subject,started$:new eo.Subject,timeRemained$:new eo.Subject,paused$:new eo.Subject,resumed$:new eo.Subject,ended$:new eo.Subject,empty$:new eo.Subject,skipped$:new eo.Subject,clicked$:new eo.Subject,closed$:new eo.Subject,error$:new eo.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,eo.addScript)(dy,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?xe(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,y=this.playerState&&xe(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=(0,je.detectEmbed)(),S=(V=w?x:window.location.href)!=null?V:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,...this.usePuid?{puid10:z1(i,o),puid11:n?0:1}:{}};v||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(E),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adsState){this.log({message:"toggle play"});let i=xe(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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,p,f,v,u;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&(0,eo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var W1=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 gm=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 s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new Iu,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new hm,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Iu=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},hm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new Iu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},K1=gm;var Pu=require("@vkontakte/videoplayer-shared/es2018"),Ea,Ii,_m=0,bm=!1,q1="",Q1=(t,e=0,i=0)=>t<e&&t<i,ku=(t,e=0,i=0)=>t>=e&&t<=i,cy=(t,e=0,i=0)=>t>e&&t>i,G1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>ku(t,p,f));let s=t>=_m,l=t<_m;if(_m=t,l&&(bm=!1),(0,Pu.isNonNullable)(Ea)&&ku(t,Ea.startTime,Ea.endTime)&&q1===e.value)return Ea;if(!(0,Pu.isNonNullable)(Ii)&&(n!=null&&n.length)&&!bm){Ii=n.find(({startTime:p,endTime:f})=>ku(t,p,f)||s&&Q1(t,p,f)),Ea=void 0,!(0,Pu.isNonNullable)(Ii)&&n[n.length-1].endTime<t&&(bm=!0);return}else{if(ku(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return Ea=Ii,Ii=void 0,q1=e.value,Ea;(s&&cy(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||l&&Q1(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var Au={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"},uy={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"},Ud=t=>{var e,i;return(i=(e=Au[t])!=null?e:Au[uy[t]])!=null?i:void 0};var j1=require("@vkontakte/videoplayer-shared/es2018"),tB=require("@vkontakte/videoplayer-statistics/es2018"),Mu=class{constructor(e,i,o,n=new j1.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var zd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(zd||{});var as=t=>t!=null?t:0,bs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(as(i==null?void 0:i.top)-as(o==null?void 0:o.top)),left:Math.round(as(i==null?void 0:i.left)-as(o==null?void 0:o.left)),bottom:Math.round(as(i==null?void 0:i.bottom)-as(o==null?void 0:o.top)),right:Math.round(as(i==null?void 0:i.right)-as(o==null?void 0:o.left))}},Sl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:as(e==null?void 0:e.width),height:as(e==null?void 0:e.height)}};var Lu="off";var Y1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:y,player:w,disabledControls:x,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,additionalButtons:Y,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:W,playNextVideo:J,looped:G=!1,statistics:ce,saveRate:ie,internalsExposure:ue,playerView:$e,playerId:fe})=>{var Fv,Uv,zv;let ke={...y,configName:[...(Fv=y.configName)!=null?Fv:[],"ui"],isAudioDisabled:l,live:{...(Uv=y.live)!=null?Uv:{},isLiveCatchUpMode:!!n}},ne=u,Ve=ft.TracerFactory.createRootTracer(ne.features.tracer),re=Ve.createComponentTracer("Store"),N=w||new mi.Player(ke,Ve,{playerId:fe});ue==null||ue.expose({corePlayer:N});let Be=new ft.Logger,le=new Eu(Be,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout,runtimeTimeout:ne.ads.runtimeTimeout,useAdmanFromNPM:ne.ads.useAdmanFromNPM,volumeMultiplier:ne.ads.volumeMultiplier,isVsidOriginal:ne.ads.isVsidOriginal,usePuid:ne.ads.usePuid}),ve=va.getInstance(),te=p==null?void 0:p.pictureInPictureApi,me=p==null?void 0:p.annotationsApi,De=p==null?void 0:p.slotsApi,pe=Be.createComponentLog("Store"),at,Z,Ae={},Ie=new nu,ze=new ft.Subscription,lt=ce&&ce.oneStat?ti(ce.oneStat.vsid$):_r(void 0),vt=se(Rs()),gt=se(!1),Ct=(zv=te==null?void 0:te.info.isActive$)!=null?zv:new ft.ValueSubject(!1),Ge=se(0),Ht=se(!1),Xt=se(!1),Gt=se([]),Wt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Gt.update(b=>[...b,c])),oe=_r(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ft=async c=>{var X;let b=Object.values(ft.InterfaceLanguage).includes(c);if(ne.downloadVKLanguages&&(b&&ne.updateBuiltinLanguages||!wf(c))){let Se;try{Se=await(0,ft.loadVKLangPack)(c,Ph,Ah)}catch(rt){(X=ce==null?void 0:ce.oneStat)==null||X.logError({errorType:"VKLangPack",fatal:!1}),ve==null||ve.report(rt,{errorType:"VKLangPack",fatal:!1})}Se&&(xf({language:c,pack:Se,fallback:ne.defaultLanguage}),he.set(c))}wf(c)&&he.set(c)},he=se(t),we=se(e);Ft(t);let ae=(c,b)=>{let A=xe(he);return Sf(A,c,b,ne.defaultLanguage)},Re=se("thumb");Re.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ye()});let qe=(()=>{let c=Si([oe,Re],([b,A])=>b?"crashed":A);return{...c,is:b=>xe(c)===b}})(),Le=se(),Ye=()=>{Le.set({muted:N.info.muted$.getValue()})},Oe=(()=>{let c=se(new Set(x));return{...c,add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let X=[...A];return new Set(Array.isArray(b)?X.filter(Se=>!b.includes(Se)):X.filter(Se=>Se!==b))})},includes:b=>{let A=xe(c);return Array.isArray(b)?b.every(X=>A.has(X)):A.has(b)}}})(),et=se({width:0,height:0});re.log("create store"),pe({message:"create store"});let Lt=c=>{let b=c.container,A=()=>{jt=new MutationObserver(Se=>{let{removedNodes:rt}=Se[0];rt.length&&b.append(N.experimental.element$.getValue())}),jt.observe(b,{childList:!0})},X=N.experimental.element$.getValue();if(X)b.append(X),A();else{let Se=N.experimental.element$.pipe((0,ft.filter)(rt=>!!rt),(0,ft.once)()).subscribe(rt=>{b.append(rt),A()});ze.add(Se)}},Kt=c=>{pe({message:`init video, config: ${JSON.stringify(c)}`}),S?Lt(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),N.initVideo(c)),re.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),at=c},tt=new ft.Subject,xi=c=>tt.next(c),hi=new ft.Subject,it=new ft.Subject,ii=new ft.Subject,jt=null,_i={actionRewind$:hi,actionSeek$:it,inPiP$:Ct,inFullscreen$:new ft.Observable(c=>vt.subscribe(b=>c.next(b))),actionSetSubtitle$:ii,nextMovie$:tt},Mo={actionSeek$:it,playerSize$:new ft.Observable(c=>et.subscribe(b=>c.next(b)))};if(ce){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:X}=ce;c&&(S||X.add(c.attachTo(N)),X.add(c.attachToUi(_i)),X.add(c.attachToAds(le.events)),c.authorize(s).catch(Se=>{pe({message:`onestat auth error ${String(Se)}`})}),A&&A.attachTo(N)),b&&(X.add(b.attachTo(N,le.events)),X.add(b.attachToUi(Mo)),X.add(b.attachToAds(le.events)),b.authorize(s))}if(ve){let c=new ft.Subscription,b=(A,X)=>c.add(A.subscribe(X));if(b(N.events.managedError$,A=>{ve.logIError(A)}),b(N.events.fatalError$,A=>{ve.logIError(A,!0)}),ce){let{oneStat:A}=ce;A&&b(A.experimental.error$,X=>{ve.logIError(X)})}ve.sentrySubscription.add(c)}let _o=()=>{if(mi.clientChecker.device.isIOS&&Z)try{v1(Z)}catch(c){pe({message:`exitIosSafariFullscreen failed: ${c}`})}};ze.add(N.experimental.element$.subscribe(c=>{c&&(Z=c,c.classList.add("player-media"),ha(te)&&te.updateVideoElement(),S&&c.setAttribute("pip","false"),$e==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;_o(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var b,A;ha(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Ae.onStarted)==null||A.call(Ae,c)})).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var A;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),le.setPosition(c,b))})).add(N.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Ht.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Xt.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Oe.add(vd),Oe.add("PLAY_BUTTON")):Oe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(le.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(le.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(le.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(le.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(le.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(le.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(le.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(le.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(le.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(le.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(le.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(le.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(le.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(le.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Dt=new ft.Subscription,ri=()=>{var rt,Vt,Rt;let{debugLog:c}=ne,b,A="#9df7b7",X="#efd169";if(c&&c!==!0){let{colors:Bt}=c;b=c.tag,A=(rt=Bt==null?void 0:Bt[0])!=null?rt:A,X=(Rt=(Vt=Bt==null?void 0:Bt[1])!=null?Vt:Bt==null?void 0:Bt[0])!=null?Rt:X}let Se=b?`: ${b}`:"";Dt.add(N.events.log$.subscribe(Bt=>{console.debug(`%c sdk${Se} `,`background:${A};`,`sdk component: ${Bt.component}`,Bt.message)})).add(Be.log$.subscribe(Bt=>{console.debug(`%c ui${Se} `,`background:${X};`,`ui component: ${Bt.component}.`,Bt.message)}))},sn=()=>{Dt.unsubscribe()},Pt=(c,b)=>{re.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},ut=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},bi=(c,b,A)=>{re.log("move camera focus px",{xpx:c,ypx:b,dt:A}),N.moveCameraFocusPX(c,b,A)},Lo=()=>{N.holdCamera()},Wi=()=>{N.releaseCamera()},oi=_r(N.info.position$.getValue(),c=>{let b,A,X=()=>{let Se=N.info.playbackState$.getValue(),rt=N.info.isLive$.getValue(),Vt=N.info.duration$.getValue(),Rt=N.info.position$.getValue();if(Se&&[mi.PlaybackState.PLAYING,mi.PlaybackState.PAUSED].includes(Se)){let Bt=rt?Rt-Vt:N.getExactTime();Bt!==A&&c(Bt),A=Bt}b=requestAnimationFrame(X)};return X(),()=>cancelAnimationFrame(b)}),Go=ti(N.info.playbackState$),Fn=ti(N.info.currentBuffer$),D=ti(N.info.isEnded$),Ue=ti(N.info.isLive$),pt=ne.features.playbackRate?ti(N.info.canChangePlaybackSpeed$):_r(!1),Ut=ti(N.info.liveBufferTime$),ct=ti(N.info.volume$),ai=ti(N.info.muted$),li=ru(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===mi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.TRAFFIC_SAVING),bo=ru(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===mi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===mi.PredefinedQualityLimits.HIGH_QUALITY),di=ti(N.info.autoQualityLimitingAvailable$),xt=ti(N.info.availableQualities$),Vi=ti(N.info.availableQualitiesFps$),Vo=ti(N.info.chromecastState$),Un=ti(N.info.chromecastDeviceName$),Ri=ti(N.info.currentFormat$),io=ti(N.info.throughputEstimation$),Ro=ti(N.info.videoBitrate$),wn=ti(N.info.intrinsicVideoSize$),Sn=ti(N.info.duration$),ki=ti(N.info.isAudioAvailable$),Ki=null,jo=N.info.isBuffering$,Yo=_r(jo.getValue(),c=>{let b=jo.subscribe(A=>{A&&Ki===null?Ki=window.setTimeout(()=>{c(jo.getValue()),Ki=null},ne.loaderDelay):c(A)});return()=>{b.unsubscribe(),Ki&&clearTimeout(Ki)}}),an=()=>{Ki&&clearTimeout(Ki),Ki=null},ln=Si([Sn,Ue],([c,b])=>b?-c:c),Wr=Si([Go],([c])=>c===mi.PlaybackState.PLAYING),zn=ti(N.info.atLiveEdge$),$r=ti(N.info.atLiveDurationEdge$),rr=ti(N.info.position$),yr=Si([rr,Sn],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),dn=Si([Vo],([c])=>c===mi.ChromecastState.CONNECTED),sr=ti(N.info.availableVideoStreams$),oo=ne.features.audioLanguages?ti(N.info.availableAudioStreams$):_r([]),Zo=ti(N.info.currentVideoStream$),Wn=ti(N.info.currentAudioStream$),Cn=c=>{c.language&&_f(c.language),N.setVideoStream(c)},xr=(c,b)=>{N.setAudioStream(c),zt(b)&&(c.language&&_f(c.language),ne.features.userVideoPrefs&&i&&yf(ne.userSalt,String(i),{audioTrackId:c.id}))},Kn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(X=>"isDefault"in X&&X.isDefault)),ne.features.userVideoPrefs&&i){let X=cu(ne.userSalt,String(i));if(X!=null&&X.audioTrackId){let Se=c.find(rt=>rt.id===X.audioTrackId);b=Se!=null?Se:b}}let A=i1();return A&&(b!=null||(b=c.find(({language:X})=>A===X))),b!=null||(b=c.at(0)),b},ar=!1;ze.add(N.info.availableAudioStreams$.subscribe(c=>{if(!ar&&c.length){let b=Kn(c);b&&(N.setAudioStream(b),ar=!0)}}));let wr=!1;ze.add(N.info.availableVideoStreams$.subscribe(c=>{if(!wr&&c.length){let b=Kn(c);b&&(N.setVideoStream(b),wr=!0)}}));let Tn=se(void 0),qn=ti(N.info.isAutoQualityEnabled$,c=>c&&Tn.set(void 0)),Sr=ti(N.info.currentQuality$,()=>Tn.set(void 0)),Cr=Si([Tn,Sr],([c,b])=>c!=null?c:b),po=Si(Ri,c=>c!==mi.VideoFormat.MPEG),mt=Si([xt,Vi,qn,Cr,po],([c,b,A,X,Se])=>{let rt=[];Se&&rt.push({value:"auto",displayValue:ae("auto_quality_option"),selected:A});let Vt=c.filter(Rt=>!(0,ft.isInvariantQuality)(Rt));for(let Rt of Vt){let Bt=b[Rt];rt.push({value:Rt,displayValue:`${Rt}${Bt?W1(Bt):""}`,selected:A?!1:Rt===X})}return rt}),Jt=ti(N.info.currentPlaybackRate$),cn=Si([Jt,zn,$r],([c,b,A])=>{let X=A||S?1:ne.controls.playbackRateMin,Se=b?1:ne.controls.playbackRateMax,rt=ne.controls.playbackRateStep,Vt=[];for(let Rt=X;Rt<=Se;Rt+=rt)Vt.push({value:Rt,displayValue:Rt===1?ae("playback_rate_1"):ae("playback_rate",{multiplier:Rt.toString(10)}),selected:c===Rt});return Vt}),Pi={displayValue:ae("subtitles_off"),value:Lu,language:""},qi=se({...Pi}),Xo=ne.features.subtitles?ti(N.info.availableTextTracks$):_r([]),Jo=qh(),$o=Si([Xo,qi],([c,b],A)=>{var rt;let X=[],Se=c.find(({id:Vt})=>Vt===b.value);if(Se!=null&&Se.url){let[,Vt]=(rt=Jo.find(Se.url))!=null?rt:[];if(Vt){A(Vt);return}Ie.download(Se.url).then(Rt=>{if(!Rt||Ie.isDestroyed())return;let Bt=new K1,Cs=Se.language;if(Cs){let H0=!!Se.isAuto,F0=Bt.parse(Rt,Cs);X.push({lang:Cs,subtitles:F0,isAuto:H0,id:Se.id})}Jo.add(Se.url,X),xe(qi).value===b.value&&A(X)}).catch(Rt=>{var Bt;(Bt=ce==null?void 0:ce.oneStat)==null||Bt.logError({errorType:"Subtitles download",fatal:!1}),ve==null||ve.report(Rt,{errorType:"Subtitles download",fatal:!1})})}A(X)}),Qn=Si([Jt,Wr,qi],([c,b,A],X)=>{let Vt;if(N.info.isLive$.getValue()&&b&&A.value!==Pi.value){let Bt=()=>{let Cs=1e3/(3*c);Vt=setTimeout(Bt,Cs),X(Date.now())};return Bt(),()=>clearTimeout(Vt)}}),un=Si([Xo,qi],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:X,isAuto:Se,id:rt}of c){let Vt=X&&Ud(X);X&&Vt&&A.push({displayValue:Se?ae("subtitles_auto",{language:Vt}):Vt,value:rt,selected:(b==null?void 0:b.value)===rt,isAuto:Se,language:X})}return A.length?(A.unshift({...Pi,selected:(b==null?void 0:b.value)===Pi.value}),A):[]}),No={available:[],prev:[]},Kr=()=>{var b,A;let c=N.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:Z==null?void 0:Z.currentTime)!=null?A:0},qr=Si([oi,qi,$o,Qn],([c,b,A,X])=>{var rt;let Se=N.info.isLive$.getValue();if(Se&&No.prev!==A){let Vt=A.find(({id:Bt})=>Bt===b.value),Rt=No.prev.find(({id:Bt})=>Bt===b.value);if(Vt){let Bt={...Vt,subtitles:[...(rt=Rt==null?void 0:Rt.subtitles)!=null?rt:[],...Vt.subtitles]};No.available=[Bt],No.prev=A}}if(b&&b.value!==Pi.value){let Vt=Se?Kr():c,Rt=Se?No.available:A;return G1(Vt,b,Rt,Se)}}),Tr=Si([qr],([c])=>c!=null&&c.texts?c.texts:[]);ze.add(qi.subscribe(c=>{var b,A;if(c.value===Pi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let X=Object.entries(Au).find(([Se,rt])=>rt===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,X?X[0]:"",c.value)}}));let Qr=se(!0),Gn=Si([Fn,ln,rr,Ut],([c,b,A,X])=>{var Rt;let Se=(Rt=c==null?void 0:c.end)!=null?Rt:0;if(!X)return Se/b;let Vt=-A+X-b;return(Se-Vt)/b}),lr=ti(N.info.availableSources$),dr=Si([lr],([c])=>Object.keys((c==null?void 0:c[mi.VideoFormat.MPEG])||{}).length>0),yo=()=>{var A,X,Se;let c=Object.keys(((X=(A=N.info.availableSources$)==null?void 0:A.getValue())==null?void 0:X[mi.VideoFormat.MPEG])||{}),b=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Se=at.sources[mi.VideoFormat.MPEG])==null?void 0:Se[b]},Zt=()=>{var b;let c=yo();if(c)re.log("download video",{url:c}),zh(c,((b=at==null?void 0:at.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";re.log("download video",{message:A}),pe({message:A})}},fo=()=>{pe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Qi(ht(),!1):Oi(!c,!1)},Er=()=>{var c;if(At.ui.settingsMenu.visible$.set(!1),!xe(At.ui.settingsSubMenu.visible$)){let b=xe(At.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let X=Sl(b),Se={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:X,position:Se,name:"settings"})}}re.log("close settings menu")},ds=async(c,b=()=>Promise.resolve())=>{var Se;At.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),At.ui.settingsMenu.visible$.set(!0),await b();let A=xe(At.ui.settingsMenu.ref$),X=Qs();if((Se=a==null?void 0:a.uiInfo)!=null&&Se.onSettingsMenu&&A&&X){let Vt=Sl(A),Rt=bs(A,X);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Rt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},Ir=(c,b=!1)=>{var rt;At.ui.settingsSubMenu.visible$.set(!1);let A=xe(At.ui.settingsMenu.ref$),X=Qs(),Se=xe(At.ui.settingsMenu.visible$);if((rt=a==null?void 0:a.uiInfo)!=null&&rt.onSettingsMenu&&A&&X)if(Se&&!b){let Rt=Sl(A),Bt=bs(A,X);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Bt,name:"settings"})}else{let Rt=Sl(c),Bt={top:0,left:0,bottom:0,right:0},Cs=xe(At.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Rt,position:Bt,name:Cs})}re.log("close settings sub menu")},Ni=(c,b)=>{var X;At.ui.settingsSubMenu.visible$.set(!0),At.ui.settingsSubMenu.ref$.set(b),At.ui.settingsSubMenu.name$.set(c);let A=Qs();if((X=a==null?void 0:a.uiInfo)!=null&&X.onSettingsMenu&&b&&A){let rt=Sl(b),Vt=bs(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:rt,position:Vt})}re.log("open settings sub menu",{name:c})},ht=()=>{var b;let c=Math.max(ne.volumeMinRestore,(b=su())!=null?b:0);return c===0?ne.volumeDefault:c},zt=c=>{let b=ne.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Qi=(c,b)=>{let A=c===0?ht():c,X=N.info.muted$.getValue();pe({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Se=!l||qe.is("ads");X&&c>0&&Se&&(X=!1,zt(b)&&gf(!1)),N.setVolume(c,X),le.setVolume(c),zt(b)&&uf(A)},Oi=(c,b)=>{let A=N.info.volume$.getValue();pe({message:`set muted, currentVolume: ${A}, mute: ${c}`});let X=qe.is("ads");if(N.setMuted(c,X),le.setVolume(c?0:A),zt(b)&&(!X||!c)&&gf(c),!c&&A===0){let Se=ht();N.setVolume(Se),zt(b)&&uf(Se),le.setVolume(Se)}},xo=se(!1),no=c=>{var b,A;re.log("set looped",{isLooped:c}),xo.set(c),N.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};no(G);let Oo=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},Ci=(c,b=!1)=>{var A;pe({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),At.ui.autoplayNextEnabled$.set(c),r1(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},En=c=>{pe({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),At.ui.timerNextVideoRunning$.set(c)},cr=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(X=a==null?void 0:a.onPrevVideoClick)==null?void 0:X.call(a)}catch(Se){pe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&jr("prev")||W()},Gr=(c=!0)=>{var X;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(X=a==null?void 0:a.onNextVideoClick)==null?void 0:X.call(a)}catch(Se){pe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&jr("next")||J()},jr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:A,playbackStatusShow:X}}=ne;return A&&X&&!b?(At.ui.aboutToGoNextVideo.set(c),At.ui.userActionsDisabled.set(!0),!0):!1},Yr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},mo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},In=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},kr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Pr=()=>{N.prepare()},nt=()=>{(0,ft.assertNonNullable)(At);let c=xe(At.ui.controls.disabledControls$),b=xe(At.playerPhase),A={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(pe({message:"toggle play"}),b==="ads"){A.action="play",re.log("toggle adman play",A),le.togglePlay();return}let X=()=>{var rt;pe({message:"toggle play, call player.play"}),A.action="play",N.play(),(rt=a==null?void 0:a.onPlay)==null||rt.call(a)},Se=()=>{var rt;pe({message:"toggle play, call player.pause"}),A.action="pause",N.pause(),(rt=a==null?void 0:a.onPause)==null||rt.call(a)};if(N.info.isEnded$.getValue()){if(pe({message:"toggle play, video ended, seek to 0"}),hi.next(),it.next(ls.SeekAction.REWIND),S){V==null||V();return}N.seekTime(0),X()}else N.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING?X():Se();re.log("toggle play",A)},Tt=(c,{changeReason:b="default",appliesTo:A="to-video"}={},X)=>{pe({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Se}=ne.features;au(),c!=="auto"?(Se?(lu({type:"exact_quality",quality:c,videoId:i},A),N.setPredefinedQualityLimits(mi.PredefinedQualityLimits.UNKNOWN)):pf(i,c),Tn.set(c),N.setQuality(c)):Se&&b==="default"&&(vo("auto_quality",A,X),xe(li)&&vi(!1,void 0,X),xe(bo)&&Gi(!1,void 0,X))},vi=(c,b="as-default",A)=>{pe({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let X=c?mi.PredefinedQualityLimits.TRAFFIC_SAVING:mi.PredefinedQualityLimits.UNKNOWN;ne.features.qualityDetailsSubMenuEnabled?(wo(X,b,A),hd(!1)):(N.setPredefinedQualityLimits(X),zt(A)&&hd(c))},Gi=(c,b="as-default",A)=>{pe({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),wo(c?mi.PredefinedQualityLimits.HIGH_QUALITY:mi.PredefinedQualityLimits.UNKNOWN,b,A)},wo=(c,b,A)=>{c!==mi.PredefinedQualityLimits.UNKNOWN&&(xe(di)&&!xe(qn)&&Tt("auto",{appliesTo:b,changeReason:"limit-changed"},A),vo(c,b,A)),N.setPredefinedQualityLimits(c)},vo=(c,b,A)=>{zt(A)&&(lu({type:c,videoId:i},b),b==="as-default"&&lu({type:c,videoId:i},"to-video"))},ro=c=>{re.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ne.features.saveRate&&ie&&!N.info.isLive$.getValue()&&o1(c)},Bo=()=>{let c=xe(cn),b=c.findIndex(({selected:X})=>X);if(b===c.length-1)return;let A=c[b+1];ro(A.value)},kn=()=>{let c=xe(cn),b=c.findIndex(({selected:X})=>X);if(b===0)return;let A=c[b-1];ro(A.value)},pn=(c={...Pi,selected:!1},b)=>{re.log("set subtitles",{...c}),c.value!==Pi.value&&ii.next(c.isAuto?c.value+"_auto":c.value),qi.set(c),zt(b)&&($f(c.value===Pi.value?void 0:c.language),ne.features.userVideoPrefs&&i&&yf(ne.userSalt,String(i),{subtitleTrackId:c.value===Pi.value?void 0:c.value}))},ji=c=>{re.log("toggle subtitles");let b=xe(qi);(b==null?void 0:b.value)===Pi.value?ur(c):Pn(c)},So=(c,b)=>{re.log("change subtitle",{enabled:c}),c?ur(!0,b):Pn(!0)},ur=(c,b)=>{re.log("subtitle on");let A=xe(un),X=xe(he),Se;b&&(Se=A.find(rt=>rt.value===b)),Se!=null||(Se=A.filter(rt=>rt.value!==Pi.value).find(rt=>rt.value===X)||A[1]),pn(Se,c)},Pn=c=>{re.log("subtitle off"),pn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var A;function b(){let X=[];for(let{language:Se,isAuto:rt,id:Vt}of c){let Rt=Se&&Ud(Se);Se&&Rt&&X.push({id:Vt,language:Se,title:rt?ae("subtitles_auto",{language:Rt}):Rt})}return X}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())});let An=se(!0),pr=c=>{An.set(c)},Mn=(c,b,A=!0)=>{var X;if(pe({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:b,forcePrecise:A}),it.next(b),N.info.isLive$.getValue()){let Se=N.info.duration$.getValue(),rt=Math.min(0,Se+c);N.seekTime(rt,A)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(pe({message:"seek after ended, call callbacks.onPlay"}),(X=a==null?void 0:a.onPlay)==null||X.call(a)),N.seekTime(Hv(c),A)}},Ar=c=>{pe({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),Mn(c,ls.SeekAction.EPISODE,!0)},Co=(c,b)=>{pe({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:b});let A=xe(ln)*c;Mn(A,b,!1)},Ln=c=>{pe({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),it.next(ls.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Zr=c=>{var X,Se;let b=(X=c.max)!=null?X:"none",A=(Se=c.min)!=null?Se:"none";pe({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),re.log("set auto quality limits",{max:b,min:A}),N.setAutoQualityLimits(c)},Ze=c=>{pe({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),Mn(c,ls.SeekAction.EPISODE,!0)},ei=c=>{pe({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},$i=se(void 0),To=se(!1),_e=c=>{pe({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),To.set(!0),It(c)},It=c=>{$i.set(c)},Yt,ci,Yi=()=>{$i.set(void 0),To.set(!1)},so=()=>{clearTimeout(ci),clearTimeout(Yt),Yt=window.setTimeout(()=>{Yi()},500),Z==null||Z.removeEventListener("seeked",so)},Xe=c=>{pe({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),Co(c,ls.SeekAction.SLIDER),xe(At.ui.isMobile)&&xe(At.state.currentFormat$)===mi.VideoFormat.HLS?(Z==null||Z.addEventListener("seeked",so),ci=window.setTimeout(()=>{so()},300)):Yi()},qt=Si([oi,ln,$i],([c,b,A],X)=>{X((0,ft.isNonNullable)(A)?A*b:c)}),Bi=se(!1),Do=()=>{Bi.set(!0)},fn=()=>{Bi.set(!1)},jn=Si([et],([{width:c}],b)=>{let A=N1(c);b(A)}),fr=se(!1),Mr=Y.filter(c=>Wh(c)),Zi=Si([jn,fr],([c,b])=>b?Mr.filter(A=>!A.hideOnMobile):Mr.filter(A=>{var X;return!((X=A.hideOnDesktopGridTypes)!=null&&X.includes(c))})),ui=se(Y.filter(c=>Kh(c))),mn=Si([ui,jn],([c,b])=>c.filter(A=>{var X;return!((X=A.hideOnDesktopGridTypes)!=null&&X.includes(b))})),mr=Si([mn,Zi],([c,b])=>[...ne.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...ne.features.additionalButtons?b.map((A,X)=>{var Se;return{id:X,weight:X,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Se=A.ariaLabel)!=null?Se:A.tooltip,tooltipText:A.tooltip}}):[]]),Ho=se(H),go=Si([Ho],([c])=>ne.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),Fa=(c,b)=>{let A=xe(ui).map(X=>X.id!==c?X:{...X,...b});ui.set(A)},$t=c=>{let b=xe(ui);if(b.some(A=>A.id===c.id)){pe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),ui.set(b)},yt=c=>{let b=xe(ui);if(!b.some(A=>A.id===c)){pe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),ui.set(b)},ao=c=>{it.next(ls.SeekAction.LIVE),pe({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),N.setLiveLowLatency(c)},vn=(c,b)=>{let A=xe(Ho).map(X=>X.id!==c?X:{...X,...b});Ho.set(A)},Di=c=>{let b=xe(Ho);if(b.some(A=>A.id===c.id)){pe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Ho.set(b)},pi=c=>{let b=xe(Ho);if(!b.some(A=>A.id===c)){pe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),Ho.set(b)},fi=se(F),qs=Si([fi],([c])=>ne.features.additionalContextMenuItems?c:[]),Ua=(c,b)=>{let A=xe(fi).map(X=>X.id!==c?X:{...X,...b});fi.set(A)},rp=c=>{let b=xe(fi);if(b.some(A=>A.id===c.id)){pe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),fi.set(b)},hc=c=>{let b=xe(fi);if(!b.some(A=>A.id===c)){pe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),fi.set(b)},sp=Si([fr,oe],([c,b],A)=>{A(c&&b)}),_c=()=>{it.next(ls.SeekAction.LIVE),pe({message:"switch to active live"}),re.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==mi.PlaybackState.PLAYING&&At.actions.internal.togglePlay()},ap=()=>{re.log("skip adman"),le.skip()},bc=(c=!0)=>{var X;(0,ft.assertNonNullable)(At),pe({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),Re.set("video"),c&&N.play(),l&&Oi(!0,!0);let b=(X=xe(Le))==null?void 0:X.muted,A=!N.info.muted$.getValue();b!==void 0&&!A&&Oi(b,!0),Le.set(void 0)},lp=()=>{(0,ft.assertNonNullable)(At),pe({message:"switch from video to ads"}),re.log("switch from video to ads"),At.actions.internal.pause(),_o(),Re.set("ads")},$c=c=>{(0,ft.assertNonNullable)(At);let b=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:b}),Re.set(b)},dp=c=>{(0,ft.assertNonNullable)(At);let b=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:b}),Re.set(b)},yc=c=>{(0,ft.assertNonNullable)(At);let b=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:b}),Re.set(b)},xc=()=>((0,ft.assertNonNullable)(At),re.log("get debug text data"),Fh(N,at,At,Ve.getTraceId())),wc=()=>((0,ft.assertNonNullable)(At),JSON.stringify(Ve.getFinishedSpans())),cp=()=>((0,ft.assertNonNullable)(At),Uh(N,at,At)),Qs=()=>Z,up=()=>{pe({message:"toggle chromecast"}),re.log("toggle chromecast"),N.toggleChromecast()},Dl=c=>{var A;if((0,ft.assertNonNullable)(At),N.info.isEnded$.getValue())return;let b=!c;if(xe(At.playerPhase)==="ads"){pe({message:`pause ads, internalCall: ${b}`}),re.log("pause ads",{internalCall:b}),le.pause();return}pe({message:`pause video, internalCall: ${b}`}),re.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),N.pause()},Sc=c=>{var A;(0,ft.assertNonNullable)(At);let b=!c;if(xe(At.playerPhase)==="ads"){pe({message:`play ads, internalCall: ${b}`}),re.log("play ads",{internalCall:b}),le.play();return}pe({message:`play video, internalCall: ${b}`}),re.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),N.play()},pp=c=>{(0,ft.assertNonNullable)(At);let b=!c;if(xe(At.playerPhase)==="ads"){pe({message:"player cannot be stopped during ads via external method"});return}pe({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},Cc=(c,b)=>{(0,ft.assertNonNullable)(At),pe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),re.log("first start",{showAds:c,external:b}),c?Re.set("ads"):(Re.set("video"),b?N.play():At.actions.internal.togglePlay())},Qe=()=>(pe({message:"getting time codes"}),f),si=()=>{let c=Qe();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(A=>A.time>b)},Fo=c=>{let b=c;b||(b=si());let A=N.info.position$.getValue();re.log("seek to next episode",{currentTime:A,...b}),b&&(pe({message:"seek to next episode"}),Mn(b.time,ls.SeekAction.EPISODE,!0))},Ss=()=>{let c=Qe();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),A=c.findIndex(Se=>Se.time>b),X=A===-1?c.length-2:A-2;if(!(X<0))return c[X]},gn=c=>{let b=c;b||(b=Ss());let A=N.info.position$.getValue();re.log("seek to prev episode",{currentTime:A,...b}),b&&(pe({message:"seek to prev episode"}),Mn(b.time,ls.SeekAction.EPISODE,!0))},V0=()=>(pe({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...v}),v),R0=async()=>{let c=te==null?void 0:te.isActive(),b="none";te!=null&&te.isActive()?(b="exit",await(te==null?void 0:te.exit())):(b="request",await(te==null?void 0:te.request())),re.log("toggle picture in picture",{isActive:c,action:b})},N0=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),Ge.update(b=>b+c)},Tc=se([]);T==null||T.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[X,Se],subjects:rt}=c[A];A===0&&X!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:X/1e3,text:"",interactive:!0,completed:ne.features.interactiveTimeOpenUri?!rt.length||rt.every(Vt=>Vt.isRemoved):!rt.length}),Se!==1/0&&b.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}Tc.set(b)});let O0=se(!1);E==null||E.subscribe(c=>{c&&xe(To)&&Yi()});let Hv=c=>{if(!S)return c;let b=xe(Tc),A=xe(ln),Se=xe(rr)/A,rt=b.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Se);return typeof(rt==null?void 0:rt.time)=="number"?Math.min(c,rt.time-.05):c},B0=()=>{At.ui.episodes.panelOpened$.set(!1)},D0=()=>{re.log("destroy store"),clearTimeout(ci),clearTimeout(Yt),ze.unsubscribe(),Dt.unsubscribe(),N.destroy(),le.destroy(),ce==null||ce.destroy(),ve==null||ve.destroy(),Wt.unsubscribe(),jt==null||jt.disconnect(),jt=null,Ie.destroy()},At={interfaceLanguage$:he,isCyrillicRelatedInterface$:we,initVideo:Kt,videoId:i,isClip:o,playerPhase:qe,vsid:lt,state:{positionExact$:oi,positionWithScrubbing$:qt,duration$:ln,playbackState$:Go,isPlaying$:Wr,isLoaderVisible:Yo,bufferedProgress$:Gn,isLive$:Ue,canChangePlaybackSpeed$:pt,isActiveLive$:zn,isOldestAvailableLive$:$r,isRewindableLive$:yr,isEnded$:D,muted$:ai,volume$:ct,trafficSavingEnabled$:li,highQualityEnabled$:bo,autoQualityLimitingAvailable$:di,availableVideoStreams$:sr,availableAudioStreams$:oo,videoStream$:Zo,audioStream$:Wn,currentQuality$:Cr,isAutoQualityEnabled$:qn,availableQualities$:mt,currentPlaybackRate$:Jt,availablePlaybackRates$:cn,currentSubtitle$:qi,availableTextTracks$:Xo,availableSubtitlesList$:un,currentSubtitleCaptions$:Tr,isAutoSubtitleCaptionVisible$:Qr,chromecastState$:Vo,chromecastDeviceName$:Un,chromecastConnected$:dn,currentFormat$:Ri,throughputEstimation$:io,videoBitrate$:Ro,videoSize$:wn,errorLog$:Gt,crashed$:oe,isAudioAvailable$:ki,isAudioDisabled:!!l,canDownload:ne.features.download&&!!d,availableSources$:lr,hasMpegSources$:dr,isInteractive:S,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!xe(Tc).length,interactiveEpisodes$:Tc,isInteractiveTime$:E?ti(E):se(!1),isInteractiveExpectation$:O0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:xo,loadedMetadata$:Ht,isAutoQualityAvailable$:po},ui:{t:ae,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:Y.length?Y.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:Oe},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:vt,isFullscreenOpenedByKeyboard:gt,rotateAlpha:Ge,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:et,isMobile:fr,mobileNotReportControlHidden$:sp,icon3DVideoVisible:se(!1),scrubbingInProgress:To,volumeChangingInProgress:Bi,is3DVideo:Xt,currentGridType$:jn,additionalButtonsDeprecated$:Zi,additionalDesktopControlPanelRightButtons$:mr,additionalSettingsMenuItems$:go,additionalContextMenuItems$:qs,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},aboutToGoNextVideo:se(void 0),userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:An,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0)},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:te,annotationsApi:me,slotsApi:De},actions:{internal:{preload:Pr,firstStart:c=>Cc(c,!1),play:()=>Sc(!1),pause:()=>Dl(!1),togglePlay:nt,toggleMuted:fo,openSettingsMenu:ds,closeSettingsMenu:Er,openSettingsSubMenu:Ni,closeSettingsSubMenu:Ir,setVolume:c=>Qi(c,!1),setMuted:c=>Oi(c,!1),startVolumeChanging:Do,stopVolumeChanging:fn,setVideoStream:Cn,setAudioStream:c=>xr(c,!1),setQuality:(c,b)=>Tt(c,b,!1),setTrafficSavingEnabled:(c,b)=>vi(c,b,!1),setHighQualityEnabled:(c,b)=>Gi(c,b,!1),setPlaybackRate:ro,incrementPlaybackRate:Bo,decrementPlaybackRate:kn,setSubtitle:c=>pn(c,!1),toggleSubtitle:()=>ji(!1),togglePictureInPicture:R0,startScrubbing:_e,progressScrubbing:It,completeScrubbing:Xe,toggleChromecast:up,switchToActiveLive:_c,switchFromAdsToVideo:bc,switchFromVideoToAds:lp,skipAd:ap,setLiveWaitingStart:$c,setLiveWaitingRecover:dp,setLiveWaitingRecord:yc,getDebugTextData:xc,getTraceTextData:wc,getDebugPanelData:cp,getVideoElement:Qs,seekTime:(c,b,A)=>Mn(c,b,A),clearDelayedBufferingCheckTimeout:an,seekEpisodeStartTime:Ar,seekToPercent:Co,getNextEpisode:si,seekToNextEpisode:Fo,getPrevEpisode:Ss,seekToPrevEpisode:gn,startLogging:ri,stopLogging:sn,startCameraManualRotation:Pt,stopCameraManualRotation:ut,moveCameraFocusPX:bi,holdCamera:Lo,releaseCamera:Wi,getVideoEpisodes:Qe,getPreviewThumbsData:V0,downloadVideo:Zt,addLanguage:xf,setLanguage:Ft,nextMovie:xi,videoRotate:N0,correctSeekTimeToInteractive:Hv,replayInteractive:V,setLooped:no,reportProblem:Oo,setAutoplayNextEnabled:Ci,setTimerNextVideoRunning:En,prevVideoClick:cr,nextVideoClick:Gr,nextVideoAnnouncementShow:Yr,nextVideoAnnouncementClick:mo,nextVideoAnnouncementAuto:In,nextVideoAnnouncementCancel:kr},external:{firstStart:c=>Cc(c,!0),play:()=>Sc(!0),pause:()=>Dl(!0),stop:()=>pp(!0),seekTime:c=>Ln(c),seekEpisodeStartTime:c=>Ze(c),setPlaybackRate:c=>ei(c),setAutoQualityLimits:c=>Zr(c),setMuted:c=>Oi(c,!0),toggleSubtitle:()=>ji(!0),changeSubtitle:So,setVolume:c=>Qi(c,!0),returnFocusToEpisodes:B0,updateAdditionalSettingsItem:vn,addAdditionalSettingsItem:Di,removeAdditionalSettingsItem:pi,updateAdditionalContextItem:Ua,addAdditionalContextItem:rp,removeAdditionalContextItem:hc,updateAdditionalButton:Fa,addAdditionalButton:$t,removeAdditionalButton:yt,setLiveLowLatency:ao,hideControls:()=>pr(!1),showControls:()=>pr(!0),setQuality:c=>Tt(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>vi(c,"to-video",!0),setHighQualityEnabled:c=>Gi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>le,getLogger:()=>Be,getPlayer:()=>N,destroy:D0};return At};function Dn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=bs(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var py=["disabledControls$","additionalButtons"],fy=["interactiveTimeIndicator"],Tl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!py.includes(n)){let l=o||fy.includes(n);s.set(Dn(t,i,n,l))}}};var Vu=async(t,e,i)=>{await Io(),e&&i&&(i.focus(),t.set(!1))};var my=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function $m(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=my();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function ym(t,e){U(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=j(void 0);Ke(()=>{r(y)&&wt(()=>{u.set(r(y))})});let w=E=>{let V=Bs(E),k=T1(r(y));v.set(k),p.set(V),a.set(!n())},x=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,V)=>{$m(E,{})},$$slots:{default:!0}}),z(),o()}var vy=t=>{t.stopPropagation()},gy=M("<div><!> <div></div> <div></div></div>"),hy={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;}
226
226
 
227
227
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
228
228
  }
@@ -247,8 +247,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
247
247
  opacity: 0;
248
248
  }
249
249
  }.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);
250
- 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 Gd(t,e){var oe;U(e,!0),K(t,wy);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(k,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),m=v(e,"ref",15,void 0),u=Z(void 0),y=Te(),w=mo(),{interactiveControlsOpacity$:x}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,R=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,M=(oe=y.callbacks)==null?void 0:oe.onInteractiveTimeIndicatorClick,k=y.ui.currentGridType$,G=g(()=>!n()&&s()),H=g(()=>zs(l(),"s")),F=g(()=>!d()||!!a()||r(G)),q=Z(!1);Qe(()=>{O(q,r(F),!0)});let Y=()=>{O(q,!0)},j=()=>{var ve;ue(),(ve=r(u))==null||ve.addEventListener("animationiteration",Y,{once:!0})},ue=()=>{var ve;O(q,!1),(ve=r(u))==null||ve.removeEventListener("animationiteration",Y)},re=ve=>{R.set(ve)},fe=g(()=>p()&&!r(F));Qe(()=>{p()?j():ue()});let be=()=>{r(F)||(R.set(!0),M==null||M())};on(()=>{R.clearTimeout(),ue()});let me=()=>{R.set(!1)},Pe=W("tooltip_interactive_interaction_time_indicator");var se=xy();let Le;se.__mousemove=[yy],se.__click=be;var ae=_(se);Eo(ae,{get tooltipContent(){return Pe},get tooltipActive(){return r(fe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:re,get ref(){return m()},set ref(ve){m(ve)},children:(ve,De)=>{Dd(ve,{completed:!0})},$$slots:{default:!0}});var N=P(ae,2);let Be;tt(N,ve=>m(ve),()=>m());var ce=P(N,2);let he;tt(ce,ve=>O(u,ve),()=>r(u)),h(se),B((ve,De,pe)=>{Le=ie(se,1,"interactive-episode-icon-animated svelte-od3veb",null,Le,ve),Be=ie(N,1,"ref-block svelte-od3veb",null,Be,De),he=ie(ce,1,"pulse svelte-od3veb",null,he,pe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(q)})]),Ct("mouseleave",se,me),$(t,se),z(),o()}at(["mousemove","click"]);function Hu(t,e){U(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),s=v(e,"ref",15);Eo(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 s()},set ref(l){s(l)},children:(l,d)=>{var a=qe();let p=g(()=>e.buttonComponent);var f=ge(a);Ei(f,()=>r(p),(m,u)=>{u(m,hs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var $s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Cy=we('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Ws(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Pm(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var Ty=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Ey=A("<!> <!>",1),Iy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ia(t,e){U(e,!0),K(t,Iy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Te().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(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(a)},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{var u=Ey(),y=ge(u);{var w=T=>{var E=Ty();$(T,E)};V(y,T=>{o()&&T(w)})}var x=P(y,2);let S=g(()=>e.type==="prev");Ws(x,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),z()}var ky=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function jd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ky();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var a0=require("@vkontakte/videoplayer-shared/es2018");var Py=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ay=A("<!> <div><!></div>",1),My={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Tl(t,e){U(e,!0),K(t,My);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,a0.noop),d=W("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Dt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return rs.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var m=Ay(),u=ge(m);{var y=T=>{var E=Py();$(T,E)};V(u,T=>{o()&&T(y)})}var w=P(u,2);let x;var S=_(w);jd(S,{}),h(w),B(T=>x=ie(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(p,m)},$$slots:{default:!0}}),z()}var Ly=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function zr(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"),s=v(e,"fill",3,"var(--btn-color)");var l=Ly(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var Vy=we('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ys(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"),s=v(e,"fill",3,"var(--btn-color)");var l=Vy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var l0=require("@vkontakte/videoplayer-shared/es2018");var Ry=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ny=A("<!> <div><!></div>",1),Oy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function El(t,e){U(e,!0),K(t,Oy);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=mo(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,l0.noop),y=Te().ui.t,{toggle:w}=s,x=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),R=g(()=>r(T)?ys:zr),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),M=g(()=>r(S)?r(x):m());Dt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(M)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return rs.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,G)=>{var H=Ny();let F=g(()=>r(R));var q=ge(H);{var Y=fe=>{var be=Ry();$(fe,be)};V(q,fe=>{d()&&fe(Y)})}var j=P(q,2);let ue;var re=_(j);Ei(re,()=>r(F),(fe,be)=>{be(fe,{})}),h(j),B(fe=>ue=ie(j,1,"svelte-1ot3duq",null,ue,fe),[()=>({mobile:d()})]),$(k,H)},$$slots:{default:!0}}),z(),o()}var By=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=By();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Yd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=W("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Am(d,{})},$$slots:{default:!0}}),z()}var Dy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Hy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Zd(t,e){U(e,!0),K(t,Hy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Te(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},m=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Dt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=Dy(),S=_(x);let T;var E=_(S);{var R=M=>{zr(M,{width:"14",height:"14",fill:"#000"})},I=M=>{ys(M,{width:"14",height:"14",fill:"#000"})};V(E,M=>{n()?M(R):M(I,!1)})}h(S),h(x),B(M=>T=ie(S,1,"toggler svelte-et3q1q",null,T,M),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Fy=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Mm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Xd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=W("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Mm(d,{})},$$slots:{default:!0}}),z()}var Uy=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var zy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Vm(t,e){K(t,zy);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Lm(t,{get"data-testid"(){return r(o)}})}function Jd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=v(e,"graphIsOpened",3,!1),d=Te().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{let u=g(()=>!!s());Vm(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Rm=require("@vkontakte/videoplayer-core/es2018");function ec(t,e){U(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Te(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Rm.PlaybackState.PAUSED&&m()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===Rm.PlaybackState.PLAYING);Dt(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,T)=>{Td(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Nm=require("@vkontakte/videoplayer-shared/es2018");var Wy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ky=A('<img class="icon" aria-hidden="true"/>');function ka(t,e){"use strict";let i=Z(!1),o=()=>{O(i,!0)};var n=qe(),s=ge(n);{var l=a=>{var p=Wy();$(a,p)},d=a=>{var p=Ky();B(()=>Ue(p,"src",e.icon)),Ct("error",p,o),ra(p),$(a,p)};V(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function Om(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Nm.noop),n=v(e,"ref",15),s=g(()=>o()===Nm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Eo(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m:e.id});Dt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(m,u)=>{ka(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var d0=t=>!!t.buttonComponent;var xs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Fu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(On(t,i,n,o))};var Gy=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),jy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Dm(t,e){var wo,Qs;U(e,!0),K(t,jy);let[i,o]=He(),n=()=>C(di,"$disabledControls$",i),s=()=>C(Qt,"$adPlaybackState",i),l=()=>C(zt,"$playbackState$",i),d=()=>C(ft,"$currentSubtitle$",i),a=()=>C($i,"$isEnded$",i),p=()=>C(ci,"$currentGridType$",i),f=()=>C(_i,"$isLive$",i),m=()=>C(rn,"$chromecastState$",i),u=()=>C(Yt,"$isPictureInPictureActive",i),y=()=>C(dt,"$pictureInPictureType$",i),w=()=>C(Lt,"$availableSubtitlesList$",i),x=()=>C(ti,"$contextMenuOpenedByKeyboard$",i),S=()=>C(qi,"$showContextMenuBtn$",i),T=()=>C(At,"$playerSize",i),E=()=>C(Vi,"$isRewindableLive$",i),R=()=>C(ct,"$isActiveLive$",i),I=()=>C(Po,"$graphIsOpened$",i),M=()=>C(ko,"$contextMenuVisible$",i),k=()=>C(Pt,"$isFullscreen",i),G=()=>C(ai,"$autoplayNextEnabled",i),H=()=>C(r(fn),"$prevButton",i),F=()=>C(r(In),"$replayButton",i),q=()=>C(r(Pr),"$playButton",i),Y=()=>C(r(Ar),"$nextButton",i),j=()=>C(r(vt),"$playPrevChapterButton",i),ue=()=>C(r($t),"$seekToInteractiveButton",i),re=()=>C(r(io),"$interactiveGraphButton",i),fe=()=>C(r(Bi),"$liveButton",i),be=()=>C(r(uo),"$time",i),me=()=>C(r(po),"$episodes",i),Pe=()=>C(r(Yo),"$vkLogo",i),se=()=>C(r(oo),"$volume",i),Le=()=>C(r(qn),"$subtitles",i),ae=()=>C(r(Ao),"$settings",i),N=()=>C(r(pr),"$context",i),Be=()=>C(r(Mr),"$fullscreen",i),ce=()=>C(r(Gr),"$chromecast",i),he=()=>C(qo,"$additionalDesktopControlPanelRightButtons$",i),oe=()=>C(vo,"$isInteractiveTime$",i),ve=()=>C(si,"$settingsMenuVisible",i),De=()=>C(mi,"$settingButtonRef$",i),pe=()=>C(Ko,"$startedByKeyboard$",i),st=()=>C(qt,"$isAudioAvailable$",i),X=()=>C(jt,"$fakeIsPlaying$",i),Ae=()=>C(an,"$seekToInteractiveDisabledTooltip$",i),ke=()=>C(ut,"$adPosition",i),ze=()=>C(et,"$position$",i),rt=()=>C(Ke,"$adDuration",i),bt=()=>C(Ne,"$duration$",i),lt=v(e,"playerControlsWrapperRef",15,void 0),wt=v(e,"playerControlsRef",15,void 0),Je=v(e,"isAds",3,!1),Ut=v(e,"logoTargetUrl",3,""),Xt=v(e,"isOneVideoPlaylist",3,!1),Ht=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:jt}=mo(),Ee=Te(),Kt=mo(),Se=kt(),te=Ee.actions.internal.toggleMuted,ne=Ee.actions.internal.togglePlay,Ve=Ee.actions.internal.pause,Fe=Ee.actions.internal.toggleSubtitle,Re=(wo=Ee.callbacks)==null?void 0:wo.onAudioDoesNotExistHint,We=(Qs=Ee.callbacks)==null?void 0:Qs.onAudioDisabledHint,Ne=Ee.state.duration$,et=Ee.state.positionWithScrubbing$,zt=Ee.state.playbackState$,qt=Ee.state.isAudioAvailable$,Et=Ee.state.isAudioDisabled,$i=Ee.state.isEnded$,_i=Ee.state.isLive$,ct=Ee.state.isActiveLive$,Vi=Ee.state.isRewindableLive$,{isActive$:Yt,type$:dt}=Kt.pictureInPicture$,si=Ee.ui.settingsMenu.visible$,Ri=Ee.ui.settingsMenu.openedByBtnKeyboard$,Mt=Ee.ui.controls,ri=Ee.actions.internal.getVideoEpisodes(),rn=Ee.state.chromecastState$,Lt=Ee.state.availableSubtitlesList$,ft=Ee.state.currentSubtitle$,di=Mt.disabledControls$,ko=Ee.ui.contextMenu.visible$,qi=Ee.ui.contextMenu.showContextMenuBtn$,ti=Ee.ui.contextMenu.openedByBtnKeyboard$,Ko=Ee.ui.startedByKeyboard$,Dn=Ee.ui.controlBlocks,D=Ee.ui.t,Ke=Ee.ads.duration,ut=Ee.ads.position,Qt=Ee.ads.playbackState,Pt=Ee.ui.isFullscreen,At=Ee.ui.playerSize,ci=Ee.ui.currentGridType$,qo=Ee.ui.additionalDesktopControlPanelRightButtons$,ai=Ee.ui.autoplayNextEnabled$,St=Ee.actions.internal.getVideoElement,to=Ee.actions.internal.replayInteractive,Qi=Ee.actions.internal.prevVideoClick,Hn=Ee.actions.internal.nextVideoClick,Ni=Ee.state.isInteractive,vo=Ee.state.isInteractiveTime$,go=Ee.state.showInteractiveGraph,xn=Ee.state.showSeekToInteractive,sn=Ee.state.showPlayPrevChapter,ki=Ee.state.showInteractiveTimeIndicator,Gi=Ee.state.playPrevChapterDisabledTooltip,an=Kt.seekToInteractiveDisabledTooltip$,Po=Kt.graphIsOpened$,ln=Se.features.interactiveResponsiveUi,dn=g(()=>n().has("EPISODE_BUTTON")),wr=g(()=>n().has("GRAPH_BUTTON")),Fn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Sr=g(()=>n().has("PLAY_BUTTON")),lr=g(()=>n().has("REPLAY_BUTTON")),Kr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>Ee.actions.internal.toggleChromecast(),Un=g(()=>Je()?s()==="playing":l()===Pa.PlaybackState.PLAYING),dr=g(()=>d().value!=="off"),wn=g(()=>a()&&!Je()||Ni),lo=g(()=>ln?r(wn)&&Xi(p(),"m"):r(wn)),zn=g(()=>!a()||Ni||Je()),Cr=g(()=>Xi(p(),"m")),Sn=g(()=>e.showNextPrevButtons&&Xi(p(),"m")&&!Je()&&e.nextButtonActive),cr=g(()=>e.showNextPrevButtons&&Xi(p(),"m")&&!Je()&&e.prevButtonActive),Wn=g(()=>!Je()&&!!f()),Qo=g(()=>m()!==Pa.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Xi(p(),"m")&&!Ni),Kn=g(()=>e.showAutoplayNext&&!Xt()&&Xi(p(),"s")),qr=g(()=>w().length>0&&Xi(p(),"m")),Tr=g(()=>x()||S()),ho=g(()=>Xi(p(),"s")&&!Je()),mt=g(()=>!e.logoHidden&&!Je()),Zt=g(()=>Se.features.fullscreen&&(e.logoHidden||Xi(p(),ln?"xs":"s"))&&!(u()&&y()===1)&&(Ni?Ht():!0)),Cn=g(()=>(!f()||Je())&&!(Se.features.interactiveHideTime&&Ni)),ji=g(()=>T().width>100),Oi=g(()=>go&&Xi(p(),"m")),Go=g(()=>ln?xn&&Xi(p(),"s"):xn),Tn=g(()=>ln?sn&&Xi(p(),"s"):sn),co=g(()=>!Je()&&!f()&&!!(ri!=null&&ri.length)&&r(Cr)&&!r(dn)),un=g(()=>!E()||!!R()),jo=g(()=>I()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),_o=g(()=>M()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),Er=(yt,_t)=>yt?_t&&_t===Pa.PlaybackState.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Ir=g(()=>Er(r(un),l())),Qr=g(()=>Se.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),ds=g(()=>r(dr)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),En=g(()=>k()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),ur=g(()=>m()===Pa.ChromecastState.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),kr=g(()=>G()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),bo=Z(0),ii=ni({}),pn=ni({}),fn=g(()=>Mt.prevButton),In=g(()=>Mt.replayButton),Pr=g(()=>Mt.playButton),Ar=g(()=>Mt.nextButton),vt=g(()=>Mt.playPrevChapterButton),$t=g(()=>Mt.seekToInteractiveButton),io=g(()=>Mt.interactiveGraphButton),Bi=g(()=>Mt.liveButton),uo=g(()=>Mt.time),po=g(()=>Mt.episodes),Yo=g(()=>Mt.vkLogo),oo=g(()=>Mt.volume),qn=g(()=>Mt.subtitles),Ao=g(()=>Mt.settings),pr=g(()=>Mt.context),Mr=g(()=>Mt.fullscreen),Gr=g(()=>Mt.chromecast),Mo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:q()?q().right-q().left:0,nextButton:Y()?Y().right-Y().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:fe()?fe().right-fe().left:0,time:be()?be().right-be().left:0,episodes:me()?me().right-me().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:se()?se().right-se().left:0,subtitles:Le()?Le().right-Le().left:0,settings:ae()?ae().right-ae().left:0,context:N()?N().right-N().left:0,fullscreen:Be()?Be().right-Be().left:0,chromecast:ce()?ce().right-ce().left:0,additionalButtons:he().length?he().reduce(yt=>[...yt,40],[]):[]})),Qn=Z(0);Qe(()=>{(!r(Qn)||r(Qn)<r(Mo).time)&&xt(()=>O(Qn,r(Mo).time,!0))});let Gn=Z(!1);Qe(()=>{let yt=0;r(co)&&(Xi(p(),"xl")?yt=r(Mo).time:yt=60);let _t=r(Mo).prevButton+r(Mo).playButton+r(Mo).nextButton+r(Mo).seekToInteractiveButton+r(Mo).interactiveGraphButton+r(Mo).liveButton+r(Qn)+yt;O(Gn,r(Cn)&&r(bo)>=_t,!0)});let fr=g(()=>r(Gn)&&Xi(p(),"m")),it=(0,Bm.debounceFn)(Cl,260),Tt=(0,Bm.debounceFn)(Fu,260);Qe(()=>{T(),oe(),it(St(),Mt,ii,e.showControls),Tt(St(),Dn,pn,e.showControls)}),Qe(()=>{pn.bottom=lt()});let mi=le();Qe(()=>{ve(),De()&&xt(()=>hl(De(),ve(),Ri))});let Di;Qe(()=>{pe(),xt(()=>Du(Ko,pe(),Di))});function $o(){Hs({isAudioDisabled:Et,isAudioAvailable:st(),isAds:Je(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:We})&&te()}let no=Ni?to:ne,Pi=g(()=>X()!==null),Lo=g(()=>r(Pi)?X():r(Un)),jn=g(()=>r(Lo)?D("tooltip_pause"):D("tooltip_play")),mn=D("tooltip_episodes"),yo=g(()=>{var yt,_t,fo,Xo;return r(cr)?{id:"prevButton",type:"desktop-control-panel-left",weight:$s.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Qi.bind(null,!0)},tooltipEnabled:!((_t=(yt=Ee.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Xo=(fo=Ee.callbacks)==null?void 0:fo.uiInfo)!=null&&Xo.onPrevButtonMouseLeave),mouseEnter:()=>{var Yi,ui,gi;(gi=(ui=(Yi=Ee.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:ui.onPrevButtonMouseEnter)==null||gi.call(ui,On(St(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var Yi,ui,gi;(gi=(ui=(Yi=Ee.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:ui.onPrevButtonMouseLeave)==null||gi.call(ui,On(St(),ii,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Vo=g(()=>r(lo)?{id:"replayButton",type:"desktop-control-panel-left",weight:$s.replayButton,buttonComponent:Tl,buttonComponentProps:{disabled:r(lr),click:no},tooltipText:D("tooltip_restart"),disabled:r(lr)}:void 0),mr=g(()=>r(zn)?{id:"playButton",type:"desktop-control-panel-left",weight:$s.playButton,buttonComponent:El,buttonComponentProps:{disabled:r(Sr),isPlaying:r(Un),click:ne},tooltipText:r(jn),disabled:r(Sr)}:void 0),kn=g(()=>{var yt,_t,fo,Xo;return r(Sn)?{id:"nextButton",type:"desktop-control-panel-left",weight:$s.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Hn.bind(null,!0)},tooltipEnabled:!((_t=(yt=Ee.callbacks)==null?void 0:yt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Xo=(fo=Ee.callbacks)==null?void 0:fo.uiInfo)!=null&&Xo.onNextButtonMouseLeave),mouseEnter:()=>{var Yi,ui,gi;(gi=(ui=(Yi=Ee.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:ui.onNextButtonMouseEnter)==null||gi.call(ui,On(St(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var Yi,ui,gi;(gi=(ui=(Yi=Ee.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:ui.onNextButtonMouseLeave)==null||gi.call(ui,On(St(),ii,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Yn=g(()=>Ni&&r(Tn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:$s.playPrevChapterButton,buttonComponent:Yd,buttonComponentProps:{disabled:r(Kr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(Gi),disabled:r(Kr)}:void 0),vr=g(()=>Ni&&r(Go)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:$s.seekToInteractiveButton,buttonComponent:Xd,buttonComponentProps:{disabled:r(Fn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Fn),disabledTooltipContent:D(Ae())}:void 0),Ro=g(()=>Ni&&r(Oi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:$s.interactiveGraphButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(wr),click:Po.toggle,graphIsOpened:I()},tooltipText:r(jo)}:void 0),Lr=g(()=>r(Wn)?{id:"liveButton",type:"desktop-control-panel-left",weight:$s.liveButton,buttonComponent:ec,buttonComponentProps:{isLiveActive:r(un),ariaLabel:r(Ir)},tooltipText:r(Ir),disabled:r(un)&&l()===Pa.PlaybackState.PLAYING}:void 0),jr=g(()=>[r(yo),r(Vo),r(mr),r(kn),r(Yn),r(vr),r(Ro),r(Lr)].filter(yt=>!!yt).sort(ba)),Zn=g(()=>r(mt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:xs.vkLogo,buttonComponent:Ud,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:Ve},tooltipText:r(Qr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),gr=g(()=>r(Kn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:xs.autoplayNext,buttonComponent:Zd,tooltipText:r(kr)}:void 0),Ye=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:xs.volume,buttonComponent:um,buttonComponentProps:{click:$o,isAds:Je()}})),Jt=g(()=>r(qr)?{id:"subtitles",type:"desktop-control-panel-right",weight:xs.subtitles,buttonComponent:am,buttonComponentProps:{isSubtitlesEnabled:r(dr),click:Fe},tooltipText:r(ds)}:void 0),vi=g(()=>r(ho)?{id:"settings",type:"desktop-control-panel-right",weight:xs.settings,buttonComponent:xl,buttonComponentProps:{ref$:mi},tooltipText:ve()?void 0:D("tooltip_settings_off")}:void 0),yi=g(()=>Se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:xs.context,buttonComponent:km,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Tr)?"":"out-of-view",tooltipText:r(_o)}:void 0),No=g(()=>r(Zt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:xs.fullscreen,buttonComponent:Fd,buttonComponentProps:{isFullscreen:k(),click:e.toggleFullscreen},tooltipText:r(En)}:void 0),Yr=g(()=>r(Qo)?{id:"chromecast",type:"desktop-control-panel-right",weight:xs.chromecast,buttonComponent:zd,buttonComponentProps:{state:m(),click:cn},tooltipText:r(ur)}:void 0),Oo=g(()=>[r(Zn),r(gr),r(Ye),r(Jt),r(vi),r(yi),r(No),r(Yr),...he()].filter(yt=>!!yt).sort(ba));var Pn=Gy(),Xn=ge(Pn);let Zr;var J=_(Xn);let Xe=g(()=>!e.showControls),Wt=g(()=>!r(ji));Ta(J,{get isHidden(){return r(Xe)},get timelineNotAvailable(){return r(Wt)},get isAds(){return Je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ii.timeline},set ref(yt){ii.timeline=yt}});var pi=P(J,2),Hi=_(pi),Fi=_(Hi);Ti(Fi,17,()=>r(jr),yt=>yt.id,(yt,_t)=>{Hu(yt,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get tooltipEnabled(){return r(_t).tooltipEnabled},get mouseEnter(){return r(_t).mouseEnter},get mouseLeave(){return r(_t).mouseLeave},get ref(){return ii[r(_t).id]},set ref(fo){ii[r(_t).id]=fo}})});var Si=P(Fi,2);{var An=yt=>{let _t=g(()=>!e.showControls),fo=g(()=>Je()?ke():ze()),Xo=g(()=>Je()?rt():bt());Bd(yt,{get isHidden(){return r(_t)},isMobile:!1,get showDuration(){return r(fr)},get position(){return r(fo)},get duration(){return r(Xo)},get ref(){return ii.time},set ref(Yi){ii.time=Yi}})};V(Si,yt=>{r(Cn)&&yt(An)})}var Ci=P(Si,2);let li=g(()=>!r(co));Eo(Ci,{className:"w-max",get disabled(){return r(li)},get tooltipContent(){return mn},get ref(){return ii.episodes},set ref(yt){ii.episodes=yt},children:(yt,_t)=>{var fo=qe(),Xo=ge(fo);{var Yi=ui=>{Kd(ui,{get position(){return ze()},get duration(){return bt()},get timeCodes(){return ri}})};V(Xo,ui=>{r(co)&&ui(Yi)})}$(yt,fo)},$$slots:{default:!0}}),h(Hi);var Zo=P(Hi,2);Ti(Zo,21,()=>r(Oo),yt=>yt.id,(yt,_t)=>{var fo=qe(),Xo=ge(fo);{var Yi=gi=>{Hu(gi,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get ref(){return ii[r(_t).id]},set ref(Ss){ii[r(_t).id]=Ss}})},ui=gi=>{let Ss=g(()=>!!r(_t).disabled);Om(gi,{get id(){return r(_t).id},get testId(){return r(_t).testId},get icon(){return r(_t).icon},get ariaLabel(){return r(_t).ariaLabel},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(Ss)},get onClick(){return r(_t).onClick},get disableMouseupTooltipShow(){return r(_t).disableMouseupTooltipShow},get ref(){return ii[r(_t).id]},set ref(Bl){ii[r(_t).id]=Bl}})};V(Xo,gi=>{d0(r(_t))?gi(Yi):gi(ui,!1)})}$(yt,fo)}),h(Zo),h(pi),tt(pi,yt=>wt(yt),()=>wt()),h(Xn),tt(Xn,yt=>lt(yt),()=>lt());var hr=P(Xn,2);{var xo=yt=>{Gd(yt,{get ref(){return ii.interactiveTimeIndicator},set ref(_t){ii.interactiveTimeIndicator=_t}})};V(hr,yt=>{ki&&yt(xo)})}B(yt=>Zr=ie(Xn,1,"wrapper-bottom svelte-f6e8ix",null,Zr,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ar(Hi,"clientWidth",yt=>O(bo,yt)),$(t,Pn),z(),o()}var Il=require("@vkontakte/videoplayer-core/es2018");var Hm=require("@vkontakte/videoplayer-shared/es2018");var Yy=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Zy=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Xy={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 Fm(t,e){K(t,Xy);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Hm.noop),n=g(()=>o()===Hm.noop),s=g(()=>r(n)||i()),l=Z(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Dt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(p,f)=>{var m=qe(),u=ge(m);{var y=x=>{var S=Yy();$(x,S)},w=x=>{var S=Zy();B(()=>Ue(S,"src",e.iconUrl)),Ct("error",S,d),ra(S),$(x,S)};V(u,x=>{r(l)?x(y):x(w,!1)})}$(p,m)},$$slots:{default:!0}})}var Jy=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Um(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var c0=require("@vkontakte/videoplayer-shared/es2018");var e4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),t4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Uu(t,e){U(e,!0),K(t,t4);let i=v(e,"muted",3,!1),o=v(e,"click",3,c0.noop),n=v(e,"ref",15,void 0),l=Te().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Um:Us),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Dt(t,{get testId(){return r(p)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var u=e4();let y=g(()=>r(a));var w=_(u);Ei(w,()=>r(y),(x,S)=>{S(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var i4=we('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=i4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(3),h(o),$(t,o)}var o4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Wm(t,e){K(t,o4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");zm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var u0=require("@vkontakte/videoplayer-shared/es2018");function Km(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,u0.noop),s=W("menu_pip");Dt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Wm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var qm=require("@vkontakte/videoplayer-shared/es2018");var n4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},r4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},s4=A("<div><!></div>"),a4=A("<div><!></div>"),l4=A("<div><!></div>"),d4=A("<!> <!> <!>",1),c4=A("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),u4=A('<div class="wrapper-middle svelte-68kopu"><!></div>'),p4=A("<div><!></div> <!> <div><!></div>",1),f4=A('<div aria-hidden="true">\xB7</div> <!>',1),m4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),v4={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {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-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {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-68kopu {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-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
250
+ 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 Wd(t,e){var te;U(e,!0),q(t,hy);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(x,"$interactiveControlsOpacity$",i),p=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),y=Ee(),w=ho(),{interactiveControlsOpacity$:x}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,V=w.showInteractiveTimeIndicatorTooltip$,k=y.ui.controlsVisible,I=(te=y.callbacks)==null?void 0:te.onInteractiveTimeIndicatorClick,R=y.ui.currentGridType$,Y=g(()=>!n()&&s()),H=g(()=>Us(l(),"s")),F=g(()=>!d()||!!a()||r(Y)),W=j(!1);Ke(()=>{O(W,r(F),!0)});let J=()=>{O(W,!0)},G=()=>{var me;ce(),(me=r(u))==null||me.addEventListener("animationiteration",J,{once:!0})},ce=()=>{var me;O(W,!1),(me=r(u))==null||me.removeEventListener("animationiteration",J)},ie=me=>{V.set(me)},ue=g(()=>p()&&!r(F));Ke(()=>{p()?G():ce()});let $e=()=>{r(F)||(V.set(!0),I==null||I())};nn(()=>{V.clearTimeout(),ce()});let fe=()=>{V.set(!1)},ke=K("tooltip_interactive_interaction_time_indicator");var ne=gy();let Ve;ne.__mousemove=[vy],ne.__click=$e;var re=_(ne);Po(re,{get tooltipContent(){return ke},get tooltipActive(){return r(ue)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ie,get ref(){return v()},set ref(me){v(me)},children:(me,De)=>{Rd(me,{completed:!0})},$$slots:{default:!0}});var N=P(re,2);let Be;ot(N,me=>v(me),()=>v());var le=P(N,2);let ve;ot(le,me=>O(u,me),()=>r(u)),h(ne),B((me,De,pe)=>{Ve=ee(ne,1,"interactive-episode-icon-animated svelte-od3veb",null,Ve,me),Be=ee(N,1,"ref-block svelte-od3veb",null,Be,De),ve=ee(le,1,"pulse svelte-od3veb",null,ve,pe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(W)})]),St("mouseleave",ne,fe),$(t,ne),z(),o()}dt(["mousemove","click"]);function Ru(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(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 s()},set ref(l){s(l)},children:(l,d)=>{var a=We();let p=g(()=>e.buttonComponent);var f=ge(a);Ei(f,()=>r(p),(v,u)=>{u(v,hs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var $s={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var by=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=by();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function zs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");xm(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var $y=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),yy=M("<!> <!>",1),xy={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 Ia(t,e){U(e,!0),q(t,xy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Ot(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(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=yy(),y=ge(u);{var w=T=>{var E=$y();$(T,E)};L(y,T=>{o()&&T(w)})}var x=P(y,2);let S=g(()=>e.type==="prev");zs(x,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),z()}var wy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Kd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=wy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var Z1=require("@vkontakte/videoplayer-shared/es2018");var Sy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=M("<!> <div><!></div>",1),Ty={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 El(t,e){U(e,!0),q(t,Ty);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,Z1.noop),d=K("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Ot(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return rs.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=Cy(),u=ge(v);{var y=T=>{var E=Sy();$(T,E)};L(u,T=>{o()&&T(y)})}var w=P(u,2);let x;var S=_(w);Kd(S,{}),h(w),B(T=>x=ee(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(p,v)},$$slots:{default:!0}}),z()}var Ey=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Ur(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Ey(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}var Iy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function ys(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Iy(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),$(t,l)}var X1=require("@vkontakte/videoplayer-shared/es2018");var ky=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Py=M("<!> <div><!></div>",1),Ay={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 Il(t,e){U(e,!0),q(t,Ay);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=ho(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,X1.noop),y=Ee().ui.t,{toggle:w}=s,x=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),V=g(()=>r(T)?ys:Ur),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r(x):v());Ot(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return rs.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Y)=>{var H=Py();let F=g(()=>r(V));var W=ge(H);{var J=ue=>{var $e=ky();$(ue,$e)};L(W,ue=>{d()&&ue(J)})}var G=P(W,2);let ce;var ie=_(G);Ei(ie,()=>r(F),(ue,$e)=>{$e(ue,{})}),h(G),B(ue=>ce=ee(G,1,"svelte-1ot3duq",null,ce,ue),[()=>({mobile:d()})]),$(R,H)},$$slots:{default:!0}}),z(),o()}var My=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=My();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function qd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=K("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{wm(d,{})},$$slots:{default:!0}}),z()}var Ly=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Vy={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 Qd(t,e){U(e,!0),q(t,Vy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Ot(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=Ly(),S=_(x);let T;var E=_(S);{var V=I=>{Ur(I,{width:"14",height:"14",fill:"#000"})},k=I=>{ys(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(V):I(k,!1)})}h(S),h(x),B(I=>T=ee(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(y,x)},$$slots:{default:!0}}),z(),o()}var Ry=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Sm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function Gd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=K("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Sm(d,{})},$$slots:{default:!0}}),z()}var Ny=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Cm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var Oy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Tm(t,e){q(t,Oy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Cm(t,{get"data-testid"(){return r(o)}})}function jd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!s());Tm(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}var Em=require("@vkontakte/videoplayer-core/es2018");function Yd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===Em.PlaybackState.PAUSED&&v()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),x=g(()=>l()&&n()===Em.PlaybackState.PLAYING);Ot(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(x)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,T)=>{xd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Im=require("@vkontakte/videoplayer-shared/es2018");var By=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Dy=M('<img class="icon" aria-hidden="true"/>');function ka(t,e){"use strict";let i=j(!1),o=()=>{O(i,!0)};var n=We(),s=ge(n);{var l=a=>{var p=By();$(a,p)},d=a=>{var p=Dy();B(()=>Fe(p,"src",e.icon)),St("error",p,o),ra(p),$(a,p)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function km(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Im.noop),n=m(e,"ref",15),s=g(()=>o()===Im.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Po(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Ot(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,u)=>{ka(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var J1=t=>!!t.buttonComponent;var xs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Nu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Dn(t,i,n,o))};var Uy=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),zy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Am(t,e){var go,Fa;U(e,!0),q(t,zy);let[i,o]=He(),n=()=>C(bi,"$disabledControls$",i),s=()=>C(Ut,"$adPlaybackState",i),l=()=>C(Lt,"$playbackState$",i),d=()=>C(ut,"$currentSubtitle$",i),a=()=>C(xi,"$isEnded$",i),p=()=>C(li,"$currentGridType$",i),f=()=>C(hi,"$isLive$",i),v=()=>C(sn,"$chromecastState$",i),u=()=>C(jt,"$isPictureInPictureActive",i),y=()=>C(_i,"$pictureInPictureType$",i),w=()=>C(Pt,"$availableSubtitlesList$",i),x=()=>C(oi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Wi,"$showContextMenuBtn$",i),T=()=>C(ai,"$playerSize",i),E=()=>C(ii,"$isRewindableLive$",i),V=()=>C(it,"$isActiveLive$",i),k=()=>C(Yo,"$graphIsOpened$",i),I=()=>C(Lo,"$contextMenuVisible$",i),R=()=>C(ct,"$isFullscreen",i),Y=()=>C(di,"$autoplayNextEnabled",i),H=()=>C(r(Er),"$prevButton",i),F=()=>C(r(ds),"$replayButton",i),W=()=>C(r(Ir),"$playButton",i),J=()=>C(r(Ni),"$nextButton",i),G=()=>C(r(ht),"$playPrevChapterButton",i),ce=()=>C(r(zt),"$seekToInteractiveButton",i),ie=()=>C(r(Qi),"$interactiveGraphButton",i),ue=()=>C(r(Oi),"$liveButton",i),$e=()=>C(r(xo),"$time",i),fe=()=>C(r(no),"$episodes",i),ke=()=>C(r(Oo),"$vkLogo",i),ne=()=>C(r(Ci),"$volume",i),Ve=()=>C(r(En),"$subtitles",i),re=()=>C(r(cr),"$settings",i),N=()=>C(r(Gr),"$context",i),Be=()=>C(r(jr),"$fullscreen",i),le=()=>C(r(Yr),"$chromecast",i),ve=()=>C(bo,"$additionalDesktopControlPanelRightButtons$",i),te=()=>C(io,"$isInteractiveTime$",i),me=()=>C(Mo,"$settingsMenuVisible",i),De=()=>C(vi,"$settingButtonRef$",i),pe=()=>C(Go,"$startedByKeyboard$",i),at=()=>C(Kt,"$isAudioAvailable$",i),Z=()=>C(Wt,"$fakeIsPlaying$",i),Ae=()=>C(jo,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>C(pt,"$adPosition",i),ze=()=>C(et,"$position$",i),lt=()=>C(Ue,"$adDuration",i),vt=()=>C(Oe,"$duration$",i),gt=m(e,"playerControlsWrapperRef",15,void 0),Ct=m(e,"playerControlsRef",15,void 0),Ge=m(e,"isAds",3,!1),Ht=m(e,"logoTargetUrl",3,""),Xt=m(e,"isOneVideoPlaylist",3,!1),Gt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=ho(),oe=Ee(),Ft=ho(),he=kt(),we=oe.actions.internal.toggleMuted,ae=oe.actions.internal.togglePlay,Re=oe.actions.internal.pause,qe=oe.actions.internal.toggleSubtitle,Le=(go=oe.callbacks)==null?void 0:go.onAudioDoesNotExistHint,Ye=(Fa=oe.callbacks)==null?void 0:Fa.onAudioDisabledHint,Oe=oe.state.duration$,et=oe.state.positionWithScrubbing$,Lt=oe.state.playbackState$,Kt=oe.state.isAudioAvailable$,tt=oe.state.isAudioDisabled,xi=oe.state.isEnded$,hi=oe.state.isLive$,it=oe.state.isActiveLive$,ii=oe.state.isRewindableLive$,{isActive$:jt,type$:_i}=Ft.pictureInPicture$,Mo=oe.ui.settingsMenu.visible$,_o=oe.ui.settingsMenu.openedByBtnKeyboard$,Dt=oe.ui.controls,ri=oe.actions.internal.getVideoEpisodes(),sn=oe.state.chromecastState$,Pt=oe.state.availableSubtitlesList$,ut=oe.state.currentSubtitle$,bi=Dt.disabledControls$,Lo=oe.ui.contextMenu.visible$,Wi=oe.ui.contextMenu.showContextMenuBtn$,oi=oe.ui.contextMenu.openedByBtnKeyboard$,Go=oe.ui.startedByKeyboard$,Fn=oe.ui.controlBlocks,D=oe.ui.t,Ue=oe.ads.duration,pt=oe.ads.position,Ut=oe.ads.playbackState,ct=oe.ui.isFullscreen,ai=oe.ui.playerSize,li=oe.ui.currentGridType$,bo=oe.ui.additionalDesktopControlPanelRightButtons$,di=oe.ui.autoplayNextEnabled$,xt=oe.actions.internal.getVideoElement,Vi=oe.actions.internal.replayInteractive,Vo=oe.actions.internal.prevVideoClick,Un=oe.actions.internal.nextVideoClick,Ri=oe.state.isInteractive,io=oe.state.isInteractiveTime$,Ro=oe.state.showInteractiveGraph,wn=oe.state.showSeekToInteractive,Sn=oe.state.showPlayPrevChapter,ki=oe.state.showInteractiveTimeIndicator,Ki=oe.state.playPrevChapterDisabledTooltip,jo=Ft.seekToInteractiveDisabledTooltip$,Yo=Ft.graphIsOpened$,an=he.features.interactiveResponsiveUi,ln=g(()=>n().has("EPISODE_BUTTON")),Wr=g(()=>n().has("GRAPH_BUTTON")),zn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),$r=g(()=>n().has("PLAY_BUTTON")),rr=g(()=>n().has("REPLAY_BUTTON")),yr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),dn=()=>oe.actions.internal.toggleChromecast(),sr=g(()=>Ge()?s()==="playing":l()===Pa.PlaybackState.PLAYING),oo=g(()=>d().value!=="off"),Zo=g(()=>a()&&!Ge()||Ri),Wn=g(()=>an?r(Zo)&&Ji(p(),"m"):r(Zo)),Cn=g(()=>!a()||Ri||Ge()),xr=g(()=>Ji(p(),"m")),Kn=g(()=>e.showNextPrevButtons&&Ji(p(),"m")&&!Ge()&&e.nextButtonActive),ar=g(()=>e.showNextPrevButtons&&Ji(p(),"m")&&!Ge()&&e.prevButtonActive),wr=g(()=>!Ge()&&!!f()),Tn=g(()=>v()!==Pa.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&Ji(p(),"m")&&!Ri),qn=g(()=>e.showAutoplayNext&&!Xt()&&Ji(p(),"s")),Sr=g(()=>w().length>0&&Ji(p(),"m")),Cr=g(()=>x()||S()),po=g(()=>Ji(p(),"s")&&!Ge()),mt=g(()=>!e.logoHidden&&!Ge()),Jt=g(()=>he.features.fullscreen&&(e.logoHidden||Ji(p(),an?"xs":"s"))&&!(u()&&y()===1)&&(Ri?Gt():!0)),cn=g(()=>(!f()||Ge())&&!(he.features.interactiveHideTime&&Ri)),Pi=g(()=>T().width>100),qi=g(()=>Ro&&Ji(p(),"m")),Xo=g(()=>an?wn&&Ji(p(),"s"):wn),Jo=g(()=>an?Sn&&Ji(p(),"s"):Sn),$o=g(()=>!Ge()&&!f()&&!!(ri!=null&&ri.length)&&r(xr)&&!r(ln)),Qn=g(()=>!E()||!!V()),un=g(()=>k()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),No=g(()=>I()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),Kr=($t,yt)=>$t?yt&&yt===Pa.PlaybackState.PAUSED?D("tooltip_play"):"":D("tooltip_live"),qr=g(()=>Kr(r(Qn),l())),Tr=g(()=>he.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),Qr=g(()=>r(oo)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),Gn=g(()=>R()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),lr=g(()=>v()===Pa.ChromecastState.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),dr=g(()=>Y()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),yo=j(0),Zt=ni({}),fo=ni({}),Er=g(()=>Dt.prevButton),ds=g(()=>Dt.replayButton),Ir=g(()=>Dt.playButton),Ni=g(()=>Dt.nextButton),ht=g(()=>Dt.playPrevChapterButton),zt=g(()=>Dt.seekToInteractiveButton),Qi=g(()=>Dt.interactiveGraphButton),Oi=g(()=>Dt.liveButton),xo=g(()=>Dt.time),no=g(()=>Dt.episodes),Oo=g(()=>Dt.vkLogo),Ci=g(()=>Dt.volume),En=g(()=>Dt.subtitles),cr=g(()=>Dt.settings),Gr=g(()=>Dt.context),jr=g(()=>Dt.fullscreen),Yr=g(()=>Dt.chromecast),mo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:W()?W().right-W().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:ue()?ue().right-ue().left:0,time:$e()?$e().right-$e().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:ke()?ke().right-ke().left:0,volume:ne()?ne().right-ne().left:0,subtitles:Ve()?Ve().right-Ve().left:0,settings:re()?re().right-re().left:0,context:N()?N().right-N().left:0,fullscreen:Be()?Be().right-Be().left:0,chromecast:le()?le().right-le().left:0,additionalButtons:ve().length?ve().reduce($t=>[...$t,40],[]):[]})),In=j(0);Ke(()=>{(!r(In)||r(In)<r(mo).time)&&wt(()=>O(In,r(mo).time,!0))});let kr=j(!1);Ke(()=>{let $t=0;r($o)&&(Ji(p(),"xl")?$t=r(mo).time:$t=60);let yt=r(mo).prevButton+r(mo).playButton+r(mo).nextButton+r(mo).seekToInteractiveButton+r(mo).interactiveGraphButton+r(mo).liveButton+r(In)+$t;O(kr,r(cn)&&r(yo)>=yt,!0)});let Pr=g(()=>r(kr)&&Ji(p(),"m")),nt=(0,Pm.debounceFn)(Tl,260),Tt=(0,Pm.debounceFn)(Nu,260);Ke(()=>{T(),te(),nt(xt(),Dt,Zt,e.showControls),Tt(xt(),Fn,fo,e.showControls)}),Ke(()=>{fo.bottom=gt()});let vi=se();Ke(()=>{me(),De()&&wt(()=>_l(De(),me(),_o))});let Gi;Ke(()=>{pe(),wt(()=>Vu(Go,pe(),Gi))});function wo(){Ds({isAudioDisabled:tt,isAudioAvailable:at(),isAds:Ge(),audioIsNotExistHintCallback:Le,audioDisabledHintCallback:Ye})&&we()}let vo=Ri?Vi:ae,ro=g(()=>Z()!==null),Bo=g(()=>r(ro)?Z():r(sr)),kn=g(()=>r(Bo)?D("tooltip_pause"):D("tooltip_play")),pn=D("tooltip_episodes"),ji=g(()=>{var $t,yt,ao,vn;return r(ar)?{id:"prevButton",type:"desktop-control-panel-left",weight:$s.prevButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Vo.bind(null,!0)},tooltipEnabled:!((yt=($t=oe.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((vn=(ao=oe.callbacks)==null?void 0:ao.uiInfo)!=null&&vn.onPrevButtonMouseLeave),mouseEnter:()=>{var Di,pi,fi;(fi=(pi=(Di=oe.callbacks)==null?void 0:Di.uiInfo)==null?void 0:pi.onPrevButtonMouseEnter)==null||fi.call(pi,Dn(xt(),Zt,"prevButton",e.showControls))},mouseLeave:()=>{var Di,pi,fi;(fi=(pi=(Di=oe.callbacks)==null?void 0:Di.uiInfo)==null?void 0:pi.onPrevButtonMouseLeave)==null||fi.call(pi,Dn(xt(),Zt,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),So=g(()=>r(Wn)?{id:"replayButton",type:"desktop-control-panel-left",weight:$s.replayButton,buttonComponent:El,buttonComponentProps:{disabled:r(rr),click:vo},tooltipText:D("tooltip_restart"),disabled:r(rr)}:void 0),ur=g(()=>r(Cn)?{id:"playButton",type:"desktop-control-panel-left",weight:$s.playButton,buttonComponent:Il,buttonComponentProps:{disabled:r($r),isPlaying:r(sr),click:ae},tooltipText:r(kn),disabled:r($r)}:void 0),Pn=g(()=>{var $t,yt,ao,vn;return r(Kn)?{id:"nextButton",type:"desktop-control-panel-left",weight:$s.nextButton,buttonComponent:Ia,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Un.bind(null,!0)},tooltipEnabled:!((yt=($t=oe.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((vn=(ao=oe.callbacks)==null?void 0:ao.uiInfo)!=null&&vn.onNextButtonMouseLeave),mouseEnter:()=>{var Di,pi,fi;(fi=(pi=(Di=oe.callbacks)==null?void 0:Di.uiInfo)==null?void 0:pi.onNextButtonMouseEnter)==null||fi.call(pi,Dn(xt(),Zt,"nextButton",e.showControls))},mouseLeave:()=>{var Di,pi,fi;(fi=(pi=(Di=oe.callbacks)==null?void 0:Di.uiInfo)==null?void 0:pi.onNextButtonMouseLeave)==null||fi.call(pi,Dn(xt(),Zt,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),An=g(()=>Ri&&r(Jo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:$s.playPrevChapterButton,buttonComponent:qd,buttonComponentProps:{disabled:r(yr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(Ki),disabled:r(yr)}:void 0),pr=g(()=>Ri&&r(Xo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:$s.seekToInteractiveButton,buttonComponent:Gd,buttonComponentProps:{disabled:r(zn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(zn),disabledTooltipContent:D(Ae())}:void 0),Mn=g(()=>Ri&&r(qi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:$s.interactiveGraphButton,buttonComponent:jd,buttonComponentProps:{disabled:r(Wr),click:Yo.toggle,graphIsOpened:k()},tooltipText:r(un)}:void 0),Ar=g(()=>r(wr)?{id:"liveButton",type:"desktop-control-panel-left",weight:$s.liveButton,buttonComponent:Yd,buttonComponentProps:{isLiveActive:r(Qn),ariaLabel:r(qr)},tooltipText:r(qr),disabled:r(Qn)&&l()===Pa.PlaybackState.PLAYING}:void 0),Co=g(()=>[r(ji),r(So),r(ur),r(Pn),r(An),r(pr),r(Mn),r(Ar)].filter($t=>!!$t).sort(ba)),Ln=g(()=>r(mt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:xs.vkLogo,buttonComponent:Bd,buttonComponentProps:{targetUrl:Ht(),logoClickable:e.logoClickable,click:Re},tooltipText:r(Tr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Zr=g(()=>r(qn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:xs.autoplayNext,buttonComponent:Qd,tooltipText:r(dr)}:void 0),Ze=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:xs.volume,buttonComponent:om,buttonComponentProps:{click:wo,isAds:Ge()}})),ei=g(()=>r(Sr)?{id:"subtitles",type:"desktop-control-panel-right",weight:xs.subtitles,buttonComponent:Jf,buttonComponentProps:{isSubtitlesEnabled:r(oo),click:qe},tooltipText:r(Qr)}:void 0),$i=g(()=>r(po)?{id:"settings",type:"desktop-control-panel-right",weight:xs.settings,buttonComponent:wl,buttonComponentProps:{ref$:vi},tooltipText:me()?void 0:D("tooltip_settings_off")}:void 0),To=g(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:xs.context,buttonComponent:ym,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Cr)?"":"out-of-view",tooltipText:r(No)}:void 0),_e=g(()=>r(Jt)?{id:"fullscreen",type:"desktop-control-panel-right",weight:xs.fullscreen,buttonComponent:Od,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Gn)}:void 0),It=g(()=>r(Tn)?{id:"chromecast",type:"desktop-control-panel-right",weight:xs.chromecast,buttonComponent:Dd,buttonComponentProps:{state:v(),click:dn},tooltipText:r(lr)}:void 0),Yt=g(()=>[r(Ln),r(Zr),r(Ze),r(ei),r($i),r(To),r(_e),r(It),...ve()].filter($t=>!!$t).sort(ba));var ci=Uy(),Yi=ge(ci);let so;var Xe=_(Yi);let qt=g(()=>!e.showControls),Bi=g(()=>!r(Pi));Ta(Xe,{get isHidden(){return r(qt)},get timelineNotAvailable(){return r(Bi)},get isAds(){return Ge()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return Zt.timeline},set ref($t){Zt.timeline=$t}});var Do=P(Xe,2),fn=_(Do),jn=_(fn);Ti(jn,17,()=>r(Co),$t=>$t.id,($t,yt)=>{Ru($t,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get tooltipEnabled(){return r(yt).tooltipEnabled},get mouseEnter(){return r(yt).mouseEnter},get mouseLeave(){return r(yt).mouseLeave},get ref(){return Zt[r(yt).id]},set ref(ao){Zt[r(yt).id]=ao}})});var fr=P(jn,2);{var Mr=$t=>{let yt=g(()=>!e.showControls),ao=g(()=>Ge()?Ie():ze()),vn=g(()=>Ge()?lt():vt());Vd($t,{get isHidden(){return r(yt)},isMobile:!1,get showDuration(){return r(Pr)},get position(){return r(ao)},get duration(){return r(vn)},get ref(){return Zt.time},set ref(Di){Zt.time=Di}})};L(fr,$t=>{r(cn)&&$t(Mr)})}var Zi=P(fr,2);let ui=g(()=>!r($o));Po(Zi,{className:"w-max",get disabled(){return r(ui)},get tooltipContent(){return pn},get ref(){return Zt.episodes},set ref($t){Zt.episodes=$t},children:($t,yt)=>{var ao=We(),vn=ge(ao);{var Di=pi=>{Fd(pi,{get position(){return ze()},get duration(){return vt()},get timeCodes(){return ri}})};L(vn,pi=>{r($o)&&pi(Di)})}$($t,ao)},$$slots:{default:!0}}),h(fn);var mn=P(fn,2);Ti(mn,21,()=>r(Yt),$t=>$t.id,($t,yt)=>{var ao=We(),vn=ge(ao);{var Di=fi=>{Ru(fi,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get ref(){return Zt[r(yt).id]},set ref(qs){Zt[r(yt).id]=qs}})},pi=fi=>{let qs=g(()=>!!r(yt).disabled);km(fi,{get id(){return r(yt).id},get testId(){return r(yt).testId},get icon(){return r(yt).icon},get ariaLabel(){return r(yt).ariaLabel},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(qs)},get onClick(){return r(yt).onClick},get disableMouseupTooltipShow(){return r(yt).disableMouseupTooltipShow},get ref(){return Zt[r(yt).id]},set ref(Ua){Zt[r(yt).id]=Ua}})};L(vn,fi=>{J1(r(yt))?fi(Di):fi(pi,!1)})}$($t,ao)}),h(mn),h(Do),ot(Do,$t=>Ct($t),()=>Ct()),h(Yi),ot(Yi,$t=>gt($t),()=>gt());var mr=P(Yi,2);{var Ho=$t=>{Wd($t,{get ref(){return Zt.interactiveTimeIndicator},set ref(yt){Zt.interactiveTimeIndicator=yt}})};L(mr,$t=>{ki&&$t(Ho)})}B($t=>so=ee(Yi,1,"wrapper-bottom svelte-f6e8ix",null,so,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),nr(fn,"clientWidth",$t=>O(yo,$t)),$(t,ci),z(),o()}var kl=require("@vkontakte/videoplayer-core/es2018");var Mm=require("@vkontakte/videoplayer-shared/es2018");var Wy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Ky=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),qy={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 Lm(t,e){q(t,qy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Mm.noop),n=g(()=>o()===Mm.noop),s=g(()=>r(n)||i()),l=j(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Ot(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(p,f)=>{var v=We(),u=ge(v);{var y=x=>{var S=Wy();$(x,S)},w=x=>{var S=Ky();B(()=>Fe(S,"src",e.iconUrl)),St("error",S,d),ra(S),$(x,S)};L(u,x=>{r(l)?x(y):x(w,!1)})}$(p,v)},$$slots:{default:!0}})}var Qy=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Vm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var e0=require("@vkontakte/videoplayer-shared/es2018");var Gy=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),jy={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Ou(t,e){U(e,!0),q(t,jy);let i=m(e,"muted",3,!1),o=m(e,"click",3,e0.noop),n=m(e,"ref",15,void 0),l=Ee().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Vm:Fs),p=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ot(t,{get testId(){return r(p)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var u=Gy();let y=g(()=>r(a));var w=_(u);Ei(w,()=>r(y),(x,S)=>{S(x,{})}),h(u),$(f,u)},$$slots:{default:!0}}),z()}var Yy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Rm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),$(t,o)}var Zy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Nm(t,e){q(t,Zy);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Rm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var t0=require("@vkontakte/videoplayer-shared/es2018");function Om(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,t0.noop),s=K("menu_pip");Ot(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Nm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Bm=require("@vkontakte/videoplayer-shared/es2018");var Xy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Jy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},e4=M("<div><!></div>"),t4=M("<div><!></div>"),i4=M("<div><!></div>"),o4=M("<!> <!> <!>",1),n4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),r4=M('<div class="wrapper-middle svelte-68kopu"><!></div>'),s4=M("<div><!></div> <!> <div><!></div>",1),a4=M('<div aria-hidden="true">\xB7</div> <!>',1),l4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),d4={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {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-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {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-68kopu {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-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
252
252
  .wrapper-middle-left-second.svelte-68kopu,
253
253
  .wrapper-middle-right.svelte-68kopu {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-68kopu {left:12px;}.wrapper-middle-left-second.svelte-68kopu {left:64px;}.wrapper-middle-right.svelte-68kopu {right:12px;}.controls.svelte-68kopu {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-68kopu {display:flex;}.controls-group.contain.svelte-68kopu {min-width:0;}.controls-group.svelte-68kopu > *:not(:first-child) {margin-left:8px;}.hidden.svelte-68kopu {visibility:hidden;opacity:0;}.controls-hidden.svelte-68kopu {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-68kopu {transition:none;}.overlay-mobile.svelte-68kopu {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
254
254
 
@@ -256,7 +256,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
256
256
  }
257
257
 
258
258
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-68kopu {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-68kopu {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-68kopu {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-68kopu {left:96px;}.wrapper-middle-right.fullscreen.svelte-68kopu {right:44px;}.controls-wrapper.fullscreen.svelte-68kopu {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
259
- }`};function Qm(t,e){var Gn,fr;U(e,!0),K(t,v4);let[i,o]=He(),n=()=>C(to,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(ft,"$disabledControls$",i),l=()=>C(Ee,"$playbackState$",i),d=()=>C(Ko,"$adPlaybackState",i),a=()=>C(te,"$isEnded$",i),p=()=>C(D,"$playerSize",i),f=()=>C(Ne,"$scrubbingInProgress",i),m=()=>C(rn,"$chromecastState$",i),u=()=>C(zt,"$isPictureInPictureActive",i),y=()=>C(qt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),x=()=>C(Ri,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(dt,"$pipHidden",i),E=()=>C(ko,"$currentGridType$",i),R=()=>C(Vi,"$vkLogoHidden",i),I=()=>C(ct,"$volumeHidden",i),M=()=>C(ne,"$isLive$",i),k=()=>C(Et,"$settingsMenuVisible",i),G=()=>C(We,"$isRewindableLive$",i),H=()=>C(Re,"$isActiveLive$",i),F=()=>C(Kt,"$isAudioAvailable$",i),q=()=>C(Fe,"$muted$",i),Y=()=>C(Ve,"$volume$",i),j=()=>C(At,"$isInteractiveTime$",i),ue=()=>C(jo,"$settingButtonRef$",i),re=()=>C(di,"$startedByKeyboard$",i),fe=()=>C(Dn,"$isFullscreen",i),be=()=>C(Ke,"$additionalButtons$",i),me=()=>C(Yt,"$autoplayNextToggleHidden",i),Pe=()=>C(Lt,"$crashed$",i),se=()=>C(si,"$settingsHidden",i),Le=()=>C(Qi,"$graphIsOpened$",i),ae=()=>C(ti,"$adPosition",i),N=()=>C(qi,"$adDuration",i),Be=()=>C(jt,"$position$",i),ce=()=>C(Ht,"$duration$",i),he=v(e,"playerControlsWrapperRef",15,void 0),oe=v(e,"playerControlsRef",15,void 0),ve=v(e,"isAds",3,!1),De=v(e,"logoTargetUrl",3,""),pe=v(e,"isOneVideoPlaylist",3,!1),st=v(e,"customFullscreenSupported",3,!0),X=Te(),Ae=mo(),ke=kt(),ze=X.actions.internal.toggleMuted,rt=X.actions.internal.togglePlay,bt=X.actions.internal.pause,lt=X.actions.internal.prevVideoClick,wt=X.actions.internal.nextVideoClick,Je=(Gn=X.callbacks)==null?void 0:Gn.onAudioDoesNotExistHint,Ut=(fr=X.callbacks)==null?void 0:fr.onAudioDisabledHint,Xt=X.playerPhase,Ht=X.state.duration$,jt=X.state.positionWithScrubbing$,Ee=X.state.playbackState$,Kt=X.state.isAudioAvailable$,Se=X.state.isAudioDisabled,te=X.state.isEnded$,ne=X.state.isLive$,Ve=X.state.volume$,Fe=X.state.muted$,Re=X.state.isActiveLive$,We=X.state.isRewindableLive$,Ne=X.ui.scrubbingInProgress,et=X.ui.mobileNotReportControlHidden$,{isActive$:zt,type$:qt}=Ae.pictureInPicture$,Et=X.ui.settingsMenu.visible$,$i=X.ui.settingsMenu.openedByBtnKeyboard$,_i=X.ui.controls,{volume:ct,vkLogo:Vi,autoplayNextToggle:Yt,pip:dt,settings:si,chromecast:Ri}=X.ui.hiddenControls,Mt=X.actions.internal.getVideoEpisodes(),ri=X.webApi.pictureInPictureApi,rn=X.state.chromecastState$,Lt=X.state.crashed$,ft=_i.disabledControls$,di=X.ui.startedByKeyboard$,ko=X.ui.currentGridType$,qi=X.ads.duration,ti=X.ads.position,Ko=X.ads.playbackState,Dn=X.ui.isFullscreen,D=X.ui.playerSize,Ke=X.ui.additionalButtonsDeprecated$,ut=X.actions.internal.getVideoElement,Qt=X.actions.internal.replayInteractive,Pt=X.state.isInteractive,At=X.state.isInteractiveTime$,ci=X.state.showInteractiveGraph,qo=X.state.showSeekToInteractive,ai=X.state.showPlayPrevChapter,St=X.state.showInteractiveTimeIndicator,to=Ae.seekToInteractiveDisabledTooltip$,Qi=Ae.graphIsOpened$,Hn=X.ui.controlBlocks,Ni=g(()=>W(X.state.playPrevChapterDisabledTooltip)),vo=g(()=>W(n())),go=g(()=>s().has("EPISODE_BUTTON")),xn=g(()=>s().has("GRAPH_BUTTON")),sn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),ki=g(()=>s().has("PLAY_BUTTON")),Gi=g(()=>s().has("REPLAY_BUTTON")),an=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Po=g(()=>l()===Il.PlaybackState.PLAYING),ln=g(()=>d()==="paused"),dn=g(()=>a()&&!ve()&&!Pt),wr=g(()=>!a()||ve()),Fn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),Sr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),lr=g(()=>p().width>300),Kr=g(()=>p().width>400),cn=g(f),Un=g(()=>m()!==Il.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!Pt&&!x()),dr=g(()=>S()==="LiveWaitingStart"),wn=g(()=>!!ri&&m()!==Il.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(dr)||!r(dr))&&!r(cn)&&!Pt&&!T()),lo=Z(!1);Rt(()=>{let it=ri==null?void 0:ri.info.isActive$.subscribe(Tt=>O(lo,Tt,!0));return()=>it==null?void 0:it.unsubscribe()});let zn=g(()=>!r(cn)&&Xi(E(),"s")),Cr=g(()=>!e.logoHidden&&p().width>350&&!R()),Sn=g(()=>ke.features.fullscreen&&!(u()&&y()===1)&&(Pt?st():!0)&&!r(cn)&&!r(lo)),cr=g(()=>!I()&&!r(cn)),Wn=g(()=>(!M()||ve())&&p().width>260&&!r(cn)&&!(ke.features.interactiveHideTime&&Pt)),Qo=g(()=>k()||e.showControls),Kn=g(()=>!ve()&&!M()&&!!(Mt!=null&&Mt.length)&&r(lr)&&!r(go)&&!r(cn)),qr=g(()=>!G()||!!H()),Tr=g(()=>ci&&Xi(E(),"m")),ho=g(()=>!F()||q()||Y()===0),mt=ni({}),Zt=ni({}),Cn=(0,qm.debounceFn)(Cl,260),ji=(0,qm.debounceFn)(Fu,260);Qe(()=>{p(),j(),Cn(ut(),_i,mt,e.showControls),ji(ut(),Hn,Zt,e.showControls)});let Oi=()=>X.actions.internal.toggleChromecast();async function Go(){ri!=null&&ri.isActive()?await(ri==null?void 0:ri.exit()):await(ri==null?void 0:ri.request())}function Tn(){Hs({isAudioDisabled:Se,audioDisabledHintCallback:Ut,isAudioAvailable:F(),audioIsNotExistHintCallback:Je,isAds:ve()})&&ze()}let co=Z(""),un=(it,Tt)=>{if(!it){O(co,W("tooltip_live"),!0);return}Tt&&Tt===Il.PlaybackState.PAUSED&&O(co,W("tooltip_play"),!0)};Qe(()=>{un(r(qr),l())});let jo=le();Qe(()=>{ue()&&hl(ue(),k(),$i)}),Qe(()=>{Du(di,re(),mt.playButton)});var _o=m4(),Er=ge(_o);{var Ir=it=>{var Tt=c4(),mi=ge(Tt);let Di;var $o=P(mi,2);let no;tt($o,J=>Zt.topLeft=J,()=>Zt==null?void 0:Zt.topLeft);var Pi=P($o,2);let Lo;var jn=_(Pi);Ti(jn,1,be,({iconUrl:J,ariaLabel:Xe,testId:Wt,onClick:pi,tooltip:Hi})=>J,(J,Xe)=>{let Wt=()=>r(Xe).iconUrl,pi=()=>r(Xe).ariaLabel,Hi=()=>r(Xe).testId,Fi=()=>r(Xe).onClick,Si=()=>r(Xe).tooltip,An=g(()=>{var Ci;return(Ci=pi())!=null?Ci:Si()});Fm(J,{get iconUrl(){return Wt()},get ariaLabel(){return r(An)},get testId(){return Hi()},get onClick(){return Fi()}})});var mn=P(jn,2);{var yo=J=>{Zd(J,{get ref(){return mt.autoplayNextToggle},set ref(Xe){mt.autoplayNextToggle=Xe}})};V(mn,J=>{e.showAutoplayNext&&!pe()&&!me()&&J(yo)})}var Vo=P(mn,2);{var mr=J=>{zd(J,{isMobile:!0,click:Oi,get state(){return m()},get ref(){return mt.chromecast},set ref(Xe){mt.chromecast=Xe}})};V(Vo,J=>{r(Un)&&J(mr)})}var kn=P(Vo,2);{var Yn=J=>{Km(J,{click:Go,get isPictureInPictureActive(){return u()},get ref(){return mt.pip},set ref(Xe){mt.pip=Xe}})};V(kn,J=>{r(wn)&&J(Yn)})}var vr=P(kn,2);{var Ro=J=>{xl(J,{get ref$(){return jo}})};V(vr,J=>{Pe()&&!se()&&J(Ro)})}var Lr=P(vr,2);{var jr=J=>{Ud(J,{get click(){return bt},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(Xe){mt.vkLogo=Xe}})};V(Lr,J=>{r(Cr)&&J(jr)})}h(Pi),tt(Pi,J=>Zt.topRight=J,()=>Zt==null?void 0:Zt.topRight);var Zn=P(Pi,2);let gr;var Ye=_(Zn);{var Jt=J=>{let Xe=g(()=>lt.bind(null,!0));Ia(J,{get click(){return r(Xe)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Wt){mt.prevButton=Wt}})};V(Ye,J=>{r(Fn)&&J(Jt)})}var vi=P(Ye,2);{var yi=J=>{El(J,{get disabled(){return r(ki)},get click(){return rt},isMobile:!0,get isPlaying(){return r(Po)},get ref(){return mt.playButton},set ref(Xe){mt.playButton=Xe}})};V(vi,J=>{r(wr)&&J(yi)})}var No=P(vi,2);{var Yr=J=>{Tl(J,{get disabled(){return r(Gi)},get click(){return rt},isMobile:!0,get ref(){return mt.replayButton},set ref(Xe){mt.replayButton=Xe}})};V(No,J=>{r(dn)&&J(Yr)})}var Oo=P(No,2);{var Pn=J=>{let Xe=g(()=>wt.bind(null,!0));Ia(J,{get click(){return r(Xe)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Wt){mt.nextButton=Wt}})};V(Oo,J=>{r(Sr)&&J(Pn)})}h(Zn),tt(Zn,J=>Zt.middle=J,()=>Zt==null?void 0:Zt.middle);var Xn=P(Zn,2);{var Zr=J=>{var Xe=d4(),Wt=ge(Xe);{var pi=Ci=>{var li=s4();let Zo;li.__click=[n4,an,e,Ni];var hr=_(li);let xo=g(()=>!e.showControls);Yd(hr,{get hidden(){return r(xo)},get disabled(){return r(an)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(wo){mt.playPrevChapterButton=wo}}),h(li),B(wo=>Zo=ie(li,1,"wrapper-middle-left svelte-68kopu",null,Zo,wo),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Ci,li)};V(Wt,Ci=>{ai&&Ci(pi)})}var Hi=P(Wt,2);{var Fi=Ci=>{var li=a4();let Zo;var hr=_(li);let xo=g(()=>!e.showControls&&!Le());Jd(hr,{get hidden(){return r(xo)},get disabled(){return r(xn)},get click(){return Qi.toggle},get graphIsOpened(){return Le()},get ref(){return mt.interactiveGraphButton},set ref(wo){mt.interactiveGraphButton=wo}}),h(li),B(wo=>Zo=ie(li,1,fd(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",Zo,wo),[()=>({fullscreen:fe(),hidden:!e.showControls&&!Le()})]),$(Ci,li)};V(Hi,Ci=>{r(Tr)&&Ci(Fi)})}var Si=P(Hi,2);{var An=Ci=>{var li=l4();let Zo;li.__click=[r4,sn,e,vo];var hr=_(li);let xo=g(()=>!e.showControls);Xd(hr,{get hidden(){return r(xo)},get disabled(){return r(sn)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(wo){mt.seekToInteractiveButton=wo}}),h(li),B(wo=>Zo=ie(li,1,"wrapper-middle-right svelte-68kopu",null,Zo,wo),[()=>({fullscreen:fe(),hidden:!e.showControls})]),$(Ci,li)};V(Si,Ci=>{qo&&Ci(An)})}$(J,Xe)};V(Xn,J=>{Pt&&!f()&&J(Zr)})}B((J,Xe,Wt,pi)=>{Di=ie(mi,1,"overlay-mobile svelte-68kopu",null,Di,J),no=ie($o,1,"wrapper-top-left svelte-68kopu",null,no,Xe),Lo=ie(Pi,1,"wrapper-top-right svelte-68kopu",null,Lo,Wt),gr=ie(Zn,1,"wrapper-middle svelte-68kopu",null,gr,pi)},[()=>({hidden:!r(Qo)}),()=>({hidden:!e.showControls,fullscreen:fe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:fe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(it,Tt)};V(Er,it=>{ve()||it(Ir)})}var Qr=P(Er,2);{var ds=it=>{var Tt=p4(),mi=ge(Tt);let Di;var $o=_(mi);Uu($o,{get muted(){return q()},click:Tn,get ref(){return mt.volume},set ref(yo){mt.volume=yo}}),h(mi);var no=P(mi,2);{var Pi=yo=>{var Vo=u4(),mr=_(Vo);let kn=g(()=>!r(ln));El(mr,{get disabled(){return r(ki)},get click(){return rt},isMobile:!0,get isPlaying(){return r(kn)},get ref(){return mt.playButton},set ref(Yn){mt.playButton=Yn}}),h(Vo),$(yo,Vo)};V(no,yo=>{r(ln)&&yo(Pi)})}var Lo=P(no,2);let jn;var mn=_(Lo);Wd(mn,{get position(){return ae()},get duration(){return N()}}),h(Lo),B((yo,Vo)=>{Di=ie(mi,1,"wrapper-top-right svelte-68kopu",null,Di,yo),jn=ie(Lo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,jn,Vo)},[()=>({fullscreen:fe()}),()=>({fullscreen:fe()})]),$(it,Tt)};V(Qr,it=>{ve()&&d()!=="inactive"&&it(ds)})}var En=P(Qr,2);let ur;var kr=_(En);let bo;var ii=_(kr);ie(ii,1,"controls svelte-68kopu",null,{},{mobile:!0});var pn=_(ii),fn=_(pn);{var In=it=>{Eo(it,{get disabled(){return r(Gi)},get ref(){return mt.replayButton},set ref(Tt){mt.replayButton=Tt},children:(Tt,mi)=>{Tl(Tt,{get disabled(){return r(Gi)},get click(){return Qt}})},$$slots:{default:!0}})};V(fn,it=>{Pt&&it(In)})}var Pr=P(fn,2);{var Ar=it=>{Eo(it,{get ref(){return mt.liveButton},set ref(Tt){mt.liveButton=Tt},children:(Tt,mi)=>{ec(Tt,{get isLiveActive(){return r(qr)},isMobile:!0,get ariaLabel(){return r(co)}})},$$slots:{default:!0}})};V(Pr,it=>{!ve()&&M()&&it(Ar)})}var vt=P(Pr,2);{var $t=it=>{let Tt=g(()=>ve()?ae():Be()),mi=g(()=>ve()?N():ce()),Di=g(()=>!e.showControls);Bd(it,{get showDuration(){return r(Kr)},get position(){return r(Tt)},get duration(){return r(mi)},isMobile:!0,get isHidden(){return r(Di)},get ref(){return mt.time},set ref($o){mt.time=$o}})};V(vt,it=>{r(Wn)&&it($t)})}var io=P(vt,2);let Bi=g(()=>!r(Kn));Eo(io,{className:"w-max",get disabled(){return r(Bi)},get ref(){return mt.episodes},set ref(it){mt.episodes=it},children:(it,Tt)=>{var mi=qe(),Di=ge(mi);{var $o=no=>{var Pi=f4(),Lo=P(ge(Pi),2);Kd(Lo,{get position(){return Be()},get duration(){return ce()},get timeCodes(){return Mt}}),$(no,Pi)};V(Di,no=>{r(Kn)&&no($o)})}$(it,mi)},$$slots:{default:!0}}),h(pn),tt(pn,it=>Zt.bottomRight=it,()=>Zt==null?void 0:Zt.bottomRight);var uo=P(pn,2),po=_(uo);{var Yo=it=>{Eo(it,{get ref(){return mt.volume},set ref(Tt){mt.volume=Tt},children:(Tt,mi)=>{Uu(Tt,{get muted(){return r(ho)},click:Tn})},$$slots:{default:!0}})};V(po,it=>{r(cr)&&it(Yo)})}var oo=P(po,2);{var qn=it=>{Eo(it,{get ref(){return mt.settings},set ref(Tt){mt.settings=Tt},children:(Tt,mi)=>{xl(Tt,{get ref$(){return jo}})},$$slots:{default:!0}})};V(oo,it=>{r(zn)&&it(qn)})}var Ao=P(oo,2);{var pr=it=>{Eo(it,{get ref(){return mt.fullscreen},set ref(Tt){mt.fullscreen=Tt},children:(Tt,mi)=>{Fd(Tt,{get click(){return e.toggleFullscreen},get isFullscreen(){return fe()}})},$$slots:{default:!0}})};V(Ao,it=>{r(Sn)&&it(pr)})}h(uo),tt(uo,it=>Zt.bottomRight=it,()=>Zt==null?void 0:Zt.bottomRight),h(ii),tt(ii,it=>oe(it),()=>oe());var Mr=P(ii,2);let Gr=g(()=>!e.showControls);Ta(Mr,{get isHidden(){return r(Gr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return G()},get ref(){return mt.timeline},set ref(it){mt.timeline=it}}),h(kr),h(En),tt(En,it=>he(it),()=>he());var Mo=P(En,2);{var Qn=it=>{Gd(it,{get ref(){return mt.interactiveTimeIndicator},set ref(Tt){mt.interactiveTimeIndicator=Tt}})};V(Mo,it=>{St&&it(Qn)})}B((it,Tt)=>{ur=ie(En,1,"wrapper-bottom svelte-68kopu",null,ur,it),bo=ie(kr,1,"controls-wrapper svelte-68kopu",null,bo,Tt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:fe()})]),$(t,_o),z(),o()}at(["click"]);function tc(t,e){U(e,!0);let[i,o]=He(),n=()=>C(T,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),y=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Gm.noop),x=v(e,"onDisabledSeekToInteractiveClick",3,Gm.noop),T=Te().ui.isMobile,E=Z(!1);Rt(()=>{let k=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(k)});var R=qe(),I=ge(R);{var M=k=>{var G=qe(),H=ge(G);{var F=Y=>{Qm(Y,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},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 m()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},q=Y=>{Dm(Y,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return m()},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 l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(H,Y=>{n()?Y(F):Y(q,!1)})}$(k,G)};V(I,k=>{r(E)&&k(M)})}$(t,R),z(),o()}var g4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=g4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function Ym(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);jm(t,{get style(){return r(o)}})}var h4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}var _4=we('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Xm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function zu(t,e){let i=v(e,"isOff",3,!1);var o=qe(),n=ge(o);{var s=d=>{Xm(d,{})},l=d=>{Zm(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var b4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=b4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function ev(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Jm(t,{get style(){return r(o)}})}var $4=we('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(2),h(o),$(t,o)}function iv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);tv(t,{get style(){return r(o)}})}var y4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),x4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),w4=A("<div><!></div>"),S4={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;
259
+ }`};function Dm(t,e){var kr,Pr;U(e,!0),q(t,d4);let[i,o]=He(),n=()=>C(Vi,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(ut,"$disabledControls$",i),l=()=>C(oe,"$playbackState$",i),d=()=>C(Go,"$adPlaybackState",i),a=()=>C(we,"$isEnded$",i),p=()=>C(D,"$playerSize",i),f=()=>C(Oe,"$scrubbingInProgress",i),v=()=>C(sn,"$chromecastState$",i),u=()=>C(Lt,"$isPictureInPictureActive",i),y=()=>C(Kt,"$pictureInPictureType$",i),w=()=>C(et,"$mobileNotReportControlHidden$",i),x=()=>C(_o,"$chromecastHidden",i),S=()=>C(Xt,"$playerPhase",i),T=()=>C(_i,"$pipHidden",i),E=()=>C(Lo,"$currentGridType$",i),V=()=>C(ii,"$vkLogoHidden",i),k=()=>C(it,"$volumeHidden",i),I=()=>C(ae,"$isLive$",i),R=()=>C(tt,"$settingsMenuVisible",i),Y=()=>C(Ye,"$isRewindableLive$",i),H=()=>C(Le,"$isActiveLive$",i),F=()=>C(Ft,"$isAudioAvailable$",i),W=()=>C(qe,"$muted$",i),J=()=>C(Re,"$volume$",i),G=()=>C(ai,"$isInteractiveTime$",i),ce=()=>C(un,"$settingButtonRef$",i),ie=()=>C(bi,"$startedByKeyboard$",i),ue=()=>C(Fn,"$isFullscreen",i),$e=()=>C(Ue,"$additionalButtons$",i),fe=()=>C(jt,"$autoplayNextToggleHidden",i),ke=()=>C(Pt,"$crashed$",i),ne=()=>C(Mo,"$settingsHidden",i),Ve=()=>C(Vo,"$graphIsOpened$",i),re=()=>C(oi,"$adPosition",i),N=()=>C(Wi,"$adDuration",i),Be=()=>C(Wt,"$position$",i),le=()=>C(Gt,"$duration$",i),ve=m(e,"playerControlsWrapperRef",15,void 0),te=m(e,"playerControlsRef",15,void 0),me=m(e,"isAds",3,!1),De=m(e,"logoTargetUrl",3,""),pe=m(e,"isOneVideoPlaylist",3,!1),at=m(e,"customFullscreenSupported",3,!0),Z=Ee(),Ae=ho(),Ie=kt(),ze=Z.actions.internal.toggleMuted,lt=Z.actions.internal.togglePlay,vt=Z.actions.internal.pause,gt=Z.actions.internal.prevVideoClick,Ct=Z.actions.internal.nextVideoClick,Ge=(kr=Z.callbacks)==null?void 0:kr.onAudioDoesNotExistHint,Ht=(Pr=Z.callbacks)==null?void 0:Pr.onAudioDisabledHint,Xt=Z.playerPhase,Gt=Z.state.duration$,Wt=Z.state.positionWithScrubbing$,oe=Z.state.playbackState$,Ft=Z.state.isAudioAvailable$,he=Z.state.isAudioDisabled,we=Z.state.isEnded$,ae=Z.state.isLive$,Re=Z.state.volume$,qe=Z.state.muted$,Le=Z.state.isActiveLive$,Ye=Z.state.isRewindableLive$,Oe=Z.ui.scrubbingInProgress,et=Z.ui.mobileNotReportControlHidden$,{isActive$:Lt,type$:Kt}=Ae.pictureInPicture$,tt=Z.ui.settingsMenu.visible$,xi=Z.ui.settingsMenu.openedByBtnKeyboard$,hi=Z.ui.controls,{volume:it,vkLogo:ii,autoplayNextToggle:jt,pip:_i,settings:Mo,chromecast:_o}=Z.ui.hiddenControls,Dt=Z.actions.internal.getVideoEpisodes(),ri=Z.webApi.pictureInPictureApi,sn=Z.state.chromecastState$,Pt=Z.state.crashed$,ut=hi.disabledControls$,bi=Z.ui.startedByKeyboard$,Lo=Z.ui.currentGridType$,Wi=Z.ads.duration,oi=Z.ads.position,Go=Z.ads.playbackState,Fn=Z.ui.isFullscreen,D=Z.ui.playerSize,Ue=Z.ui.additionalButtonsDeprecated$,pt=Z.actions.internal.getVideoElement,Ut=Z.actions.internal.replayInteractive,ct=Z.state.isInteractive,ai=Z.state.isInteractiveTime$,li=Z.state.showInteractiveGraph,bo=Z.state.showSeekToInteractive,di=Z.state.showPlayPrevChapter,xt=Z.state.showInteractiveTimeIndicator,Vi=Ae.seekToInteractiveDisabledTooltip$,Vo=Ae.graphIsOpened$,Un=Z.ui.controlBlocks,Ri=g(()=>K(Z.state.playPrevChapterDisabledTooltip)),io=g(()=>K(n())),Ro=g(()=>s().has("EPISODE_BUTTON")),wn=g(()=>s().has("GRAPH_BUTTON")),Sn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),ki=g(()=>s().has("PLAY_BUTTON")),Ki=g(()=>s().has("REPLAY_BUTTON")),jo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Yo=g(()=>l()===kl.PlaybackState.PLAYING),an=g(()=>d()==="paused"),ln=g(()=>a()&&!me()&&!ct),Wr=g(()=>!a()||me()),zn=g(()=>e.showNextPrevButtons&&!me()&&e.prevButtonActive),$r=g(()=>e.showNextPrevButtons&&!me()&&e.nextButtonActive),rr=g(()=>p().width>300),yr=g(()=>p().width>400),dn=g(f),sr=g(()=>v()!==kl.ChromecastState.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!ct&&!x()),oo=g(()=>S()==="LiveWaitingStart"),Zo=g(()=>!!ri&&v()!==kl.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(oo)||!r(oo))&&!r(dn)&&!ct&&!T()),Wn=j(!1);Mt(()=>{let nt=ri==null?void 0:ri.info.isActive$.subscribe(Tt=>O(Wn,Tt,!0));return()=>nt==null?void 0:nt.unsubscribe()});let Cn=g(()=>!r(dn)&&Ji(E(),"s")),xr=g(()=>!e.logoHidden&&p().width>350&&!V()),Kn=g(()=>Ie.features.fullscreen&&!(u()&&y()===1)&&(ct?at():!0)&&!r(dn)&&!r(Wn)),ar=g(()=>!k()&&!r(dn)),wr=g(()=>(!I()||me())&&p().width>260&&!r(dn)&&!(Ie.features.interactiveHideTime&&ct)),Tn=g(()=>R()||e.showControls),qn=g(()=>!me()&&!I()&&!!(Dt!=null&&Dt.length)&&r(rr)&&!r(Ro)&&!r(dn)),Sr=g(()=>!Y()||!!H()),Cr=g(()=>li&&Ji(E(),"m")),po=g(()=>!F()||W()||J()===0),mt=ni({}),Jt=ni({}),cn=(0,Bm.debounceFn)(Tl,260),Pi=(0,Bm.debounceFn)(Nu,260);Ke(()=>{p(),G(),cn(pt(),hi,mt,e.showControls),Pi(pt(),Un,Jt,e.showControls)});let qi=()=>Z.actions.internal.toggleChromecast();async function Xo(){ri!=null&&ri.isActive()?await(ri==null?void 0:ri.exit()):await(ri==null?void 0:ri.request())}function Jo(){Ds({isAudioDisabled:he,audioDisabledHintCallback:Ht,isAudioAvailable:F(),audioIsNotExistHintCallback:Ge,isAds:me()})&&ze()}let $o=j(""),Qn=(nt,Tt)=>{if(!nt){O($o,K("tooltip_live"),!0);return}Tt&&Tt===kl.PlaybackState.PAUSED&&O($o,K("tooltip_play"),!0)};Ke(()=>{Qn(r(Sr),l())});let un=se();Ke(()=>{ce()&&_l(ce(),R(),xi)}),Ke(()=>{Vu(bi,ie(),mt.playButton)});var No=l4(),Kr=ge(No);{var qr=nt=>{var Tt=n4(),vi=ge(Tt);let Gi;var wo=P(vi,2);let vo;ot(wo,Xe=>Jt.topLeft=Xe,()=>Jt==null?void 0:Jt.topLeft);var ro=P(wo,2);let Bo;var kn=_(ro);Ti(kn,1,$e,({iconUrl:Xe,ariaLabel:qt,testId:Bi,onClick:Do,tooltip:fn})=>Xe,(Xe,qt)=>{let Bi=()=>r(qt).iconUrl,Do=()=>r(qt).ariaLabel,fn=()=>r(qt).testId,jn=()=>r(qt).onClick,fr=()=>r(qt).tooltip,Mr=g(()=>{var Zi;return(Zi=Do())!=null?Zi:fr()});Lm(Xe,{get iconUrl(){return Bi()},get ariaLabel(){return r(Mr)},get testId(){return fn()},get onClick(){return jn()}})});var pn=P(kn,2);{var ji=Xe=>{Qd(Xe,{get ref(){return mt.autoplayNextToggle},set ref(qt){mt.autoplayNextToggle=qt}})};L(pn,Xe=>{e.showAutoplayNext&&!pe()&&!fe()&&Xe(ji)})}var So=P(pn,2);{var ur=Xe=>{Dd(Xe,{isMobile:!0,click:qi,get state(){return v()},get ref(){return mt.chromecast},set ref(qt){mt.chromecast=qt}})};L(So,Xe=>{r(sr)&&Xe(ur)})}var Pn=P(So,2);{var An=Xe=>{Om(Xe,{click:Xo,get isPictureInPictureActive(){return u()},get ref(){return mt.pip},set ref(qt){mt.pip=qt}})};L(Pn,Xe=>{r(Zo)&&Xe(An)})}var pr=P(Pn,2);{var Mn=Xe=>{wl(Xe,{get ref$(){return un}})};L(pr,Xe=>{ke()&&!ne()&&Xe(Mn)})}var Ar=P(pr,2);{var Co=Xe=>{Bd(Xe,{get click(){return vt},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(qt){mt.vkLogo=qt}})};L(Ar,Xe=>{r(xr)&&Xe(Co)})}h(ro),ot(ro,Xe=>Jt.topRight=Xe,()=>Jt==null?void 0:Jt.topRight);var Ln=P(ro,2);let Zr;var Ze=_(Ln);{var ei=Xe=>{let qt=g(()=>gt.bind(null,!0));Ia(Xe,{get click(){return r(qt)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Bi){mt.prevButton=Bi}})};L(Ze,Xe=>{r(zn)&&Xe(ei)})}var $i=P(Ze,2);{var To=Xe=>{Il(Xe,{get disabled(){return r(ki)},get click(){return lt},isMobile:!0,get isPlaying(){return r(Yo)},get ref(){return mt.playButton},set ref(qt){mt.playButton=qt}})};L($i,Xe=>{r(Wr)&&Xe(To)})}var _e=P($i,2);{var It=Xe=>{El(Xe,{get disabled(){return r(Ki)},get click(){return lt},isMobile:!0,get ref(){return mt.replayButton},set ref(qt){mt.replayButton=qt}})};L(_e,Xe=>{r(ln)&&Xe(It)})}var Yt=P(_e,2);{var ci=Xe=>{let qt=g(()=>Ct.bind(null,!0));Ia(Xe,{get click(){return r(qt)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Bi){mt.nextButton=Bi}})};L(Yt,Xe=>{r($r)&&Xe(ci)})}h(Ln),ot(Ln,Xe=>Jt.middle=Xe,()=>Jt==null?void 0:Jt.middle);var Yi=P(Ln,2);{var so=Xe=>{var qt=o4(),Bi=ge(qt);{var Do=Zi=>{var ui=e4();let mn;ui.__click=[Xy,jo,e,Ri];var mr=_(ui);let Ho=g(()=>!e.showControls);qd(mr,{get hidden(){return r(Ho)},get disabled(){return r(jo)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(go){mt.playPrevChapterButton=go}}),h(ui),B(go=>mn=ee(ui,1,"wrapper-middle-left svelte-68kopu",null,mn,go),[()=>({fullscreen:ue(),hidden:!e.showControls})]),$(Zi,ui)};L(Bi,Zi=>{di&&Zi(Do)})}var fn=P(Bi,2);{var jn=Zi=>{var ui=t4();let mn;var mr=_(ui);let Ho=g(()=>!e.showControls&&!Ve());jd(mr,{get hidden(){return r(Ho)},get disabled(){return r(wn)},get click(){return Vo.toggle},get graphIsOpened(){return Ve()},get ref(){return mt.interactiveGraphButton},set ref(go){mt.interactiveGraphButton=go}}),h(ui),B(go=>mn=ee(ui,1,dd(di?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",mn,go),[()=>({fullscreen:ue(),hidden:!e.showControls&&!Ve()})]),$(Zi,ui)};L(fn,Zi=>{r(Cr)&&Zi(jn)})}var fr=P(fn,2);{var Mr=Zi=>{var ui=i4();let mn;ui.__click=[Jy,Sn,e,io];var mr=_(ui);let Ho=g(()=>!e.showControls);Gd(mr,{get hidden(){return r(Ho)},get disabled(){return r(Sn)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(go){mt.seekToInteractiveButton=go}}),h(ui),B(go=>mn=ee(ui,1,"wrapper-middle-right svelte-68kopu",null,mn,go),[()=>({fullscreen:ue(),hidden:!e.showControls})]),$(Zi,ui)};L(fr,Zi=>{bo&&Zi(Mr)})}$(Xe,qt)};L(Yi,Xe=>{ct&&!f()&&Xe(so)})}B((Xe,qt,Bi,Do)=>{Gi=ee(vi,1,"overlay-mobile svelte-68kopu",null,Gi,Xe),vo=ee(wo,1,"wrapper-top-left svelte-68kopu",null,vo,qt),Bo=ee(ro,1,"wrapper-top-right svelte-68kopu",null,Bo,Bi),Zr=ee(Ln,1,"wrapper-middle svelte-68kopu",null,Zr,Do)},[()=>({hidden:!r(Tn)}),()=>({hidden:!e.showControls,fullscreen:ue()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ue()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(nt,Tt)};L(Kr,nt=>{me()||nt(qr)})}var Tr=P(Kr,2);{var Qr=nt=>{var Tt=s4(),vi=ge(Tt);let Gi;var wo=_(vi);Ou(wo,{get muted(){return W()},click:Jo,get ref(){return mt.volume},set ref(ji){mt.volume=ji}}),h(vi);var vo=P(vi,2);{var ro=ji=>{var So=r4(),ur=_(So);let Pn=g(()=>!r(an));Il(ur,{get disabled(){return r(ki)},get click(){return lt},isMobile:!0,get isPlaying(){return r(Pn)},get ref(){return mt.playButton},set ref(An){mt.playButton=An}}),h(So),$(ji,So)};L(vo,ji=>{r(an)&&ji(ro)})}var Bo=P(vo,2);let kn;var pn=_(Bo);Hd(pn,{get position(){return re()},get duration(){return N()}}),h(Bo),B((ji,So)=>{Gi=ee(vi,1,"wrapper-top-right svelte-68kopu",null,Gi,ji),kn=ee(Bo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,kn,So)},[()=>({fullscreen:ue()}),()=>({fullscreen:ue()})]),$(nt,Tt)};L(Tr,nt=>{me()&&d()!=="inactive"&&nt(Qr)})}var Gn=P(Tr,2);let lr;var dr=_(Gn);let yo;var Zt=_(dr);ee(Zt,1,"controls svelte-68kopu",null,{},{mobile:!0});var fo=_(Zt),Er=_(fo);{var ds=nt=>{Po(nt,{get disabled(){return r(Ki)},get ref(){return mt.replayButton},set ref(Tt){mt.replayButton=Tt},children:(Tt,vi)=>{El(Tt,{get disabled(){return r(Ki)},get click(){return Ut}})},$$slots:{default:!0}})};L(Er,nt=>{ct&&nt(ds)})}var Ir=P(Er,2);{var Ni=nt=>{Po(nt,{get ref(){return mt.liveButton},set ref(Tt){mt.liveButton=Tt},children:(Tt,vi)=>{Yd(Tt,{get isLiveActive(){return r(Sr)},isMobile:!0,get ariaLabel(){return r($o)}})},$$slots:{default:!0}})};L(Ir,nt=>{!me()&&I()&&nt(Ni)})}var ht=P(Ir,2);{var zt=nt=>{let Tt=g(()=>me()?re():Be()),vi=g(()=>me()?N():le()),Gi=g(()=>!e.showControls);Vd(nt,{get showDuration(){return r(yr)},get position(){return r(Tt)},get duration(){return r(vi)},isMobile:!0,get isHidden(){return r(Gi)},get ref(){return mt.time},set ref(wo){mt.time=wo}})};L(ht,nt=>{r(wr)&&nt(zt)})}var Qi=P(ht,2);let Oi=g(()=>!r(qn));Po(Qi,{className:"w-max",get disabled(){return r(Oi)},get ref(){return mt.episodes},set ref(nt){mt.episodes=nt},children:(nt,Tt)=>{var vi=We(),Gi=ge(vi);{var wo=vo=>{var ro=a4(),Bo=P(ge(ro),2);Fd(Bo,{get position(){return Be()},get duration(){return le()},get timeCodes(){return Dt}}),$(vo,ro)};L(Gi,vo=>{r(qn)&&vo(wo)})}$(nt,vi)},$$slots:{default:!0}}),h(fo),ot(fo,nt=>Jt.bottomRight=nt,()=>Jt==null?void 0:Jt.bottomRight);var xo=P(fo,2),no=_(xo);{var Oo=nt=>{Po(nt,{get ref(){return mt.volume},set ref(Tt){mt.volume=Tt},children:(Tt,vi)=>{Ou(Tt,{get muted(){return r(po)},click:Jo})},$$slots:{default:!0}})};L(no,nt=>{r(ar)&&nt(Oo)})}var Ci=P(no,2);{var En=nt=>{Po(nt,{get ref(){return mt.settings},set ref(Tt){mt.settings=Tt},children:(Tt,vi)=>{wl(Tt,{get ref$(){return un}})},$$slots:{default:!0}})};L(Ci,nt=>{r(Cn)&&nt(En)})}var cr=P(Ci,2);{var Gr=nt=>{Po(nt,{get ref(){return mt.fullscreen},set ref(Tt){mt.fullscreen=Tt},children:(Tt,vi)=>{Od(Tt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ue()}})},$$slots:{default:!0}})};L(cr,nt=>{r(Kn)&&nt(Gr)})}h(xo),ot(xo,nt=>Jt.bottomRight=nt,()=>Jt==null?void 0:Jt.bottomRight),h(Zt),ot(Zt,nt=>te(nt),()=>te());var jr=P(Zt,2);let Yr=g(()=>!e.showControls);Ta(jr,{get isHidden(){return r(Yr)},get isAds(){return me()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Y()},get ref(){return mt.timeline},set ref(nt){mt.timeline=nt}}),h(dr),h(Gn),ot(Gn,nt=>ve(nt),()=>ve());var mo=P(Gn,2);{var In=nt=>{Wd(nt,{get ref(){return mt.interactiveTimeIndicator},set ref(Tt){mt.interactiveTimeIndicator=Tt}})};L(mo,nt=>{xt&&nt(In)})}B((nt,Tt)=>{lr=ee(Gn,1,"wrapper-bottom svelte-68kopu",null,lr,nt),yo=ee(dr,1,"controls-wrapper svelte-68kopu",null,yo,Tt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ue()})]),$(t,No),z(),o()}dt(["click"]);function Zd(t,e){U(e,!0);let[i,o]=He(),n=()=>C(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Hm.noop),x=m(e,"onDisabledSeekToInteractiveClick",3,Hm.noop),T=Ee().ui.isMobile,E=j(!1);Mt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=We(),k=ge(V);{var I=R=>{var Y=We(),H=ge(Y);{var F=J=>{Dm(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},W=J=>{Am(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};L(H,J=>{n()?J(F):J(W,!1)})}$(R,Y)};L(k,R=>{r(E)&&R(I)})}$(t,V),z(),o()}var c4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Fm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function Um(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Fm(t,{get style(){return r(o)}})}var u4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function zm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=u4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}var p4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Wm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function Bu(t,e){let i=m(e,"isOff",3,!1);var o=We(),n=ge(o);{var s=d=>{Wm(d,{})},l=d=>{zm(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var f4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Km(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=f4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function qm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Km(t,{get style(){return r(o)}})}var m4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Qm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=m4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),$(t,o)}function Gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Qm(t,{get style(){return r(o)}})}var v4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),g4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),h4=M("<div><!></div>"),_4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
260
260
  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"],
261
261
  .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"],
262
262
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -271,23 +271,23 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
271
271
  @keyframes svelte-1ad3n06-fadeOut {
272
272
  0% {opacity:1;}
273
273
  100% {opacity:0;}
274
- }`};function ov(t,e){U(e,!0),K(t,S4);let[i,o]=He(),n=()=>C(e.data,"$data",i),l=Te().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),m=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=w4();let y;var w=_(u);{var x=S=>{var T=x4(),E=ge(T),R=_(E);{var I=he=>{let oe=g(()=>r(f)==="FORWARD_SEEK");Ym(he,{get reversed(){return r(oe)}})};V(R,he=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&he(I)})}var M=P(R,2);{var k=he=>{ys(he,{})};V(M,he=>{r(f)==="PAUSE"&&he(k)})}var G=P(M,2);{var H=he=>{zr(he,{})};V(G,he=>{r(f)==="PLAY"&&he(H)})}var F=P(G,2);{var q=he=>{jd(he,{})};V(F,he=>{r(f)==="REPLAY"&&he(q)})}var Y=P(F,2);{var j=he=>{zu(he,{isOff:!0})};V(Y,he=>{r(f)==="SUBTITLES_OFF"&&he(j)})}var ue=P(Y,2);{var re=he=>{zu(he,{})};V(ue,he=>{r(f)==="SUBTITLES_ON"&&he(re)})}var fe=P(ue,2);{var be=he=>{let oe=g(()=>r(f)==="RATE_UP");ev(he,{get reversed(){return r(oe)}})};V(fe,he=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&he(be)})}var me=P(fe,2);{var Pe=he=>{let oe=g(()=>r(f)==="EPISODE_NEXT");iv(he,{get reversed(){return r(oe)}})};V(me,he=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&he(Pe)})}var se=P(me,2);{var Le=he=>{Us(he,{volume:0})};V(se,he=>{r(f)==="MUTE"&&he(Le)})}var ae=P(se,2);{var N=he=>{Us(he,{volume:1})};V(ae,he=>{r(f)==="VOLUME"&&he(N)})}h(E);var Be=P(E,2);{var ce=he=>{var oe=y4(),ve=_(oe,!0);h(oe),B(()=>_e(ve,r(m))),$(he,oe)};V(Be,he=>{r(m)&&he(ce)})}$(S,T)};V(w,S=>{!r(d)&&r(f)&&S(x)})}h(u),B(S=>y=ie(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(p)})]),$(t,u),z(),o()}var C4=we('<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 nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var T4=we('<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 rv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function Ks(t,e){U(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let m="";return r(s)&&(m+="transform: rotate(180deg);"),o()&&(m+="color: var(--btn-color, #fff);"),m.length?m:void 0})());var d=qe(),a=ge(d);{var p=m=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");nv(m,{get style(){return r(l)},get"data-testid"(){return r(u)}})},f=m=>{let u=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");rv(m,{get style(){return r(l)},get"data-testid"(){return r(u)}})};V(a,m=>{r(n)?m(p):m(f,!1)})}$(t,d),z()}var E4=(t,e,i,o,n,s)=>{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":s();break}},I4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},k4=A('<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>'),P4={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 ic(t,e){U(e,!0),K(t,P4);let i=v(e,"isShifted",3,!1),o=Te(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=W("aria_label_spherical_control");var m=k4();let u;m.__keydown=[E4,n,s,l,a,d],m.__keyup=[I4,n,p];var y=_(m),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=p;var S=_(x);Ks(S,{direction:"up",useBtnColor:!0}),h(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=p;var E=_(T);Ks(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var R=P(w,2),I=_(R);I.__mousedown=a,I.__mouseup=p;var M=_(I);Ks(M,{direction:"up",useBtnColor:!0}),h(I);var k=P(I,2);k.__mousedown=l,k.__mouseup=p;var G=_(k);Ks(G,{direction:"up",useBtnColor:!0}),h(k),h(R),h(y),h(m),B(H=>{u=ie(m,1,"immersive-controls svelte-1yzc86r",null,u,H),Ue(m,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",x,p),Ct("mouseleave",T,p),Ct("mouseleave",I,p),Ct("mouseleave",k,p),$(t,m),z()}at(["keydown","keyup","mousedown","mouseup"]);var ws=require("@vkontakte/videoplayer-shared/es2018");var p0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Wu=class{constructor(){this.flickeringTimeout=p0(1e3);this.subscriptions=new ws.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ws.ValueSubject([]);this.captionsPrepared$=new ws.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ws.filter)(()=>this.isEnabled()),(0,ws.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var A4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),M4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),L4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),V4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),R4=A("<div><!></div>"),N4={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;
275
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ma(t,e){U(e,!0),K(t,N4);let[i,o]=He(),n=()=>C(m,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),p=Te(),f=kt(),m=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),R=Z(null);Qe(()=>{var q,Y,j;(q=r(R))==null||q.setIsAuto(r(x)),(Y=r(R))==null||Y.setIsLive(r(S)),(j=r(R))==null||j.setCaptions(e.captions)});let I=Z(ni([[]]));Rt(()=>{O(R,new Wu().subscribe(),!0);let q=r(R).captionsPrepared$.subscribe(Y=>{O(I,Y,!0)});return()=>{var Y;(Y=r(R))==null||Y.destroy(),q.unsubscribe()}}),Rt(()=>{if(r(x)){let q=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else u.set(!1)});let M=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var k=R4();let G;var H=_(k);{var F=q=>{var Y=V4();let j;var ue=_(Y),re=_(ue);{var fe=me=>{var Pe=A4(),se=_(Pe),Le=_(se,!0);h(se),h(Pe),B(ae=>{var N;nt(se,`font-size: ${(N=r(E))!=null?N:""}px`),_e(Le,ae)},[()=>W("subtitles_auto_caption")]),$(me,Pe)},be=(me,Pe)=>{{var se=ae=>{var N=qe(),Be=ge(N);Ti(Be,17,()=>r(I),ud,(ce,he)=>{var oe=M4(),ve=_(oe);Ti(ve,21,()=>r(he),({value:De,timeAppeared:pe})=>pe,(De,pe)=>{let st=()=>r(pe).value,X=()=>r(pe).timeAppeared;var Ae=qe(),ke=ge(Ae);{var ze=rt=>{var bt=os();B(()=>_e(bt,st())),$(rt,bt)};V(ke,rt=>{(!X()||X()<=e.position)&&rt(ze)})}$(De,Ae)}),h(ve),h(oe),B(()=>{var De;return nt(ve,`font-size: ${(De=r(E))!=null?De:""}px`)}),$(ce,oe)}),$(ae,N)},Le=ae=>{var N=qe(),Be=ge(N);Ti(Be,17,()=>e.captions,({value:ce})=>ce,(ce,he)=>{let oe=()=>r(he).value;var ve=L4(),De=_(ve),pe=_(De,!0);h(De),h(ve),B(()=>{var st;nt(De,`font-size: ${(st=r(E))!=null?st:""}px`),_e(pe,oe())}),$(ce,ve)}),$(ae,N)};V(me,ae=>{var N;r(x)&&((N=r(I))!=null&&N.length)?ae(se):ae(Le,!1)},Pe)}};V(re,me=>{r(x)&&d()?me(fe):me(be,!1)})}h(ue),h(Y),B(me=>{var Pe;j=ie(Y,1,"subtitles-caption svelte-c2x749",null,j,me),nt(Y,`--subtitles-caption-margin: ${(Pe=r(M))!=null?Pe:""}%`)},[()=>({mobile:a()})]),$(q,Y)};V(H,q=>{var Y;(e.captions.length||(Y=r(I))!=null&&Y.length)&&q(F)})}h(k),B(q=>G=ie(k,1,"subtitles-container svelte-c2x749",null,G,q),[()=>({shifted:e.shifted,auto:r(x)&&!r(S)&&!d()})]),$(t,k),z(),o()}var O4=A('<div class="text svelte-raurnb"> </div>'),B4=A('<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>'),D4={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 oc(t,e){U(e,!0),K(t,D4);let i=kt();var o=B4();let n;var s=P(_(o),2);{var l=d=>{var a=O4(),p=_(a);h(a),B(()=>{var f;return _e(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:""}`)}),$(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=ie(o,1,"wrapper svelte-raurnb",null,n,d),nt(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})]),$(t,o),z()}var H4=we('<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 sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var F4=A('<div class="container svelte-13zpvm8"><!></div>'),U4={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 La(t){K(t,U4);var e=F4(),i=_(e);sv(i,{}),h(e),$(t,e)}var z4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),W4=A("<div><!></div>"),K4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
274
+ }`};function jm(t,e){U(e,!0),q(t,_4);let[i,o]=He(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=h4();let y;var w=_(u);{var x=S=>{var T=g4(),E=ge(T),V=_(E);{var k=ve=>{let te=g(()=>r(f)==="FORWARD_SEEK");Um(ve,{get reversed(){return r(te)}})};L(V,ve=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ve(k)})}var I=P(V,2);{var R=ve=>{ys(ve,{})};L(I,ve=>{r(f)==="PAUSE"&&ve(R)})}var Y=P(I,2);{var H=ve=>{Ur(ve,{})};L(Y,ve=>{r(f)==="PLAY"&&ve(H)})}var F=P(Y,2);{var W=ve=>{Kd(ve,{})};L(F,ve=>{r(f)==="REPLAY"&&ve(W)})}var J=P(F,2);{var G=ve=>{Bu(ve,{isOff:!0})};L(J,ve=>{r(f)==="SUBTITLES_OFF"&&ve(G)})}var ce=P(J,2);{var ie=ve=>{Bu(ve,{})};L(ce,ve=>{r(f)==="SUBTITLES_ON"&&ve(ie)})}var ue=P(ce,2);{var $e=ve=>{let te=g(()=>r(f)==="RATE_UP");qm(ve,{get reversed(){return r(te)}})};L(ue,ve=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ve($e)})}var fe=P(ue,2);{var ke=ve=>{let te=g(()=>r(f)==="EPISODE_NEXT");Gm(ve,{get reversed(){return r(te)}})};L(fe,ve=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ve(ke)})}var ne=P(fe,2);{var Ve=ve=>{Fs(ve,{volume:0})};L(ne,ve=>{r(f)==="MUTE"&&ve(Ve)})}var re=P(ne,2);{var N=ve=>{Fs(ve,{volume:1})};L(re,ve=>{r(f)==="VOLUME"&&ve(N)})}h(E);var Be=P(E,2);{var le=ve=>{var te=v4(),me=_(te,!0);h(te),B(()=>be(me,r(v))),$(ve,te)};L(Be,ve=>{r(v)&&ve(le)})}$(S,T)};L(w,S=>{!r(d)&&r(f)&&S(x)})}h(u),B(S=>y=ee(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(p)})]),$(t,u),z(),o()}var b4=Te('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Ym(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=b4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var $4=Te('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function Zm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Ws(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=We(),a=ge(d);{var p=v=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");Ym(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})},f=v=>{let u=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");Zm(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})};L(a,v=>{r(n)?v(p):v(f,!1)})}$(t,d),z()}var y4=(t,e,i,o,n,s)=>{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":s();break}},x4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},w4=M('<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>'),S4={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 Xd(t,e){U(e,!0),q(t,S4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=K("aria_label_spherical_control");var v=w4();let u;v.__keydown=[y4,n,s,l,a,d],v.__keyup=[x4,n,p];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=p;var S=_(x);Ws(S,{direction:"up",useBtnColor:!0}),h(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=p;var E=_(T);Ws(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var V=P(w,2),k=_(V);k.__mousedown=a,k.__mouseup=p;var I=_(k);Ws(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=p;var Y=_(R);Ws(Y,{direction:"up",useBtnColor:!0}),h(R),h(V),h(y),h(v),B(H=>{u=ee(v,1,"immersive-controls svelte-1yzc86r",null,u,H),Fe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),St("mouseleave",x,p),St("mouseleave",T,p),St("mouseleave",k,p),St("mouseleave",R,p),$(t,v),z()}dt(["keydown","keyup","mousedown","mouseup"]);var ws=require("@vkontakte/videoplayer-shared/es2018");var i0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Du=class{constructor(){this.flickeringTimeout=i0(1e3);this.subscriptions=new ws.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new ws.ValueSubject([]);this.captionsPrepared$=new ws.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,ws.filter)(()=>this.isEnabled()),(0,ws.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var C4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),T4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),E4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),I4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),k4=M("<div><!></div>"),P4={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;
275
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ma(t,e){U(e,!0),q(t,P4);let[i,o]=He(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=kt(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,x=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),V=j(null);Ke(()=>{var W,J,G;(W=r(V))==null||W.setIsAuto(r(x)),(J=r(V))==null||J.setIsLive(r(S)),(G=r(V))==null||G.setCaptions(e.captions)});let k=j(ni([[]]));Mt(()=>{O(V,new Du().subscribe(),!0);let W=r(V).captionsPrepared$.subscribe(J=>{O(k,J,!0)});return()=>{var J;(J=r(V))==null||J.destroy(),W.unsubscribe()}}),Mt(()=>{if(r(x)){let W=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(W)}}else u.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=k4();let Y;var H=_(R);{var F=W=>{var J=I4();let G;var ce=_(J),ie=_(ce);{var ue=fe=>{var ke=C4(),ne=_(ke),Ve=_(ne,!0);h(ne),h(ke),B(re=>{var N;st(ne,`font-size: ${(N=r(E))!=null?N:""}px`),be(Ve,re)},[()=>K("subtitles_auto_caption")]),$(fe,ke)},$e=(fe,ke)=>{{var ne=re=>{var N=We(),Be=ge(N);Ti(Be,17,()=>r(k),ad,(le,ve)=>{var te=T4(),me=_(te);Ti(me,21,()=>r(ve),({value:De,timeAppeared:pe})=>pe,(De,pe)=>{let at=()=>r(pe).value,Z=()=>r(pe).timeAppeared;var Ae=We(),Ie=ge(Ae);{var ze=lt=>{var vt=os();B(()=>be(vt,at())),$(lt,vt)};L(Ie,lt=>{(!Z()||Z()<=e.position)&&lt(ze)})}$(De,Ae)}),h(me),h(te),B(()=>{var De;return st(me,`font-size: ${(De=r(E))!=null?De:""}px`)}),$(le,te)}),$(re,N)},Ve=re=>{var N=We(),Be=ge(N);Ti(Be,17,()=>e.captions,({value:le})=>le,(le,ve)=>{let te=()=>r(ve).value;var me=E4(),De=_(me),pe=_(De,!0);h(De),h(me),B(()=>{var at;st(De,`font-size: ${(at=r(E))!=null?at:""}px`),be(pe,te())}),$(le,me)}),$(re,N)};L(fe,re=>{var N;r(x)&&((N=r(k))!=null&&N.length)?re(ne):re(Ve,!1)},ke)}};L(ie,fe=>{r(x)&&d()?fe(ue):fe($e,!1)})}h(ce),h(J),B(fe=>{var ke;G=ee(J,1,"subtitles-caption svelte-c2x749",null,G,fe),st(J,`--subtitles-caption-margin: ${(ke=r(I))!=null?ke:""}%`)},[()=>({mobile:a()})]),$(W,J)};L(H,W=>{var J;(e.captions.length||(J=r(k))!=null&&J.length)&&W(F)})}h(R),B(W=>Y=ee(R,1,"subtitles-container svelte-c2x749",null,Y,W),[()=>({shifted:e.shifted,auto:r(x)&&!r(S)&&!d()})]),$(t,R),z(),o()}var A4=M('<div class="text svelte-raurnb"> </div>'),M4=M('<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>'),L4={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 Jd(t,e){U(e,!0),q(t,L4);let i=kt();var o=M4();let n;var s=P(_(o),2);{var l=d=>{var a=A4(),p=_(a);h(a),B(()=>{var f;return be(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:""}`)}),$(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),st(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var V4=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function Xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=V4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var R4=M('<div class="container svelte-13zpvm8"><!></div>'),N4={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 La(t){q(t,N4);var e=R4(),i=_(e);Xm(i,{}),h(e),$(t,e)}var O4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),B4=M("<div><!></div>"),D4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
276
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
277
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Va(t,e){U(e,!0),K(t,K4);let i=v(e,"iconVisible",3,!0),o=Te(),n=kt(),s=o.ui.startedByKeyboard$,l=W("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=W4();let f;p.__click=a;var m=_(p);{var u=y=>{var w=z4();w.__keydown=d;var x=P(_(w),2);zr(x,{}),h(w),B(()=>Ue(w,"aria-label",l)),$(y,w)};V(m,y=>{i()&&y(u)})}return h(p),B(y=>{f=ie(p,1,"container svelte-1ciju45",null,f,y),nt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:a})}at(["click","keydown"]);var q4=A('<div data-testid="video_title"><span> </span></div>'),Q4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
277
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Va(t,e){U(e,!0),q(t,D4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=kt(),s=o.ui.startedByKeyboard$,l=K("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=B4();let f;p.__click=a;var v=_(p);{var u=y=>{var w=O4();w.__keydown=d;var x=P(_(w),2);Ur(x,{}),h(w),B(()=>Fe(w,"aria-label",l)),$(y,w)};L(v,y=>{i()&&y(u)})}return h(p),B(y=>{f=ee(p,1,"container svelte-1ciju45",null,f,y),st(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),z({handlePressKey:d,handleClick:a})}dt(["click","keydown"]);var H4=M('<div data-testid="video_title"><span> </span></div>'),F4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
278
278
  0deg,
279
279
  rgba(0, 0, 0, 0) 0%,
280
280
  rgba(0, 0, 0, 0.02) 19%,
281
281
  rgba(0, 0, 0, 0.1) 34%,
282
282
  rgba(0, 0, 0, 0.4) 60%,
283
283
  rgba(0, 0, 0, 0.6) 100%
284
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function av(t,e){U(e,!0),K(t,Q4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=Z(void 0);Rt(()=>{var m;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var y;u.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(m=r(s))==null||m.addEventListener("transitionend",f),()=>{var u;return(u=r(s))==null?void 0:u.removeEventListener("transitionend",f)}});var l=q4();let d;var a=_(l),p=_(a,!0);h(a),tt(a,f=>n(f),()=>n()),h(l),tt(l,f=>O(s,f),()=>r(s)),B(f=>{d=ie(l,1,"title svelte-14hk510",null,d,f),_e(p,i())},[()=>({hidden:o()})]),$(t,l),z()}var f0=require("@vkontakte/videoplayer-shared/es2018");var G4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),j4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),Y4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),Z4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),X4=A("<div><!> <!> <!> <!></div>"),J4={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function lv(t,e){U(e,!0),K(t,J4);let i=Z(""),o=Z(""),n=Z(""),s=Z(""),l,d=32,a=d/2,p=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),m=H=>`${(e.isSmallSize?a:d)*f(H)}px`,u=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,p(F),!0));let q=Math.floor(H/3600);O(o,p(q),!0);let Y=Math.floor(H/60)%60;O(n,p(Y),!0);let j=H%60;O(s,p(j),!0)},y=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;u(F),F>=1?l=requestAnimationFrame(y):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(y)}),on(()=>{cancelAnimationFrame(l)});var w=X4();let x;var S=_(w);{var T=H=>{var F=G4(),q=ge(F);let Y;var j=_(q),ue=_(j,!0);h(j);var re=P(j,2),fe=_(re,!0);h(re),h(q);var be=P(q,2),me=_(be,!0);h(be),B((Pe,se,Le)=>{Y=nt(q,"",Y,{width:Pe}),_e(ue,r(i)),_e(fe,se),_e(me,Le)},[()=>m(r(i)),()=>W("waiting_live_day_value"),()=>W("waiting_live_colon")]),$(H,F)};V(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var R=H=>{var F=j4(),q=ge(F);let Y;var j=_(q),ue=_(j,!0);h(j);var re=P(j,2),fe=_(re,!0);h(re),h(q);var be=P(q,2),me=_(be,!0);h(be),B((Pe,se,Le)=>{Y=nt(q,"",Y,{width:Pe}),_e(ue,r(o)),_e(fe,se),_e(me,Le)},[()=>m(r(o)),()=>W("waiting_live_hour_value"),()=>W("waiting_live_colon")]),$(H,F)};V(E,H=>{r(o)&&H(R)})}var I=P(E,2);{var M=H=>{var F=Y4(),q=ge(F);let Y;var j=_(q),ue=_(j,!0);h(j);var re=P(j,2),fe=_(re,!0);h(re),h(q);var be=P(q,2),me=_(be,!0);h(be),B((Pe,se,Le)=>{Y=nt(q,"",Y,{width:Pe}),_e(ue,r(n)),_e(fe,se),_e(me,Le)},[()=>m(r(n)),()=>W("waiting_live_minute_value"),()=>W("waiting_live_colon")]),$(H,F)};V(I,H=>{r(n)&&H(M)})}var k=P(I,2);{var G=H=>{var F=Z4();let q;var Y=_(F),j=_(Y,!0);h(Y);var ue=P(Y,2),re=_(ue,!0);h(ue),h(F),B((fe,be)=>{q=nt(F,"",q,{width:fe}),_e(j,r(s)),_e(re,be)},[()=>m(r(s)),()=>W("waiting_live_second_value")]),$(H,F)};V(k,H=>{r(s)&&H(G)})}h(w),B(H=>x=ie(w,1,"timer__container svelte-gt98rn",null,x,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var e3=A('<div class="waiting svelte-17m8dcd"><span> </span></div>'),t3=A('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),i3=A('<div class="waiting-container svelte-17m8dcd"><!></div>'),o3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function nc(t,e){U(e,!0),K(t,o3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Z(void 0),s=Z(void 0),l=0,d=Z(void 0),a=Z(void 0),p=g(()=>{var S,T;return((S=r(d))!=null?S:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var S,T;return!r(p)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,f0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;Qe(()=>{r(a),r(d),r(o),m==null||m()}),on(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=i3(),y=_(u);{var w=S=>{var T=e3(),E=_(T);let R;var I=_(E,!0);h(E),h(T),tt(T,M=>O(n,M),()=>r(n)),B((M,k)=>{R=ie(E,1,"waiting__title svelte-17m8dcd",null,R,M),_e(I,k)},[()=>({medium:r(f),small:r(p)}),()=>W("waiting_live_upcoming_title")]),$(S,T)},x=S=>{var T=t3(),E=_(T);let R;var I=_(E,!0);h(E);var M=P(E,2);let k=g(()=>r(p)||r(f)),G=g(()=>i()||0);lv(M,{get isSmallSize(){return r(k)},get startTime(){return r(G)},onTimerOver:()=>O(o,!0)}),h(T),tt(T,H=>O(s,H),()=>r(s)),B((H,F)=>{R=ie(E,1,"timer__title svelte-17m8dcd",null,R,H),_e(I,F)},[()=>({medium:r(f),small:r(p)}),()=>W("waiting_live_timer_title")]),$(S,T)};V(y,S=>{r(o)?S(w):S(x,!1)})}h(u),B(()=>nt(u,`background-image: url(${e.thumbUrl})`)),ar(u,"clientWidth",S=>O(d,S)),ar(u,"clientHeight",S=>O(a,S)),$(t,u),z()}var n3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),r3={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 Ra(t,e){U(e,!0),K(t,r3);let i=v(e,"thumbUrl",3,""),o={recover:W("waiting_live_recover_title"),record:W("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=n3(),l=_(s),d=_(l);xa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(s),B(()=>{nt(s,`background-image: url('${i()}')`),_e(p,r(n))}),$(t,s),z()}var s3=we('<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 dv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var a3=A('<div class="select-icon svelte-124aexk"><!></div>'),l3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function rc(t){K(t,l3);var e=a3(),i=_(e);dv(i,{}),h(e),$(t,e)}var d3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},c3=(t,e)=>{_l(t,()=>e.item.selectItem(e.item.value))},u3=A("<p> </p>"),p3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),f3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),m3={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;
284
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Jm(t,e){U(e,!0),q(t,F4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=j(void 0);Mt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var y;u.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=r(s))==null?void 0:u.removeEventListener("transitionend",f)}});var l=H4();let d;var a=_(l),p=_(a,!0);h(a),ot(a,f=>n(f),()=>n()),h(l),ot(l,f=>O(s,f),()=>r(s)),B(f=>{d=ee(l,1,"title svelte-14hk510",null,d,f),be(p,i())},[()=>({hidden:o()})]),$(t,l),z()}var o0=require("@vkontakte/videoplayer-shared/es2018");var U4=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),z4=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),W4=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),K4=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),q4=M("<div><!> <!> <!> <!></div>"),Q4={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function ev(t,e){U(e,!0),q(t,Q4);let i=j(""),o=j(""),n=j(""),s=j(""),l,d=32,a=d/2,p=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?a:d)*f(H)}px`,u=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,p(F),!0));let W=Math.floor(H/3600);O(o,p(W),!0);let J=Math.floor(H/60)%60;O(n,p(J),!0);let G=H%60;O(s,p(G),!0)},y=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;u(F),F>=1?l=requestAnimationFrame(y):e.onTimerOver()};Mt(()=>{l=requestAnimationFrame(y)}),nn(()=>{cancelAnimationFrame(l)});var w=q4();let x;var S=_(w);{var T=H=>{var F=U4(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=st(W,"",J,{width:ke}),be(ce,r(i)),be(ue,ne),be(fe,Ve)},[()=>v(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),$(H,F)};L(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var V=H=>{var F=z4(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=st(W,"",J,{width:ke}),be(ce,r(o)),be(ue,ne),be(fe,Ve)},[()=>v(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),$(H,F)};L(E,H=>{r(o)&&H(V)})}var k=P(E,2);{var I=H=>{var F=W4(),W=ge(F);let J;var G=_(W),ce=_(G,!0);h(G);var ie=P(G,2),ue=_(ie,!0);h(ie),h(W);var $e=P(W,2),fe=_($e,!0);h($e),B((ke,ne,Ve)=>{J=st(W,"",J,{width:ke}),be(ce,r(n)),be(ue,ne),be(fe,Ve)},[()=>v(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),$(H,F)};L(k,H=>{r(n)&&H(I)})}var R=P(k,2);{var Y=H=>{var F=K4();let W;var J=_(F),G=_(J,!0);h(J);var ce=P(J,2),ie=_(ce,!0);h(ce),h(F),B((ue,$e)=>{W=st(F,"",W,{width:ue}),be(G,r(s)),be(ie,$e)},[()=>v(r(s)),()=>K("waiting_live_second_value")]),$(H,F)};L(R,H=>{r(s)&&H(Y)})}h(w),B(H=>x=ee(w,1,"timer__container svelte-gt98rn",null,x,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var G4=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),j4=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),Y4=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),Z4={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function ec(t,e){U(e,!0),q(t,Z4);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=j(void 0),s=j(void 0),l=0,d=j(void 0),a=j(void 0),p=g(()=>{var S,T;return((S=r(d))!=null?S:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var S,T;return!r(p)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,o0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;Ke(()=>{r(a),r(d),r(o),v==null||v()}),nn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(p)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var u=Y4(),y=_(u);{var w=S=>{var T=G4(),E=_(T);let V;var k=_(E,!0);h(E),h(T),ot(T,I=>O(n,I),()=>r(n)),B((I,R)=>{V=ee(E,1,"waiting__title svelte-17m8dcd",null,V,I),be(k,R)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_upcoming_title")]),$(S,T)},x=S=>{var T=j4(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(p)||r(f)),Y=g(()=>i()||0);ev(I,{get isSmallSize(){return r(R)},get startTime(){return r(Y)},onTimerOver:()=>O(o,!0)}),h(T),ot(T,H=>O(s,H),()=>r(s)),B((H,F)=>{V=ee(E,1,"timer__title svelte-17m8dcd",null,V,H),be(k,F)},[()=>({medium:r(f),small:r(p)}),()=>K("waiting_live_timer_title")]),$(S,T)};L(y,S=>{r(o)?S(w):S(x,!1)})}h(u),B(()=>st(u,`background-image: url(${e.thumbUrl})`)),nr(u,"clientWidth",S=>O(d,S)),nr(u,"clientHeight",S=>O(a,S)),$(t,u),z()}var X4=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),J4={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 Ra(t,e){U(e,!0),q(t,J4);let i=m(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=X4(),l=_(s),d=_(l);xa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(s),B(()=>{st(s,`background-image: url('${i()}')`),be(p,r(n))}),$(t,s),z()}var e3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function tv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=e3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var t3=M('<div class="select-icon svelte-124aexk"><!></div>'),i3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function tc(t){q(t,i3);var e=t3(),i=_(e);tv(i,{}),h(e),$(t,e)}var o3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},n3=(t,e)=>{bl(t,()=>e.item.selectItem(e.item.value))},r3=M("<p> </p>"),s3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),a3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),l3={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;
285
285
 
286
286
  /**
287
287
  * \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
288
288
  * \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.
289
289
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
290
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function cv(t,e){U(e,!0),K(t,m3);let i=v(e,"isMobile",3,!1);var o=f3();let n;o.__click=[d3,e],o.__keydown=[c3,e];var s=_(o);{var l=w=>{rc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var p=_(d);{var f=w=>{var x=qe(),S=ge(x);Ei(S,()=>e.item.valueComponent,(T,E)=>{E(T,hs(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(w,x)},m=w=>{var x=u3();let S;var T=_(x,!0);h(x),B(E=>{var R;S=ie(x,1,"label svelte-1t7rx2m",null,S,E),_e(T,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),$(w,x)};V(p,w=>{e.item.valueComponent?w(f):w(m,!1)})}var u=P(p,2);{var y=w=>{var x=p3(),S=_(x,!0);h(x),B(()=>_e(S,e.item.sublabel)),$(w,x)};V(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),B((w,x,S)=>{n=ie(o,1,"item",null,n,w),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",x),Ue(o,"data-testid",e.item.dataTestid),a=ie(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Ue(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}at(["click","keydown"]);var v3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function uv(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>x=>Cu(x,r(n)));var l=v3();let d;l.__click=function(...x){var S;(S=r(n))==null||S.apply(this,x)},l.__keydown=function(...x){var S;(S=r(s))==null||S.apply(this,x)};var a=_(l);{var p=x=>{rc(x,{})};V(a,x=>{e.item.selected&&x(p)})}var f=P(a,2);let m;var u=_(f);{var y=x=>{var S=qe();let T=g(()=>e.item.valueComponent);var E=ge(S);Ei(E,()=>r(T),(R,I)=>{I(R,hs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(x,S)},w=x=>{var S=os();B(()=>_e(S,e.item.label)),$(x,S)};V(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),tt(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),B((x,S)=>{var T;d=ie(l,1,"item",null,d,x),Ue(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ue(l,"data-testid",e.item.id),m=ie(f,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}at(["click","keydown"]);var Wr={"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 h3=(t,e)=>{V1(t,e.returnFromSubMenu,e.closeSettingsMenu)},_3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},b3=(t,e)=>{kd(t)&&(xr(t),e.returnFromSubMenu())},$3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),y3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function iv(t,e){U(e,!0),q(t,l3);let i=m(e,"isMobile",3,!1);var o=a3();let n;o.__click=[o3,e],o.__keydown=[n3,e];var s=_(o);{var l=w=>{tc(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var p=_(d);{var f=w=>{var x=We(),S=ge(x);Ei(S,()=>e.item.valueComponent,(T,E)=>{E(T,hs(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(w,x)},v=w=>{var x=r3();let S;var T=_(x,!0);h(x),B(E=>{var V;S=ee(x,1,"label svelte-1t7rx2m",null,S,E),be(T,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(w,x)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var y=w=>{var x=s3(),S=_(x,!0);h(x),B(()=>be(S,e.item.sublabel)),$(w,x)};L(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),B((w,x,S)=>{n=ee(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",x),Fe(o,"data-testid",e.item.dataTestid),a=ee(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}dt(["click","keydown"]);var d3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function ov(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>x=>$u(x,r(n)));var l=d3();let d;l.__click=function(...x){var S;(S=r(n))==null||S.apply(this,x)},l.__keydown=function(...x){var S;(S=r(s))==null||S.apply(this,x)};var a=_(l);{var p=x=>{tc(x,{})};L(a,x=>{e.item.selected&&x(p)})}var f=P(a,2);let v;var u=_(f);{var y=x=>{var S=We();let T=g(()=>e.item.valueComponent);var E=ge(S);Ei(E,()=>r(T),(V,k)=>{k(V,hs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(x,S)},w=x=>{var S=os();B(()=>be(S,e.item.label)),$(x,S)};L(u,x=>{e.item.valueComponent?x(y):x(w,!1)})}h(f),h(l),ot(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),B((x,S)=>{var T;d=ee(l,1,"item",null,d,x),Fe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(l,"data-testid",e.item.id),v=ee(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}dt(["click","keydown"]);var zr={"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 u3=(t,e)=>{S1(t,e.returnFromSubMenu,e.closeSettingsMenu)},p3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},f3=(t,e)=>{Cd(t)&&(br(t),e.returnFromSubMenu())},m3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),v3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
291
291
  /*\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 {
292
292
  /**
293
293
  * \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.
@@ -297,14 +297,14 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
297
297
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
298
298
  1px
299
299
  );}.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,
300
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function fv(t,e){U(e,!0),K(t,y3);let[i,o]=He(),n=()=>C(m,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>W("aria_label_submenu_back")),p=v(e,"listRef",15);Rt(()=>{let j=e.items.findIndex(ue=>ue.selected);p().children[j+1].focus()});let f=Te(),m=f.ui.isFullscreen,u=f.ui.playerSize,y=Z(void 0),w=Z(0),x=Z(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=$3();let R;var I=_(E);let M;I.__keydown=[h3,e];var k=_(I);let G;k.__click=[_3,e],k.__keydown=[b3,e];var H=_(k);Ks(H,{direction:"left"});var F=P(H,2),q=_(F,!0);h(F),h(k),tt(k,j=>O(y,j),()=>r(y));var Y=P(k,2);Ti(Y,17,()=>e.items,ud,(j,ue)=>{var re=qe(),fe=ge(re);{var be=Pe=>{cv(Pe,{get item(){return r(ue)},get isMobile(){return l()}})},me=(Pe,se)=>{{var Le=ae=>{uv(ae,{get isMobile(){return l()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Pe,ae=>{r(ue).type==="OPEN_SUB_MENU"&&ae(Le)},se)}};V(fe,Pe=>{r(ue).type==="SELECT_VALUE"?Pe(be):Pe(me,!1)})}$(j,re)}),h(I),tt(I,j=>p(j),()=>p()),h(E),B((j,ue,re)=>{R=ie(E,1,"sub-menu menu svelte-7dfsuh",null,R,j),Ue(E,"data-testid",`sub-menu-${e.id}`),nt(E,`min-width: ${r(T)}px`),M=ie(I,1,"items svelte-7dfsuh",null,M,ue),nt(I,r(S)),G=ie(k,1,"item header back svelte-7dfsuh",null,G,re),Ue(k,"aria-label",a()),_e(q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ar(k,"clientWidth",j=>O(w,j)),ar(k,"clientHeight",j=>O(x,j)),$(t,E),z(),o()}at(["keydown","click"]);var v0=require("@vkontakte/videoplayer-shared/es2018");var x3=(t,e)=>Cu(t,e()),w3=(t,e)=>{t.stopPropagation(),e()()},S3=A('<div class="value svelte-1ikfjte"> </div>'),C3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),T3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function mv(t,e){U(e,!0),K(t,T3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,v0.noop),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=C3();let d;l.__click=[w3,o],l.__keydown=[x3,o];var a=_(l),p=_(a);{var f=T=>{ka(T,{get icon(){return e.icon}})},m=T=>{var E=qe();let R=g(()=>e.icon);var I=ge(E);Ei(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)};V(p,T=>{typeof e.icon=="string"?T(f):T(m,!1)})}h(a);var u=P(a,2),y=_(u,!0);h(u);var w=P(u,2);{var x=T=>{var E=qe();let R=g(n);var I=ge(E);Ei(I,()=>r(R),(M,k)=>{k(M,{})}),$(T,E)},S=T=>{var E=S3(),R=_(E,!0);h(E),B(()=>_e(R,e.value)),$(T,E)};V(w,T=>{n()?T(x):T(S,!1)})}h(l),tt(l,T=>s(T),()=>s()),B(T=>{d=ie(l,1,"item",null,d,T),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}at(["click","keydown"]);var vv=require("@vkontakte/videoplayer-shared/es2018");var E3=(t,e)=>{_l(t,()=>e())},I3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),k3=A('<img class="icon" aria-hidden="true"/>'),P3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),A3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function gv(t,e){U(e,!0),K(t,A3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,vv.noop),n=v(e,"closeSettings",3,vv.noop),s=Z(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=P3();let p;a.__click=d,a.__keydown=[E3,d];var f=_(a),m=_(f);{var u=S=>{var T=qe(),E=ge(T);{var R=M=>{var k=I3();$(M,k)},I=M=>{var k=k3();B(()=>Ue(k,"src",e.icon)),Ct("error",k,l),ra(k),$(M,k)};V(E,M=>{r(s)?M(R):M(I,!1)})}$(S,T)},y=S=>{var T=qe();let E=g(()=>e.icon);var R=ge(T);Ei(R,()=>r(E),(I,M)=>{M(I,{})}),$(S,T)};V(m,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=P(f,2),x=_(w,!0);h(w),h(a),B(S=>{var T;p=ie(a,1,"item",null,p,S),Ue(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ue(a,"data-testid",e.id),_e(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}at(["click","keydown"]);var g0=require("@vkontakte/videoplayer-shared/es2018");var M3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),L3={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 hv(t,e){K(t,L3);let i=v(e,"enabled",3,!1);var o=M3(),n=_(o);let s;xe(2),h(o),B(l=>s=ie(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var V3=(t,e,i)=>{R1(t,e(),o=>i()(o))},R3=(t,e,i)=>{t.stopPropagation(),e()(!i())},N3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),O3=A('<li role="menuitem" tabindex="0"><!></li>');function _v(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,g0.noop),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=O3();let a;d.__click=[R3,o,n],d.__keydown=[V3,n,o];var p=_(d);Sa(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var u=N3();let y;var w=_(u),x=_(w);{var S=M=>{ka(M,{get icon(){return e.icon}})},T=M=>{var k=qe();let G=g(()=>e.icon);var H=ge(k);Ei(H,()=>r(G),(F,q)=>{q(F,{})}),$(M,k)};V(x,M=>{typeof e.icon=="string"?M(S):M(T,!1)})}h(w);var E=P(w,2),R=_(E,!0);h(E);var I=P(E,2);hv(I,{get enabled(){return n()}}),h(u),B(M=>{y=ie(u,1,"switch-wrapper",null,y,M),_e(R,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),B(f=>{var m;a=ie(d,1,"item switch-item",null,a,f),Ue(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}at(["click","keydown"]);var ac=require("@vkontakte/videoplayer-shared/es2018");var h0=()=>{let t=Z(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var B3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),D3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),H3={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 Na(t,e){U(e,!0),K(t,H3);let i=v(e,"isSubCase",3,!1),o=g(()=>ku(e.quality));var n=D3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var p=f=>{var m=B3();let u=g(()=>r(o));var y=_(m);Ei(y,()=>r(u),(w,x)=>{x(w,{})}),h(m),$(f,m)};V(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),B(f=>{l=ie(s,1,"svelte-t2qk8t",null,l,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var y0=require("@vkontakte/videoplayer-shared/es2018");var bv=require("@vkontakte/videoplayer-core/es2018");var _0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},b0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=_0({quality:t,availableQualities:e});return i?t===bv.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:o}):o},$0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===bv.VideoQuality.INVARIANT?i:`${i}${_0({quality:t,availableQualities:e})}`:"...";var F3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),U3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kl(t,e){U(e,!0),K(t,U3);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Te(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==y0.VideoQuality.INVARIANT?m:"")),y=g(()=>$0({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=F3(),x=_(w);let S=g(()=>e.selected?n():void 0);Na(x,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var z3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},W3={br:!0,span:!0},$v=(t,e={})=>{var d,a,p,f,m,u,y;if(!t)return t;let i={...W3,...e},o=Object.keys(i);if(!o.length)return t;let n=z3(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(m=w.groups)!=null&&m.childrenhtml?$v(w.groups.childrenhtml,i):"",R=(u=w.groups)!=null&&u.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),R),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function sc(t,e){U(e,!1);let i=v(e,"message",8),o=$v(i());Hr();var n=qe(),s=ge(n);{var l=d=>{var a=qe(),p=ge(a);pd(p,()=>o),$(d,a)};V(s,d=>{o&&d(l)})}$(t,n),z()}var K3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),q3={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 yv(t,e){U(e,!1),K(t,q3),Hr();var i=K3(),o=_(i);let n=Nr(()=>W("quality_applience",{action:`<span>${W("quality_applience_action")}</span>`}));sc(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var w0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:kl,valueComponentParams:{prefix:W("other_quality"),selected:o},children:"QUALITY"}},xv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:W("auto_quality_limit"),valueComponent:e?kl:void 0,valueComponentParams:{prefix:W("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),S0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:yv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),wv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:W("high_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:W("high_quality"),selected:i},sublabel:W("high_quality_description")}),Sv=({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:W("traffic_saving_quality"),valueComponent:t?kl:void 0,valueComponentParams:{prefix:W("traffic_saving_quality"),selected:i},sublabel:W("traffic_saving_quality_description")});var Ku=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),qu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=qd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return W("audio_stream_display_language_label",{language:n,label:o});{let a=Ku(t,d);return W("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ku(t,d);return W("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ku(t,d);return W("audio_stream_display_language_index",{language:n,index:a})}}let s=Ku(t,e);return W("audio_stream_display_unknown",{index:s})};var Q3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:xv,selected:e&&!o&&!n||!1}),s.push({handler:Sv,selected:o},{handler:wv,selected:n}),{title:W("submenu_quality"),id:"QUALITY_DETAILS",items:[S0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),w0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:W("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Na,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:W("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:xv,selected:((i=mu())==null?void 0:i.type)==="auto_quality"},{handler:Sv,selected:((o=mu())==null?void 0:o.type)==="traffic_saving"},{handler:wv,selected:((n=mu())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:W("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:qu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:W("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:W("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bu?"sub_off":void 0}))})},C0=({subMenuId:t,context:e})=>t?[Q3[t](e)]:[];var G3=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var j3=we('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Y3=we('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var Z3=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var X3=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function kv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var J3=we('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Qu(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var ex=we('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Pv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var tx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ix={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Av(t,e){U(e,!0),K(t,ix);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(m,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Te(),p=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>b0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=tx(),x=_(w);Na(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var nx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?W("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_quality",{actual:o}),icon:Nd,label:W("menu_quality"),value:e,valueComponent:Av,weight:Wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:W("aria_label_submenu_traffic_saving"),icon:Cv,label:W("menu_traffic_saving"),enabled:t,tooltipText:W("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=qu(t,e);return{id:"AUDIO_LANGUAGES",weight:Wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_audio_languages",{actual:i}),icon:Tv,label:W("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:Wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_rate",{actual:i}),icon:Ev,label:W("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:W("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Od,label:W("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Wr.download,type:"CLICK",onClick:t,label:W("download_video_caption"),ariaLabel:W("aria_label_menu_download"),icon:Iv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Wr.report,type:"CLICK",onClick:t,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,icon:kv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Wr["copy-data"],type:"CLICK",onClick:t,label:W("menu_copy_debug"),ariaLabel:W("menu_copy_debug"),icon:Qu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Wr["save-trace-info"],type:"CLICK",onClick:t,label:W("menu_save_debug"),ariaLabel:W("menu_save_debug"),icon:Qu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Wr["debug-info"],type:"CLICK",onClick:t,ariaLabel:W("aria_label_menu_debug_overlay"),label:W("menu_debug_overlay"),icon:Pv,isHiddenFor:["desktop"]})},T0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>nx[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ba)};var sx=(t,e)=>{Su(t,e)},ax=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),lx=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),dx=A("<div><!> <!></div>"),cx={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 {
300
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function rv(t,e){U(e,!0),q(t,v3);let[i,o]=He(),n=()=>C(v,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>K("aria_label_submenu_back")),p=m(e,"listRef",15);Mt(()=>{let G=e.items.findIndex(ce=>ce.selected);p().children[G+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,y=j(void 0),w=j(0),x=j(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(x)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=m3();let V;var k=_(E);let I;k.__keydown=[u3,e];var R=_(k);let Y;R.__click=[p3,e],R.__keydown=[f3,e];var H=_(R);Ws(H,{direction:"left"});var F=P(H,2),W=_(F,!0);h(F),h(R),ot(R,G=>O(y,G),()=>r(y));var J=P(R,2);Ti(J,17,()=>e.items,ad,(G,ce)=>{var ie=We(),ue=ge(ie);{var $e=ke=>{iv(ke,{get item(){return r(ce)},get isMobile(){return l()}})},fe=(ke,ne)=>{{var Ve=re=>{ov(re,{get isMobile(){return l()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ke,re=>{r(ce).type==="OPEN_SUB_MENU"&&re(Ve)},ne)}};L(ue,ke=>{r(ce).type==="SELECT_VALUE"?ke($e):ke(fe,!1)})}$(G,ie)}),h(k),ot(k,G=>p(G),()=>p()),h(E),B((G,ce,ie)=>{V=ee(E,1,"sub-menu menu svelte-7dfsuh",null,V,G),Fe(E,"data-testid",`sub-menu-${e.id}`),st(E,`min-width: ${r(T)}px`),I=ee(k,1,"items svelte-7dfsuh",null,I,ce),st(k,r(S)),Y=ee(R,1,"item header back svelte-7dfsuh",null,Y,ie),Fe(R,"aria-label",a()),be(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),nr(R,"clientWidth",G=>O(w,G)),nr(R,"clientHeight",G=>O(x,G)),$(t,E),z(),o()}dt(["keydown","click"]);var r0=require("@vkontakte/videoplayer-shared/es2018");var g3=(t,e)=>$u(t,e()),h3=(t,e)=>{t.stopPropagation(),e()()},_3=M('<div class="value svelte-1ikfjte"> </div>'),b3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),$3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sv(t,e){U(e,!0),q(t,$3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,r0.noop),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=b3();let d;l.__click=[h3,o],l.__keydown=[g3,o];var a=_(l),p=_(a);{var f=T=>{ka(T,{get icon(){return e.icon}})},v=T=>{var E=We();let V=g(()=>e.icon);var k=ge(E);Ei(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),y=_(u,!0);h(u);var w=P(u,2);{var x=T=>{var E=We();let V=g(n);var k=ge(E);Ei(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)},S=T=>{var E=_3(),V=_(E,!0);h(E),B(()=>be(V,e.value)),$(T,E)};L(w,T=>{n()?T(x):T(S,!1)})}h(l),ot(l,T=>s(T),()=>s()),B(T=>{d=ee(l,1,"item",null,d,T),Fe(l,"aria-label",e.ariaLabel),Fe(l,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),$(t,l),z()}dt(["click","keydown"]);var av=require("@vkontakte/videoplayer-shared/es2018");var y3=(t,e)=>{bl(t,()=>e())},x3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),w3=M('<img class="icon" aria-hidden="true"/>'),S3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),C3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function lv(t,e){U(e,!0),q(t,C3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,av.noop),n=m(e,"closeSettings",3,av.noop),s=j(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=S3();let p;a.__click=d,a.__keydown=[y3,d];var f=_(a),v=_(f);{var u=S=>{var T=We(),E=ge(T);{var V=I=>{var R=x3();$(I,R)},k=I=>{var R=w3();B(()=>Fe(R,"src",e.icon)),St("error",R,l),ra(R),$(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}$(S,T)},y=S=>{var T=We();let E=g(()=>e.icon);var V=ge(T);Ei(V,()=>r(E),(k,I)=>{I(k,{})}),$(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=P(f,2),x=_(w,!0);h(w),h(a),B(S=>{var T;p=ee(a,1,"item",null,p,S),Fe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(a,"data-testid",e.id),be(x,e.label)},[()=>({mobile:i()})]),$(t,a),z()}dt(["click","keydown"]);var s0=require("@vkontakte/videoplayer-shared/es2018");var T3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),E3={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 dv(t,e){q(t,E3);let i=m(e,"enabled",3,!1);var o=T3(),n=_(o);let s;Ce(2),h(o),B(l=>s=ee(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var I3=(t,e,i)=>{C1(t,e(),o=>i()(o))},k3=(t,e,i)=>{t.stopPropagation(),e()(!i())},P3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),A3=M('<li role="menuitem" tabindex="0"><!></li>');function cv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,s0.noop),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=A3();let a;d.__click=[k3,o,n],d.__keydown=[I3,n,o];var p=_(d);Sa(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=P3();let y;var w=_(u),x=_(w);{var S=I=>{ka(I,{get icon(){return e.icon}})},T=I=>{var R=We();let Y=g(()=>e.icon);var H=ge(R);Ei(H,()=>r(Y),(F,W)=>{W(F,{})}),$(I,R)};L(x,I=>{typeof e.icon=="string"?I(S):I(T,!1)})}h(w);var E=P(w,2),V=_(E,!0);h(E);var k=P(E,2);dv(k,{get enabled(){return n()}}),h(u),B(I=>{y=ee(u,1,"switch-wrapper",null,y,I),be(V,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=ee(d,1,"item switch-item",null,a,f),Fe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}dt(["click","keydown"]);var oc=require("@vkontakte/videoplayer-shared/es2018");var a0=()=>{let t=j(ni([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var M3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),L3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),V3={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 Na(t,e){U(e,!0),q(t,V3);let i=m(e,"isSubCase",3,!1),o=g(()=>Su(e.quality));var n=L3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var p=f=>{var v=M3();let u=g(()=>r(o));var y=_(v);Ei(y,()=>r(u),(w,x)=>{x(w,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),B(f=>{l=ee(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var u0=require("@vkontakte/videoplayer-shared/es2018");var uv=require("@vkontakte/videoplayer-core/es2018");var l0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},d0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=l0({quality:t,availableQualities:e});return i?t===uv.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},c0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===uv.VideoQuality.INVARIANT?i:`${i}${l0({quality:t,availableQualities:e})}`:"...";var R3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),N3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Pl(t,e){U(e,!0),q(t,N3);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==u0.VideoQuality.INVARIANT?v:"")),y=g(()=>c0({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=R3(),x=_(w);let S=g(()=>e.selected?n():void 0);Na(x,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var O3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},B3={br:!0,span:!0},pv=(t,e={})=>{var d,a,p,f,v,u,y;if(!t)return t;let i={...B3,...e},o=Object.keys(i);if(!o.length)return t;let n=O3(o),s=[],l=0;for(let w of t.matchAll(n)){let x=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?pv(w.groups.childrenhtml,i):"",V=(u=w.groups)!=null&&u.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),V),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function ic(t,e){U(e,!1);let i=m(e,"message",8),o=pv(i());Dr();var n=We(),s=ge(n);{var l=d=>{var a=We(),p=ge(a);ld(p,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),z()}var D3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),H3={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 fv(t,e){U(e,!1),q(t,H3),Dr();var i=D3(),o=_(i);let n=Rr(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));ic(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var f0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Pl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},mv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?Pl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),m0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:fv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),vv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:K("high_quality"),valueComponent:t?Pl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),gv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:K("traffic_saving_quality"),valueComponent:t?Pl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var Hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Fu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Ud(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return K("audio_stream_display_language_label",{language:n,label:o});{let a=Hu(t,d);return K("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Hu(t,d);return K("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Hu(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=Hu(t,e);return K("audio_stream_display_unknown",{index:s})};var F3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:mv,selected:e&&!o&&!n||!1}),s.push({handler:gv,selected:o},{handler:vv,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[m0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),f0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:K("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Na,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:K("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:mv,selected:((i=du())==null?void 0:i.type)==="auto_quality"},{handler:gv,selected:((o=du())==null?void 0:o.type)==="traffic_saving"},{handler:vv,selected:((n=du())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:K("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:Fu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:K("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:K("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Lu?"sub_off":void 0}))})},v0=({subMenuId:t,context:e})=>t?[F3[t](e)]:[];var U3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function hv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=U3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var z3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function _v(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=z3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var W3=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function bv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=W3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var K3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function $v(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=K3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var q3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function yv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=q3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var Q3=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Uu(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var G3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function xv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var j3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Y3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function wv(t,e){U(e,!0),q(t,Y3);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>d0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=j3(),x=_(w);Na(x,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var X3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?K("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_quality",{actual:o}),icon:Md,label:K("menu_quality"),value:e,valueComponent:wv,weight:zr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:zr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:hv,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Fu(t,e);return{id:"AUDIO_LANGUAGES",weight:zr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:_v,label:K("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:zr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:bv,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:zr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ld,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:zr.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:$v}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:zr.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:yv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:zr["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:Uu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:zr["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:Uu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:zr["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:xv,isHiddenFor:["desktop"]})},g0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>X3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ba)};var ex=(t,e)=>{bu(t,e)},tx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),ix=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),ox=M("<div><!> <!></div>"),nx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
301
301
  /* \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),
302
302
  .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),
303
303
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
304
- .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 lc(t,e){U(e,!0),K(t,cx);let[i,o]=He(),n=()=>C(pe,"$settingsMenuVisible",i),s=()=>C(st,"$settingsMenuOpenedByKeyboard",i),l=()=>C(wt,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(lt,"$playerSize",i),p=()=>C(De,"$hasMpegSources$",i),f=()=>C(ke,"$mobileNotReportControlHidden$",i),m=()=>C(Le,"$autoQualityLimitingAvailable$",i),u=()=>C(oe,"$availableSubtitlesList$",i),y=()=>C(ze,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),x=()=>C(ce,"$availablePlaybackRates$",i),S=()=>C(be,"$currentAudioStream$",i),T=()=>C(Be,"$currentPlaybackRate$",i),E=()=>C(rt,"$trafficSavingEnabled",i),R=()=>C(Pe,"$currentQuality$",i),I=()=>C(ae,"$isAutoQualityEnabled$",i),M=()=>C(he,"$currentSubtitle$",i),k=()=>C(Ut,"$additionalSettingsMenuItems$",i),G=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(se,"$availableQualities$",i),F=()=>C(bt,"$highQualityEnabled",i),q=v(e,"ref",15,void 0),Y=v(e,"playerControlsHeight",3,0),j=ni({}),ue=ni({}),re=Te(),fe=kt(),be=re.state.audioStream$,me=re.state.availableAudioStreams$,Pe=re.state.currentQuality$,se=re.state.availableQualities$,Le=re.state.autoQualityLimitingAvailable$,ae=re.state.isAutoQualityEnabled$,N=re.state.isAutoQualityAvailable$,Be=re.state.currentPlaybackRate$,ce=re.state.availablePlaybackRates$,he=re.state.currentSubtitle$,oe=re.state.availableSubtitlesList$,ve=re.state.canDownload,De=re.state.hasMpegSources$,pe=re.ui.settingsMenu.visible$,st=re.ui.settingsMenu.openedByBtnKeyboard$,X=re.ui.settingsMenu.ref$,Ae=re.ui.isMobile,ke=re.ui.mobileNotReportControlHidden$,ze=re.state.canChangePlaybackSpeed$,rt=re.state.trafficSavingEnabled$,bt=re.state.highQualityEnabled$,lt=re.ui.playerSize,wt=re.ui.debugPanelVisible,Je=re.state.isInteractiveTime$,Ut=re.ui.additionalSettingsMenuItems$,Xt=re.ui.t,Ht=re.actions.internal.downloadVideo,jt=re.actions.internal.closeSettingsMenu,Ee=re.actions.internal.openSettingsSubMenu,Kt=re.actions.internal.closeSettingsSubMenu,Se=Z(!1),te=Z(void 0),ne=h0();Qe(()=>{!n()&&ne.current&&(Kt(ue[ne.current]),ne.popAllSubMenus())}),Qe(()=>{n()||O(te,void 0)}),Qe(()=>{!ne.current&&r(te)&&L1(j,r(te))}),Qe(()=>{q()&&X.set(q())});async function Ve(Ke){var Qt;ne.pushSubMenu(Ke),await Co(),Ee(Ke,ue[Ke]);let ut=(Qt=q())==null?void 0:Qt.firstElementChild;ut&&Uf(ut)}function Fe(Ke){var ut;Ke==null||Ke.stopPropagation(),s()||(ut=e.returnFocus)==null||ut.call(e),jt(),O(Se,!1)}function Re(Ke,ut){re.actions.internal.setQuality(Ke,{appliesTo:ut}),Fe()}function We(Ke){re.actions.internal.setAudioStream(Ke),Fe()}function Ne(Ke,ut){re.actions.internal.setTrafficSavingEnabled(Ke,ut),fe.features.qualityDetailsSubMenuEnabled&&Fe()}function et(Ke,ut){re.actions.internal.setHighQualityEnabled(Ke,ut),Fe()}function zt(Ke){re.actions.internal.setPlaybackRate(Ke),Fe()}function qt(Ke){re.actions.internal.setSubtitle(Ke),Fe()}function Et(){Ht()}function $i(){(0,ac.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),re.actions.internal.reportProblem(),re.actions.internal.pause()}function _i(){gl(re.actions.internal.getDebugTextData())}let ct=()=>{let Ke=re.actions.internal.getTraceTextData(),ut=new Blob([...Ke],{type:"application/json"}),Qt=window.URL.createObjectURL(ut);fa(Qt,"vk_player_trace_info","json")};function Vi(){wt.set(!l())}function Yt(){O(Se,!0)}function dt(){O(Se,!1)}function si(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-Y()}px; overflow: auto;`}let Ri=g(()=>ve&&p()&&!f()),Mt=g(()=>fe.features.trafficSaving&&!f()&&m()&&!fe.features.qualityDetailsSubMenuEnabled),ri=g(()=>u().length>0&&!f()),rn=g(()=>!!y()&&!f()),Lt=g(()=>fe.features.audioLanguages&&w().length>=2&&!f()),ft=g(()=>!f());Rt(()=>Je.subscribe(Ke=>{Ke&&!d()&&!r(Se)&&!s()&&Fe()}));let di=g(()=>{let Ke=[r(ft)&&"QUALITY_SETTINGS",r(Lt)&&"AUDIO_LANGUAGES",r(rn)&&"PLAYBACK_RATE",r(ri)&&"SUBTITLES",r(Mt)&&"TRAFFIC_SAVING_SWITCH",r(Ri)&&"DOWNLOAD",fe.showSupport&&"SHOW_SUPPORT","COPY_DATA",fe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return T0({items:Ke,context:{qualityDetailsSubMenuEnabled:fe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:zt,trafficSavingEnabled:E(),toggleTrafficSaving:Ne,currentQuality:R()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:M(),isMobile:d(),onDownloadClick:Et,onCopyDataClick:_i,onReportProblemClick:$i,onSaveTraceDataClick:ct,toggleShowDebugInfo:Vi},additionalSettingsMenuItems:k()})}),ko=g(()=>C0({subMenuId:ne.current,context:{availablePlaybackRates:x(),selectPlaybackRate:zt,trafficSavingEnabled:E(),toggleTrafficSaving:Ne,currentQuality:R()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:G()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:jt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:We,selectQuality:Re,selectSubtitle:qt}}));var qi=dx();let ti;var Ko=_(qi);{var Dn=Ke=>{var ut=lx();let Qt;ut.__keydown=[sx,jt];var Pt=_(ut);{var At=ai=>{var St=ax();let to;var Qi=_(St),Hn=_(Qi,!0);h(Qi);var Ni=P(Qi,2);Ni.__click=Fe,h(St),B((vo,go)=>{to=ie(St,1,"item header svelte-17or3al",null,to,vo),_e(Hn,go)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),$(ai,St)};V(Pt,ai=>{d()&&ai(At)})}var ci=P(Pt,2);let qo;Ti(ci,21,()=>r(di),ai=>ai.id,(ai,St)=>{var to=qe(),Qi=ge(to);{var Hn=vo=>{mv(vo,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{Ve(r(St).children),O(te,r(St).id,!0)},get ref(){return j[r(St).id]},set ref(go){j[r(St).id]=go}})},Ni=(vo,go)=>{{var xn=ki=>{gv(ki,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:Fe})},sn=(ki,Gi)=>{{var an=Po=>{_v(Po,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};V(ki,Po=>{r(St).type==="SWITCH"&&Po(an)},Gi)}};V(vo,ki=>{r(St).type==="CLICK"?ki(xn):ki(sn,!1)},go)}};V(Qi,vo=>{r(St).type==="OPEN_SUB_MENU"?vo(Hn):vo(Ni,!1)})}$(ai,to)}),h(ci),tt(ci,ai=>q(ai),()=>q()),h(ut),B((ai,St,to)=>{Qt=ie(ut,1,"settings-menu menu svelte-17or3al",null,Qt,ai),qo=ie(ci,1,"items",null,qo,St),nt(ci,to)},[()=>({desktop:!d(),mobile:d(),hidden:!!ne.current}),()=>({mobile:d()}),si]),Ct("mouseenter",ut,Yt),Ct("mouseleave",ut,dt),$(Ke,ut)};V(Ko,Ke=>{n()&&Ke(Dn)})}var D=P(Ko,2);Ti(D,17,()=>r(ko),Ke=>Ke.id,(Ke,ut)=>{let Qt=g(()=>{var Pt;return(Pt=r(ut).minWidth)!=null?Pt:137});fv(Ke,{get isMobile(){return d()},get playerControlsHeight(){return Y()},get returnFromSubMenu(){return ne.popSubMenu},get id(){return r(ut).id},get title(){return r(ut).title},get closeSettingsMenu(){return jt},openSubMenuList:Ve,get items(){return r(ut).items},get minWidth(){return r(Qt)},get refMenuItems(){return j},get listRef(){return ue[r(ut).id]},set listRef(Pt){ue[r(ut).id]=Pt}})}),h(qi),B(Ke=>ti=ie(qi,1,"settings-menu-container svelte-17or3al",null,ti,Ke),[()=>({mobile:d(),hidden:!n()})]),$(t,qi),z(),o()}at(["keydown","click"]);var ux=t=>t;function E0(t,{delay:e=0,duration:i=400,easing:o=ux}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var px=A('<button class="button svelte-1sbbskl"> </button>'),fx={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 Mv(t,e){K(t,fx);var i=px();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>_e(o,e.label)),$(t,i)}at(["click"]);var mx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),vx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
+ .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 nc(t,e){U(e,!0),q(t,nx);let[i,o]=He(),n=()=>C(pe,"$settingsMenuVisible",i),s=()=>C(at,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Ct,"$debugPanelVisible",i),d=()=>C(Ae,"$isMobile",i),a=()=>C(gt,"$playerSize",i),p=()=>C(De,"$hasMpegSources$",i),f=()=>C(Ie,"$mobileNotReportControlHidden$",i),v=()=>C(Ve,"$autoQualityLimitingAvailable$",i),u=()=>C(te,"$availableSubtitlesList$",i),y=()=>C(ze,"$isLiveWithPlaybackSpeed",i),w=()=>C(fe,"$availableAudioStreams$",i),x=()=>C(le,"$availablePlaybackRates$",i),S=()=>C($e,"$currentAudioStream$",i),T=()=>C(Be,"$currentPlaybackRate$",i),E=()=>C(lt,"$trafficSavingEnabled",i),V=()=>C(ke,"$currentQuality$",i),k=()=>C(re,"$isAutoQualityEnabled$",i),I=()=>C(ve,"$currentSubtitle$",i),R=()=>C(Ht,"$additionalSettingsMenuItems$",i),Y=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(ne,"$availableQualities$",i),F=()=>C(vt,"$highQualityEnabled",i),W=m(e,"ref",15,void 0),J=m(e,"playerControlsHeight",3,0),G=ni({}),ce=ni({}),ie=Ee(),ue=kt(),$e=ie.state.audioStream$,fe=ie.state.availableAudioStreams$,ke=ie.state.currentQuality$,ne=ie.state.availableQualities$,Ve=ie.state.autoQualityLimitingAvailable$,re=ie.state.isAutoQualityEnabled$,N=ie.state.isAutoQualityAvailable$,Be=ie.state.currentPlaybackRate$,le=ie.state.availablePlaybackRates$,ve=ie.state.currentSubtitle$,te=ie.state.availableSubtitlesList$,me=ie.state.canDownload,De=ie.state.hasMpegSources$,pe=ie.ui.settingsMenu.visible$,at=ie.ui.settingsMenu.openedByBtnKeyboard$,Z=ie.ui.settingsMenu.ref$,Ae=ie.ui.isMobile,Ie=ie.ui.mobileNotReportControlHidden$,ze=ie.state.canChangePlaybackSpeed$,lt=ie.state.trafficSavingEnabled$,vt=ie.state.highQualityEnabled$,gt=ie.ui.playerSize,Ct=ie.ui.debugPanelVisible,Ge=ie.state.isInteractiveTime$,Ht=ie.ui.additionalSettingsMenuItems$,Xt=ie.ui.t,Gt=ie.actions.internal.downloadVideo,Wt=ie.actions.internal.closeSettingsMenu,oe=ie.actions.internal.openSettingsSubMenu,Ft=ie.actions.internal.closeSettingsSubMenu,he=j(!1),we=j(void 0),ae=a0();Ke(()=>{!n()&&ae.current&&(Ft(ce[ae.current]),ae.popAllSubMenus())}),Ke(()=>{n()||O(we,void 0)}),Ke(()=>{!ae.current&&r(we)&&w1(G,r(we))}),Ke(()=>{W()&&Z.set(W())});async function Re(Ue){var Ut;ae.pushSubMenu(Ue),await Io(),oe(Ue,ce[Ue]);let pt=(Ut=W())==null?void 0:Ut.firstElementChild;pt&&Vf(pt)}function qe(Ue){var pt;Ue==null||Ue.stopPropagation(),s()||(pt=e.returnFocus)==null||pt.call(e),Wt(),O(he,!1)}function Le(Ue,pt){ie.actions.internal.setQuality(Ue,{appliesTo:pt}),qe()}function Ye(Ue){ie.actions.internal.setAudioStream(Ue),qe()}function Oe(Ue,pt){ie.actions.internal.setTrafficSavingEnabled(Ue,pt),ue.features.qualityDetailsSubMenuEnabled&&qe()}function et(Ue,pt){ie.actions.internal.setHighQualityEnabled(Ue,pt),qe()}function Lt(Ue){ie.actions.internal.setPlaybackRate(Ue),qe()}function Kt(Ue){ie.actions.internal.setSubtitle(Ue),qe()}function tt(){Gt()}function xi(){(0,oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function hi(){hl(ie.actions.internal.getDebugTextData())}let it=()=>{let Ue=ie.actions.internal.getTraceTextData(),pt=new Blob([...Ue],{type:"application/json"}),Ut=window.URL.createObjectURL(pt);fa(Ut,"vk_player_trace_info","json")};function ii(){Ct.set(!l())}function jt(){O(he,!0)}function _i(){O(he,!1)}function Mo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let _o=g(()=>me&&p()&&!f()),Dt=g(()=>ue.features.trafficSaving&&!f()&&v()&&!ue.features.qualityDetailsSubMenuEnabled),ri=g(()=>u().length>0&&!f()),sn=g(()=>!!y()&&!f()),Pt=g(()=>ue.features.audioLanguages&&w().length>=2&&!f()),ut=g(()=>!f());Mt(()=>Ge.subscribe(Ue=>{Ue&&!d()&&!r(he)&&!s()&&qe()}));let bi=g(()=>{let Ue=[r(ut)&&"QUALITY_SETTINGS",r(Pt)&&"AUDIO_LANGUAGES",r(sn)&&"PLAYBACK_RATE",r(ri)&&"SUBTITLES",r(Dt)&&"TRAFFIC_SAVING_SWITCH",r(_o)&&"DOWNLOAD",ue.showSupport&&"SHOW_SUPPORT","COPY_DATA",ue.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(pt=>!!pt);return g0({items:Ue,context:{qualityDetailsSubMenuEnabled:ue.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:V()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:tt,onCopyDataClick:hi,onReportProblemClick:xi,onSaveTraceDataClick:it,toggleShowDebugInfo:ii},additionalSettingsMenuItems:R()})}),Lo=g(()=>v0({subMenuId:ae.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Lt,trafficSavingEnabled:E(),toggleTrafficSaving:Oe,currentQuality:V()||oc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Y()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:et,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ye,selectQuality:Le,selectSubtitle:Kt}}));var Wi=ox();let oi;var Go=_(Wi);{var Fn=Ue=>{var pt=ix();let Ut;pt.__keydown=[ex,Wt];var ct=_(pt);{var ai=di=>{var xt=tx();let Vi;var Vo=_(xt),Un=_(Vo,!0);h(Vo);var Ri=P(Vo,2);Ri.__click=qe,h(xt),B((io,Ro)=>{Vi=ee(xt,1,"item header svelte-17or3al",null,Vi,io),be(Un,Ro)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),$(di,xt)};L(ct,di=>{d()&&di(ai)})}var li=P(ct,2);let bo;Ti(li,21,()=>r(bi),di=>di.id,(di,xt)=>{var Vi=We(),Vo=ge(Vi);{var Un=io=>{sv(io,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{Re(r(xt).children),O(we,r(xt).id,!0)},get ref(){return G[r(xt).id]},set ref(Ro){G[r(xt).id]=Ro}})},Ri=(io,Ro)=>{{var wn=ki=>{lv(ki,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:qe})},Sn=(ki,Ki)=>{{var jo=Yo=>{cv(Yo,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};L(ki,Yo=>{r(xt).type==="SWITCH"&&Yo(jo)},Ki)}};L(io,ki=>{r(xt).type==="CLICK"?ki(wn):ki(Sn,!1)},Ro)}};L(Vo,io=>{r(xt).type==="OPEN_SUB_MENU"?io(Un):io(Ri,!1)})}$(di,Vi)}),h(li),ot(li,di=>W(di),()=>W()),h(pt),B((di,xt,Vi)=>{Ut=ee(pt,1,"settings-menu menu svelte-17or3al",null,Ut,di),bo=ee(li,1,"items",null,bo,xt),st(li,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ae.current}),()=>({mobile:d()}),Mo]),St("mouseenter",pt,jt),St("mouseleave",pt,_i),$(Ue,pt)};L(Go,Ue=>{n()&&Ue(Fn)})}var D=P(Go,2);Ti(D,17,()=>r(Lo),Ue=>Ue.id,(Ue,pt)=>{let Ut=g(()=>{var ct;return(ct=r(pt).minWidth)!=null?ct:137});rv(Ue,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return ae.popSubMenu},get id(){return r(pt).id},get title(){return r(pt).title},get closeSettingsMenu(){return Wt},openSubMenuList:Re,get items(){return r(pt).items},get minWidth(){return r(Ut)},get refMenuItems(){return G},get listRef(){return ce[r(pt).id]},set listRef(ct){ce[r(pt).id]=ct}})}),h(Wi),B(Ue=>oi=ee(Wi,1,"settings-menu-container svelte-17or3al",null,oi,Ue),[()=>({mobile:d(),hidden:!n()})]),$(t,Wi),z(),o()}dt(["keydown","click"]);var rx=t=>t;function h0(t,{delay:e=0,duration:i=400,easing:o=rx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var sx=M('<button class="button svelte-1sbbskl"> </button>'),ax={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Sv(t,e){q(t,ax);var i=sx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>be(o,e.label)),$(t,i)}dt(["click"]);var lx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),dx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
305
305
  /**
306
306
  * \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.
307
- */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 dc(t,e){U(e,!0),K(t,vx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Te(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=mx(),d=_(l),a=_(d),p=_(a),f=_(p);sc(f,{get message(){return s}}),h(p);var m=P(p,2);{var u=w=>{let x=g(()=>n("slow_video_notification_button"));Mv(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};V(m,w=>{o||w(u)})}h(a);var y=P(a,2);ya(y,{get onClick(){return e.onClose}}),h(d),h(l),df(3,d,()=>E0,()=>({duration:i})),$(t,l),z()}var cc=require("@vkontakte/videoplayer-shared/es2018"),Oa="annotation",Gu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Oa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let s=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(m=>m.forEach(()=>{let u=bs(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?ye(w):null,S=d==null?void 0:d[y];x&&(S==null||S.set((0,cc.isIntersecting)(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new cc.Subscription;o.forEach(m=>{l&&p.add(l[m].subscribe(u=>{let y=d==null?void 0:d[m];u&&u.isDisplayed?y==null||y.set((0,cc.isIntersecting)(u,bs(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(m=>{var u,y;(y=(u=this.store)==null?void 0:u.ui.hiddenControls[m])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var gx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),hx={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;
307
+ */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 rc(t,e){U(e,!0),q(t,dx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:n}}=Ee(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=lx(),d=_(l),a=_(d),p=_(a),f=_(p);ic(f,{get message(){return s}}),h(p);var v=P(p,2);{var u=w=>{let x=g(()=>n("slow_video_notification_button"));Sv(w,{get label(){return r(x)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}h(a);var y=P(a,2);ya(y,{get onClick(){return e.onClose}}),h(d),h(l),ef(3,d,()=>h0,()=>({duration:i})),$(t,l),z()}var sc=require("@vkontakte/videoplayer-shared/es2018"),Oa="annotation",zu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Oa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let s=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=bs(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?xe(w):null,S=d==null?void 0:d[y];x&&(S==null||S.set((0,sc.isIntersecting)(x,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new sc.Subscription;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let y=d==null?void 0:d[v];u&&u.isDisplayed?y==null||y.set((0,sc.isIntersecting)(u,bs(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,y;(y=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var cx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),ux={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;
308
308
 
309
309
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
310
310
 
@@ -335,8 +335,8 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
335
335
  opacity: 0;
336
336
  scale: 0;
337
337
  }
338
- }`};function Lv(t,e){U(e,!0),K(t,hx);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Te(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:m}}=kt(),u=0,y=Z(null),w=Z(!1);Qe(()=>{O(y,n()?zr:ys,!0)}),Qe(()=>{O(y,s()?Ws:null,!0)}),Qe(()=>{if(p)return u=window.setTimeout(()=>{u=0,s()&&r(y)===Ws&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(y,null)},r(y)!==Ws?f:m),()=>{u&&(window.clearTimeout(u),u=0)}}),Qe(()=>{n()&&!r(w)&&(O(w,!0),O(y,null))});var x=qe(),S=ge(x);{var T=E=>{var R=qe(),I=ge(R);aa(I,()=>r(y),M=>{var k=gx(),G=_(k),H=_(G);let F=g(()=>s()==="prev");Ei(H,()=>r(y),(q,Y)=>{Y(q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(G),h(k),B(()=>nt(G,`animation-duration: ${r(y)!==Ws?f:m}ms`)),$(M,k)}),$(E,R)};V(S,E=>{r(y)&&p&&E(T)})}$(t,x),z(),o()}var _x=A('<div><div data-testid="video-container"></div></div>'),bx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ba(t,e){U(e,!0),K(t,bx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(m,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:u}}=Te(),{isSmoothVideoRotate:y}=kt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=_x();let S;x.__contextmenu=function(...R){var I;(I=e.onContextMenu)==null||I.apply(this,R)},x.__mousedown=function(...R){var I;(I=e.onMouseDown)==null||I.apply(this,R)},x.__mouseup=function(...R){var I;(I=e.onMouseUp)==null||I.apply(this,R)},x.__click=function(...R){var I;(I=e.onClick)==null||I.apply(this,R)},x.__dblclick=function(...R){var I;(I=e.onDblClick)==null||I.apply(this,R)};var T=_(x);let E;tt(T,R=>a(R),()=>a()),h(x),B((R,I)=>{S=ie(x,1,"video-wrapper svelte-1czns9r",null,S,R),E=ie(T,1,"video-container svelte-1czns9r",null,E,I),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}at(["contextmenu","mousedown","mouseup","click","dblclick"]);var $x=we('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function Vv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$x();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var yx=A('<div><span class="text svelte-1tixim0"> </span> <!></div>'),xx={hash:"svelte-1tixim0",code:".root.svelte-1tixim0 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:#FFFFFF;display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;}.root.visible.svelte-1tixim0 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1tixim0 {font-size:13px;line-height:16px;font-weight:600;}"};function Rv(t,e){U(e,!0),K(t,xx);let{ui:{t:i}}=Te();var o=yx();let n;var s=_(o),l=_(s,!0);h(s);var d=P(s,2);Vv(d,{}),h(o),B((a,p)=>{n=ie(o,1,"root svelte-1tixim0",null,n,a),_e(l,p)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),z()}var wx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Sx=A("<div><!></div>"),Cx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Tx=A("<div><!></div>"),Ex=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),Ix=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),kx=A("<!> <!> <!>",1),Px=A('<div class="blocked svelte-jtgjmv"></div>'),Ax=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Mx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Ov(t,e){U(e,!0),K(t,Mx);let[i,o]=He(),n=()=>C(qr,"$notificationsToShow$",i),s=()=>C(dt,"$playerPhase",i),l=()=>C(qi,"$isLoaderVisible",i),d=()=>C(ct,"$adPlaybackState",i),a=()=>C(Qt,"$crashed",i),p=()=>C(Hn,"$isInteractiveTime$",i),f=()=>C(ri,"$settingsMenuVisible",i),m=()=>C(Ni,"$isInteractiveExpectation$",i),u=()=>C(Mt,"$controlsVisible",i),y=()=>C(go,"$touched",i),w=()=>C(wn,"$graphIsOpened$",i),x=()=>C(si,"$isFullscreen",i),S=()=>C(wr,"$autoplayNextEnabled$",i),T=()=>C(D,"$postrollPassed",i),E=()=>C(ti,"$isEnded$",i),R=()=>C(Tn,"$cursorInside",i),I=()=>C(Sr,"$isControlsAvailable",i),M=()=>C(Kr,"$doubleForwardOn$",i),k=()=>C(Un,"$fakeIsPlaying$",i),G=()=>C(Cn,"$bottomNoSmooth",i),H=()=>C(Gi,"$interactiveTimeIndicator",i),F=()=>C(ai,"$playerSize",i),q=()=>C(St,"$is3DVideo",i),Y=()=>C(di,"$contextMenuVisible$",i),j=()=>C(_i,"$playbackState$",i),ue=()=>C(xn,"$hotKeyMapData",i),re=()=>C(Lt,"$scrubbingInProgress",i),fe=()=>C(ft,"$volumeChangingInProgress",i),be=()=>C(Ko,"$chromecastConnected$",i),me=()=>C(Oi,"$controlsTimeoutActive",i),Pe=()=>C(rn,"$settingsMenuOpenedByKeyboard",i),se=()=>C(Yn,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(Lr,"$contextMenuOpenedByHotKey$",i),ae=()=>C(vr,"$contextMenuButtonRef$",i),N=()=>C(jr,"$contextMenuLastActiveElem$",i),Be=()=>C(Ri,"$isFullscreenOpenedByKeyboard",i),ce=()=>C($i,"$language$",i),he=()=>C(to,"$icon3DVideoVisible",i),oe=()=>C(Dn,"$chromecastDeviceName$",i),ve=()=>C(ci,"$currentSubtitle$",i),De=()=>C(qo,"$currentSubtitleCaptions$",i),pe=()=>C(Vi,"$position$",i),st=()=>C(Yt,"$duration$",i),X=()=>C(Ke,"$isLive$",i),Ae=()=>C(ut,"$isPlaying$",i),ke=()=>C(Po,"$contextMenuPosition$",i),ze=()=>C(sn,"$showHotKeyMap",i),rt=()=>C(ko,"$debugPanelVisible",i),bt=()=>C(Fn,"$userActionsDisabled$",i),lt=v(e,"videoContainer",15),wt=v(e,"adsSlotId",3,void 0),Je=v(e,"adsParams",3,void 0),Ut=v(e,"adsPreviewParam",3,void 0),Xt=v(e,"adsAutoplayParam",3,void 0),Ht=v(e,"duration",3,void 0),jt=v(e,"logoTargetUrl",3,""),Ee=v(e,"showNextPrevButtons",3,!1),Kt=v(e,"nextButtonActive",3,!1),Se=v(e,"prevButtonActive",3,!1),te=v(e,"endScreenVideoTitle",3,void 0),ne=v(e,"endScreenVideoThumb",3,void 0),Ve=v(e,"isOneVideoPlaylist",3,!1),Fe=v(e,"shadowRootContainer",3,void 0),Re=v(e,"outerContainerRef",3,void 0),We=v(e,"playerStarted",3,!1),Ne=v(e,"fullScreenTarget",3,void 0),et=v(e,"showMiniTimer",3,!1),zt=v(e,"showEndScreen",3,!0),qt=v(e,"keyboardControls",15),Et=e.store.getLogger().createComponentLog("Root component"),$i=e.store.interfaceLanguage$,_i=e.store.state.playbackState$,ct=e.store.ads.playbackState,Vi=e.store.state.positionWithScrubbing$,Yt=e.store.state.duration$,dt=e.store.playerPhase,si=e.store.ui.isFullscreen,Ri=e.store.ui.isFullscreenOpenedByKeyboard,Mt=e.store.ui.controlsVisible,ri=e.store.ui.settingsMenu.visible$,rn=e.store.ui.settingsMenu.openedByBtnKeyboard$,Lt=e.store.ui.scrubbingInProgress,ft=e.store.ui.volumeChangingInProgress,di=e.store.ui.contextMenu.visible$,ko=e.store.ui.debugPanelVisible,qi=e.store.state.isLoaderVisible,ti=e.store.state.isEnded$,Ko=e.store.state.chromecastConnected$,Dn=e.store.state.chromecastDeviceName$,D=e.store.ads.postrollPassed,Ke=e.store.state.isLive$,ut=e.store.state.isPlaying$,Qt=e.store.state.crashed$,Pt=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,ci=e.store.state.currentSubtitle$,qo=e.store.state.currentSubtitleCaptions$,ai=e.store.ui.playerSize,St=e.store.ui.is3DVideo,to=e.store.ui.icon3DVideoVisible,Qi=e.store.state.isInteractive,Hn=e.store.state.isInteractiveTime$,Ni=e.store.state.isInteractiveExpectation$,vo=e.store.state.hasInteractiveBranches,go=e.store.ui.touched,xn=e.store.ui.modals.hotKeyMap.data,sn=e.store.ui.modals.hotKeyMap.show,ki=e.store.ui.overlayContainer$,Gi=e.store.ui.controls.interactiveTimeIndicator,an=e.store.state.showInteractiveTimeIndicator,Po=e.store.ui.contextMenu.position$,ln=e.store.actions.internal.setQuality,dn=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,Fn=e.store.ui.userActionsDisabled,Sr=e.store.ui.isControlsAvailable,lr=e.store.ui.videoTitleInfo,Kr=e.store.ui.doubleForwardOn$,cn=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Un,notifications$:dr,graphIsOpened$:wn}=mo(),lo=Z(void 0),zn=Z(void 0),Cr=Z(void 0),Sn=Z(void 0),cr,Wn,Qo;xn.set(E1());let{closeNotification:Kn,notificationsToShow$:qr}=dr,Tr=g(()=>!!n().slow_video),ho=()=>Kn("slow_video"),mt=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Zt=Z(void 0),Cn=le(!1),ji,Oi=le(!1),Go=le(),Tn=le(!1),co=Z(!1),un=Z(!1),jo=Z(!1),_o=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Er=g(()=>p()&&!f()&&!(r(co)||r(un))&&!(r(jo)&&!m())),Ir=!0,Qr=g(()=>e.uiConfig.features.thumbTimer&&et()&&s()==="video"&&!u()&&!a()&&!Qi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),ds=g(()=>s()==="video"&&!w()&&x()),En=Z(!1),ur=g(()=>(zt()||e.showAutoplayNext&&S())&&!!te()&&!!ne()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(En)),kr=g(()=>R()&&!(u()||r(ur))&&!p()&&I()&&!M()),bo=Z(!1),ii=g(()=>k()!==null),{toggle:pn}=Un,fn=!1,In=null;At==null||At.setContext(jl());let Pr=()=>{e.autoplay&&!Qi&&e.uiConfig.controls.showOnStartupAtAutoplay&&$t(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Pr});let Ar=()=>{window.clearTimeout(cr),Oi.set(!1)},vt=()=>{window.clearTimeout(Wn),Go.set(null)},$t=J=>{Ar(),Oi.set(!0),cr=window.setTimeout(()=>Oi.set(!1),J);let Xe=J-100;ji=window.setTimeout(()=>{G()&&Cn.set(!1)},Xe>0?Xe:J)},io=(J,Xe)=>{vt(),Go.set(Xe),Wn=window.setTimeout(()=>Go.set(null),J)},Bi=St.subscribe(J=>{to.set(J),J&&(window.clearTimeout(Qo),Qo=window.setTimeout(()=>to.set(!1),e.uiConfig.controls.hide360IconTimeout))}),uo=async()=>{var Xe,Wt,pi,Hi;let J=Ns();if(J){let Fi=wd(),Si=oo();J=Fi===Si||Fi===Fe()}if(J){$t(e.uiConfig.controls.hideTimeoutFullscreen);try{await(At==null?void 0:At.exit())}catch(Fi){Et({message:String(Fi)})}}si.set(J),e.store.getAdmanWrapper().setFullscreen(J),x()?(Wt=(Xe=e.store.callbacks)==null?void 0:Xe.onFullscreenEnter)==null||Wt.call(Xe):(Hi=(pi=e.store.callbacks)==null?void 0:pi.onFullscreenExit)==null||Hi.call(pi)},po=J=>{let{width:Xe,height:Wt}=J.target;ai.set({width:Xe,height:Wt})},Yo=()=>{let{width:J,height:Xe}=r(lo).getBoundingClientRect();ai.set({width:J,height:Xe})};Rt(()=>{var Xe;return xu(uo),e.uiConfig.features.annotationsInside&&(Pt==null||Pt.init(r(lo))),ha(At)&&(At==null||At.assignPlayerContainer(r(lo)),At==null||At.setExternalEventHandlers({resize:po,leavepictureinpicture:Yo})),e.interactiveContainer&&((Xe=lt().parentElement)==null||Xe.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(cr),window.clearTimeout(ji),window.clearTimeout(Wn),window.clearTimeout(Qo),Bi(),At==null||At.dispose().catch(Wt=>{Et({message:String(Wt)})}),wu(uo)}});let oo=()=>{let J=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Re()?r(lo):Re(),Xe=J.getRootNode(),Wt=Xe instanceof ShadowRoot?Xe.host:Xe,pi=Ne()instanceof HTMLElement&&Ne().contains(Wt);return e.uiConfig.allowChangingFullscreenTarget&&Ne()&&pi?Ne():J},qn=()=>{di.set(!1)},Ao=()=>{dn(),qn()},pr=async()=>{qn(),Ns()?(await yu(document),Et({message:"exit fullscreen"})):(Et({message:"request fullscreen"}),await $u(oo()))},Mr=J=>{w()||(J.preventDefault(),di.set(!0),Po.set({left:J.clientX,top:J.clientY}))};function Gr(){Tn.set(!0),Qi||$t(e.uiConfig.controls.hideTimeoutCursor)}function Mo(){Qi||(Cn.set(!0),$t(e.uiConfig.controls.hideTimeoutCursor))}function Qn(){Tn.set(!1),O(un,!1),O(co,!1),fn=!1,e.store.actions.internal.releaseCamera(),$t(e.uiConfig.controls.hideTimeout)}function Gn(J){return J?J.offsetTop+Gn(J.offsetParent):0}function fr(J){return J?J.offsetLeft+fr(J.offsetParent):0}function it(J){if(H()&&an){let Xe=J.currentTarget,Wt=Gn(Xe),pi=fr(Xe),Hi=J.pageX-pi,Fi=J.pageY-Wt,{left:Si,bottom:An,right:Ci}=H(),li=Ci-Si;return Hi>=Si-li&&Fi<=An+li}}function Tt(J){if(r(lo)){let Xe=Gn(J.currentTarget),Wt=F().height,pi=J.pageY-Xe;if(it(J)){O(un,!1);return}pi<40?O(un,!0):pi>Wt-40?O(co,!0):(O(un,!1),f()||O(co,!1))}}function mi(J){Tt(J),!r(Er)&&!M()&&$t(e.uiConfig.controls.hideTimeoutCursor),q()&&fn&&In&&e.store.actions.internal.moveCameraFocusPX(In.clientX-J.clientX,In.clientY-J.clientY,J.timeStamp-In.timeStamp),In=J}let Di=0,$o=600,no=()=>{Di=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Ar()},$o)},Pi=()=>{setTimeout(()=>e.store.actions.internal.changeDoubleForwardOn(!1),0),clearTimeout(Di)},Lo=J=>{J.preventDefault(),J.button===0&&(fn=!0,e.store.actions.internal.holdCamera(),e.uiConfig.features.doubleForwardAvailable&&no()),!fn&&$t(e.uiConfig.controls.hideTimeoutCursor)},jn=J=>{J.preventDefault(),J.button===0&&(In=J,fn=!1,e.store.actions.internal.releaseCamera(),e.uiConfig.features.doubleForwardAvailable&&Pi()),!M()&&$t(e.uiConfig.controls.hideTimeoutCursor)},mn=J=>{J.preventDefault(),Ir&&(Et({message:"double click on video"}),pr(),$t(e.uiConfig.controls.hideTimeoutCursor))},yo=J=>{var Xe;if(J.preventDefault(),Y()||f()){Ao();return}if(!M()&&!(E()&&!vo)){if(r(ii))return pn();if((Xe=qt())==null||Xe.focus(),!We()){e.firstStart(),$t(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||j()!==Nv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),$t(e.uiConfig.controls.hideTimeoutCursor)}},Vo=J=>{Ao(),go.set(!0),$t(e.uiConfig.controls.hideTimeout),J&&io(e.uiConfig.controls.hideHotKeyHelpers,J)},mr=()=>{var J,Xe;Ao(),(J=e.store.callbacks)!=null&&J.onOpenHotKeyMap?(Xe=e.store.callbacks)==null||Xe.onOpenHotKeyMap(ue()):sn.update(Wt=>!Wt)},kn=()=>{go.set(!0)},Yn=e.store.ui.contextMenu.openedByBtnKeyboard$,vr=e.store.ui.contextMenu.btnRef$,Ro=Z(void 0),Lr=e.store.ui.contextMenu.openedByHotKey$,jr=e.store.ui.contextMenu.lastActiveElem$;Qe(()=>{ki.set(r(Zt))}),Qe(()=>{O(jo,r(_o)&&j()!==Nv.PlaybackState.PLAYING,!0),r(_o)||xt(()=>O(_o,!0))}),Qe(()=>{Mt.set((r(jo)||E()||f()||re()||fe()||be()||me())&&!r(Er)&&(s()==="video"||s()==="ads")&&!a()&&I())}),Qe(()=>{!re()&&r(bo)&&!p()&&$t(e.uiConfig.controls.hideTimeoutCursor),xt(()=>O(bo,re(),!0))}),Qe(()=>{r(Sn),f(),Pe(),xt(()=>Pd(r(Sn),f(),Pe()))}),Qe(()=>{r(Ro),Y(),se(),Le(),xt(()=>{let J=se()||Le();Pd(r(Ro),Y(),J)})}),Qe(()=>{let J=ae();J&&(Y(),xt(()=>hl(J,Y(),Yn)))}),Qe(()=>{let J=N();J&&(Y(),xt(()=>M1(J,Y(),Lr)))}),Qe(()=>{var J;!Be()&&x()&&(xt(()=>Ri.set(!1)),(J=qt())==null||J.focus())}),Qe(()=>{w()&&Ao()});let Zn=W("video360"),gr=Z(void 0),Ye=J=>{lr.set(On(cn(),{title:r(gr)},"title",J))},Jt=(J,Xe)=>{var Fi,Si;let Wt=(Si=(Fi=e.store.callbacks)==null?void 0:Fi.uiInfo)==null?void 0:Si.onUpcomingLiveViewStateChanged;if(!Wt)return;let pi=!!Xe,Hi={...On(r(lo),{upcomingLiveScreen:Xe},"upcomingLiveScreen",pi),...J};Wt(Hi)};var vi=Ax();Ct("blur",ta,Ao);var yi=ge(vi);yi.__mousemove=mi;var No=_(yi);let Yr=g(()=>s()==="ads"),Oo=g(()=>r(ii)?pn:void 0);tt(Yf(No,{startDoubleForwardActivationTimer:no,stopDoubleForward:Pi,toggleFullscreen:pr,hideContextMenu:Ao,showHotKeyHelpers:Vo,showKeyMap:mr,get isAds(){return r(Yr)},get fakePlayButtonHandler(){return r(Oo)},get nextButtonActive(){return Kt()},get prevButtonActive(){return Se()},children:(J,Xe)=>{var Wt=kx(),pi=ge(Wt);Ba(pi,{get hideCursor(){return r(kr)},onClick:yo,onContextMenu:Mr,onMouseDown:Lo,onMouseUp:jn,onDblClick:mn,get videoContainer(){return lt()},set videoContainer(Si){lt(Si)}});var Hi=P(pi,2);la(Hi,()=>"slot",!1,(Si,An)=>{Ie(Si,()=>({name:Oa}))});var Fi=P(Hi,2);aa(Fi,ce,Si=>{var An=Ix(),Ci=ge(An);let li=g(()=>s()!=="thumb"||a()||Qi&&e.autoplay);Va(Ci,{get hidden(){return r(li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zo=P(Ci,2);Lv(Zo,{});var hr=P(Zo,2);Rv(hr,{get isVisible(){return M()}});var xo=P(hr,2);{var wo=Ge=>{let oi=g(()=>{var Bo;return(Bo=e.live)==null?void 0:Bo.startTime});nc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)},onUpcomingLiveViewStateChanged:Jt})};V(xo,Ge=>{s()==="LiveWaitingStart"&&Ge(wo)})}var Qs=P(xo,2);{var yt=Ge=>{Ra(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Qs,Ge=>{s()==="LiveWaitingRecover"&&Ge(yt)})}var _t=P(Qs,2);{var fo=Ge=>{Ra(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(_t,Ge=>{s()==="LiveWaitingRecord"&&Ge(fo)})}var Xo=P(_t,2);{var Yi=Ge=>{var oi=Sx();let Bo;var Cs=_(oi);Cd(Cs,{get adsSlotId(){return wt()},get adsParams(){return Je()},get adsPreviewParam(){return Ut()},get adsAutoplayParam(){return Xt()},get duration(){return Ht()}}),h(oi),B(vn=>Bo=ie(oi,1,"ads-container svelte-jtgjmv",null,Bo,vn),[()=>({hidden:s()!=="ads"})]),$(Ge,oi)};V(Xo,Ge=>{e.showAds&&We()&&Ge(Yi)})}var ui=P(Xo,2);{var gi=Ge=>{let oi=g(()=>!zt()&&e.showAutoplayNext&&S());Qf(Ge,{get title(){return te()},get thumb(){return ne()},get isHide(){return r(oi)},clickCloseIcon:()=>O(En,!0)})};V(ui,Ge=>{r(ur)&&te()&&ne()&&Ge(gi)})}var Ss=P(ui,2);{var Bl=Ge=>{let oi=g(()=>!u());av(Ge,{get title(){return e.title},get isHidden(){return r(oi)},onVisibilityChanged:Ye,get ref(){return r(gr)},set ref(Bo){O(gr,Bo,!0)}})};V(Ss,Ge=>{r(ds)&&Ge(Bl)})}var yc=P(Ss,2);{var cp=Ge=>{let oi=g(()=>s()==="video"&&u());ic(Ge,{get isShifted(){return r(oi)}})};V(yc,Ge=>{q()&&Ge(cp)})}var xc=P(yc,2);{var up=Ge=>{var oi=Cx(),Bo=_(oi);xd(Bo,{get"aria-label"(){return Zn}}),h(oi),$(Ge,oi)};V(xc,Ge=>{he()&&Ge(up)})}var wc=P(xc,2);{var pp=Ge=>{oc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return oe()}})};V(wc,Ge=>{be()&&Ge(pp)})}var Sc=P(wc,2);{var fp=Ge=>{Ma(Ge,{get shifted(){return u()},get captions(){return De()},get position(){return pe()},get playerSize(){return F()}})};V(Sc,Ge=>{ve().value!=="off"&&Ge(fp)})}var Cc=P(Sc,2);{var mp=Ge=>{var oi=Tx();oi.__contextmenu=Mr,oi.__click=[wx,Y,di,f,ri,Ao];var Bo=_(oi);La(Bo,{}),h(oi),$(Ge,oi)};V(Cc,Ge=>{a()&&Ge(mp)})}var Tc=P(Cc,2);{var vp=Ge=>{let oi=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Bo=g(()=>s()==="ads"),Cs=g(()=>e.canRewindLive&&st()!==0);tc(Ge,{get bottomHidden(){return r(oi)},get bottomNoSmooth(){return G()},get showControls(){return u()},get isAds(){return r(Bo)},get canRewindLive(){return r(Cs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return jt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ee()},get nextButtonActive(){return Kt()},get prevButtonActive(){return Se()},get isOneVideoPlaylist(){return Ve()},customFullscreenSupported:Ir,toggleFullscreen:pr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(zn)},set playerControlsWrapperRef(vn){O(zn,vn,!0)},get playerControlsRef(){return r(Cr)},set playerControlsRef(vn){O(Cr,vn,!0)}})};V(Tc,Ge=>{We()&&Ge(vp)})}var Ec=P(Tc,2);{var Fa=Ge=>{var oi=Ex(),Bo=_(oi);let Cs=g(()=>{var vn;return(vn=r(Cr))==null?void 0:vn.clientHeight});lc(Bo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Cs)},returnFocus:()=>{var vn;return(vn=qt())==null?void 0:vn.focus()},get ref(){return r(Sn)},set ref(vn){O(Sn,vn,!0)}}),h(oi),$(Ge,oi)};V(Ec,Ge=>{!be()&&s()!=="ads"&&Ge(Fa)})}var Ic=P(Ec,2);let kc=g(()=>!r(Qr));Id(Ic,{get isLive(){return X()},get isHidden(){return r(kc)},get isPlaying(){return Ae()},get position(){return pe()},get duration(){return st()}});var Dl=P(Ic,2);ov(Dl,{get data(){return Go}});var Pc=P(Dl,2);Kf(Pc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=qt())==null?void 0:Ge.focus()},get visible(){return Y()},get playerContainerRef(){return r(lo)},get controlsContainerRef(){return r(zn)},get position(){return ke()},get menuElementRef(){return r(Ro)},set menuElementRef(Ge){O(Ro,Ge,!0)}});var Hl=P(Pc,2);{var Fl=Ge=>{dc(Ge,{onClose:ho,onSelectAutoQuality:()=>{ln("auto"),ho()}})};V(Hl,Ge=>{r(Tr)&&Ge(Fl)})}var Ul=P(Hl,2);{var gp=Ge=>{xa(Ge,{})};V(Ul,Ge=>{r(mt)&&Ge(gp)})}var zl=P(Ul,2);{var hp=Ge=>{Jf(Ge,{})};V(zl,Ge=>{ze()&&Ge(hp)})}var _p=P(zl,2);{var bp=Ge=>{Md(Ge,{})};V(_p,Ge=>{rt()&&Ge(bp)})}$(Si,An)}),$(J,Wt)},$$slots:{default:!0}}),J=>qt(J),()=>qt());var Pn=P(No,2);tt(Pn,J=>O(Zt,J),()=>r(Zt)),h(yi),tt(yi,J=>O(lo,J),()=>r(lo));var Xn=P(yi,2);{var Zr=J=>{var Xe=Px();$(J,Xe)};V(Xn,J=>{bt()&&J(Zr)})}Ct("mouseenter",yi,Gr),Ct("mouseleave",yi,Qn),Ct("click",yi,kn,!0),Ct("focusin",yi,Mo,!0),$(t,vi),z(),o()}at(["mousemove","contextmenu","click"]);var qs=require("@vkontakte/videoplayer-core/es2018"),V0=require("@vkontakte/videoplayer-shared/es2018");var Lx=A('<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),Vx=A("<div><!></div>"),Rx={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;
338
+ }`};function Cv(t,e){U(e,!0),q(t,ux);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=kt(),u=0,y=j(null),w=j(!1);Ke(()=>{O(y,n()?Ur:ys,!0)}),Ke(()=>{O(y,s()?zs:null,!0)}),Ke(()=>{if(p)return u=window.setTimeout(()=>{u=0,s()&&r(y)===zs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(y,null)},r(y)!==zs?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),Ke(()=>{n()&&!r(w)&&(O(w,!0),O(y,null))});var x=We(),S=ge(x);{var T=E=>{var V=We(),k=ge(V);aa(k,()=>r(y),I=>{var R=cx(),Y=_(R),H=_(Y);let F=g(()=>s()==="prev");Ei(H,()=>r(y),(W,J)=>{J(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(Y),h(R),B(()=>st(Y,`animation-duration: ${r(y)!==zs?f:v}ms`)),$(I,R)}),$(E,V)};L(S,E=>{r(y)&&p&&E(T)})}$(t,x),z(),o()}var px=M('<div><div data-testid="video-container"></div></div>'),fx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ba(t,e){U(e,!0),q(t,fx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:y}=kt(),w=g(()=>a()&&n()%180?s().height/s().width:1);var x=px();let S;x.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},x.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},x.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},x.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},x.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var T=_(x);let E;ot(T,V=>a(V),()=>a()),h(x),B((V,k)=>{S=ee(x,1,"video-wrapper svelte-1czns9r",null,S,V),E=ee(T,1,"video-container svelte-1czns9r",null,E,k),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),z(),o()}dt(["contextmenu","mousedown","mouseup","click","dblclick"]);var mx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},vx=M("<div><!></div>"),gx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),hx=M("<div><!></div>"),_x=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),bx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),$x=M("<!> <!> <!>",1),yx=M('<div class="blocked svelte-jtgjmv"></div>'),xx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),wx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Ev(t,e){U(e,!0),q(t,wx);let[i,o]=He(),n=()=>C(Tn,"$notificationsToShow$",i),s=()=>C(jt,"$playerPhase",i),l=()=>C(Lo,"$isLoaderVisible",i),d=()=>C(hi,"$adPlaybackState",i),a=()=>C(pt,"$crashed",i),p=()=>C(Vo,"$isInteractiveTime$",i),f=()=>C(Dt,"$settingsMenuVisible",i),v=()=>C(Un,"$isInteractiveExpectation$",i),u=()=>C(_o,"$controlsVisible",i),y=()=>C(io,"$touched",i),w=()=>C(sr,"$graphIsOpened$",i),x=()=>C(_i,"$isFullscreen",i),S=()=>C(ln,"$autoplayNextEnabled$",i),T=()=>C(Fn,"$postrollPassed",i),E=()=>C(Wi,"$isEnded$",i),V=()=>C(qi,"$cursorInside",i),k=()=>C(zn,"$isControlsAvailable",i),I=()=>C(yr,"$fakeIsPlaying$",i),R=()=>C(mt,"$bottomNoSmooth",i),Y=()=>C(ki,"$interactiveTimeIndicator",i),H=()=>C(bo,"$playerSize",i),F=()=>C(di,"$is3DVideo",i),W=()=>C(ut,"$contextMenuVisible$",i),J=()=>C(xi,"$playbackState$",i),G=()=>C(Ro,"$hotKeyMapData",i),ce=()=>C(sn,"$scrubbingInProgress",i),ie=()=>C(Pt,"$volumeChangingInProgress",i),ue=()=>C(oi,"$chromecastConnected$",i),$e=()=>C(cn,"$controlsTimeoutActive",i),fe=()=>C(ri,"$settingsMenuOpenedByKeyboard",i),ke=()=>C(kn,"$contextMenuOpenedByKeyboard$",i),ne=()=>C(So,"$contextMenuOpenedByHotKey$",i),Ve=()=>C(pn,"$contextMenuButtonRef$",i),re=()=>C(ur,"$contextMenuLastActiveElem$",i),N=()=>C(Mo,"$isFullscreenOpenedByKeyboard",i),Be=()=>C(tt,"$language$",i),le=()=>C(xt,"$icon3DVideoVisible",i),ve=()=>C(Go,"$chromecastDeviceName$",i),te=()=>C(ai,"$currentSubtitle$",i),me=()=>C(li,"$currentSubtitleCaptions$",i),De=()=>C(it,"$position$",i),pe=()=>C(ii,"$duration$",i),at=()=>C(D,"$isLive$",i),Z=()=>C(Ue,"$isPlaying$",i),Ae=()=>C(jo,"$contextMenuPosition$",i),Ie=()=>C(wn,"$showHotKeyMap",i),ze=()=>C(bi,"$debugPanelVisible",i),lt=()=>C(Wr,"$userActionsDisabled$",i),vt=m(e,"videoContainer",15),gt=m(e,"adsSlotId",3,void 0),Ct=m(e,"adsParams",3,void 0),Ge=m(e,"adsPreviewParam",3,void 0),Ht=m(e,"adsAutoplayParam",3,void 0),Xt=m(e,"duration",3,void 0),Gt=m(e,"logoTargetUrl",3,""),Wt=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),Ft=m(e,"prevButtonActive",3,!1),he=m(e,"endScreenVideoTitle",3,void 0),we=m(e,"endScreenVideoThumb",3,void 0),ae=m(e,"isOneVideoPlaylist",3,!1),Re=m(e,"shadowRootContainer",3,void 0),qe=m(e,"outerContainerRef",3,void 0),Le=m(e,"playerStarted",3,!1),Ye=m(e,"fullScreenTarget",3,void 0),Oe=m(e,"showMiniTimer",3,!1),et=m(e,"showEndScreen",3,!0),Lt=m(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),tt=e.store.interfaceLanguage$,xi=e.store.state.playbackState$,hi=e.store.ads.playbackState,it=e.store.state.positionWithScrubbing$,ii=e.store.state.duration$,jt=e.store.playerPhase,_i=e.store.ui.isFullscreen,Mo=e.store.ui.isFullscreenOpenedByKeyboard,_o=e.store.ui.controlsVisible,Dt=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,sn=e.store.ui.scrubbingInProgress,Pt=e.store.ui.volumeChangingInProgress,ut=e.store.ui.contextMenu.visible$,bi=e.store.ui.debugPanelVisible,Lo=e.store.state.isLoaderVisible,Wi=e.store.state.isEnded$,oi=e.store.state.chromecastConnected$,Go=e.store.state.chromecastDeviceName$,Fn=e.store.ads.postrollPassed,D=e.store.state.isLive$,Ue=e.store.state.isPlaying$,pt=e.store.state.crashed$,Ut=e.store.webApi.annotationsApi,ct=e.store.webApi.pictureInPictureApi,ai=e.store.state.currentSubtitle$,li=e.store.state.currentSubtitleCaptions$,bo=e.store.ui.playerSize,di=e.store.ui.is3DVideo,xt=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Vo=e.store.state.isInteractiveTime$,Un=e.store.state.isInteractiveExpectation$,Ri=e.store.state.hasInteractiveBranches,io=e.store.ui.touched,Ro=e.store.ui.modals.hotKeyMap.data,wn=e.store.ui.modals.hotKeyMap.show,Sn=e.store.ui.overlayContainer$,ki=e.store.ui.controls.interactiveTimeIndicator,Ki=e.store.state.showInteractiveTimeIndicator,jo=e.store.ui.contextMenu.position$,Yo=e.store.actions.internal.setQuality,an=e.store.actions.internal.closeSettingsMenu,ln=e.store.ui.autoplayNextEnabled$,Wr=e.store.ui.userActionsDisabled,zn=e.store.ui.isControlsAvailable,$r=e.store.ui.videoTitleInfo,rr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:yr,notifications$:dn,graphIsOpened$:sr}=ho(),oo=j(void 0),Zo=j(void 0),Wn=j(void 0),Cn=j(void 0),xr,Kn,ar;Ro.set(h1());let{closeNotification:wr,notificationsToShow$:Tn}=dn,qn=g(()=>!!n().slow_video),Sr=()=>wr("slow_video"),Cr=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),po=j(void 0),mt=se(!1),Jt,cn=se(!1),Pi=se(),qi=se(!1),Xo=j(!1),Jo=j(!1),$o=j(!1),Qn=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),un=g(()=>p()&&!f()&&!(r(Xo)||r(Jo))&&!(r($o)&&!v())),No=!0,Kr=g(()=>e.uiConfig.features.thumbTimer&&Oe()&&s()==="video"&&!u()&&!a()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),qr=g(()=>s()==="video"&&!w()&&x()),Tr=j(!1),Qr=g(()=>(et()||e.showAutoplayNext&&S())&&!!he()&&!!we()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Tr)),Gn=g(()=>V()&&!(u()||r(Qr))&&!p()&&k()),lr=j(!1),dr=g(()=>I()!==null),{toggle:yo}=yr,Zt=!1,fo=null;ct==null||ct.setContext(Kl());let Er=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ni(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Er});let ds=()=>{window.clearTimeout(xr),cn.set(!1)},Ir=()=>{window.clearTimeout(Kn),Pi.set(null)},Ni=_e=>{ds(),cn.set(!0),xr=window.setTimeout(()=>cn.set(!1),_e);let It=_e-100;Jt=window.setTimeout(()=>{R()&&mt.set(!1)},It>0?It:_e)},ht=(_e,It)=>{Ir(),Pi.set(It),Kn=window.setTimeout(()=>Pi.set(null),_e)},zt=di.subscribe(_e=>{xt.set(_e),_e&&(window.clearTimeout(ar),ar=window.setTimeout(()=>xt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Qi=async()=>{var It,Yt,ci,Yi;let _e=Rs();if(_e){let so=bd(),Xe=no();_e=so===Xe||so===Re()}if(_e){Ni(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ct==null?void 0:ct.exit())}catch(so){Kt({message:String(so)})}}_i.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),x()?(Yt=(It=e.store.callbacks)==null?void 0:It.onFullscreenEnter)==null||Yt.call(It):(Yi=(ci=e.store.callbacks)==null?void 0:ci.onFullscreenExit)==null||Yi.call(ci)},Oi=_e=>{let{width:It,height:Yt}=_e.target;bo.set({width:It,height:Yt})},xo=()=>{let{width:_e,height:It}=r(oo).getBoundingClientRect();bo.set({width:_e,height:It})};Mt(()=>{var It;return hu(Qi),e.uiConfig.features.annotationsInside&&(Ut==null||Ut.init(r(oo))),ha(ct)&&(ct==null||ct.assignPlayerContainer(r(oo)),ct==null||ct.setExternalEventHandlers({resize:Oi,leavepictureinpicture:xo})),e.interactiveContainer&&((It=vt().parentElement)==null||It.insertBefore(e.interactiveContainer,vt().nextSibling)),()=>{window.clearTimeout(xr),window.clearTimeout(Jt),window.clearTimeout(Kn),window.clearTimeout(ar),zt(),ct==null||ct.dispose().catch(Yt=>{Kt({message:String(Yt)})}),_u(Qi)}});let no=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!qe()?r(oo):qe(),It=_e.getRootNode(),Yt=It instanceof ShadowRoot?It.host:It,ci=Ye()instanceof HTMLElement&&Ye().contains(Yt);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&ci?Ye():_e},Oo=()=>{ut.set(!1)},Ci=()=>{an(),Oo()},En=async()=>{Oo(),Rs()?(await gu(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),await vu(no()))},cr=_e=>{w()||(_e.preventDefault(),ut.set(!0),jo.set({left:_e.clientX,top:_e.clientY}))};function Gr(){qi.set(!0),Vi||Ni(e.uiConfig.controls.hideTimeoutCursor)}function jr(){Vi||(mt.set(!0),Ni(e.uiConfig.controls.hideTimeoutCursor))}function Yr(){qi.set(!1),O(Jo,!1),O(Xo,!1),Zt=!1,e.store.actions.internal.releaseCamera(),Ni(e.uiConfig.controls.hideTimeout)}function mo(_e){return _e?_e.offsetTop+mo(_e.offsetParent):0}function In(_e){return _e?_e.offsetLeft+In(_e.offsetParent):0}function kr(_e){if(Y()&&Ki){let It=_e.currentTarget,Yt=mo(It),ci=In(It),Yi=_e.pageX-ci,so=_e.pageY-Yt,{left:Xe,bottom:qt,right:Bi}=Y(),Do=Bi-Xe;return Yi>=Xe-Do&&so<=qt+Do}}function Pr(_e){if(r(oo)){let It=mo(_e.currentTarget),Yt=H().height,ci=_e.pageY-It;if(kr(_e)){O(Jo,!1);return}ci<40?O(Jo,!0):ci>Yt-40?O(Xo,!0):(O(Jo,!1),f()||O(Xo,!1))}}function nt(_e){Pr(_e),r(un)||Ni(e.uiConfig.controls.hideTimeoutCursor),F()&&Zt&&fo&&e.store.actions.internal.moveCameraFocusPX(fo.clientX-_e.clientX,fo.clientY-_e.clientY,_e.timeStamp-fo.timeStamp),fo=_e}let Tt=_e=>{_e.preventDefault(),_e.button===0&&(Zt=!0,e.store.actions.internal.holdCamera()),Ni(e.uiConfig.controls.hideTimeoutCursor)},vi=_e=>{_e.preventDefault(),_e.button===0&&(fo=_e,Zt=!1,e.store.actions.internal.releaseCamera()),Ni(e.uiConfig.controls.hideTimeoutCursor)},Gi=_e=>{_e.preventDefault(),No&&(Kt({message:"double click on video"}),En(),Ni(e.uiConfig.controls.hideTimeoutCursor))},wo=_e=>{var It;if(_e.preventDefault(),W()||f()){Ci();return}if(!(E()&&!Ri)){if(r(dr))return yo();if((It=Lt())==null||It.focus(),!Le()){e.firstStart(),Ni(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Tv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ni(e.uiConfig.controls.hideTimeoutCursor)}},vo=_e=>{Ci(),io.set(!0),Ni(e.uiConfig.controls.hideTimeout),_e&&ht(e.uiConfig.controls.hideHotKeyHelpers,_e)},ro=()=>{var _e,It;Ci(),(_e=e.store.callbacks)!=null&&_e.onOpenHotKeyMap?(It=e.store.callbacks)==null||It.onOpenHotKeyMap(G()):wn.update(Yt=>!Yt)},Bo=()=>{io.set(!0)},kn=e.store.ui.contextMenu.openedByBtnKeyboard$,pn=e.store.ui.contextMenu.btnRef$,ji=j(void 0),So=e.store.ui.contextMenu.openedByHotKey$,ur=e.store.ui.contextMenu.lastActiveElem$;Ke(()=>{Sn.set(r(po))}),Ke(()=>{O($o,r(Qn)&&J()!==Tv.PlaybackState.PLAYING,!0),r(Qn)||wt(()=>O(Qn,!0))}),Ke(()=>{_o.set((r($o)||E()||f()||ce()||ie()||ue()||$e())&&!r(un)&&(s()==="video"||s()==="ads")&&!a()&&k())}),Ke(()=>{!ce()&&r(lr)&&!p()&&Ni(e.uiConfig.controls.hideTimeoutCursor),wt(()=>O(lr,ce(),!0))}),Ke(()=>{r(Cn),f(),fe(),wt(()=>Td(r(Cn),f(),fe()))}),Ke(()=>{r(ji),W(),ke(),ne(),wt(()=>{let _e=ke()||ne();Td(r(ji),W(),_e)})}),Ke(()=>{let _e=Ve();_e&&(W(),wt(()=>_l(_e,W(),kn)))}),Ke(()=>{let _e=re();_e&&(W(),wt(()=>x1(_e,W(),So)))}),Ke(()=>{var _e;!N()&&x()&&(wt(()=>Mo.set(!1)),(_e=Lt())==null||_e.focus())}),Ke(()=>{w()&&Ci()});let Pn=K("video360"),An=j(void 0),pr=_e=>{$r.set(Dn(rr(),{title:r(An)},"title",_e))},Mn=(_e,It)=>{var so,Xe;let Yt=(Xe=(so=e.store.callbacks)==null?void 0:so.uiInfo)==null?void 0:Xe.onUpcomingLiveViewStateChanged;if(!Yt)return;let ci=!!It,Yi={...Dn(r(oo),{upcomingLiveScreen:It},"upcomingLiveScreen",ci),..._e};Yt(Yi)};var Ar=xx();St("blur",ta,Ci);var Co=ge(Ar);Co.__mousemove=nt;var Ln=_(Co);let Zr=g(()=>s()==="ads"),Ze=g(()=>r(dr)?yo:void 0);ot(Uf(Ln,{toggleFullscreen:En,hideContextMenu:Ci,showHotKeyHelpers:vo,showKeyMap:ro,get isAds(){return r(Zr)},get fakePlayButtonHandler(){return r(Ze)},get nextButtonActive(){return oe()},get prevButtonActive(){return Ft()},children:(_e,It)=>{var Yt=$x(),ci=ge(Yt);Ba(ci,{get hideCursor(){return r(Gn)},onClick:wo,onContextMenu:cr,onMouseDown:Tt,onMouseUp:vi,onDblClick:Gi,get videoContainer(){return vt()},set videoContainer(Xe){vt(Xe)}});var Yi=P(ci,2);la(Yi,()=>"slot",!1,(Xe,qt)=>{Pe(Xe,()=>({name:Oa}))});var so=P(Yi,2);aa(so,Be,Xe=>{var qt=bx(),Bi=ge(qt);let Do=g(()=>s()!=="thumb"||a()||Vi&&e.autoplay);Va(Bi,{get hidden(){return r(Do)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fn=P(Bi,2);Cv(fn,{});var jn=P(fn,2);{var fr=Qe=>{let si=g(()=>{var Fo;return(Fo=e.live)==null?void 0:Fo.startTime});ec(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)},onUpcomingLiveViewStateChanged:Mn})};L(jn,Qe=>{s()==="LiveWaitingStart"&&Qe(fr)})}var Mr=P(jn,2);{var Zi=Qe=>{Ra(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Mr,Qe=>{s()==="LiveWaitingRecover"&&Qe(Zi)})}var ui=P(Mr,2);{var mn=Qe=>{Ra(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(ui,Qe=>{s()==="LiveWaitingRecord"&&Qe(mn)})}var mr=P(ui,2);{var Ho=Qe=>{var si=vx();let Fo;var Ss=_(si);yd(Ss,{get adsSlotId(){return gt()},get adsParams(){return Ct()},get adsPreviewParam(){return Ge()},get adsAutoplayParam(){return Ht()},get duration(){return Xt()}}),h(si),B(gn=>Fo=ee(si,1,"ads-container svelte-jtgjmv",null,Fo,gn),[()=>({hidden:s()!=="ads"})]),$(Qe,si)};L(mr,Qe=>{e.showAds&&Le()&&Qe(Ho)})}var go=P(mr,2);{var Fa=Qe=>{let si=g(()=>!et()&&e.showAutoplayNext&&S());Df(Qe,{get title(){return he()},get thumb(){return we()},get isHide(){return r(si)},clickCloseIcon:()=>O(Tr,!0)})};L(go,Qe=>{r(Qr)&&he()&&we()&&Qe(Fa)})}var $t=P(go,2);{var yt=Qe=>{let si=g(()=>!u());Jm(Qe,{get title(){return e.title},get isHidden(){return r(si)},onVisibilityChanged:pr,get ref(){return r(An)},set ref(Fo){O(An,Fo,!0)}})};L($t,Qe=>{r(qr)&&Qe(yt)})}var ao=P($t,2);{var vn=Qe=>{let si=g(()=>s()==="video"&&u());Xd(Qe,{get isShifted(){return r(si)}})};L(ao,Qe=>{F()&&Qe(vn)})}var Di=P(ao,2);{var pi=Qe=>{var si=gx(),Fo=_(si);_d(Fo,{get"aria-label"(){return Pn}}),h(si),$(Qe,si)};L(Di,Qe=>{le()&&Qe(pi)})}var fi=P(Di,2);{var qs=Qe=>{Jd(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ve()}})};L(fi,Qe=>{ue()&&Qe(qs)})}var Ua=P(fi,2);{var rp=Qe=>{Ma(Qe,{get shifted(){return u()},get captions(){return me()},get position(){return De()},get playerSize(){return H()}})};L(Ua,Qe=>{te().value!=="off"&&Qe(rp)})}var hc=P(Ua,2);{var sp=Qe=>{var si=hx();si.__contextmenu=cr,si.__click=[mx,W,ut,f,Dt,Ci];var Fo=_(si);La(Fo,{}),h(si),$(Qe,si)};L(hc,Qe=>{a()&&Qe(sp)})}var _c=P(hc,2);{var ap=Qe=>{let si=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Fo=g(()=>s()==="ads"),Ss=g(()=>e.canRewindLive&&pe()!==0);Zd(Qe,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return r(Fo)},get canRewindLive(){return r(Ss)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return oe()},get prevButtonActive(){return Ft()},get isOneVideoPlaylist(){return ae()},customFullscreenSupported:No,toggleFullscreen:En,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Zo)},set playerControlsWrapperRef(gn){O(Zo,gn,!0)},get playerControlsRef(){return r(Wn)},set playerControlsRef(gn){O(Wn,gn,!0)}})};L(_c,Qe=>{Le()&&Qe(ap)})}var bc=P(_c,2);{var lp=Qe=>{var si=_x(),Fo=_(si);let Ss=g(()=>{var gn;return(gn=r(Wn))==null?void 0:gn.clientHeight});nc(Fo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ss)},returnFocus:()=>{var gn;return(gn=Lt())==null?void 0:gn.focus()},get ref(){return r(Cn)},set ref(gn){O(Cn,gn,!0)}}),h(si),$(Qe,si)};L(bc,Qe=>{!ue()&&s()!=="ads"&&Qe(lp)})}var $c=P(bc,2);let dp=g(()=>!r(Kr));Sd($c,{get isLive(){return at()},get isHidden(){return r(dp)},get isPlaying(){return Z()},get position(){return De()},get duration(){return pe()}});var yc=P($c,2);jm(yc,{get data(){return Pi}});var xc=P(yc,2);Of(xc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Qe;return(Qe=Lt())==null?void 0:Qe.focus()},get visible(){return W()},get playerContainerRef(){return r(oo)},get controlsContainerRef(){return r(Zo)},get position(){return Ae()},get menuElementRef(){return r(ji)},set menuElementRef(Qe){O(ji,Qe,!0)}});var wc=P(xc,2);{var cp=Qe=>{rc(Qe,{onClose:Sr,onSelectAutoQuality:()=>{Yo("auto"),Sr()}})};L(wc,Qe=>{r(qn)&&Qe(cp)})}var Qs=P(wc,2);{var up=Qe=>{xa(Qe,{})};L(Qs,Qe=>{r(Cr)&&Qe(up)})}var Dl=P(Qs,2);{var Sc=Qe=>{Kf(Qe,{})};L(Dl,Qe=>{Ie()&&Qe(Sc)})}var pp=P(Dl,2);{var Cc=Qe=>{Id(Qe,{})};L(pp,Qe=>{ze()&&Qe(Cc)})}$(Xe,qt)}),$(_e,Yt)},$$slots:{default:!0}}),_e=>Lt(_e),()=>Lt());var ei=P(Ln,2);ot(ei,_e=>O(po,_e),()=>r(po)),h(Co),ot(Co,_e=>O(oo,_e),()=>r(oo));var $i=P(Co,2);{var To=_e=>{var It=yx();$(_e,It)};L($i,_e=>{lt()&&_e(To)})}St("mouseenter",Co,Gr),St("mouseleave",Co,Yr),St("click",Co,Bo,!0),St("focusin",Co,jr,!0),$(t,Ar),z(),o()}dt(["mousemove","contextmenu","click"]);var Ks=require("@vkontakte/videoplayer-core/es2018"),S0=require("@vkontakte/videoplayer-shared/es2018");var Sx=M('<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),Cx=M("<div><!></div>"),Tx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
340
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
341
341
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
342
342
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -352,7 +352,7 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
352
352
  100% {
353
353
  opacity: 0;
354
354
  }
355
- }.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 ju(t,e){U(e,!0),K(t,Rx);let i=v(e,"seekStep",3,0),o=Z(!1),n=0,s=0,l=Z(ni(i())),d=m=>{m.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};on(()=>{window.clearTimeout(n)});var a=Vx();a.__click=d;var p=_(a);{var f=m=>{var u=Lx(),y=ge(u),w=P(y,2),x=_(w),S=_(x),T=P(S,2),E=P(T,2);h(x);var R=P(x,2),I=_(R,!0);h(R),h(w),B(M=>{var k,G,H,F;ie(y,1,`semicircle ${(k=e.side)!=null?k:""}`,"svelte-nhq2ld"),ie(S,1,`triangle ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ie(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ie(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),_e(I,M)},[()=>W("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(m,u)};V(p,m=>{r(o)&&m(f)})}h(a),B(()=>{var m;return ie(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),$(t,a),z()}at(["click"]);var Nx=(t,e,i)=>{e(!1),i()},Ox=A('<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),Bx={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 Bv(t,e){U(e,!0),K(t,Bx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Te(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},x=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=qe(),T=ge(S);{var E=R=>{var I=Ox(),M=P(ge(I),2),k=_(M),G=_(k),H=_(G,!0);h(G);var F=P(G,2);ya(F,{onClick:x}),h(k);var q=P(k,2);q.__click=[Nx,p,m];var Y=_(q),j=_(Y),ue=_(j);let re;var fe=P(ue,2);{var be=Le=>{Ld(Le,{get isRunning(){return s()},onTimerEnded:w})};V(fe,Le=>{n()&&Le(be)})}h(j),h(Y);var me=P(Y,2),Pe=_(me),se=_(Pe,!0);h(Pe),h(me),h(q),h(M),B((Le,ae)=>{_e(H,Le),nt(j,`background-image: url('${e.thumb}')`),re=ie(ue,1,"thumb-overlay svelte-1qdxi6t",null,re,ae),_e(se,e.title)},[()=>n()?W("end_screen_next_video"):W("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(R,I)};V(T,R=>{e.isHide||R(E)})}$(t,S),z(),o()}at(["click"]);var k0=require("@vkontakte/videoplayer-core/es2018");var P0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{k0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),on(()=>{i==null||i(),clearTimeout(o)})};var A0=require("@vkontakte/videoplayer-core/es2018");var Yu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var M0=require("@vkontakte/videoplayer-core/es2018"),L0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>M0.clientChecker.device.isIOS&&ye(l)===A0.VideoFormat.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},u=y=>{if(m(),!f()||!y)return;let w=p();if(!w)return;let x=new Yu(w),S=ye(d),T=ye(s),E=ye(n);for(let M of S)T.some(G=>G.value===M.id)&&x.attach(M,E.value===M.id);let R=d.subscribe(M=>{for(let k of M)x.updateSrc(k)}),I=()=>{let M=x.getCurrentShowingId();o(ye(s).find(k=>k.value===M))};w.textTracks.addEventListener("change",I),a=()=>{R(),x.detachAll(),w.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(u)),on(m)};var Dx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Hx=A("<!> <!>",1),Fx=A("<div><!></div>"),Ux=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),zx=A("<div><!></div>"),Wx=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Kx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Qx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Dv(t,e){var Pr,Ar;U(e,!0),K(t,Qx);let[i,o]=He(),n=()=>C(Ne,"$playerPhase",i),s=()=>C(dt,"$isLoaderVisible",i),l=()=>C(Fe,"$adPlaybackState",i),d=()=>C(ko,"$crashed",i),a=()=>C(lr,"$notificationsToShow$",i),p=()=>C(Ve,"$playbackState$",i),f=()=>C(Se,"$graphIsOpened$",i),m=()=>C(Et,"$interactiveHideMobileControls",i),u=()=>C(si,"$isEnded$",i),y=()=>C(qo,"$isInteractiveExpectation$",i),w=()=>C(zt,"$controlsVisible",i),x=()=>C(to,"$touched",i),S=()=>C(Hn,"$autoplayNextEnabled$",i),T=()=>C(ri,"$postrollPassed",i),E=()=>C(Un,"$bottomNoSmooth",i),R=()=>C(Ko,"$videoSize",i),I=()=>C(ut,"$playerSize",i),M=()=>C(et,"$isFullscreen",i),k=()=>C(Re,"$position$",i),G=()=>C(We,"$duration$",i),H=()=>C(Ni,"$loadedMetadata",i),F=()=>C($i,"$settingsMenuVisible",i),q=()=>C(ct,"$scrubbingInProgress",i),Y=()=>C(Vi,"$volumeChangingInProgress",i),j=()=>C(Ri,"$chromecastConnected$",i),ue=()=>C(qt,"$isControlsAvailable",i),re=()=>C(ci,"$isInteractiveTime$",i),fe=()=>C(ft,"$isActiveLive",i),be=()=>C(_i,"$settingsMenuOpenedByKeyboard",i),me=()=>C(ne,"$language$",i),Pe=()=>C(St,"$disabledControls$",i),se=()=>C(Qt,"$is3DVideo",i),Le=()=>C(Pt,"$icon3DVideoVisible",i),ae=()=>C(Mt,"$chromecastDeviceName$",i),N=()=>C(Dn,"$currentSubtitle$",i),Be=()=>C(D,"$currentSubtitleCaptions$",i),ce=()=>C(Ke,"$realDuration$",i),he=()=>C(rn,"$isLive$",i),oe=()=>C(Lt,"$isPlaying$",i),ve=()=>C(Yt,"$debugPanelVisible",i),De=v(e,"videoContainer",15),pe=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),X=v(e,"adsPreviewParam",3,void 0),Ae=v(e,"adsAutoplayParam",3,void 0),ke=v(e,"duration",3,void 0),ze=v(e,"logoTargetUrl",3,""),rt=v(e,"showNextPrevButtons",3,!1),bt=v(e,"nextButtonActive",3,!1),lt=v(e,"prevButtonActive",3,!1),wt=v(e,"endScreenVideoTitle",3,void 0),Je=v(e,"endScreenVideoThumb",3,void 0),Ut=v(e,"isOneVideoPlaylist",3,!1),Xt=v(e,"showMiniTimer",3,!1),Ht=v(e,"fullScreenTarget",3,void 0),jt=v(e,"playerStarted",3,!1),Ee=v(e,"showEndScreen",3,!0),{notifications$:Kt,graphIsOpened$:Se}=mo(),te=e.store.getLogger().createComponentLog("Root component"),ne=e.store.interfaceLanguage$,Ve=e.store.state.playbackState$,Fe=e.store.ads.playbackState,Re=e.store.state.positionWithScrubbing$,We=e.store.state.duration$,Ne=e.store.playerPhase,et=e.store.ui.isFullscreen,zt=e.store.ui.controlsVisible,qt=e.store.ui.isControlsAvailable,Et=e.store.ui.interactiveHideMobileControls,$i=e.store.ui.settingsMenu.visible$,_i=e.store.ui.settingsMenu.openedByBtnKeyboard$,ct=e.store.ui.scrubbingInProgress,Vi=e.store.ui.volumeChangingInProgress,Yt=e.store.ui.debugPanelVisible,dt=e.store.state.isLoaderVisible,si=e.store.state.isEnded$,Ri=e.store.state.chromecastConnected$,Mt=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,rn=e.store.state.isLive$,Lt=e.store.state.isPlaying$,ft=e.store.state.isActiveLive$,di=e.store.state.isRewindableLive$,ko=e.store.state.crashed$,qi=e.store.webApi.annotationsApi,ti=e.store.webApi.pictureInPictureApi,Ko=e.store.state.videoSize$,Dn=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,Ke=e.store.state.duration$,ut=e.store.ui.playerSize,Qt=e.store.ui.is3DVideo,Pt=e.store.ui.icon3DVideoVisible,At=e.store.state.isInteractive,ci=e.store.state.isInteractiveTime$,qo=e.store.state.isInteractiveExpectation$,ai=e.store.state.hasInteractiveBranches,St=e.store.ui.controls.disabledControls$,to=e.store.ui.touched,Qi=e.store.ui.overlayContainer$,Hn=e.store.ui.autoplayNextEnabled$,Ni=e.store.state.loadedMetadata$,vo=e.store.actions.internal.closeSettingsMenu,go=(Pr=e.store.callbacks)==null?void 0:Pr.onDisabledPlayPrevChapterClick,xn=(Ar=e.store.callbacks)==null?void 0:Ar.onDisabledSeekToInteractiveClick,sn=e.store.actions.internal.setQuality,ki=Z(void 0),Gi=Z(void 0),an=Z(void 0),Po=Z(void 0),ln,dn,wr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Fn=Z(void 0),{closeNotification:Sr,notificationsToShow$:lr}=Kt,Kr=g(()=>!!a().slow_video),cn=()=>Sr("slow_video"),Un=le(!1),dr,wn=Z(!1),lo=g(()=>p()!==qs.PlaybackState.PLAYING),zn=Z(!1),Cr=g(()=>f()||m()||!r(wn)&&(u()&&!!ai||r(lo)&&y())),Sn=Z(!0),cr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!At&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Wn=Z(!1),Qo=g(()=>(Ee()||e.showAutoplayNext&&S())&&!!wt()&&!!Je()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Wn)),Kn=Z(!1);ti==null||ti.setContext(jl());let qr=vt=>{vt&&!At&&ho(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:qr});let Tr=()=>{clearTimeout(ln),O(wn,!1),m()&&Et.set(!1)},ho=vt=>{Tr(),O(wn,!0),ln=setTimeout(()=>O(wn,!1),vt);let $t=vt-100;dr=setTimeout(()=>{E()&&Un.set(!1)},$t>0?$t:vt)},mt=Qt.subscribe(vt=>{Pt.set(vt),vt&&(clearTimeout(dn),dn=setTimeout(()=>Pt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Zt=async(vt=Ns())=>{var $t,io,Bi,uo,po,Yo;if(vt&&!qs.clientChecker.device.isIOS){let oo=wd(),qn=co(),Ao=qs.clientChecker.browser.isSamsungBrowser&&oo===e.shadowRootContainer;vt=oo===qn||Ao}if(vt){ho(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ti==null?void 0:ti.exit())}catch(oo){te({message:String(oo)})}try{let oo=($t=R())!=null&&$t.width&&((io=R())!=null&&io.height)?R():I();await T1(oo)}catch(oo){te({message:String(oo)})}}et.set(vt),e.store.getAdmanWrapper().setFullscreen(vt),M()?(uo=(Bi=e.store.callbacks)==null?void 0:Bi.onFullscreenEnter)==null||uo.call(Bi):(Yo=(po=e.store.callbacks)==null?void 0:po.onFullscreenExit)==null||Yo.call(po)},Cn=vt=>{let $t=vt,{width:io,height:Bi}=$t.target;ut.set({width:io,height:Bi})},ji=()=>{let{width:vt,height:$t}=r(ki).getBoundingClientRect();ut.set({width:vt,height:$t})};Rt(()=>{var vt;return xu(Zt),e.uiConfig.features.annotationsInside&&(qi==null||qi.init(r(ki))),ha(ti)&&(ti==null||ti.assignPlayerContainer(r(ki)),ti==null||ti.setExternalEventHandlers({resize:Cn,leavepictureinpicture:ji})),O(Sn,!qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((vt=De().parentElement)==null||vt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(ln),clearTimeout(dr),clearTimeout(dn),mt(),ti==null||ti.dispose().catch($t=>{te({message:String($t)})}),wu(Zt)}});let Oi=Z(!0),Go=Z(!0),Tn=vt=>{let $t=k()+(vt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;$t<0?(O(Oi,!1),$t=0):$t>=G()&&(O(Go,!1),$t=G()),O(zn,!0),e.seekTime($t)},co=()=>qs.clientChecker.device.isIOS?r(ki):!e.uiConfig.allowChangingFullscreenTarget||!Ht()?e.outerContainerRef:Ht().contains(e.outerContainerRef)?Ht():e.outerContainerRef,un=async()=>{try{if(Ns())await yu(document),te({message:"exit fullscreen"});else{if(te({message:"request fullscreen"}),qs.clientChecker.device.isIOS&&!H())return;await $u(co())}}catch(vt){te({message:String(vt)})}},jo=()=>{vo()},_o=vt=>{if(vt.preventDefault(),F()){jo();return}if(!jt()){e.firstStart(),ho(e.uiConfig.controls.hideTimeoutCursor);return}O(zn,!1),w()?Tr():ho(e.uiConfig.controls.hideTimeoutMobile)},Er=()=>{to.set(!0)},Ir=()=>{At||(Un.set(!0),ho(e.uiConfig.controls.hideTimeoutCursor))},Qr=vt=>{go&&(go(vt),ho(e.uiConfig.controls.hideTimeoutMobile))},ds=vt=>{xn&&(xn(vt),ho(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{Qi.set(r(Fn))}),Qe(()=>{zt.set((r(lo)||F()||q()||Y()||j()||!r(Qo)&&(u()||r(wn)&&!r(zn)))&&!r(Cr)&&n()==="video"&&!d()&&ue())}),Qe(()=>{!q()&&r(Kn)&&!re()&&ho(e.uiConfig.controls.hideTimeoutMobile),O(Kn,q(),!0)}),Qe(()=>{O(Oi,k()>0),O(Go,!fe()&&k()<G(),!0)}),Qe(()=>{Pd(r(Po),F(),be(),!0)});let En=W("aria_label_video_player"),ur=W("video360");P0({fullScreenChangeHandler:Zt,getFullscreenTarget:co}),L0({store:e.store,getFullscreenTarget:co});let kr=(vt,$t)=>{var po,Yo;let io=(Yo=(po=e.store.callbacks)==null?void 0:po.uiInfo)==null?void 0:Yo.onUpcomingLiveViewStateChanged;if(!io)return;let Bi=!!$t,uo={...On(r(ki),{upcomingLiveScreen:$t},"upcomingLiveScreen",Bi),...vt};io(uo)};var bo=qx();Ct("blur",ta,jo);var ii=_(bo);Ba(ii,{onClick:_o,get videoContainer(){return De()},set videoContainer(vt){De(vt)}});var pn=P(ii,2);la(pn,()=>"slot",!1,(vt,$t)=>{Ie(vt,()=>({name:Oa}))});var fn=P(pn,2);aa(fn,me,vt=>{var $t=Kx(),io=ge($t);let Bi=g(()=>n()!=="thumb"||d()||At&&e.autoplay);Va(io,{get hidden(){return r(Bi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var uo=P(io,2);{var po=Ye=>{var Jt=Hx(),vi=ge(Jt);{var yi=Oo=>{let Pn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(Oo,{side:"left",get seekStep(){return r(Pn)},handleSingleFirstClick:_o,handleSecondClick:()=>Tn("backward")})};V(vi,Oo=>{r(Oi)&&Oo(yi)})}var No=P(vi,2);{var Yr=Oo=>{let Pn=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(Oo,{side:"right",get seekStep(){return r(Pn)},handleSingleFirstClick:_o,handleSecondClick:()=>Tn("forward")})};V(No,Oo=>{r(Go)&&Oo(Yr)})}$(Ye,Jt)};V(uo,Ye=>{e.canRewindLive&&di&&!Pe().has("TIMELINE")&&Ye(po)})}var Yo=P(uo,2);{var oo=Ye=>{let Jt=g(()=>{var vi;return(vi=e.live)==null?void 0:vi.startTime});nc(Ye,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Jt)},onUpcomingLiveViewStateChanged:kr})};V(Yo,Ye=>{n()==="LiveWaitingStart"&&Ye(oo)})}var qn=P(Yo,2);{var Ao=Ye=>{Ra(Ye,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(qn,Ye=>{n()==="LiveWaitingRecover"&&Ye(Ao)})}var pr=P(qn,2);{var Mr=Ye=>{Ra(Ye,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(pr,Ye=>{n()==="LiveWaitingRecord"&&Ye(Mr)})}var Gr=P(pr,2);{var Mo=Ye=>{var Jt=Fx();let vi;var yi=_(Jt);Cd(yi,{get adsSlotId(){return pe()},get adsParams(){return st()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Ae()},get duration(){return ke()}}),h(Jt),B(No=>vi=ie(Jt,1,"ads-container svelte-7yl31d",null,vi,No),[()=>({hidden:n()!=="ads"})]),$(Ye,Jt)};V(Gr,Ye=>{e.showAds&&jt()&&Ye(Mo)})}var Qn=P(Gr,2);{var Gn=Ye=>{let Jt=g(()=>!Ee()&&e.showAutoplayNext&&S());Bv(Ye,{get title(){return wt()},get thumb(){return Je()},get isHide(){return r(Jt)},clickCloseIcon:()=>O(Wn,!0)})};V(Qn,Ye=>{r(Qo)&&wt()&&Je()&&Ye(Gn)})}var fr=P(Qn,2);{var it=Ye=>{ic(Ye,{})};V(fr,Ye=>{se()&&Ye(it)})}var Tt=P(fr,2);{var mi=Ye=>{var Jt=Ux(),vi=_(Jt);xd(vi,{get"aria-label"(){return ur}}),h(Jt),$(Ye,Jt)};V(Tt,Ye=>{Le()&&Ye(mi)})}var Di=P(Tt,2);{var $o=Ye=>{oc(Ye,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ae()}})};V(Di,Ye=>{j()&&Ye($o)})}var no=P(Di,2);{var Pi=Ye=>{Ma(Ye,{get shifted(){return w()},get captions(){return Be()},get position(){return k()},get playerSize(){return I()},isMobile:!0})};V(no,Ye=>{N().value!=="off"&&Ye(Pi)})}var Lo=P(no,2);{var jn=Ye=>{var Jt=zx();Jt.__click=[Dx,F,$i,jo];var vi=_(Jt);La(vi,{}),h(Jt),$(Ye,Jt)};V(Lo,Ye=>{d()&&Ye(jn)})}var mn=P(Lo,2);{var yo=Ye=>{let Jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),vi=g(()=>n()==="ads"),yi=g(()=>e.canRewindLive&&ce()!==0);tc(Ye,{get bottomHidden(){return r(Jt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(vi)},get canRewindLive(){return r(yi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return bt()},get prevButtonActive(){return lt()},get isOneVideoPlaylist(){return Ut()},get customFullscreenSupported(){return r(Sn)},get endScreenShown(){return r(Qo)},toggleFullscreen:un,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Qr,onDisabledSeekToInteractiveClick:ds,get playerControlsWrapperRef(){return r(Gi)},set playerControlsWrapperRef(No){O(Gi,No,!0)},get playerControlsRef(){return r(an)},set playerControlsRef(No){O(an,No,!0)}})};V(mn,Ye=>{jt()&&Ye(yo)})}var Vo=P(mn,2);{var mr=Ye=>{var Jt=Wx(),vi=_(Jt);lc(vi,{get supportLink(){return e.supportLink},get returnFocus(){return V0.noop},get ref(){return r(Po)},set ref(yi){O(Po,yi,!0)}}),h(Jt),$(Ye,Jt)};V(Vo,Ye=>{F()&&Ye(mr)})}var kn=P(Vo,2);let Yn=g(()=>!r(cr));Id(kn,{get isLive(){return he()},get isHidden(){return r(Yn)},get isPlaying(){return oe()},get position(){return k()},get duration(){return G()}});var vr=P(kn,2);{var Ro=Ye=>{xa(Ye,{})};V(vr,Ye=>{r(wr)&&Ye(Ro)})}var Lr=P(vr,2);{var jr=Ye=>{Md(Ye,{})};V(Lr,Ye=>{ve()&&Ye(jr)})}var Zn=P(Lr,2);{var gr=Ye=>{dc(Ye,{onClose:cn,onSelectAutoQuality:()=>{sn("auto"),cn()}})};V(Zn,Ye=>{r(Kr)&&Ye(gr)})}$(vt,$t)});var In=P(fn,2);tt(In,vt=>O(Fn,vt),()=>r(Fn)),h(bo),tt(bo,vt=>O(ki,vt),()=>r(ki)),B(()=>Ue(bo,"aria-label",En)),Ct("click",bo,Er,!0),Ct("focusin",bo,Ir,!0),$(t,bo),z(),o()}at(["click"]);function Zu(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}var R0=require("@vkontakte/videoplayer-shared/es2018");var Gx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),jx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Hv(t,e){U(e,!0),K(t,jx);let[i,o]=He(),n=()=>C(Y,"$playerSize",i),s=()=>C(M,"$isPlaying$",i),l=()=>C(R,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(k,"$currentSubtitle$",i),m=()=>C(G,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),y=()=>C(F,"$isLive$",i),w=()=>C(q,"$isRewindableLive$",i),x=v(e,"outsideDuration",3,0),S=v(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:R,positionExact$:I,isPlaying$:M,currentSubtitle$:k,currentSubtitleCaptions$:G,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:q},ui:{playerSize:Y,controls:j},actions:{internal:{getVideoElement:ue}}}=Te(),re=8,fe=Z(!1),be=ni({}),me=()=>{O(fe,!0)},Pe=()=>{O(fe,!1)},se=(0,R0.debounceFn)(Cl,260);Qe(()=>{n(),se(ue(),j,be,r(fe))});let Le=g(()=>s()?$n(l()-d()):$n(isFinite(l())?l():x()));var ae=Gx(),N=_(ae);Ba(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(ke){S(ke)}});var Be=P(N,2);la(Be,()=>"slot",!1,(ke,ze)=>{Ie(ke,()=>({name:Oa}))});var ce=P(Be,2);let he=g(()=>a()!=="thumb"||p());Va(ce,{get hidden(){return r(he)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var oe=P(ce,2);{var ve=ke=>{Ma(ke,{shifted:!1,get captions(){return m()},get position(){return u()},get playerSize(){return n()}})};V(oe,ke=>{f().value!=="off"&&ke(ve)})}var De=P(oe,2),pe=_(De);Ed(pe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Le)}}),h(De);var st=P(De,2);let X;var Ae=_(st);Ta(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:re,tooltipRightOffset:re,get ref(){return be.timeline},set ref(ke){be.timeline=ke}}),h(st),h(ae),B(ke=>X=ie(st,1,"timeline svelte-1qfjf44",null,X,ke),[()=>({visible:r(fe)})]),Ct("mouseenter",ae,me),Ct("mouseleave",ae,Pe),$(t,ae),z(),o()}var Yx=A("<div><!></div>"),Zx={hash:"svelte-1tzrpvc",code:`.root.svelte-1tzrpvc {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
355
+ }.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 Wu(t,e){U(e,!0),q(t,Tx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,s=0,l=j(ni(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};nn(()=>{window.clearTimeout(n)});var a=Cx();a.__click=d;var p=_(a);{var f=v=>{var u=Sx(),y=ge(u),w=P(y,2),x=_(w),S=_(x),T=P(S,2),E=P(T,2);h(x);var V=P(x,2),k=_(V,!0);h(V),h(w),B(I=>{var R,Y,H,F;ee(y,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),ee(S,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ee(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),be(k,I)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,u)};L(p,v=>{r(o)&&v(f)})}h(a),B(()=>{var v;return ee(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),z()}dt(["click"]);var Ex=(t,e,i)=>{e(!1),i()},Ix=M('<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),kx={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 Iv(t,e){U(e,!0),q(t,kx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},x=()=>{e.clickCloseIcon(),y()};Mt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=We(),T=ge(S);{var E=V=>{var k=Ix(),I=P(ge(k),2),R=_(I),Y=_(R),H=_(Y,!0);h(Y);var F=P(Y,2);ya(F,{onClick:x}),h(R);var W=P(R,2);W.__click=[Ex,p,v];var J=_(W),G=_(J),ce=_(G);let ie;var ue=P(ce,2);{var $e=Ve=>{kd(Ve,{get isRunning(){return s()},onTimerEnded:w})};L(ue,Ve=>{n()&&Ve($e)})}h(G),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(W),h(I),B((Ve,re)=>{be(H,Ve),st(G,`background-image: url('${e.thumb}')`),ie=ee(ce,1,"thumb-overlay svelte-1qdxi6t",null,ie,re),be(ne,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}dt(["click"]);var b0=require("@vkontakte/videoplayer-core/es2018");var $0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{b0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),nn(()=>{i==null||i(),clearTimeout(o)})};var y0=require("@vkontakte/videoplayer-core/es2018");var Ku=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var x0=require("@vkontakte/videoplayer-core/es2018"),w0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>x0.clientChecker.device.isIOS&&xe(l)===y0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=y=>{if(v(),!f()||!y)return;let w=p();if(!w)return;let x=new Ku(w),S=xe(d),T=xe(s),E=xe(n);for(let I of S)T.some(Y=>Y.value===I.id)&&x.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let R of I)x.updateSrc(R)}),k=()=>{let I=x.getCurrentShowingId();o(xe(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),x.detachAll(),w.textTracks.removeEventListener("change",k)}};Mt(()=>i.subscribe(u)),nn(v)};var Px=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ax=M("<!> <!>",1),Mx=M("<div><!></div>"),Lx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Vx=M("<div><!></div>"),Rx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Nx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ox=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Bx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function kv(t,e){var Ir,Ni;U(e,!0),q(t,Bx);let[i,o]=He(),n=()=>C(Oe,"$playerPhase",i),s=()=>C(_i,"$isLoaderVisible",i),l=()=>C(qe,"$adPlaybackState",i),d=()=>C(Lo,"$crashed",i),a=()=>C(rr,"$notificationsToShow$",i),p=()=>C(Re,"$playbackState$",i),f=()=>C(he,"$graphIsOpened$",i),v=()=>C(tt,"$interactiveHideMobileControls",i),u=()=>C(Mo,"$isEnded$",i),y=()=>C(bo,"$isInteractiveExpectation$",i),w=()=>C(Lt,"$controlsVisible",i),x=()=>C(Vi,"$touched",i),S=()=>C(Un,"$autoplayNextEnabled$",i),T=()=>C(ri,"$postrollPassed",i),E=()=>C(sr,"$bottomNoSmooth",i),V=()=>C(Go,"$videoSize",i),k=()=>C(pt,"$playerSize",i),I=()=>C(et,"$isFullscreen",i),R=()=>C(Le,"$position$",i),Y=()=>C(Ye,"$duration$",i),H=()=>C(Ri,"$loadedMetadata",i),F=()=>C(xi,"$settingsMenuVisible",i),W=()=>C(it,"$scrubbingInProgress",i),J=()=>C(ii,"$volumeChangingInProgress",i),G=()=>C(_o,"$chromecastConnected$",i),ce=()=>C(Kt,"$isControlsAvailable",i),ie=()=>C(li,"$isInteractiveTime$",i),ue=()=>C(ut,"$isActiveLive",i),$e=()=>C(hi,"$settingsMenuOpenedByKeyboard",i),fe=()=>C(ae,"$language$",i),ke=()=>C(xt,"$disabledControls$",i),ne=()=>C(Ut,"$is3DVideo",i),Ve=()=>C(ct,"$icon3DVideoVisible",i),re=()=>C(Dt,"$chromecastDeviceName$",i),N=()=>C(Fn,"$currentSubtitle$",i),Be=()=>C(D,"$currentSubtitleCaptions$",i),le=()=>C(Ue,"$realDuration$",i),ve=()=>C(sn,"$isLive$",i),te=()=>C(Pt,"$isPlaying$",i),me=()=>C(jt,"$debugPanelVisible",i),De=m(e,"videoContainer",15),pe=m(e,"adsSlotId",3,void 0),at=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Ae=m(e,"adsAutoplayParam",3,void 0),Ie=m(e,"duration",3,void 0),ze=m(e,"logoTargetUrl",3,""),lt=m(e,"showNextPrevButtons",3,!1),vt=m(e,"nextButtonActive",3,!1),gt=m(e,"prevButtonActive",3,!1),Ct=m(e,"endScreenVideoTitle",3,void 0),Ge=m(e,"endScreenVideoThumb",3,void 0),Ht=m(e,"isOneVideoPlaylist",3,!1),Xt=m(e,"showMiniTimer",3,!1),Gt=m(e,"fullScreenTarget",3,void 0),Wt=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:Ft,graphIsOpened$:he}=ho(),we=e.store.getLogger().createComponentLog("Root component"),ae=e.store.interfaceLanguage$,Re=e.store.state.playbackState$,qe=e.store.ads.playbackState,Le=e.store.state.positionWithScrubbing$,Ye=e.store.state.duration$,Oe=e.store.playerPhase,et=e.store.ui.isFullscreen,Lt=e.store.ui.controlsVisible,Kt=e.store.ui.isControlsAvailable,tt=e.store.ui.interactiveHideMobileControls,xi=e.store.ui.settingsMenu.visible$,hi=e.store.ui.settingsMenu.openedByBtnKeyboard$,it=e.store.ui.scrubbingInProgress,ii=e.store.ui.volumeChangingInProgress,jt=e.store.ui.debugPanelVisible,_i=e.store.state.isLoaderVisible,Mo=e.store.state.isEnded$,_o=e.store.state.chromecastConnected$,Dt=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,sn=e.store.state.isLive$,Pt=e.store.state.isPlaying$,ut=e.store.state.isActiveLive$,bi=e.store.state.isRewindableLive$,Lo=e.store.state.crashed$,Wi=e.store.webApi.annotationsApi,oi=e.store.webApi.pictureInPictureApi,Go=e.store.state.videoSize$,Fn=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,Ue=e.store.state.duration$,pt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,ct=e.store.ui.icon3DVideoVisible,ai=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,bo=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,xt=e.store.ui.controls.disabledControls$,Vi=e.store.ui.touched,Vo=e.store.ui.overlayContainer$,Un=e.store.ui.autoplayNextEnabled$,Ri=e.store.state.loadedMetadata$,io=e.store.actions.internal.closeSettingsMenu,Ro=(Ir=e.store.callbacks)==null?void 0:Ir.onDisabledPlayPrevChapterClick,wn=(Ni=e.store.callbacks)==null?void 0:Ni.onDisabledSeekToInteractiveClick,Sn=e.store.actions.internal.setQuality,ki=j(void 0),Ki=j(void 0),jo=j(void 0),Yo=j(void 0),an,ln,Wr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),zn=j(void 0),{closeNotification:$r,notificationsToShow$:rr}=Ft,yr=g(()=>!!a().slow_video),dn=()=>$r("slow_video"),sr=se(!1),oo,Zo=j(!1),Wn=g(()=>p()!==Ks.PlaybackState.PLAYING),Cn=j(!1),xr=g(()=>f()||v()||!r(Zo)&&(u()&&!!di||r(Wn)&&y())),Kn=j(!0),ar=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!w()&&!d()&&!ai&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),wr=j(!1),Tn=g(()=>(oe()||e.showAutoplayNext&&S())&&!!Ct()&&!!Ge()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(wr)),qn=j(!1);oi==null||oi.setContext(Kl());let Sr=ht=>{ht&&!ai&&po(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Sr});let Cr=()=>{clearTimeout(an),O(Zo,!1),v()&&tt.set(!1)},po=ht=>{Cr(),O(Zo,!0),an=setTimeout(()=>O(Zo,!1),ht);let zt=ht-100;oo=setTimeout(()=>{E()&&sr.set(!1)},zt>0?zt:ht)},mt=Ut.subscribe(ht=>{ct.set(ht),ht&&(clearTimeout(ln),ln=setTimeout(()=>ct.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Jt=async(ht=Rs())=>{var zt,Qi,Oi,xo,no,Oo;if(ht&&!Ks.clientChecker.device.isIOS){let Ci=bd(),En=$o(),cr=Ks.clientChecker.browser.isSamsungBrowser&&Ci===e.shadowRootContainer;ht=Ci===En||cr}if(ht){po(e.uiConfig.controls.hideTimeoutFullscreen);try{await(oi==null?void 0:oi.exit())}catch(Ci){we({message:String(Ci)})}try{let Ci=(zt=V())!=null&&zt.width&&((Qi=V())!=null&&Qi.height)?V():k();await g1(Ci)}catch(Ci){we({message:String(Ci)})}}et.set(ht),e.store.getAdmanWrapper().setFullscreen(ht),I()?(xo=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenEnter)==null||xo.call(Oi):(Oo=(no=e.store.callbacks)==null?void 0:no.onFullscreenExit)==null||Oo.call(no)},cn=ht=>{let zt=ht,{width:Qi,height:Oi}=zt.target;pt.set({width:Qi,height:Oi})},Pi=()=>{let{width:ht,height:zt}=r(ki).getBoundingClientRect();pt.set({width:ht,height:zt})};Mt(()=>{var ht;return hu(Jt),e.uiConfig.features.annotationsInside&&(Wi==null||Wi.init(r(ki))),ha(oi)&&(oi==null||oi.assignPlayerContainer(r(ki)),oi==null||oi.setExternalEventHandlers({resize:cn,leavepictureinpicture:Pi})),O(Kn,!Ks.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ht=De().parentElement)==null||ht.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(an),clearTimeout(oo),clearTimeout(ln),mt(),oi==null||oi.dispose().catch(zt=>{we({message:String(zt)})}),_u(Jt)}});let qi=j(!0),Xo=j(!0),Jo=ht=>{let zt=R()+(ht==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;zt<0?(O(qi,!1),zt=0):zt>=Y()&&(O(Xo,!1),zt=Y()),O(Cn,!0),e.seekTime(zt)},$o=()=>Ks.clientChecker.device.isIOS?r(ki):!e.uiConfig.allowChangingFullscreenTarget||!Gt()?e.outerContainerRef:Gt().contains(e.outerContainerRef)?Gt():e.outerContainerRef,Qn=async()=>{try{if(Rs())await gu(document),we({message:"exit fullscreen"});else{if(we({message:"request fullscreen"}),Ks.clientChecker.device.isIOS&&!H())return;await vu($o())}}catch(ht){we({message:String(ht)})}},un=()=>{io()},No=ht=>{if(ht.preventDefault(),F()){un();return}if(!Wt()){e.firstStart(),po(e.uiConfig.controls.hideTimeoutCursor);return}O(Cn,!1),w()?Cr():po(e.uiConfig.controls.hideTimeoutMobile)},Kr=()=>{Vi.set(!0)},qr=()=>{ai||(sr.set(!0),po(e.uiConfig.controls.hideTimeoutCursor))},Tr=ht=>{Ro&&(Ro(ht),po(e.uiConfig.controls.hideTimeoutMobile))},Qr=ht=>{wn&&(wn(ht),po(e.uiConfig.controls.hideTimeoutMobile))};Ke(()=>{Vo.set(r(zn))}),Ke(()=>{Lt.set((r(Wn)||F()||W()||J()||G()||!r(Tn)&&(u()||r(Zo)&&!r(Cn)))&&!r(xr)&&n()==="video"&&!d()&&ce())}),Ke(()=>{!W()&&r(qn)&&!ie()&&po(e.uiConfig.controls.hideTimeoutMobile),O(qn,W(),!0)}),Ke(()=>{O(qi,R()>0),O(Xo,!ue()&&R()<Y(),!0)}),Ke(()=>{Td(r(Yo),F(),$e(),!0)});let Gn=K("aria_label_video_player"),lr=K("video360");$0({fullScreenChangeHandler:Jt,getFullscreenTarget:$o}),w0({store:e.store,getFullscreenTarget:$o});let dr=(ht,zt)=>{var no,Oo;let Qi=(Oo=(no=e.store.callbacks)==null?void 0:no.uiInfo)==null?void 0:Oo.onUpcomingLiveViewStateChanged;if(!Qi)return;let Oi=!!zt,xo={...Dn(r(ki),{upcomingLiveScreen:zt},"upcomingLiveScreen",Oi),...ht};Qi(xo)};var yo=Ox();St("blur",ta,un);var Zt=_(yo);Ba(Zt,{onClick:No,get videoContainer(){return De()},set videoContainer(ht){De(ht)}});var fo=P(Zt,2);la(fo,()=>"slot",!1,(ht,zt)=>{Pe(ht,()=>({name:Oa}))});var Er=P(fo,2);aa(Er,fe,ht=>{var zt=Nx(),Qi=ge(zt);let Oi=g(()=>n()!=="thumb"||d()||ai&&e.autoplay);Va(Qi,{get hidden(){return r(Oi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var xo=P(Qi,2);{var no=Ze=>{var ei=Ax(),$i=ge(ei);{var To=Yt=>{let ci=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(Yt,{side:"left",get seekStep(){return r(ci)},handleSingleFirstClick:No,handleSecondClick:()=>Jo("backward")})};L($i,Yt=>{r(qi)&&Yt(To)})}var _e=P($i,2);{var It=Yt=>{let ci=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Wu(Yt,{side:"right",get seekStep(){return r(ci)},handleSingleFirstClick:No,handleSecondClick:()=>Jo("forward")})};L(_e,Yt=>{r(Xo)&&Yt(It)})}$(Ze,ei)};L(xo,Ze=>{e.canRewindLive&&bi&&!ke().has("TIMELINE")&&Ze(no)})}var Oo=P(xo,2);{var Ci=Ze=>{let ei=g(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});ec(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ei)},onUpcomingLiveViewStateChanged:dr})};L(Oo,Ze=>{n()==="LiveWaitingStart"&&Ze(Ci)})}var En=P(Oo,2);{var cr=Ze=>{Ra(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(En,Ze=>{n()==="LiveWaitingRecover"&&Ze(cr)})}var Gr=P(En,2);{var jr=Ze=>{Ra(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(Gr,Ze=>{n()==="LiveWaitingRecord"&&Ze(jr)})}var Yr=P(Gr,2);{var mo=Ze=>{var ei=Mx();let $i;var To=_(ei);yd(To,{get adsSlotId(){return pe()},get adsParams(){return at()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Ae()},get duration(){return Ie()}}),h(ei),B(_e=>$i=ee(ei,1,"ads-container svelte-7yl31d",null,$i,_e),[()=>({hidden:n()!=="ads"})]),$(Ze,ei)};L(Yr,Ze=>{e.showAds&&Wt()&&Ze(mo)})}var In=P(Yr,2);{var kr=Ze=>{let ei=g(()=>!oe()&&e.showAutoplayNext&&S());Iv(Ze,{get title(){return Ct()},get thumb(){return Ge()},get isHide(){return r(ei)},clickCloseIcon:()=>O(wr,!0)})};L(In,Ze=>{r(Tn)&&Ct()&&Ge()&&Ze(kr)})}var Pr=P(In,2);{var nt=Ze=>{Xd(Ze,{})};L(Pr,Ze=>{ne()&&Ze(nt)})}var Tt=P(Pr,2);{var vi=Ze=>{var ei=Lx(),$i=_(ei);_d($i,{get"aria-label"(){return lr}}),h(ei),$(Ze,ei)};L(Tt,Ze=>{Ve()&&Ze(vi)})}var Gi=P(Tt,2);{var wo=Ze=>{Jd(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};L(Gi,Ze=>{G()&&Ze(wo)})}var vo=P(Gi,2);{var ro=Ze=>{Ma(Ze,{get shifted(){return w()},get captions(){return Be()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L(vo,Ze=>{N().value!=="off"&&Ze(ro)})}var Bo=P(vo,2);{var kn=Ze=>{var ei=Vx();ei.__click=[Px,F,xi,un];var $i=_(ei);La($i,{}),h(ei),$(Ze,ei)};L(Bo,Ze=>{d()&&Ze(kn)})}var pn=P(Bo,2);{var ji=Ze=>{let ei=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),$i=g(()=>n()==="ads"),To=g(()=>e.canRewindLive&&le()!==0);Zd(Ze,{get bottomHidden(){return r(ei)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r($i)},get canRewindLive(){return r(To)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return lt()},get nextButtonActive(){return vt()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return Ht()},get customFullscreenSupported(){return r(Kn)},get endScreenShown(){return r(Tn)},toggleFullscreen:Qn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Tr,onDisabledSeekToInteractiveClick:Qr,get playerControlsWrapperRef(){return r(Ki)},set playerControlsWrapperRef(_e){O(Ki,_e,!0)},get playerControlsRef(){return r(jo)},set playerControlsRef(_e){O(jo,_e,!0)}})};L(pn,Ze=>{Wt()&&Ze(ji)})}var So=P(pn,2);{var ur=Ze=>{var ei=Rx(),$i=_(ei);nc($i,{get supportLink(){return e.supportLink},get returnFocus(){return S0.noop},get ref(){return r(Yo)},set ref(To){O(Yo,To,!0)}}),h(ei),$(Ze,ei)};L(So,Ze=>{F()&&Ze(ur)})}var Pn=P(So,2);let An=g(()=>!r(ar));Sd(Pn,{get isLive(){return ve()},get isHidden(){return r(An)},get isPlaying(){return te()},get position(){return R()},get duration(){return Y()}});var pr=P(Pn,2);{var Mn=Ze=>{xa(Ze,{})};L(pr,Ze=>{r(Wr)&&Ze(Mn)})}var Ar=P(pr,2);{var Co=Ze=>{Id(Ze,{})};L(Ar,Ze=>{me()&&Ze(Co)})}var Ln=P(Ar,2);{var Zr=Ze=>{rc(Ze,{onClose:dn,onSelectAutoQuality:()=>{Sn("auto"),dn()}})};L(Ln,Ze=>{r(yr)&&Ze(Zr)})}$(ht,zt)});var ds=P(Er,2);ot(ds,ht=>O(zn,ht),()=>r(zn)),h(yo),ot(yo,ht=>O(ki,ht),()=>r(ki)),B(()=>Fe(yo,"aria-label",Gn)),St("click",yo,Kr,!0),St("focusin",yo,qr,!0),$(t,yo),z(),o()}dt(["click"]);function qu(t){let e="";return to(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),to(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),to(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),to(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),to(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),to(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),to(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),to(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),to(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),to(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),to(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),to(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),to(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),to(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),to(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),to(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),to(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),to(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),to(t.font)&&(e+=`--font:${t.font};`),to(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),to(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function to(t){return typeof t=="string"&&!t.includes(";")}var C0=require("@vkontakte/videoplayer-shared/es2018");var Dx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Hx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Pv(t,e){U(e,!0),q(t,Hx);let[i,o]=He(),n=()=>C(J,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Y,"$currentSubtitleCaptions$",i),u=()=>C(k,"$positionExact$",i),y=()=>C(F,"$isLive$",i),w=()=>C(W,"$isRewindableLive$",i),x=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:R,currentSubtitleCaptions$:Y,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:W},ui:{playerSize:J,controls:G},actions:{internal:{getVideoElement:ce}}}=Ee(),ie=8,ue=j(!1),$e=ni({}),fe=()=>{O(ue,!0)},ke=()=>{O(ue,!1)},ne=(0,C0.debounceFn)(Tl,260);Ke(()=>{n(),ne(ce(),G,$e,r(ue))});let Ve=g(()=>s()?yn(l()-d()):yn(isFinite(l())?l():x()));var re=Dx(),N=_(re);Ba(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ie){S(Ie)}});var Be=P(N,2);la(Be,()=>"slot",!1,(Ie,ze)=>{Pe(Ie,()=>({name:Oa}))});var le=P(Be,2);let ve=g(()=>a()!=="thumb"||p());Va(le,{get hidden(){return r(ve)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var te=P(le,2);{var me=Ie=>{Ma(Ie,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(te,Ie=>{f().value!=="off"&&Ie(me)})}var De=P(te,2),pe=_(De);wd(pe,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Ve)}}),h(De);var at=P(De,2);let Z;var Ae=_(at);Ta(Ae,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ie,tooltipRightOffset:ie,get ref(){return $e.timeline},set ref(Ie){$e.timeline=Ie}}),h(at),h(re),B(Ie=>Z=ee(at,1,"timeline svelte-1qfjf44",null,Z,Ie),[()=>({visible:r(ue)})]),St("mouseenter",re,fe),St("mouseleave",re,ke),$(t,re),z(),o()}var Fx=M("<div><!></div>"),Ux={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
356
356
 
357
357
  /* USER DEFINED COLORS */
358
358
 
@@ -378,12 +378,12 @@ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x"},y1=gb;var _
378
378
  rgba(9, 9, 9, 0.46) 80%,
379
379
  rgba(10, 10, 10, 0.48) 86.67%,
380
380
  rgba(10, 10, 10, 0.50) 100%
381
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
382
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-1tzrpvc {color-scheme:light dark;}.root.visible-outside.svelte-1tzrpvc {overflow:visible;}
381
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
382
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-16kg8zb {color-scheme:light dark;}.root.visible-outside.svelte-16kg8zb {overflow:visible;}
383
383
 
384
384
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
385
385
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
386
386
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
387
387
 
388
- /* \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 Fv(t,e){U(e,!0),K(t,Zx);let[i,o]=He(),n=()=>C(Xt,"$isLive$",i),s=()=>C(ft,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),p=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),u=v(e,"thumbUrl",7),y=v(e,"interactiveContainer",7),w=v(e,"interactiveController",7),x=v(e,"subtitles",7),S=v(e,"live",7),T=v(e,"preload",7),E=v(e,"autoplay",7),R=v(e,"volume",7,void 0),I=v(e,"muted",7,void 0),M=v(e,"fromTime",7),k=v(e,"canRewindLive",7),G=v(e,"showAds",7),H=v(e,"adsSlotId",7,void 0),F=v(e,"adsParams",7,void 0),q=v(e,"adsPreviewParam",7,void 0),Y=v(e,"adsAutoplayParam",7,void 0),j=v(e,"duration",7,void 0),ue=v(e,"logoClickable",7),re=v(e,"logoHidden",7),fe=v(e,"isMobile",7),be=v(e,"showNextPrevButtons",7,!1),me=v(e,"nextButtonActive",7,!1),Pe=v(e,"prevButtonActive",7,!1),se=v(e,"endScreenVideoTitle",7,void 0),Le=v(e,"endScreenVideoThumb",7,void 0),ae=v(e,"isOneVideoPlaylist",7,!1),N=v(e,"supportLink",7),Be=v(e,"shadowRootContainer",7),ce=v(e,"outerContainerRef",7),he=v(e,"fullScreenTarget",7,void 0),oe=v(e,"failoverHosts",7,void 0),ve=v(e,"showMiniTimer",7,!1),De=v(e,"saveRate",7),pe=v(e,"seekToInteractive",7,Da.noop),st=v(e,"playPrevChapter",7,Da.noop),X=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ke=v(e,"showEndScreen",7,!0),ze=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:bt}=a();Dh(f());let lt=kt(),wt=f().logoLink,Je=d().ui.debugPanelVisible,Ut=d().ui.playerSize,Xt=d().state.isLive$,jt=d().state.isInteractive&&Pl.clientChecker.device.isAndroid,Ee=Z(void 0),Kt=null,Se=Z(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Yh(d(),bt),Qe(()=>{var D,Ke;d().ui.isMobile.set(fe()),(Ke=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Ke.call(D)});let te=(D=!1)=>{O(Se,!0),D?d().actions.external.firstStart(G()):d().actions.internal.firstStart(G())},ne=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let D=h1(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{_1(d().videoId),Cf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Ke=yf(d().videoId);Ke&&d().actions.internal.setQuality(Ke)}};function Ve(D){var At,ci,qo;let Ke=l()||D;Ke&&d().initVideo({container:r(Ee),sources:Ke,failoverHosts:oe(),subtitles:x(),volumeMultiplier:X()});let ut=Da.safeStorage.get(hd)==="true";Je.set(ut),M()>0&&d().actions.external.seekTime(M());let Qt=fe()?lt.volumeDefault:(ci=(At=R())!=null?At:uu())!=null?ci:lt.volumeDefault,Pt=(qo=I())!=null?qo:u1();if(d().actions.external.setVolume(Qt),d().actions.external.setMuted(Pt),d().getAdmanWrapper().setInitialVolume(Pt?0:Qt),ne(),lt.features.saveRate&&De()){let ai=m1();ai&&!n()&&d().actions.internal.setPlaybackRate(ai)}if(Ae()){let ai=g1();ai&&d().actions.internal.setAutoplayNextEnabled(ai)}d().ui.isAutoplay.set(E()),E()&&te(),T()&&lt.features.preload&&d().actions.internal.preload()}let Fe=D=>{if(window.ResizeObserver){let Ke,ut;Kt=new ResizeObserver((0,Da.throttleFn)(Qt=>{let Pt=Qt[0];if(Pt.contentBoxSize){let At=Array.isArray(Pt.contentBoxSize)?Pt.contentBoxSize[0]:Pt.contentBoxSize;Ke=At.inlineSize,ut=At.blockSize}else Pt.contentRect&&(Ke=Pt.contentRect.width,ut=Pt.contentRect.height);Ut.set({width:Ke,height:ut})},300)),Kt.observe(D)}Ut.set({width:D.clientWidth,height:D.clientHeight})},Re=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var ut,Qt,Pt,At;jt&&document.addEventListener("visibilitychange",Re),lt.debugLog&&d().actions.internal.startLogging(),Fe(r(Ee));let D=rt.map(ci=>ci.init({store:d(),microStores:bt,config:p(),interactiveController:w(),uiConfig:f()})),Ke=()=>{jt&&document.removeEventListener("visibilitychange",Re),Kt==null||Kt.disconnect(),D.forEach(ci=>ci.unsubscribe()),d().destroy()};return((ut=S())==null?void 0:ut.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Ke):((Qt=S())==null?void 0:Qt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Ke):(((Pt=S())==null?void 0:Pt.status)==="finished"||((At=S())==null?void 0:At.status)==="postlive")&&!(l()&&(0,Pl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Ke):(Ve(),Ke)});function We(){r(Se)?d().actions.external.play():te(!0)}function Ne(){d().actions.external.pause()}function et(D){d().actions.external.setMuted(D)}function zt(){d().actions.external.toggleSubtitle()}function qt(D,Ke){d().actions.external.changeSubtitle(D,Ke)}function Et(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function $i(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function _i(D){fe()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function ct(D){d().actions.internal.seekTime(D,N0.SeekAction.UNKNOWN)}function Vi(D){d().actions.external.seekEpisodeStartTime(D)}function Yt(){d().actions.external.returnFocusToEpisodes()}function dt(D){d().actions.external.setPlaybackRate(D)}function si(D){d().actions.external.setAutoQualityLimits(D)}function Ri(){d().actions.external.setQuality("auto")}function Mt(D){d().actions.external.setTrafficSavingEnabled(D)}function ri(D){d().actions.external.setHighQualityEnabled(D)}let rn=Zu(lt.view),Lt=p().playerView==="preview",ft=d().state.availableSubtitlesList$;if(lt.features.initSubtitles){let D=!1;Qe(()=>{if(!D&&s().length){D=!0;let Ke;if(lt.features.userVideoPrefs&&d().videoId){let Qt=vu(lt.userSalt,String(d().videoId));Qt!=null&&Qt.subtitleTrackId&&(Ke=s().find(Pt=>Pt.value===Qt.subtitleTrackId))}let ut=Ef();ut&&(Ke!=null||(Ke=s().find(Qt=>Qt.language===ut))),d().actions.internal.setSubtitle(Ke)}})}var di=Yx();let ko;var qi=_(di);{var ti=D=>{Dv(D,{get store(){return d()},get uiConfig(){return lt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return G()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return Y()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return re()},get logoTargetUrl(){return wt},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return ce()},get fullScreenTarget(){return he()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return pe()},get playPrevChapter(){return st()},firstStart:te,seekTime:ct,get showEndScreen(){return ke()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return be()},get videoContainer(){return r(Ee)},set videoContainer(Ke){O(Ee,Ke,!0)}})},Ko=D=>{var Ke=qe(),ut=ge(Ke);{var Qt=At=>{Hv(At,{get thumbUrl(){return u()},get outsideDuration(){return j()},get canRewindLive(){return k()},get videoContainer(){return r(Ee)},set videoContainer(ci){O(Ee,ci,!0)}})},Pt=At=>{Ov(At,{get store(){return d()},get uiConfig(){return lt},get title(){return m()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return k()},get showAds(){return G()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return Y()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return re()},get logoTargetUrl(){return wt},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Le()},get isOneVideoPlaylist(){return ae()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return ce()},get fullScreenTarget(){return he()},get showMiniTimer(){return ve()},get playerStarted(){return r(Se)},get seekToInteractive(){return pe()},get playPrevChapter(){return st()},firstStart:te,get showEndScreen(){return ke()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return be()},get videoContainer(){return r(Ee)},set videoContainer(ci){O(Ee,ci,!0)},get keyboardControls(){return ze()},set keyboardControls(ci){ze(ci)}})};V(ut,At=>{Lt?At(Qt):At(Pt,!1)})}$(D,Ke)};V(qi,D=>{fe()?D(ti):D(Ko,!1)})}h(di),B(D=>{ko=ie(di,1,"root svelte-1tzrpvc",null,ko,D),nt(di,rn)},[()=>({"root--miui-browser":Pl.clientChecker.device.isMobile&&Pl.clientChecker.browser.isMiuiBrowser,"visible-outside":Lt})]),$(t,di);var Dn=z({initVideo:Ve,play:We,pause:Ne,setMuted:et,toggleSubtitle:zt,changeSubtitle:qt,hideControls:Et,showControls:$i,setVolume:_i,seekTime:ct,seekEpisodeStartTime:Vi,returnFocusToEpisodes:Yt,setPlaybackRate:dt,setAutoQualityLimits:si,setAutoQuality:Ri,toggleTrafficSaving:Mt,toggleHighQuality:ri,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return p()},set videoConfig(D){p(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return m()},set title(D){m(D)},get thumbUrl(){return u()},set thumbUrl(D){u(D)},get interactiveContainer(){return y()},set interactiveContainer(D){y(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return x()},set subtitles(D){x(D)},get live(){return S()},set live(D){S(D)},get preload(){return T()},set preload(D){T(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return R()},set volume(D){R(D)},get muted(){return I()},set muted(D){I(D)},get fromTime(){return M()},set fromTime(D){M(D)},get canRewindLive(){return k()},set canRewindLive(D){k(D)},get showAds(){return G()},set showAds(D){G(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return q()},set adsPreviewParam(D){q(D)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(D){Y(D)},get duration(){return j()},set duration(D){j(D)},get logoClickable(){return ue()},set logoClickable(D){ue(D)},get logoHidden(){return re()},set logoHidden(D){re(D)},get isMobile(){return fe()},set isMobile(D){fe(D)},get showNextPrevButtons(){return be()},set showNextPrevButtons(D){be(D)},get nextButtonActive(){return me()},set nextButtonActive(D){me(D)},get prevButtonActive(){return Pe()},set prevButtonActive(D){Pe(D)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(D){se(D)},get endScreenVideoThumb(){return Le()},set endScreenVideoThumb(D){Le(D)},get isOneVideoPlaylist(){return ae()},set isOneVideoPlaylist(D){ae(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return Be()},set shadowRootContainer(D){Be(D)},get outerContainerRef(){return ce()},set outerContainerRef(D){ce(D)},get fullScreenTarget(){return he()},set fullScreenTarget(D){he(D)},get failoverHosts(){return oe()},set failoverHosts(D){oe(D)},get showMiniTimer(){return ve()},set showMiniTimer(D){ve(D)},get saveRate(){return De()},set saveRate(D){De(D)},get showAutoplayNext(){return Ae()},set showAutoplayNext(D){Ae(D)},get seekToInteractive(){return pe()},set seekToInteractive(D){pe(D)},get playPrevChapter(){return st()},set playPrevChapter(D){st(D)},get volumeMultiplier(){return X()},set volumeMultiplier(D){X(D)},get showEndScreen(){return ke()},set showEndScreen(D){ke(D)},get keyboardControls(){return ze()},set keyboardControls(D){ze(D)}});return o(),Dn}var Xx=we('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Uv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}function zv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Uv(t,{get style(){return r(o)}})}var Jx=A('<div class="title svelte-1y9fytq"> </div>'),e5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),t5={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 Wv(t,e){K(t,t5);var i=e5(),o=_(i);{var n=d=>{var a=Jx(),p=_(a,!0);h(a),B(()=>_e(p,e.title)),$(d,a)};V(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);zv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var i5=A('<div class="playerError svelte-m5iv29"><!></div>'),o5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Kv(t){K(t,o5);var e=i5(),i=_(e);La(i,{}),h(e),$(t,e)}var lp=require("@vkontakte/videoplayer-shared/es2018"),Li=require("@vkontakte/videoplayer-shared/es2018"),$c=require("@vkontakte/videoplayer-core/es2018"),Nl=require("@vkontakte/videoplayer-statistics/es2018");var Ju=require("@vkontakte/videoplayer-shared/es2018"),Xu=class{constructor(){this.subscription=new Ju.Subscription,this.logger=new Ju.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){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 s,l;let o=ye(e.state.currentPlaybackRate$),n=ye(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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()}};var Ml=require("@vkontakte/videoplayer-shared/es2018");var n5=we('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function qv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n5();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);$e(n,()=>{var s;return(s=e.children)!=null?s:de}),xe(),h(o),$(t,o)}var r5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),s5={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 Qv(t,e){U(e,!0),K(t,s5);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Te(),d=kt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,u=g(()=>n()&&m("pip_dummy_title")),y=Zu(d.view);var w=r5();let x;var S=_(w);let T;var E=_(S);qv(E,{}),h(S);var R=P(S,2),I=_(R,!0);h(R),h(w),B((M,k)=>{x=ie(w,1,"player-pip-dummy svelte-1pbsod4",null,x,M),nt(w,y),T=ie(S,1,"dummy-image svelte-1pbsod4",null,T,k),_e(I,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Al=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),d5=460,c5=280,uc=class{constructor({enabled:e=!0}={enabled:!0}){Al(this,"playerDomElement"),Al(this,"playerParentShadowRoot"),Al(this,"playerDummyElement"),Al(this,"svelteContext"),Al(this,"pipWindow"),Al(this,"info",{isActive$:new Ml.ValueSubject(!1),isEnabled$:new Ml.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ml.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ml.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:d5,height:c5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
389
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ns(Qv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(sa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function O0(t){return t instanceof uc}var ep=class{static getLatestSupportedVersion(e){let i=new ga(e),o=new uc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function pc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var B0="Inner error. Unexpectedly root annotation container null reference exception",D0="Annotation with such name already exists",H0="Annotation with such name does not exist";var Ll=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Vl=require("@vkontakte/videoplayer-shared/es2018"),u5="1",p5=100,tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Vl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Vl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},p5);this.subscriptions.add((0,Vl.observeElementSize)(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 Ll(B0);if(this.annotations.has(e))throw new Ll(D0);i.style.zIndex=(o=i.style.zIndex)!=null?o:u5,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 Ll(H0);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ha=require("@vkontakte/videoplayer-shared/es2018"),nn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ha.assertNonNullable)(e),(0,Ha.assertNonNullable)(i),(0,Ha.assertNonNullable)(n),n.interactiveData&&(0,Ha.assertNonNullable)(o),this.subscription=new Ha.Subscription,this.subscription}};var fc=class extends nn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var mc=class extends nn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:p,isMobile:f}=s.ui,m=ye(f),u=()=>m&&ye(p);return o.add(p.subscribe(y=>{if(!m)return;let w=ye(l);ye(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var vc=class extends nn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var F0=require("@vkontakte/videoplayer-shared/es2018"),Gv=le(!1),ip=null,gc=class extends nn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Gv,set:(i,o=!1)=>{i!==ye(Gv)&&(this.clearTimeout(),Gv.set(i),!i&&ip&&(ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(m=>{ye(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,F0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:m,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,x;if(!(!m||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&ip===null&&(ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var op=require("@vkontakte/videoplayer-shared/es2018");var hc=class extends nn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:op.noop};this.checkIfShouldHide=i=>zs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ye(l)))return;let a=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,u=ye(p),y=ye(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),m.remove(mf),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),m.add(mf),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,op.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}})),o}};var jv=require("@vkontakte/videoplayer-shared/es2018"),_c=class extends nn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new jv.ValueSubject(!1),isEnabled$:new jv.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var rp=require("@vkontakte/videoplayer-shared/es2018");var np=require("@vkontakte/videoplayer-shared/es2018"),U0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?f5({maxCount:t}):void 0,e!==0?m5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},f5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,np.safeStorage.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}}},m5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(np.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>np.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var bc=class extends nn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=U0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,rp.filterChanged)(),(0,rp.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var z0=()=>[fc,mc,vc,gc,hc,_c,bc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Rl=require("@vkontakte/videoplayer-shared/es2018");var sp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var v5=Object.defineProperty,g5=(t,e,i)=>e in t?v5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>g5(t,typeof e!="symbol"?e+"":e,i),h5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Li.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,$c.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Bn=Z(void 0),ap=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"shadowRootContainer"),Gt(this,"playerId"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new lp.ValueSubject(null)),Gt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:x,refDomain:S,deviceId:T,interactiveData:E}=pc(this.videoConfig,i),R=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,I=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:M,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&M)try{return new Nl.OneStat({movieId:M,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:k,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||I)&&{projectId:Number(R)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),Rl.devNull.create("ui"),this.logger=new Li.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Li.Subscription,this.interactiveSubscription=new Li.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ns(Kv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)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,s=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=ns(Wv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Rl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=pc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Nl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,p,f,m,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:S,preload:T,autoplay:E,volume:R,muted:I,fromTime:M,canRewindLive:k,supportLink:G,showAds:H,adsSlotId:F,adsParams:q={},adsPreviewParam:Y,adsAutoplayParam:j,interfaceLanguage:ue,isCyrillicRelatedInterface:re,logoClickable:fe,logoHidden:be,isMobile:me,isTouch:Pe,isAudioDisabled:se,isLiveCatchUpMode:Le,fullScreenTarget:ae,failoverHosts:N,canDownload:Be,callbacks:ce,interactiveData:he,showThumbTimer:oe,additionalButtons:ve=[],additionalSettingsMenuItems:De=[],additionalContextMenuItems:pe=[],repeat:st,saveRate:X,volumeMultiplier:Ae,showEndScreen:ke,showAutoplayNext:ze,mediascopePixels:rt}=pc(this.videoConfig,i),{sources:bt,title:lt,thumbUrl:wt,unitedVideoId:Je,isClip:Ut=!1,duration:Xt,adsParams:Ht={},videoEpisodes:jt,previewThumbsData:Ee,subtitles:Kt,live:Se}=e;if(!bt&&!Se){let Yt=new Error("empty sources and live");this.fatalError$.next(Yt),(n=ce.onCrashed)==null||n.call(ce,Yt.message);return}let te={...q,...Ht},ne=this.getNextVideoInfo(),Ve={sources:bt,title:lt,thumbUrl:wt,subtitles:Kt,unitedVideoId:Je,isClip:Ut,live:Se,albumId:w,statPlace:x,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,showAds:H,adsSlotId:F,adsParams:te,adsPreviewParam:Y,adsAutoplayParam:j,duration:Xt,logoClickable:fe,logoHidden:be,isTouch:Pe!=null?Pe:me,repeat:st,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ne.nextVideoTitle,endScreenVideoThumb:ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ve)}`});let Re=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),We=(Re==null?void 0:Re.oneStat)||this.createOneStat(e,i),Ne=this.createThinOneStat(e,i),et;rt&&(et=new Nl.MediascopePixel({pixels:rt})),(We||Ne)&&(this.statistics=new Ou(We,Ne,et,Re==null?void 0:Re.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new va(this.uiConfig.sentry,{version:pa,env:lu},{movieId:Je,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Pe!=null?Pe:me,clip:Ut}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...va.getInstance()};let qt=!!he,Et=[],$i="tooltip_interactive_go_back_disabled_first";if(qt&&this.interactiveController){let Yt=this.interactiveController.state.isInitialChapter$.getValue(),dt=this.interactiveController.getHistoryState();Yt&&Et.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Et.push("SEEK_TO_INTERACTIVE_BUTTON"),dt.hasPrevChapter$.getValue()||(Et.push("PLAY_PREV_CHAPTER_BUTTON"),Yt||(dt.isGoBackLimited$.getValue()?$i="tooltip_interactive_go_back_disabled_limit":$i="tooltip_interactive_go_back_disabled"))}let _i=()=>{var Yt;this.isInited=!1,this.prevIsid=void 0;let dt=(o==null?void 0:o.info.isEnded$.getValue())&&((Yt=this.interactiveController)==null?void 0:Yt.state.isEndChapter$.getValue());ce.onReplayInteractiveVideo&&!dt?ce.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=s0({player:o,interfaceLanguage:ue,isCyrillicRelatedInterface:re,videoId:Je,isClip:Ut,isLiveCatchUpMode:Le,isAudioDisabled:se,statAuthToken:S,callbacks:ce,webApi:Fe,videoEpisodes:jt,previewThumbsData:Ee,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Et,isInteractive:qt,saveRate:X,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:_i,playPrevChapterDisabledTooltip:$i,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:De!=null?De:[],additionalContextMenuItems:pe!=null?pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:st&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ct}=this.microStoresRoot=z0(),Vi=()=>{var Yt,dt,si,Ri,Mt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onCurrentFormatChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(ct.interactiveControlsOpacity$.subscribe(Lt=>{var ft;Lt!==null&&((ft=this==null?void 0:this.interactiveController)==null||ft.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onThroughputEstimationChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onTrafficSavingEnabledChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onHighQualityEnabledChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onAutoQualityEnabledChanged)==null?void 0:ft.call(ce,!!Lt)})),this.subscription.add(new Li.Observable(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ft=>Lt.next(ft)))}).pipe((0,Li.skip)(1)).subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onCurrentPlaybackRateChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onVolumeChange)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var ft,di,ko,qi;if(Lt)(ft=ce==null?void 0:ce.onMute)==null||ft.call(ce);else{let ti=(ko=((di=this.store)==null?void 0:di.state.volume$)&&ye(this.store.state.volume$))!=null?ko:0;(qi=ce==null?void 0:ce.onUnmute)==null||qi.call(ce,ti)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onVideoBitrateChanged)==null?void 0:ft.call(ce,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var ft;let di=(ft=this.store)==null?void 0:ft.ui.controls.disabledControls$;di&&(Lt&&!di.includes(_d)&&di.add(_d),Lt||di.remove(_d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Lt=>{var ft;if(!$c.clientChecker.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ft=this.videoConfig)==null?void 0:ft.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var ft;return(ft=ce==null?void 0:ce.onVSIDChanged)==null?void 0:ft.call(ce,Lt)})),this.initMediaSession(),O(Bn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:bt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:lt,thumbUrl:wt,subtitles:Kt,live:Se,preload:T,autoplay:E,muted:I,volume:R,fromTime:M,canRewindLive:k,supportLink:G,showAds:H,adsSlotId:F,adsParams:te,adsPreviewParam:Y,adsAutoplayParam:j,duration:Xt,logoClickable:fe,logoHidden:be,isMobile:Pe!=null?Pe:me,failoverHosts:N,fullScreenTarget:ae,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:oe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ne.nextVideoTitle,endScreenVideoThumb:ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:ke,showAutoplayNext:ze},!0);let rn={target:this.playerContainer,props:r(Bn)};this.svelteRootComponent=ns(Fv,rn),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(si=(dt=(Yt=this.videoConfig)==null?void 0:Yt.callbacks)==null?void 0:dt.onInited)==null||si.call(dt)),(Ri=this.internalsExposure)==null||Ri.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Mt=this.videoConfig)==null?void 0:Mt.callbacks)!=null&&ri.onDevNullLog)?Rl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?$c.clientChecker.isInited$.subscribe(Yt=>{Yt&&(console.log("UI SDK async start"),Vi())}):Vi()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Li.isNonNullable)(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,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?ye(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var R,I,M,k,G,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(bd)),T==="action-choice-canceled"){let q=ye(this.store.state.isPlaying$)||F;if(((M=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&q){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(k=this.videoConfig)==null?void 0:(G=k.callbacks).onDisabledInteractiveClick)==null||H.call(G)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(bd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var R,I,M;E.length&&((M=(I=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,R,I;(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveChapterChanged)==null||I.call(R,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,R,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(R=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,p,f,m,u,y,w,x,S,T,E,R,I,M,k,G,H,F,q,Y,j,ue,re;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let fe=new Error("empty videos");this.fatalError$.next(fe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,fe.message);return}else this.fatalError$.next(null);if(this.videoConfig=pc(h5,(0,Li.cloneDeepWith)(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.playerId=(0,Li.getPlayerId)(e.playerId),this.uiConfig=Bh((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Li.InternalsExposure("ui",this.playerId))),Rl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,lp.now)()]}),(0,Li.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Li.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(E=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(R=this.videoConfig).autoplay&&(R.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(k=this.uiConfig.ads.preview)!=null?k:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((G=this.uiConfig.showLogo)!=null?G:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(q=this.uiConfig.features.endScreen)!=null?q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(Y=this.uiConfig.features.autoplayNext)!=null?Y:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ue=this.videoConfig.videos)!=null&&ue[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ep.getLatestSupportedVersion(fe):this.pictureInPictureApi=new ga(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Xu:void 0,this.slotsApi=this.uiConfig.features.slots?new Gu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new tp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),O0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(re=this.slotsApi)==null||re.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new sp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Bn)&&(r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).prevButtonActive=this.isPrevButtonActive(),r(Bn).endScreenVideoTitle=o.nextVideoTitle,r(Bn).endScreenVideoThumb=o.nextVideoThumb,r(Bn).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",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Bn)&&(r(Bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Bn).nextButtonActive=this.isNextButtonActive(),r(Bn).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)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}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})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Li.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.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),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&sa(e)}};var Ol=require("@vkontakte/videoplayer-shared/es2018"),dp=require("@vkontakte/videoplayer-core/es2018"),_5=()=>{window.customElements.define("vk-video-player",ap)};
388
+ /* \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 Av(t,e){U(e,!0),q(t,Ux);let[i,o]=He(),n=()=>C(Xt,"$isLive$",i),s=()=>C(ut,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),x=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),E=m(e,"autoplay",7),V=m(e,"volume",7,void 0),k=m(e,"muted",7,void 0),I=m(e,"fromTime",7),R=m(e,"canRewindLive",7),Y=m(e,"showAds",7),H=m(e,"adsSlotId",7,void 0),F=m(e,"adsParams",7,void 0),W=m(e,"adsPreviewParam",7,void 0),J=m(e,"adsAutoplayParam",7,void 0),G=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),ie=m(e,"logoHidden",7),ue=m(e,"isMobile",7),$e=m(e,"showNextPrevButtons",7,!1),fe=m(e,"nextButtonActive",7,!1),ke=m(e,"prevButtonActive",7,!1),ne=m(e,"endScreenVideoTitle",7,void 0),Ve=m(e,"endScreenVideoThumb",7,void 0),re=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),Be=m(e,"shadowRootContainer",7),le=m(e,"outerContainerRef",7),ve=m(e,"fullScreenTarget",7,void 0),te=m(e,"failoverHosts",7,void 0),me=m(e,"showMiniTimer",7,!1),De=m(e,"saveRate",7),pe=m(e,"seekToInteractive",7,Da.noop),at=m(e,"playPrevChapter",7,Da.noop),Z=m(e,"volumeMultiplier",7),Ae=m(e,"showAutoplayNext",7),Ie=m(e,"showEndScreen",7,!0),ze=m(e,"keyboardControls",15,void 0),{subscribers:lt,stores:vt}=a();kh(f());let gt=kt(),Ct=f().logoLink,Ge=d().ui.debugPanelVisible,Ht=d().ui.playerSize,Xt=d().state.isLive$,Wt=d().state.isInteractive&&Al.clientChecker.device.isAndroid,oe=j(void 0),Ft=null,he=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Hh(d(),vt),Ke(()=>{var D,Ue;d().ui.isMobile.set(ue()),(Ue=(D=p().callbacks)==null?void 0:D.onDomReady)==null||Ue.call(D)});let we=(D=!1)=>{O(he,!0),D?d().actions.external.firstStart(Y()):d().actions.internal.firstStart(Y())},ae=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let D=a1(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{l1(d().videoId),hf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Ue=ff(d().videoId);Ue&&d().actions.internal.setQuality(Ue)}};function Re(D){var ai,li,bo;let Ue=l()||D;Ue&&d().initVideo({container:r(oe),sources:Ue,failoverHosts:te(),subtitles:x(),volumeMultiplier:Z()});let pt=Da.safeStorage.get(fd)==="true";Ge.set(pt),I()>0&&d().actions.external.seekTime(I());let Ut=ue()?gt.volumeDefault:(li=(ai=V())!=null?ai:su())!=null?li:gt.volumeDefault,ct=(bo=k())!=null?bo:t1();if(d().actions.external.setVolume(Ut),d().actions.external.setMuted(ct),d().getAdmanWrapper().setInitialVolume(ct?0:Ut),ae(),gt.features.saveRate&&De()){let di=n1();di&&!n()&&d().actions.internal.setPlaybackRate(di)}if(Ae()){let di=s1();di&&d().actions.internal.setAutoplayNextEnabled(di)}d().ui.isAutoplay.set(E()),E()&&we(),T()&&gt.features.preload&&d().actions.internal.preload()}let qe=D=>{if(window.ResizeObserver){let Ue,pt;Ft=new ResizeObserver((0,Da.throttleFn)(Ut=>{let ct=Ut[0];if(ct.contentBoxSize){let ai=Array.isArray(ct.contentBoxSize)?ct.contentBoxSize[0]:ct.contentBoxSize;Ue=ai.inlineSize,pt=ai.blockSize}else ct.contentRect&&(Ue=ct.contentRect.width,pt=ct.contentRect.height);Ht.set({width:Ue,height:pt})},300)),Ft.observe(D)}Ht.set({width:D.clientWidth,height:D.clientHeight})},Le=()=>{document.hidden&&d().actions.external.stop()};Mt(()=>{var pt,Ut,ct,ai;Wt&&document.addEventListener("visibilitychange",Le),gt.debugLog&&d().actions.internal.startLogging(),qe(r(oe));let D=lt.map(li=>li.init({store:d(),microStores:vt,config:p(),interactiveController:w(),uiConfig:f()})),Ue=()=>{Wt&&document.removeEventListener("visibilitychange",Le),Ft==null||Ft.disconnect(),D.forEach(li=>li.unsubscribe()),d().destroy()};return((pt=S())==null?void 0:pt.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Ue):((Ut=S())==null?void 0:Ut.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Ue):(((ct=S())==null?void 0:ct.status)==="finished"||((ai=S())==null?void 0:ai.status)==="postlive")&&!(l()&&(0,Al.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Ue):(Re(),Ue)});function Ye(){r(he)?d().actions.external.play():we(!0)}function Oe(){d().actions.external.pause()}function et(D){d().actions.external.setMuted(D)}function Lt(){d().actions.external.toggleSubtitle()}function Kt(D,Ue){d().actions.external.changeSubtitle(D,Ue)}function tt(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function xi(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function hi(D){ue()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function it(D){d().actions.internal.seekTime(D,T0.SeekAction.UNKNOWN)}function ii(D){d().actions.external.seekEpisodeStartTime(D)}function jt(){d().actions.external.returnFocusToEpisodes()}function _i(D){d().actions.external.setPlaybackRate(D)}function Mo(D){d().actions.external.setAutoQualityLimits(D)}function _o(){d().actions.external.setQuality("auto")}function Dt(D){d().actions.external.setTrafficSavingEnabled(D)}function ri(D){d().actions.external.setHighQualityEnabled(D)}let sn=qu(gt.view),Pt=p().playerView==="preview",ut=d().state.availableSubtitlesList$;if(gt.features.initSubtitles){let D=!1;Ke(()=>{if(!D&&s().length){D=!0;let Ue;if(gt.features.userVideoPrefs&&d().videoId){let Ut=cu(gt.userSalt,String(d().videoId));Ut!=null&&Ut.subtitleTrackId&&(Ue=s().find(ct=>ct.value===Ut.subtitleTrackId))}let pt=bf();pt&&(Ue!=null||(Ue=s().find(Ut=>Ut.language===pt))),d().actions.internal.setSubtitle(Ue)}})}var bi=Fx();let Lo;var Wi=_(bi);{var oi=D=>{kv(D,{get store(){return d()},get uiConfig(){return gt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return J()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return ie()},get logoTargetUrl(){return Ct},get nextButtonActive(){return fe()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(he)},get seekToInteractive(){return pe()},get playPrevChapter(){return at()},firstStart:we,seekTime:it,get showEndScreen(){return Ie()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(oe)},set videoContainer(Ue){O(oe,Ue,!0)}})},Go=D=>{var Ue=We(),pt=ge(Ue);{var Ut=ai=>{Pv(ai,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return R()},get videoContainer(){return r(oe)},set videoContainer(li){O(oe,li,!0)}})},ct=ai=>{Ev(ai,{get store(){return d()},get uiConfig(){return gt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return J()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return ie()},get logoTargetUrl(){return Ct},get nextButtonActive(){return fe()},get prevButtonActive(){return ke()},get endScreenVideoTitle(){return ne()},get endScreenVideoThumb(){return Ve()},get isOneVideoPlaylist(){return re()},get supportLink(){return N()},get shadowRootContainer(){return Be()},get outerContainerRef(){return le()},get fullScreenTarget(){return ve()},get showMiniTimer(){return me()},get playerStarted(){return r(he)},get seekToInteractive(){return pe()},get playPrevChapter(){return at()},firstStart:we,get showEndScreen(){return Ie()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return $e()},get videoContainer(){return r(oe)},set videoContainer(li){O(oe,li,!0)},get keyboardControls(){return ze()},set keyboardControls(li){ze(li)}})};L(pt,ai=>{Pt?ai(Ut):ai(ct,!1)})}$(D,Ue)};L(Wi,D=>{ue()?D(oi):D(Go,!1)})}h(bi),B(D=>{Lo=ee(bi,1,"root svelte-16kg8zb",null,Lo,D),st(bi,sn)},[()=>({"root--miui-browser":Al.clientChecker.device.isMobile&&Al.clientChecker.browser.isMiuiBrowser,"visible-outside":Pt})]),$(t,bi);var Fn=z({initVideo:Re,play:Ye,pause:Oe,setMuted:et,toggleSubtitle:Lt,changeSubtitle:Kt,hideControls:tt,showControls:xi,setVolume:hi,seekTime:it,seekEpisodeStartTime:ii,returnFocusToEpisodes:jt,setPlaybackRate:_i,setAutoQualityLimits:Mo,setAutoQuality:_o,toggleTrafficSaving:Dt,toggleHighQuality:ri,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return p()},set videoConfig(D){p(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return v()},set title(D){v(D)},get thumbUrl(){return u()},set thumbUrl(D){u(D)},get interactiveContainer(){return y()},set interactiveContainer(D){y(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return x()},set subtitles(D){x(D)},get live(){return S()},set live(D){S(D)},get preload(){return T()},set preload(D){T(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return V()},set volume(D){V(D)},get muted(){return k()},set muted(D){k(D)},get fromTime(){return I()},set fromTime(D){I(D)},get canRewindLive(){return R()},set canRewindLive(D){R(D)},get showAds(){return Y()},set showAds(D){Y(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return W()},set adsPreviewParam(D){W(D)},get adsAutoplayParam(){return J()},set adsAutoplayParam(D){J(D)},get duration(){return G()},set duration(D){G(D)},get logoClickable(){return ce()},set logoClickable(D){ce(D)},get logoHidden(){return ie()},set logoHidden(D){ie(D)},get isMobile(){return ue()},set isMobile(D){ue(D)},get showNextPrevButtons(){return $e()},set showNextPrevButtons(D){$e(D)},get nextButtonActive(){return fe()},set nextButtonActive(D){fe(D)},get prevButtonActive(){return ke()},set prevButtonActive(D){ke(D)},get endScreenVideoTitle(){return ne()},set endScreenVideoTitle(D){ne(D)},get endScreenVideoThumb(){return Ve()},set endScreenVideoThumb(D){Ve(D)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(D){re(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return Be()},set shadowRootContainer(D){Be(D)},get outerContainerRef(){return le()},set outerContainerRef(D){le(D)},get fullScreenTarget(){return ve()},set fullScreenTarget(D){ve(D)},get failoverHosts(){return te()},set failoverHosts(D){te(D)},get showMiniTimer(){return me()},set showMiniTimer(D){me(D)},get saveRate(){return De()},set saveRate(D){De(D)},get showAutoplayNext(){return Ae()},set showAutoplayNext(D){Ae(D)},get seekToInteractive(){return pe()},set seekToInteractive(D){pe(D)},get playPrevChapter(){return at()},set playPrevChapter(D){at(D)},get volumeMultiplier(){return Z()},set volumeMultiplier(D){Z(D)},get showEndScreen(){return Ie()},set showEndScreen(D){Ie(D)},get keyboardControls(){return ze()},set keyboardControls(D){ze(D)}});return o(),Fn}var zx=Te('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Mv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=zx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}function Lv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Mv(t,{get style(){return r(o)}})}var Wx=M('<div class="title svelte-1y9fytq"> </div>'),Kx=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),qx={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 Vv(t,e){q(t,qx);var i=Kx(),o=_(i);{var n=d=>{var a=Wx(),p=_(a,!0);h(a),B(()=>be(p,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Lv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var Qx=M('<div class="playerError svelte-m5iv29"><!></div>'),Gx={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Rv(t){q(t,Gx);var e=Qx(),i=_(e);La(i,{}),h(e),$(t,e)}var op=require("@vkontakte/videoplayer-shared/es2018"),Li=require("@vkontakte/videoplayer-shared/es2018"),gc=require("@vkontakte/videoplayer-core/es2018"),Ol=require("@vkontakte/videoplayer-statistics/es2018");var Gu=require("@vkontakte/videoplayer-shared/es2018"),Qu=class{constructor(){this.subscription=new Gu.Subscription,this.logger=new Gu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){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 s,l;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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()}};var Ll=require("@vkontakte/videoplayer-shared/es2018");var jx=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Nv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=jx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),$(t,o)}var Yx=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Zx={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 Ov(t,e){U(e,!0),q(t,Zx);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ee(),d=kt(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),y=qu(d.view);var w=Yx();let x;var S=_(w);let T;var E=_(S);Nv(E,{}),h(S);var V=P(S,2),k=_(V,!0);h(V),h(w),B((I,R)=>{x=ee(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),st(w,y),T=ee(S,1,"dummy-image svelte-1pbsod4",null,T,R),be(k,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var Xx=Object.defineProperty,Jx=(t,e,i)=>e in t?Xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ml=(t,e,i)=>Jx(t,typeof e!="symbol"?e+"":e,i),e5=460,t5=280,ac=class{constructor({enabled:e=!0}={enabled:!0}){Ml(this,"playerDomElement"),Ml(this,"playerParentShadowRoot"),Ml(this,"playerDummyElement"),Ml(this,"svelteContext"),Ml(this,"pipWindow"),Ml(this,"info",{isActive$:new Ll.ValueSubject(!1),isEnabled$:new Ll.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ll.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ll.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:e5,height:t5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
389
+ `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ns(Ov,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(sa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function E0(t){return t instanceof ac}var ju=class{static getLatestSupportedVersion(e){let i=new ga(e),o=new ac(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var I0="Inner error. Unexpectedly root annotation container null reference exception",k0="Annotation with such name already exists",P0="Annotation with such name does not exist";var Vl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Rl=require("@vkontakte/videoplayer-shared/es2018"),i5="1",o5=100,Yu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Rl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Rl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},o5);this.subscriptions.add((0,Rl.observeElementSize)(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 Vl(I0);if(this.annotations.has(e))throw new Vl(k0);i.style.zIndex=(o=i.style.zIndex)!=null?o:i5,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 Vl(P0);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ha=require("@vkontakte/videoplayer-shared/es2018"),rn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ha.assertNonNullable)(e),(0,Ha.assertNonNullable)(i),(0,Ha.assertNonNullable)(n),n.interactiveData&&(0,Ha.assertNonNullable)(o),this.subscription=new Ha.Subscription,this.subscription}};var dc=class extends rn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var cc=class extends rn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...se(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:p,isMobile:f}=s.ui,v=xe(f),u=()=>v&&xe(p);return o.add(p.subscribe(y=>{if(!v)return;let w=xe(l);xe(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=xe(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var uc=class extends rn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var A0=require("@vkontakte/videoplayer-shared/es2018"),Bv=se(!1),Zu=null,pc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bv,set:(i,o=!1)=>{i!==xe(Bv)&&(this.clearTimeout(),Bv.set(i),!i&&Zu&&(Zu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{xe(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,A0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Zu===null&&(Zu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Xu=require("@vkontakte/videoplayer-shared/es2018");var fc=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...se(null),toggle:Xu.noop};this.checkIfShouldHide=i=>Us(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=xe(p),y=xe(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(sf),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(sf),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add((0,Xu.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};var Dv=require("@vkontakte/videoplayer-shared/es2018"),mc=class extends rn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Dv.ValueSubject(!1),isEnabled$:new Dv.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var ep=require("@vkontakte/videoplayer-shared/es2018");var Ju=require("@vkontakte/videoplayer-shared/es2018"),M0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?n5({maxCount:t}):void 0,e!==0?r5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},n5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Ju.safeStorage.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}}},r5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ju.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Ju.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var vc=class extends rn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),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:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=M0({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe((0,ep.filterChanged)(),(0,ep.filter)(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var L0=()=>[dc,cc,uc,pc,fc,mc,vc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var Nl=require("@vkontakte/videoplayer-shared/es2018");var tp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var s5=Object.defineProperty,a5=(t,e,i)=>e in t?s5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qt=(t,e,i)=>a5(t,typeof e!="symbol"?e+"":e,i),l5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Li.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Hn=j(void 0),ip=class extends HTMLElement{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"sentry"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new op.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:x,refDomain:S,deviceId:T,interactiveData:E}=lc(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Ol.OneStat({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...V&&(!this.isInited||k)&&{projectId:Number(V)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),Nl.devNull.create("ui"),this.logger=new Li.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Li.Subscription,this.interactiveSubscription=new Li.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ns(Rv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)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,s=ni({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=ns(Vv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Nl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=lc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Ol.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,p,f,v,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:S,preload:T,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:R,supportLink:Y,showAds:H,adsSlotId:F,adsParams:W={},adsPreviewParam:J,adsAutoplayParam:G,interfaceLanguage:ce,isCyrillicRelatedInterface:ie,logoClickable:ue,logoHidden:$e,isMobile:fe,isTouch:ke,isAudioDisabled:ne,isLiveCatchUpMode:Ve,fullScreenTarget:re,failoverHosts:N,canDownload:Be,callbacks:le,interactiveData:ve,showThumbTimer:te,additionalButtons:me=[],additionalSettingsMenuItems:De=[],additionalContextMenuItems:pe=[],repeat:at,saveRate:Z,volumeMultiplier:Ae,showEndScreen:Ie,showAutoplayNext:ze,mediascopePixels:lt}=lc(this.videoConfig,i),{sources:vt,title:gt,thumbUrl:Ct,unitedVideoId:Ge,isClip:Ht=!1,duration:Xt,adsParams:Gt={},videoEpisodes:Wt,previewThumbsData:oe,subtitles:Ft,live:he}=e;if(!vt&&!he){let jt=new Error("empty sources and live");this.fatalError$.next(jt),(n=le.onCrashed)==null||n.call(le,jt.message);return}let we={...W,...Gt},ae=this.getNextVideoInfo(),Re={sources:vt,title:gt,thumbUrl:Ct,subtitles:Ft,unitedVideoId:Ge,isClip:Ht,live:he,albumId:w,statPlace:x,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:H,adsSlotId:F,adsParams:we,adsPreviewParam:J,adsAutoplayParam:G,duration:Xt,logoClickable:ue,logoHidden:$e,isTouch:ke!=null?ke:fe,repeat:at,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});let Le=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ye=(Le==null?void 0:Le.oneStat)||this.createOneStat(e,i),Oe=this.createThinOneStat(e,i),et;lt&&(et=new Ol.MediascopePixel({pixels:lt})),(Ye||Oe)&&(this.statistics=new Mu(Ye,Oe,et,Le==null?void 0:Le.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new va(this.uiConfig.sentry,{version:pa,env:ou},{movieId:Ge,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ke!=null?ke:fe,clip:Ht}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...va.getInstance()};let Kt=!!ve,tt=[],xi="tooltip_interactive_go_back_disabled_first";if(Kt&&this.interactiveController){let jt=this.interactiveController.state.isInitialChapter$.getValue(),_i=this.interactiveController.getHistoryState();jt&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),_i.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),jt||(_i.isGoBackLimited$.getValue()?xi="tooltip_interactive_go_back_disabled_limit":xi="tooltip_interactive_go_back_disabled"))}let hi=()=>{var jt;this.isInited=!1,this.prevIsid=void 0;let _i=(o==null?void 0:o.info.isEnded$.getValue())&&((jt=this.interactiveController)==null?void 0:jt.state.isEndChapter$.getValue());le.onReplayInteractiveVideo&&!_i?le.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Y1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:ie,videoId:Ge,isClip:Ht,isLiveCatchUpMode:Ve,isAudioDisabled:ne,statAuthToken:S,callbacks:le,webApi:qe,videoEpisodes:Wt,previewThumbsData:oe,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:Kt,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:hi,playPrevChapterDisabledTooltip:xi,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:De!=null?De:[],additionalContextMenuItems:pe!=null?pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:at&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:it}=this.microStoresRoot=L0(),ii=()=>{var jt,_i,Mo,_o,Dt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onCurrentFormatChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(it.interactiveControlsOpacity$.subscribe(Pt=>{var ut;Pt!==null&&((ut=this==null?void 0:this.interactiveController)==null||ut.setDisabledControls(Pt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onThroughputEstimationChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onTrafficSavingEnabledChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onHighQualityEnabledChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onAutoQualityEnabledChanged)==null?void 0:ut.call(le,!!Pt)})),this.subscription.add(new Li.Observable(Pt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>Pt.next(ut)))}).pipe((0,Li.skip)(1)).subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onCurrentPlaybackRateChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.volume$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onVolumeChange)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.muted$.subscribe(Pt=>{var ut,bi,Lo,Wi;if(Pt)(ut=le==null?void 0:le.onMute)==null||ut.call(le);else{let oi=(Lo=((bi=this.store)==null?void 0:bi.state.volume$)&&xe(this.store.state.volume$))!=null?Lo:0;(Wi=le==null?void 0:le.onUnmute)==null||Wi.call(le,oi)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onVideoBitrateChanged)==null?void 0:ut.call(le,Pt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Pt=>{var ut;let bi=(ut=this.store)==null?void 0:ut.ui.controls.disabledControls$;bi&&(Pt&&!bi.includes(md)&&bi.add(md),Pt||bi.remove(md))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Pt=>{var ut;if(!gc.clientChecker.browser.isSamsungBrowser||!Pt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ut=this.videoConfig)==null?void 0:ut.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Pt=>{var ut;return(ut=le==null?void 0:le.onVSIDChanged)==null?void 0:ut.call(le,Pt)})),this.initMediaSession(),O(Hn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:vt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:gt,thumbUrl:Ct,subtitles:Ft,live:he,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:Y,showAds:H,adsSlotId:F,adsParams:we,adsPreviewParam:J,adsAutoplayParam:G,duration:Xt,logoClickable:ue,logoHidden:$e,isMobile:ke!=null?ke:fe,failoverHosts:N,fullScreenTarget:re,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Ie,showAutoplayNext:ze},!0);let sn={target:this.playerContainer,props:r(Hn)};this.svelteRootComponent=ns(Av,sn),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Mo=(_i=(jt=this.videoConfig)==null?void 0:jt.callbacks)==null?void 0:_i.onInited)==null||Mo.call(_i)),(_o=this.internalsExposure)==null||_o.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Dt=this.videoConfig)==null?void 0:Dt.callbacks)!=null&&ri.onDevNullLog)?Nl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Nl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?gc.clientChecker.isInited$.subscribe(jt=>{jt&&(console.log("UI SDK async start"),ii())}):ii()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Li.isNonNullable)(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,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?xe(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var V,k,I,R,Y,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(vd)),T==="action-choice-canceled"){let W=xe(this.store.state.isPlaying$)||F;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&W){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(R=this.videoConfig)==null?void 0:(Y=R.callbacks).onDisabledInteractiveClick)==null||H.call(Y)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(vd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var V,k,I;E.length&&((I=(k=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,V,k;(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||k.call(V,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,V,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(V)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,p,f,v,u,y,w,x,S,T,E,V,k,I,R,Y,H,F,W,J,G,ce,ie;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ue=new Error("empty videos");this.fatalError$.next(ue),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ue.message);return}else this.fatalError$.next(null);if(this.videoConfig=lc(l5,(0,Li.cloneDeepWith)(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.playerId=(0,Li.getPlayerId)(e.playerId),this.uiConfig=Ih((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new Li.InternalsExposure("ui",this.playerId))),Nl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,op.now)()]}),(0,Li.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),(0,Li.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(E=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(V=this.videoConfig).autoplay&&(V.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((Y=this.uiConfig.showLogo)!=null?Y:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(W=this.uiConfig.features.endScreen)!=null?W:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ju.getLatestSupportedVersion(ue):this.pictureInPictureApi=new ga(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Qu:void 0,this.slotsApi=this.uiConfig.features.slots?new zu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Yu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),E0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ie=this.slotsApi)==null||ie.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new tp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Hn)&&(r(Hn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Hn).nextButtonActive=this.isNextButtonActive(),r(Hn).prevButtonActive=this.isPrevButtonActive(),r(Hn).endScreenVideoTitle=o.nextVideoTitle,r(Hn).endScreenVideoThumb=o.nextVideoThumb,r(Hn).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",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Hn)&&(r(Hn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Hn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Hn).nextButtonActive=this.isNextButtonActive(),r(Hn).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)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}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})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),l=xe(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Li.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.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),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&sa(e)}};var Bl=require("@vkontakte/videoplayer-shared/es2018"),np=require("@vkontakte/videoplayer-core/es2018"),d5=()=>{window.customElements.define("vk-video-player",ip)};